图标移至src
BIN
src/assets/feature/file.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
src/assets/feature/plugin.png
Normal file
After Width: | Height: | Size: 291 B |
BIN
src/assets/feature/url.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 826 B After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
@ -2,7 +2,7 @@
|
||||
<q-card>
|
||||
<q-card-section class="q-gutter-md flex items-center">
|
||||
<q-avatar square size="48px">
|
||||
<img src="logo/quickcommand.png" />
|
||||
<img :src="require('../assets/logo/quickcommand.png')" />
|
||||
</q-avatar>
|
||||
<span class="text-h5"
|
||||
>{{ pluginInfo.pluginName }} v{{ pluginInfo.version }}</span
|
||||
|
@ -59,13 +59,13 @@
|
||||
>
|
||||
<template v-slot:append>
|
||||
<q-avatar size="lg" square>
|
||||
<img :src="getLanguageIcon(quickcommandInfo.program)" />
|
||||
<img :src="$programmings[quickcommandInfo.program].icon" />
|
||||
</q-avatar>
|
||||
</template>
|
||||
<template v-slot:option="scope">
|
||||
<q-item v-bind="scope.itemProps">
|
||||
<q-item-section avatar>
|
||||
<img width="32" :src="getLanguageIcon(scope.opt)" />
|
||||
<img width="32" :src="$programmings[scope.opt].icon" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label v-html="scope.opt" />
|
||||
@ -243,9 +243,6 @@ export default {
|
||||
let highlight = this.$programmings[language].highlight;
|
||||
this.$refs.editor.setEditorLanguage(highlight ? highlight : language);
|
||||
},
|
||||
getLanguageIcon(program) {
|
||||
return `img/logo/${program}.png`;
|
||||
},
|
||||
// 打开文档
|
||||
showHelp() {
|
||||
utools.createBrowserWindow("./helps/quickcommand.html", {
|
||||
|
@ -324,11 +324,8 @@ export default {
|
||||
this.setIcon(this.quickcommandInfo.program);
|
||||
this.platformVerify();
|
||||
},
|
||||
// 没有图标,或者使用了语言图标
|
||||
setIcon(language) {
|
||||
this.currentCommand.features.icon?.slice(0, 5) === "data:" ||
|
||||
(this.currentCommand.features.icon =
|
||||
this.$parent.getLanguageIcon(language));
|
||||
this.currentCommand.features.icon = this.$programmings[language].icon;
|
||||
},
|
||||
getCommandType() {
|
||||
let data = { type: "key", match: [] };
|
||||
|
@ -59,7 +59,7 @@ export default {
|
||||
return {
|
||||
features: {
|
||||
explain: `进入${this.currentTag}的面板视图`,
|
||||
icon: "img/logo/quickcommand.png",
|
||||
icon: require("../assets/logo/quickcommand.png"),
|
||||
cmds: [this.currentTag],
|
||||
platform: ["win32", "darwin", "linux"],
|
||||
code: `panel_${window.hexEncode(this.currentTag)}`,
|
||||
|
@ -10,6 +10,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "",
|
||||
color: "primary",
|
||||
icon: require("../../assets/logo/quickcommand.png"),
|
||||
},
|
||||
shell: {
|
||||
name: "shell",
|
||||
@ -17,6 +18,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "sh",
|
||||
color: "green-6",
|
||||
icon: require("../../assets/logo/shell.png"),
|
||||
},
|
||||
applescript: {
|
||||
name: "applescript",
|
||||
@ -24,6 +26,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "scpt",
|
||||
color: "cyan-10",
|
||||
icon: require("../../assets/logo/applescript.png"),
|
||||
},
|
||||
cmd: {
|
||||
name: "cmd",
|
||||
@ -32,6 +35,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "bat",
|
||||
color: "orange-10",
|
||||
icon: require("../../assets/logo/cmd.png"),
|
||||
},
|
||||
powershell: {
|
||||
name: "powershell",
|
||||
@ -39,6 +43,7 @@ const programs = {
|
||||
argv: "-NoProfile -File",
|
||||
ext: "ps1",
|
||||
color: "amber-14",
|
||||
icon: require("../../assets/logo/powershell.png"),
|
||||
},
|
||||
python: {
|
||||
name: "python",
|
||||
@ -46,6 +51,7 @@ const programs = {
|
||||
argv: "-u",
|
||||
ext: "py",
|
||||
color: "light-blue-10",
|
||||
icon: require("../../assets/logo/python.png"),
|
||||
},
|
||||
javascript: {
|
||||
name: "javascript",
|
||||
@ -53,6 +59,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "js",
|
||||
color: "teal",
|
||||
icon: require("../../assets/logo/javascript.png"),
|
||||
},
|
||||
ruby: {
|
||||
name: "ruby",
|
||||
@ -60,6 +67,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "rb",
|
||||
color: "red-10",
|
||||
icon: require("../../assets/logo/ruby.png"),
|
||||
},
|
||||
php: {
|
||||
name: "php",
|
||||
@ -67,6 +75,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "php",
|
||||
color: "deep-purple",
|
||||
icon: require("../../assets/logo/php.png"),
|
||||
},
|
||||
c: {
|
||||
name: "c",
|
||||
@ -74,6 +83,7 @@ const programs = {
|
||||
argv: "-o",
|
||||
ext: "c",
|
||||
color: "blue-7",
|
||||
icon: require("../../assets/logo/c.png"),
|
||||
},
|
||||
csharp: {
|
||||
name: "csharp",
|
||||
@ -81,6 +91,7 @@ const programs = {
|
||||
argv: "/Nologo",
|
||||
ext: "cs",
|
||||
color: "light-blue-13",
|
||||
icon: require("../../assets/logo/csharp.png"),
|
||||
},
|
||||
lua: {
|
||||
name: "lua",
|
||||
@ -88,6 +99,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "lua",
|
||||
color: "light-green-8",
|
||||
icon: require("../../assets/logo/lua.png"),
|
||||
},
|
||||
perl: {
|
||||
name: "perl",
|
||||
@ -95,6 +107,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "pl",
|
||||
color: "purple",
|
||||
icon: require("../../assets/logo/perl.png")
|
||||
},
|
||||
custom: {
|
||||
name: "custom",
|
||||
@ -102,6 +115,7 @@ const programs = {
|
||||
argv: "",
|
||||
ext: "",
|
||||
color: "indigo-6",
|
||||
icon: require("../../assets/logo/custom.png"),
|
||||
},
|
||||
};
|
||||
export default programs
|
||||
|
@ -7,7 +7,7 @@ const quickFeatures = {
|
||||
type: "files",
|
||||
match: "/.*+/i",
|
||||
}, ],
|
||||
icon: "img/feature/file.png",
|
||||
icon: require("../../assets/feature/file.png"),
|
||||
platform: ["win32", "darwin", "linux"],
|
||||
|
||||
},
|
||||
@ -32,7 +32,7 @@ const quickFeatures = {
|
||||
],
|
||||
},
|
||||
}, ],
|
||||
icon: "img/feature/url.png",
|
||||
icon: require("../../assets/feature/url.png"),
|
||||
platform: ["win32", "darwin", "linux"],
|
||||
|
||||
},
|
||||
@ -40,7 +40,7 @@ const quickFeatures = {
|
||||
code: "feature_pluNickName",
|
||||
explain: "为插件设置别名",
|
||||
cmds: ["插件别名"],
|
||||
icon: "img/feature/plugin.png",
|
||||
icon: require("../../assets/feature/plugin.png"),
|
||||
platform: ["win32", "darwin", "linux"],
|
||||
}
|
||||
}
|
||||
|