mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-07 22:14:04 +08:00
v0.0.3
This commit is contained in:
parent
3145e1c64a
commit
b6dffa7596
@ -12,11 +12,12 @@ showList = (text, index, listnum) => {
|
||||
var topRows = [],
|
||||
tailRows = [];
|
||||
index.forEach(i => {
|
||||
let displayName = escapeHtml(i.name),
|
||||
displatDesc = i.desc != undefined ? escapeHtml(i.desc) : "",
|
||||
let desc = i.desc != undefined ? i.desc : "",
|
||||
displayName = escapeHtml(i.name),
|
||||
displatDesc = escapeHtml(desc),
|
||||
displayType = i.type != undefined ? escapeHtml(i.type) : "",
|
||||
upName = i.name.toUpperCase(),
|
||||
upDesc = i.desc.toUpperCase(),
|
||||
upDesc = desc.toUpperCase(),
|
||||
initial = upName.slice(0, 1),
|
||||
topRow = true,
|
||||
matched = true;
|
||||
@ -166,7 +167,7 @@ utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
break;
|
||||
case "custom":
|
||||
baseDir = allFts[code].path;
|
||||
assetDir = `${baseDir}/${code}/`
|
||||
assetDir = `${baseDir}/assets/`
|
||||
window.dirs = {
|
||||
idxFile: `${baseDir}/${code}.json`,
|
||||
docPath: `${baseDir}`,
|
||||
@ -226,6 +227,8 @@ $("#mainlist").on('mousedown', '.info', function (e) {
|
||||
path && showManual(path);
|
||||
} else if (2 == e.which) {
|
||||
sendText($('.select .name').text());
|
||||
} else if (3 == e.which) {
|
||||
toggleView();
|
||||
}
|
||||
});
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
143
assets/prism.css
143
assets/prism.css
@ -1,142 +1 @@
|
||||
/* PrismJS 1.16.0
|
||||
https://prismjs.com/download.html#themes=prism */
|
||||
/**
|
||||
* prism.js default theme for JavaScript, CSS and HTML
|
||||
* Based on dabblet (http://dabblet.com)
|
||||
* @author Lea Verou
|
||||
*/
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: black;
|
||||
background: none;
|
||||
text-shadow: 0 1px white;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
font-size: 1em;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
line-height: 1.5;
|
||||
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||||
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
@media print {
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #f6f8fa;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #905;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #690;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #9a6e3a;
|
||||
background: hsla(0, 0%, 100%, .5);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #07a;
|
||||
}
|
||||
|
||||
.token.function,
|
||||
.token.class-name {
|
||||
color: #DD4A68;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #e90;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/* PrismJS 1.16.0 https://prismjs.com/download.html#themes=prism */ /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) * @author Lea Verou */ code[class*="language-"], pre[class*="language-"] { color: black; background: none; text-shadow: 0 1px white; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-size: 1em; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { text-shadow: none; background: #b3d4fc; } pre[class*="language-"]::selection, pre[class*="language-"] ::selection, code[class*="language-"]::selection, code[class*="language-"] ::selection { text-shadow: none; background: #b3d4fc; } @media print { code[class*="language-"], pre[class*="language-"] { text-shadow: none; } } /* Code blocks */ pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; } :not(pre) > code[class*="language-"], pre[class*="language-"] { background: #f6f8fa; } /* Inline code */ :not(pre) > code[class*="language-"] { padding: .1em; border-radius: .3em; white-space: normal; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: .7; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #905; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #690; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #9a6e3a; background: hsla(0, 0%, 100%, .5); } .token.atrule, .token.attr-value, .token.keyword { color: #07a; } .token.function, .token.class-name { color: #DD4A68; } .token.regex, .token.important, .token.variable { color: #e90; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; }
|
1838
assets/vue/vue.css
1838
assets/vue/vue.css
File diff suppressed because one or more lines are too long
@ -1,128 +1 @@
|
||||
{
|
||||
"linux": {
|
||||
"features": {
|
||||
"code": "linux",
|
||||
"explain": "linux命令大全",
|
||||
"cmds": ["linux命令"],
|
||||
"icon": "logo/linux.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"php": {
|
||||
"features": {
|
||||
"code": "php",
|
||||
"explain": "官方php函数文档",
|
||||
"cmds": ["php函数"],
|
||||
"icon": "logo/php.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"python": {
|
||||
"features": {
|
||||
"code": "python",
|
||||
"explain": "官方python标准库及常用第三方库文档",
|
||||
"cmds": ["python库"],
|
||||
"icon": "logo/python.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"PyQt5": {
|
||||
"features": {
|
||||
"code": "PyQt5",
|
||||
"explain": "zetcode的PyQt5文档翻译版",
|
||||
"cmds": ["PyQt5文档"],
|
||||
"icon": "logo/PyQt5.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"c": {
|
||||
"features": {
|
||||
"code": "c",
|
||||
"explain": "C语言函数速查",
|
||||
"cmds": ["C函数"],
|
||||
"icon": "logo/c.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"javascript": {
|
||||
"features": {
|
||||
"code": "javascript",
|
||||
"explain": "MDN javascript中文文档",
|
||||
"cmds": ["js文档"],
|
||||
"icon": "logo/javascript.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"jQuery": {
|
||||
"features": {
|
||||
"code": "jQuery",
|
||||
"explain": "jQuery官方中文文档",
|
||||
"cmds": ["jQuery文档"],
|
||||
"icon": "logo/jQuery.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"vue": {
|
||||
"features": {
|
||||
"code": "vue",
|
||||
"explain": "vue官方中文API文档",
|
||||
"cmds": ["vue文档"],
|
||||
"icon": "logo/vue.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"vim": {
|
||||
"features": {
|
||||
"code": "vim",
|
||||
"explain": "vim命令大全",
|
||||
"cmds": ["vim命令"],
|
||||
"icon": "logo/vim.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"git": {
|
||||
"features": {
|
||||
"code": "git",
|
||||
"explain": "git命令概览",
|
||||
"cmds": ["git命令"],
|
||||
"icon": "logo/git.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"docker": {
|
||||
"features": {
|
||||
"code": "docker",
|
||||
"explain": "docker常用命令",
|
||||
"cmds": ["docker命令"],
|
||||
"icon": "logo/docker.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"sql": {
|
||||
"features": {
|
||||
"code": "sql",
|
||||
"explain": "sql操作手册",
|
||||
"cmds": ["sql手册"],
|
||||
"icon": "logo/sql.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"utools": {
|
||||
"features": {
|
||||
"code": "utools",
|
||||
"explain": "uTools的API文档",
|
||||
"cmds": ["uToolsAPI"],
|
||||
"icon": "logo/utools.png"
|
||||
},
|
||||
"type": "default"
|
||||
},
|
||||
"payload": {
|
||||
"features": {
|
||||
"code": "payload",
|
||||
"explain": "一些网络安全测试的常用Payload",
|
||||
"cmds": ["payload"],
|
||||
"icon": "logo/payload.png"
|
||||
},
|
||||
"type": "default"
|
||||
}
|
||||
}
|
||||
{ "linux": { "features": { "code": "linux", "explain": "linux命令大全", "cmds": ["linux命令"], "icon": "logo/linux.png" }, "type": "default" }, "php": { "features": { "code": "php", "explain": "官方php函数文档", "cmds": ["php函数"], "icon": "logo/php.png" }, "type": "default" }, "python": { "features": { "code": "python", "explain": "官方python标准库及常用第三方库文档", "cmds": ["python库"], "icon": "logo/python.png" }, "type": "default" }, "PyQt5": { "features": { "code": "PyQt5", "explain": "zetcode的PyQt5文档翻译版", "cmds": ["PyQt5文档"], "icon": "logo/PyQt5.png" }, "type": "default" }, "c": { "features": { "code": "c", "explain": "C语言函数速查", "cmds": ["C函数"], "icon": "logo/c.png" }, "type": "default" }, "javascript": { "features": { "code": "javascript", "explain": "MDN javascript中文文档", "cmds": ["js文档"], "icon": "logo/javascript.png" }, "type": "default" }, "jQuery": { "features": { "code": "jQuery", "explain": "jQuery官方中文文档", "cmds": ["jQuery文档"], "icon": "logo/jQuery.png" }, "type": "default" }, "vue": { "features": { "code": "vue", "explain": "vue官方中文API文档", "cmds": ["vue文档"], "icon": "logo/vue.png" }, "type": "default" }, "vim": { "features": { "code": "vim", "explain": "vim命令大全", "cmds": ["vim命令"], "icon": "logo/vim.png" }, "type": "default" }, "git": { "features": { "code": "git", "explain": "git命令概览", "cmds": ["git命令"], "icon": "logo/git.png" }, "type": "default" }, "docker": { "features": { "code": "docker", "explain": "docker常用命令", "cmds": ["docker命令"], "icon": "logo/docker.png" }, "type": "default" }, "sql": { "features": { "code": "sql", "explain": "sql操作手册", "cmds": ["sql手册"], "icon": "logo/sql.png" }, "type": "default" }, "utools": { "features": { "code": "utools", "explain": "uTools的API文档", "cmds": ["uToolsAPI"], "icon": "logo/utools.png" }, "type": "default" }, "payload": { "features": { "code": "payload", "explain": "一些网络安全测试的常用Payload", "cmds": ["payload"], "icon": "logo/payload.png" }, "type": "default" } }
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user