logo 移至 plugin 目录

This commit is contained in:
fofolee 2022-04-16 13:11:58 +08:00
parent e5af0ae63a
commit f3d6b72273
20 changed files with 19 additions and 18 deletions

BIN
plugin/logo/applescript.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

BIN
plugin/logo/c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
plugin/logo/cmd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
plugin/logo/csharp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
plugin/logo/custom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
plugin/logo/go.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
plugin/logo/javascript.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
plugin/logo/lua.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
plugin/logo/perl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
plugin/logo/php.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
plugin/logo/powershell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
plugin/logo/python.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
plugin/logo/quickpanel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
plugin/logo/ruby.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
plugin/logo/shell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -2,7 +2,7 @@
<q-card> <q-card>
<q-card-section class="q-gutter-md flex items-center"> <q-card-section class="q-gutter-md flex items-center">
<q-avatar square size="48px"> <q-avatar square size="48px">
<img :src="require('../assets/logo/quickcommand.png')" /> <img src="logo/quickcommand.png" />
</q-avatar> </q-avatar>
<span class="text-h5" <span class="text-h5"
>{{ pluginInfo.pluginName }} v{{ pluginInfo.version }}</span >{{ pluginInfo.pluginName }} v{{ pluginInfo.version }}</span

View File

@ -328,7 +328,8 @@ export default {
this.platformVerify(); this.platformVerify();
}, },
setIcon(language) { setIcon(language) {
this.currentCommand.features.icon = this.$programmings[language].icon; this.currentCommand.features.icon?.slice(0, 10) === "data:image" ||
(this.currentCommand.features.icon = this.$programmings[language].icon);
}, },
getCommandType() { getCommandType() {
let data = { type: "key", match: [] }; let data = { type: "key", match: [] };

View File

@ -59,7 +59,7 @@ export default {
return { return {
features: { features: {
explain: `进入${this.currentTag}的面板视图`, explain: `进入${this.currentTag}的面板视图`,
icon: require("../assets/logo/quickcommand.png"), icon: "logo/quickcommand.png",
cmds: [this.currentTag], cmds: [this.currentTag],
platform: ["win32", "darwin", "linux"], platform: ["win32", "darwin", "linux"],
code: `panel_${window.hexEncode(this.currentTag)}`, code: `panel_${window.hexEncode(this.currentTag)}`,

View File

@ -10,7 +10,7 @@ const programs = {
argv: "", argv: "",
ext: "", ext: "",
color: "primary", color: "primary",
icon: require("../../assets/logo/quickcommand.png"), icon: "logo/quickcommand.png",
}, },
shell: { shell: {
name: "shell", name: "shell",
@ -18,7 +18,7 @@ const programs = {
argv: "", argv: "",
ext: "sh", ext: "sh",
color: "green-6", color: "green-6",
icon: require("../../assets/logo/shell.png"), icon: "logo/shell.png",
}, },
applescript: { applescript: {
name: "applescript", name: "applescript",
@ -26,7 +26,7 @@ const programs = {
argv: "", argv: "",
ext: "scpt", ext: "scpt",
color: "cyan-10", color: "cyan-10",
icon: require("../../assets/logo/applescript.png"), icon: "logo/applescript.png",
}, },
cmd: { cmd: {
name: "cmd", name: "cmd",
@ -35,7 +35,7 @@ const programs = {
argv: "", argv: "",
ext: "bat", ext: "bat",
color: "orange-10", color: "orange-10",
icon: require("../../assets/logo/cmd.png"), icon: "logo/cmd.png",
}, },
powershell: { powershell: {
name: "powershell", name: "powershell",
@ -43,7 +43,7 @@ const programs = {
argv: "-NoProfile -File", argv: "-NoProfile -File",
ext: "ps1", ext: "ps1",
color: "amber-14", color: "amber-14",
icon: require("../../assets/logo/powershell.png"), icon: "logo/powershell.png",
}, },
python: { python: {
name: "python", name: "python",
@ -51,7 +51,7 @@ const programs = {
argv: "-u", argv: "-u",
ext: "py", ext: "py",
color: "light-blue-10", color: "light-blue-10",
icon: require("../../assets/logo/python.png"), icon: "logo/python.png",
}, },
javascript: { javascript: {
name: "javascript", name: "javascript",
@ -59,7 +59,7 @@ const programs = {
argv: "", argv: "",
ext: "js", ext: "js",
color: "teal", color: "teal",
icon: require("../../assets/logo/javascript.png"), icon: "logo/javascript.png",
}, },
ruby: { ruby: {
name: "ruby", name: "ruby",
@ -67,7 +67,7 @@ const programs = {
argv: "", argv: "",
ext: "rb", ext: "rb",
color: "red-10", color: "red-10",
icon: require("../../assets/logo/ruby.png"), icon: "logo/ruby.png",
}, },
php: { php: {
name: "php", name: "php",
@ -75,7 +75,7 @@ const programs = {
argv: "", argv: "",
ext: "php", ext: "php",
color: "deep-purple", color: "deep-purple",
icon: require("../../assets/logo/php.png"), icon: "logo/php.png",
}, },
c: { c: {
name: "c", name: "c",
@ -83,7 +83,7 @@ const programs = {
argv: "-o", argv: "-o",
ext: "c", ext: "c",
color: "blue-7", color: "blue-7",
icon: require("../../assets/logo/c.png"), icon: "logo/c.png",
}, },
csharp: { csharp: {
name: "csharp", name: "csharp",
@ -91,7 +91,7 @@ const programs = {
argv: "/Nologo", argv: "/Nologo",
ext: "cs", ext: "cs",
color: "light-blue-13", color: "light-blue-13",
icon: require("../../assets/logo/csharp.png"), icon: "logo/csharp.png",
}, },
lua: { lua: {
name: "lua", name: "lua",
@ -99,7 +99,7 @@ const programs = {
argv: "", argv: "",
ext: "lua", ext: "lua",
color: "light-green-8", color: "light-green-8",
icon: require("../../assets/logo/lua.png"), icon: "logo/lua.png",
}, },
perl: { perl: {
name: "perl", name: "perl",
@ -107,7 +107,7 @@ const programs = {
argv: "", argv: "",
ext: "pl", ext: "pl",
color: "purple", color: "purple",
icon: require("../../assets/logo/perl.png") icon: "logo/perl.png"
}, },
custom: { custom: {
name: "custom", name: "custom",
@ -115,7 +115,7 @@ const programs = {
argv: "", argv: "",
ext: "", ext: "",
color: "indigo-6", color: "indigo-6",
icon: require("../../assets/logo/custom.png"), icon: "logo/custom.png",
}, },
}; };
export default programs export default programs