diff --git a/src/App.vue b/src/App.vue
index 2a26d7e..754f125 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -119,6 +119,12 @@ export default defineComponent({
this.updateExp();
this.$q.dark.set(utools.isDarkColors());
this.enterData = enter;
+ if (this.$root.profile.autoDetachFeatures?.includes(enter.code)) {
+ // win下无效
+ let ctrlKey = utools.isWindows() ? "ctrl" : "command"
+ utools.simulateKeyboardTap("d", ctrlKey)
+ utools.simulateKeyboardTap("n", ctrlKey)
+ }
this.$router.push(enter.code);
},
outPlugin() {
@@ -243,31 +249,39 @@ export default defineComponent({
--q-dark: #464646;
--q-dark-page: #303133;
}
+
.q-card--dark {
background: var(--q-dark-page);
}
+
.container {
color: black;
background: white;
}
+
.body--dark .container {
color: white;
background: var(--q-dark-page);
}
+
.q-tooltip {
font-size: 11px;
}
+
.q-chip {
background: #e3e3e39a;
}
+
.q-chip--dark {
background: #676666;
}
+
.commandLogo {
cursor: pointer;
transition: 0.2s;
filter: drop-shadow(2px 1px 1px grey);
}
+
.commandLogo:hover {
transition: 0.5s;
transform: translateY(-5px);
@@ -293,9 +307,11 @@ export default defineComponent({
.fade-enter-from {
opacity: 0;
}
+
.fade-enter-to {
opacity: 1;
}
+
.fade-enter-active {
transition: opacity 0.3s ease;
}
diff --git a/src/components/ConfigurationMenu.vue b/src/components/ConfigurationMenu.vue
index ee4b55e..764a497 100644
--- a/src/components/ConfigurationMenu.vue
+++ b/src/components/ConfigurationMenu.vue
@@ -1,16 +1,7 @@
-
+
-
+
@@ -54,12 +45,7 @@
禁用本页所有命令
-
+
@@ -80,35 +66,18 @@
-
+ ($root.profile.quickFileTag = '文件')
+ " type="text">
- toggleFeature('favFile', val)
- "
- v-model="$root.profile.quickFileEnable"
- checked-icon="check"
- color="primary"
- />
+ toggleFeature('favFile', val)
+ " v-model="$root.profile.quickFileEnable" checked-icon="check" color="primary" />
- 启用后,选中文件可以通过超级面板快速将文件收藏到「{{
- $root.profile.quickFileTag
- }}」标签
+ 启用后,选中文件可以通过超级面板快速将文件收藏到「{{
+ $root.profile.quickFileTag
+ }}」标签
@@ -116,34 +85,18 @@
-
+ ($root.profile.quickUrlTag = '网址')
+ " type="text">
- toggleFeature('favUrl', val)
- "
- v-model="$root.profile.quickUrlEnable"
- checked-icon="check"
- color="primary"
- />
+ toggleFeature('favUrl', val)
+ " v-model="$root.profile.quickUrlEnable" checked-icon="check" color="primary" />
- 启用后,在浏览器界面可以通过超级面板快速将网址收藏到「{{
- $root.profile.quickUrlTag
- }}」标签
+ 启用后,在浏览器界面可以通过超级面板快速将网址收藏到「{{
+ $root.profile.quickUrlTag
+ }}」标签
@@ -151,29 +104,13 @@
-
+
- toggleFeature('pluNickName', val)
- "
- v-model="$root.profile.pluNickNameEnable"
- checked-icon="check"
- color="primary"
- />
+ toggleFeature('pluNickName', val)
+ " v-model="$root.profile.pluNickNameEnable" checked-icon="check" color="primary" />
- 启用后,在主输入框输入「插件别名」可以快速设置插件别名
+ 启用后,在主输入框输入「插件别名」可以快速设置插件别名
并将所有设置的别名保存至「{{
$root.profile.pluNickNameTag
}}」标签
@@ -191,14 +128,9 @@
-
+
- 通过本地监听
+ 通过本地监听
{{ $root.nativeProfile.serverPort }}
端口的形式,接收用户传送过来的参数,然后根据参数执行不同的操作
@@ -218,14 +150,9 @@
-
+
- 一个可以直接运行代码的代码编辑器
+ 一个可以直接运行代码的代码编辑器
也可在主输入框输入关键字「RunCode」进入
@@ -246,51 +173,30 @@
用户特殊变量
- 用户设置的变量,类似一个全局配置项
+ 用户设置的变量,类似一个全局配置项
配置好后可选择特殊变量中的「usr:」插入
- 也可直接在特殊变量中配置
+ 也可直接在特殊变量中配置
-
- 修改本插件环境变量中的 PATH,直接覆盖而非追加
+
+ 修改本插件环境变量中的 PATH,直接覆盖而非追加
将会影响到除 quickcommand、html
- 以外的所有环境
+ 以外的所有环境
-
- 一行一条,配置方法和 shell 的语法一样
如 alias
+
+ 一行一条,配置方法和 shell 的语法一样
如 alias
python="/home/user/.bin/python"
将会影响到除
- quickcommand、html 以外的所有环境
+ quickcommand、html 以外的所有环境
@@ -310,22 +216,10 @@
主颜色
你可以更改界面的主题色,会员限定
-
+
-
-
+
+
@@ -334,34 +228,16 @@
面板视图背景图片
- 为面板视图设置一张背景图片,会员限定
请不要选择尺寸太大的图片,将影响插件载入速度
-
+ 为面板视图设置一张背景图片,会员限定
请不要选择尺寸太大的图片,将影响插件载入速度
+
-
+
-
+
@@ -371,12 +247,8 @@
紧凑标签栏
更为紧凑的标签栏,适用于标签非常多的情形
-
+
@@ -384,11 +256,14 @@
自动聚焦搜索
进入插件时自动聚焦搜索
-
+
+
+
+
+
+
+ 自动分离
+ utools的自动分离对整个插件生效,配置此选项可以实现只对某些特定的功能进行自动分离
@@ -411,20 +286,17 @@
收藏标签
- 收藏后,会将当前标签名作为全局关键字,可在 uTools 的主输入框进行搜索
+ 收藏后,会将当前标签名作为全局关键字,可在 uTools 的主输入框进行搜索
搜索进入后,默认进入当前标签的面板视图
- 类似于旧版本的「快捷面板」
+ 类似于旧版本的「快捷面板」
- 关于和帮助
+ 关于和帮助
@@ -437,6 +309,28 @@
+
+
+
+
+
+
+
+
+
+
+ {{ opt.label }}
+
+
+
+
+
+
+
+
+
+
+
@@ -463,9 +357,11 @@ export default {
showAbout: false,
showPanelConf: false,
showUserDara: false,
+ showAutoDetachFeatures: false,
features: features,
redirect: utools.redirect,
showAlias: this.$q.platform.is.mac || this.$q.platform.is.linux,
+ activateFeatures: [],
};
},
computed: {
@@ -539,6 +435,36 @@ export default {
? this.$root.utools.whole.setFeature(_.cloneDeep(this.features[type]))
: this.$root.utools.whole.removeFeature(this.features[type].code);
},
- },
+ // 获取所有启用的功能
+ getActivatedFutures() {
+ let activateFeatures = this.$root.utools.whole.getFeatures().map(fts => {
+ return {
+ value: fts.code,
+ icon: fts.icon,
+ label: fts.explain,
+ }
+ });
+ let defaultFeatures = [{
+ value: "configuration",
+ label: "快捷命令配置",
+ icon: "logo.png"
+ },
+ {
+ value: "code",
+ label: "运行代码",
+ icon: "features/code.png"
+ },
+ {
+ value: "server",
+ label: "快捷命令服务",
+ icon: "features/server.png"
+ }]
+ this.activateFeatures = _.concat(defaultFeatures, _.cloneDeep(activateFeatures));
+ },
+ changeAutoDetachFeatures() {
+ this.showAutoDetachFeatures = false;
+ quickcommand.showMessageBox("设置成功");
+ },
+ }
};
diff --git a/src/js/options/defaultProfile.js b/src/js/options/defaultProfile.js
index d69941a..4678744 100644
--- a/src/js/options/defaultProfile.js
+++ b/src/js/options/defaultProfile.js
@@ -1,23 +1,24 @@
export default {
- common: {
- commandCardStyle: "dense",
- primaryColor: "#009688",
- defaultPrimaryColor: "#009688",
- backgroundImg: null,
- autofocusSearch: false,
- denseTagBar: false,
- quickFileEnable: false,
- quickFileTag: "文件",
- quickUrlEnable: false,
- quickUrlTag: "网址",
- pluNickNameEnable: false,
- pluNickNameTag: "别名",
- },
- native: {
- crontabs: {},
- serverPort: 33442,
- serverStatus: false,
- envPath: '',
- alias: ''
- }
-}
+ common: {
+ commandCardStyle: "dense",
+ primaryColor: "#009688",
+ defaultPrimaryColor: "#009688",
+ backgroundImg: null,
+ autofocusSearch: false,
+ denseTagBar: false,
+ quickFileEnable: false,
+ quickFileTag: "文件",
+ quickUrlEnable: false,
+ quickUrlTag: "网址",
+ pluNickNameEnable: false,
+ pluNickNameTag: "别名",
+ autoDetachFeatures: [],
+ },
+ native: {
+ crontabs: {},
+ serverPort: 33442,
+ serverStatus: false,
+ envPath: "",
+ alias: "",
+ },
+};