mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-17 20:07:01 +08:00
结构调整
This commit is contained in:
parent
001897ad48
commit
cfd7f2f884
@ -419,7 +419,6 @@ getuToolsLite = () => {
|
|||||||
delete utoolsLite.removeFeature
|
delete utoolsLite.removeFeature
|
||||||
delete utoolsLite.setFeature
|
delete utoolsLite.setFeature
|
||||||
delete utoolsLite.onDbPull
|
delete utoolsLite.onDbPull
|
||||||
delete utoolsLite.getFeatures
|
|
||||||
// 支付相关接口
|
// 支付相关接口
|
||||||
delete utoolsLite.fetchUserServerTemporaryToken
|
delete utoolsLite.fetchUserServerTemporaryToken
|
||||||
delete utoolsLite.getUserServerTemporaryToken
|
delete utoolsLite.getUserServerTemporaryToken
|
||||||
|
@ -19,6 +19,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
|
window.utools = window.getuToolsLite()
|
||||||
// 版本检测
|
// 版本检测
|
||||||
const requiredVersion = "2.6.1";
|
const requiredVersion = "2.6.1";
|
||||||
let version = utools.getAppVersion();
|
let version = utools.getAppVersion();
|
||||||
|
@ -24,7 +24,7 @@ utools.onPluginOut(() => {
|
|||||||
|
|
||||||
// "async" is optional;
|
// "async" is optional;
|
||||||
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
|
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
|
||||||
export default boot(async({
|
export default boot(async ({
|
||||||
app
|
app
|
||||||
}) => {
|
}) => {
|
||||||
app.config.globalProperties.$utools = UTOOLS
|
app.config.globalProperties.$utools = UTOOLS
|
||||||
|
@ -357,7 +357,7 @@ export default {
|
|||||||
cmd = await this.replaceTempInputVals(cmd);
|
cmd = await this.replaceTempInputVals(cmd);
|
||||||
let terminal = false;
|
let terminal = false;
|
||||||
let raw = true;
|
let raw = true;
|
||||||
switch (this.$refs.menu.currentCommand.output) {
|
switch (this.$refs.menu?.currentCommand.output) {
|
||||||
case "html":
|
case "html":
|
||||||
raw = false;
|
raw = false;
|
||||||
break;
|
break;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
import { toRaw } from "vue";
|
import { toRaw } from "vue";
|
||||||
import importAll from "../js/importAll.js";
|
import importAll from "../js/common/importAll.js";
|
||||||
|
|
||||||
// 批量导入声明文件
|
// 批量导入声明文件
|
||||||
let apis = importAll(
|
let apis = importAll(
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* 所有的匹配类型
|
||||||
|
*/
|
||||||
|
|
||||||
const commandTypes = {
|
const commandTypes = {
|
||||||
key: {
|
key: {
|
||||||
name: "key",
|
name: "key",
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* 所有的输出类型
|
||||||
|
*/
|
||||||
|
|
||||||
const outputTypes = {
|
const outputTypes = {
|
||||||
ignore: {
|
ignore: {
|
||||||
name: "ignore",
|
name: "ignore",
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* 所有的特殊变量
|
||||||
|
*/
|
||||||
|
|
||||||
const specialVars = {
|
const specialVars = {
|
||||||
LocalId: {
|
LocalId: {
|
||||||
name: "LocalId",
|
name: "LocalId",
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* 阉割utools,同时返回一个满血版的UTOOLS
|
* 阉割utools,同时返回一个满血版的UTOOLS
|
||||||
* 防止输出html输出时,通过script标签调用utools执行危险函数
|
* 防止输出html输出时,通过script标签调用utools执行危险函数
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// 禁用危险函数
|
// 禁用危险函数
|
||||||
let whole = window.utools
|
let whole = window.utools
|
||||||
if (!utools.isDev()) window.utools = window.getuToolsLite()
|
|
||||||
|
|
||||||
// 数据库前缀
|
// 数据库前缀
|
||||||
const DBPRE = {
|
const DBPRE = {
|
||||||
@ -47,5 +46,5 @@ export default {
|
|||||||
putDB,
|
putDB,
|
||||||
delDB,
|
delDB,
|
||||||
getDocs,
|
getDocs,
|
||||||
DBPRE
|
DBPRE,
|
||||||
}
|
}
|
||||||
|
@ -191,11 +191,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import quickcommandParser from "../js/quickcommandParser.js";
|
import quickcommandParser from "../js/common/quickcommandParser.js";
|
||||||
import CommandCard from "components/CommandCard";
|
import CommandCard from "components/CommandCard";
|
||||||
import CommandEditor from "components/CommandEditor.vue";
|
import CommandEditor from "components/CommandEditor.vue";
|
||||||
import ConfigurationMenu from "components/ConfigurationMenu.vue";
|
import ConfigurationMenu from "components/ConfigurationMenu.vue";
|
||||||
import importAll from "../js/importAll.js";
|
import importAll from "../js/common/importAll.js";
|
||||||
|
|
||||||
// 默认命令
|
// 默认命令
|
||||||
let defaultCommands = importAll(require.context("../json/", false, /\.json$/));
|
let defaultCommands = importAll(require.context("../json/", false, /\.json$/));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user