结构调整

This commit is contained in:
fofolee 2022-04-08 10:26:32 +08:00
parent 001897ad48
commit cfd7f2f884
12 changed files with 23 additions and 12 deletions

View File

@ -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

View File

@ -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();

View File

@ -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

View File

@ -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;

View File

@ -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(

View File

@ -1,3 +1,7 @@
/**
* 所有的匹配类型
*/
const commandTypes = { const commandTypes = {
key: { key: {
name: "key", name: "key",

View File

@ -1,3 +1,7 @@
/**
* 所有的输出类型
*/
const outputTypes = { const outputTypes = {
ignore: { ignore: {
name: "ignore", name: "ignore",

View File

@ -1,3 +1,7 @@
/**
* 所有的特殊变量
*/
const specialVars = { const specialVars = {
LocalId: { LocalId: {
name: "LocalId", name: "LocalId",

View File

@ -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,
} }

View File

@ -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$/));