mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-08-13 08:59:35 +08:00
配置文件微调
This commit is contained in:
parent
10b67c919a
commit
76f710323e
@ -1,7 +1,7 @@
|
|||||||
export const fileCommands = {
|
export const fileCommands = {
|
||||||
label: "文件操作",
|
label: "文件操作",
|
||||||
icon: "folder_open",
|
icon: "folder_open",
|
||||||
defaultOpened: true,
|
defaultOpened: false,
|
||||||
commands: [
|
commands: [
|
||||||
{
|
{
|
||||||
value: "quickcomposer.file.operation",
|
value: "quickcomposer.file.operation",
|
||||||
|
@ -18,34 +18,31 @@ import { windowsCommands } from "./windowsCommands";
|
|||||||
import { statusCommands } from "./statusCommands";
|
import { statusCommands } from "./statusCommands";
|
||||||
import { macosCommands } from "./macosCommands";
|
import { macosCommands } from "./macosCommands";
|
||||||
import { scriptCommands } from "./scriptCommands";
|
import { scriptCommands } from "./scriptCommands";
|
||||||
let commands = [
|
|
||||||
|
const platformCommands = {
|
||||||
|
win32: [windowsCommands],
|
||||||
|
darwin: [macosCommands],
|
||||||
|
linux: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
export const commandCategories = [
|
||||||
fileCommands,
|
fileCommands,
|
||||||
networkCommands,
|
networkCommands,
|
||||||
systemCommands,
|
systemCommands,
|
||||||
statusCommands,
|
|
||||||
audioCommands,
|
audioCommands,
|
||||||
imageCommands,
|
imageCommands,
|
||||||
notifyCommands,
|
|
||||||
utoolsCommands,
|
utoolsCommands,
|
||||||
|
...platformCommands[window.processPlatform],
|
||||||
dataCommands,
|
dataCommands,
|
||||||
codingCommands,
|
codingCommands,
|
||||||
controlCommands,
|
controlCommands,
|
||||||
scriptCommands,
|
scriptCommands,
|
||||||
uiCommands,
|
uiCommands,
|
||||||
simulateCommands,
|
simulateCommands,
|
||||||
|
statusCommands,
|
||||||
mathCommands,
|
mathCommands,
|
||||||
userdataCommands,
|
userdataCommands,
|
||||||
screenCommands,
|
screenCommands,
|
||||||
|
notifyCommands,
|
||||||
|
otherCommands,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (window.utools.isWindows()) {
|
|
||||||
commands.push(windowsCommands);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.utools.isMacOS()) {
|
|
||||||
commands.push(macosCommands);
|
|
||||||
}
|
|
||||||
|
|
||||||
commands.push(otherCommands);
|
|
||||||
|
|
||||||
export const commandCategories = commands;
|
|
||||||
|
@ -3,7 +3,7 @@ import { newVarInputVal } from "../varInputValManager";
|
|||||||
export const networkCommands = {
|
export const networkCommands = {
|
||||||
label: "网络操作",
|
label: "网络操作",
|
||||||
icon: "language",
|
icon: "language",
|
||||||
defaultOpened: true,
|
defaultOpened: false,
|
||||||
commands: [
|
commands: [
|
||||||
{
|
{
|
||||||
value: "utools.shellOpenExternal",
|
value: "utools.shellOpenExternal",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user