From 5d630b5c1fd18807caacdf6f298d3d3acafd8f34 Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 6 Apr 2022 01:19:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=A0=87=E7=AD=BE=E7=AD=89?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boot/global.js | 2 +- src/components/CommandCard.vue | 2 +- src/components/CommandEditor.vue | 92 ++++++++++++++++++++++------ src/js/{ => options}/commandTypes.js | 0 src/js/options/outputTypes.js | 44 +++++++++++++ src/js/{ => options}/programs.js | 0 6 files changed, 120 insertions(+), 20 deletions(-) rename src/js/{ => options}/commandTypes.js (100%) create mode 100644 src/js/options/outputTypes.js rename src/js/{ => options}/programs.js (100%) diff --git a/src/boot/global.js b/src/boot/global.js index 59f88f7..7afc139 100644 --- a/src/boot/global.js +++ b/src/boot/global.js @@ -2,7 +2,7 @@ import { boot } from 'quasar/wrappers' import UTOOLS from "../js/utools.js"; -import programmings from '../js/programs.js'; +import programmings from '../js/options/programs.js'; // 配置数据存取 let defaultProfile = { diff --git a/src/components/CommandCard.vue b/src/components/CommandCard.vue index 02492a5..67cf8fa 100644 --- a/src/components/CommandCard.vue +++ b/src/components/CommandCard.vue @@ -207,7 +207,7 @@ diff --git a/src/js/commandTypes.js b/src/js/options/commandTypes.js similarity index 100% rename from src/js/commandTypes.js rename to src/js/options/commandTypes.js diff --git a/src/js/options/outputTypes.js b/src/js/options/outputTypes.js new file mode 100644 index 0000000..3087c1a --- /dev/null +++ b/src/js/options/outputTypes.js @@ -0,0 +1,44 @@ +const outputTypes = { + ignore: { + name: "ignore", + label: "忽略输出并隐藏", + icon: "more_horiz" + }, + nothing: { + name: "nothing", + label: "忽略输出且不隐藏", + icon: "blur_linear" + }, + text: { + name: "text", + label: "纯文本输出", + icon: "text_snippet" + }, + html: { + name: "html", + label: "html格式输出", + icon: "html" + }, + terminal: { + name: "terminal", + label: "在终端显示", + icon: "terminal" + }, + clip: { + name: "clip", + label: "复制到剪贴板", + icon: "content_paste" + }, + send: { + name: "send", + label: "发送到活动窗口", + icon: "web_asset" + }, + notice: { + name: "notice", + label: "发送系统通知", + icon: "sms" + }, +}; + +export default outputTypes \ No newline at end of file diff --git a/src/js/programs.js b/src/js/options/programs.js similarity index 100% rename from src/js/programs.js rename to src/js/options/programs.js