mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 14:34:13 +08:00
添加分享中心入口
This commit is contained in:
parent
15395e3ff6
commit
619ee689f5
@ -70,13 +70,13 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>复制到剪贴板</q-item-section>
|
<q-item-section>复制到剪贴板</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<!-- <q-item clickable @click="showShare = true" v-close-popup>
|
<q-item clickable @click="shareCommand" v-close-popup>
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
<q-icon name="share" />
|
<q-icon name="share" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>分享</q-item-section>
|
<q-item-section>分享</q-item-section>
|
||||||
<q-tooltip>分享到分享中心</q-tooltip>
|
<q-tooltip>分享到分享中心</q-tooltip>
|
||||||
</q-item> -->
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@ -252,7 +252,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { features } from "monaco-editor/esm/metadata.js";
|
|
||||||
import commandTypes from "../js/options/commandTypes.js";
|
import commandTypes from "../js/options/commandTypes.js";
|
||||||
import platformTypes from "../js/options/platformTypes.js";
|
import platformTypes from "../js/options/platformTypes.js";
|
||||||
import CrontabSetting from "components/popup/CrontabSetting";
|
import CrontabSetting from "components/popup/CrontabSetting";
|
||||||
@ -420,7 +419,7 @@ export default {
|
|||||||
// 导出到剪贴板
|
// 导出到剪贴板
|
||||||
exportCommandRaw() {
|
exportCommandRaw() {
|
||||||
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
|
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
|
||||||
quickcommand.showMessageBox("已复制到剪贴板");
|
utools.showNotification(`「${this.commandInfo.features.explain}」已复制到剪贴板`);
|
||||||
},
|
},
|
||||||
// 导出到文件
|
// 导出到文件
|
||||||
exportCommandFile() {
|
exportCommandFile() {
|
||||||
@ -432,6 +431,10 @@ export default {
|
|||||||
filters: [{ name: "json", extensions: ["json"] }],
|
filters: [{ name: "json", extensions: ["json"] }],
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
shareCommand() {
|
||||||
|
this.exportCommandRaw();
|
||||||
|
utools.shellOpenExternal("https://qc.qaz.ink/submit");
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -403,12 +403,6 @@
|
|||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-item>
|
</q-item>
|
||||||
<!-- <q-item clickable to="/share">
|
|
||||||
<q-item-section side>
|
|
||||||
<q-icon name="groups" />
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>分享中心</q-item-section>
|
|
||||||
</q-item> -->
|
|
||||||
<!-- 收藏 -->
|
<!-- 收藏 -->
|
||||||
<q-item v-if="isTagStared" clickable v-close-popup @click="unMarkTag">
|
<q-item v-if="isTagStared" clickable v-close-popup @click="unMarkTag">
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
|
@ -135,17 +135,17 @@
|
|||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<template v-slot:normal>
|
<template v-slot:normal>
|
||||||
<q-icon name="dashboard" />普通
|
<q-icon name="dashboard" />
|
||||||
<q-tooltip>按两列排列的基础视图</q-tooltip>
|
<q-tooltip>按两列排列的基础视图</q-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:dense>
|
<template v-slot:dense>
|
||||||
<q-icon name="apps" />紧凑
|
<q-icon name="apps" />
|
||||||
<q-tooltip
|
<q-tooltip
|
||||||
>按三列排列的紧凑视图,但不会显示适用的操作系统</q-tooltip
|
>按三列排列的紧凑视图,但不会显示适用的操作系统</q-tooltip
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:mini>
|
<template v-slot:mini>
|
||||||
<q-icon name="view_comfy" />面板
|
<q-icon name="view_comfy" />
|
||||||
<q-tooltip
|
<q-tooltip
|
||||||
>按四列排列的面板视图<br />
|
>按四列排列的面板视图<br />
|
||||||
老版本的「快捷面板」已被弃用,取而代之的是新版的「面板视图」<br />
|
老版本的「快捷面板」已被弃用,取而代之的是新版的「面板视图」<br />
|
||||||
@ -156,7 +156,16 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</q-btn-toggle>
|
</q-btn-toggle>
|
||||||
<q-separator vertical />
|
<!-- <q-separator vertical /> -->
|
||||||
|
<q-btn
|
||||||
|
split
|
||||||
|
flat
|
||||||
|
@click="goShareCenter"
|
||||||
|
color="primary"
|
||||||
|
label="分享中心"
|
||||||
|
icon="groups"
|
||||||
|
/>
|
||||||
|
<!-- <q-separator vertical /> -->
|
||||||
<!-- 新建按钮 -->
|
<!-- 新建按钮 -->
|
||||||
<q-btn
|
<q-btn
|
||||||
split
|
split
|
||||||
@ -166,7 +175,7 @@
|
|||||||
label="新建"
|
label="新建"
|
||||||
icon="add"
|
icon="add"
|
||||||
/>
|
/>
|
||||||
<q-separator vertical />
|
<!-- <q-separator vertical /> -->
|
||||||
<q-btn
|
<q-btn
|
||||||
stretch
|
stretch
|
||||||
color="primary"
|
color="primary"
|
||||||
@ -635,6 +644,9 @@ export default {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
goShareCenter() {
|
||||||
|
utools.shellOpenExternal("https://qc.qaz.ink/");
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user