mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 20:44:42 +08:00
目录结构调整
This commit is contained in:
@@ -275,8 +275,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import commandTypes from "../js/options/commandTypes.js";
|
||||
import platformTypes from "../js/options/platformTypes.js";
|
||||
import commandTypes from "js/options/commandTypes.js";
|
||||
import platformTypes from "js/options/platformTypes.js";
|
||||
import CrontabSetting from "components/popup/CrontabSetting";
|
||||
// import ShareDialog from "components/popup/ShareDialog";
|
||||
|
||||
|
@@ -73,13 +73,13 @@
|
||||
|
||||
<script>
|
||||
import { defineAsyncComponent } from "vue";
|
||||
import CommandSideBar from "components/CommandSideBar";
|
||||
import CommandSideBar from "components/editor/CommandSideBar";
|
||||
import CommandLanguageBar from "components/editor/CommandLanguageBar";
|
||||
import EditorTools from "components/editor/EditorTools";
|
||||
import CommandRunResult from "components/CommandRunResult";
|
||||
import CommandLanguageBar from "components/CommandLanguageBar";
|
||||
import EditorTools from "components/EditorTools";
|
||||
// Performance Scripting > 500ms
|
||||
const MonacoEditor = defineAsyncComponent(() =>
|
||||
import("components/MonacoEditor")
|
||||
import("components/editor/MonacoEditor")
|
||||
);
|
||||
|
||||
export default {
|
||||
|
@@ -38,9 +38,9 @@
|
||||
|
||||
|
||||
<script>
|
||||
import outputTypes from "../js/options/outputTypes.js";
|
||||
import specialVars from "../js/options/specialVars.js";
|
||||
import commandTypes from "../js/options/commandTypes.js";
|
||||
import outputTypes from "js/options/outputTypes.js";
|
||||
import specialVars from "js/options/specialVars.js";
|
||||
import commandTypes from "js/options/commandTypes.js";
|
||||
import ResultArea from "components/ResultArea.vue";
|
||||
import ResultMenu from "components/popup/ResultMenu.vue";
|
||||
|
||||
|
@@ -523,11 +523,10 @@
|
||||
|
||||
<script>
|
||||
import { setCssVar } from "quasar";
|
||||
import { ref } from "vue";
|
||||
import AboutThis from "components/popup/AboutThis";
|
||||
import PanelSetting from "components/popup/PanelSetting";
|
||||
import UserInfo from "components/popup/UserInfo";
|
||||
import features from "../js/options/quickFeatures.js";
|
||||
import features from "js/options/quickFeatures.js";
|
||||
import UserData from "components/popup/UserData";
|
||||
|
||||
export default {
|
||||
|
@@ -334,10 +334,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import commandTypes from "../js/options/commandTypes.js";
|
||||
import outputTypes from "../js/options/outputTypes.js";
|
||||
import specialVars from "../js/options/specialVars.js";
|
||||
import platformTypes from "../js/options/platformTypes.js";
|
||||
import commandTypes from "js/options/commandTypes.js";
|
||||
import outputTypes from "js/options/outputTypes.js";
|
||||
import specialVars from "js/options/specialVars.js";
|
||||
import platformTypes from "js/options/platformTypes.js";
|
||||
import iconPicker from "components/popup/IconPicker.vue";
|
||||
import UserData from "components/popup/UserData.vue";
|
||||
|
@@ -27,30 +27,30 @@
|
||||
import EditorHistory from "components/popup/EditorHistory.vue";
|
||||
|
||||
export default {
|
||||
name: 'EditorTools',
|
||||
name: "EditorTools",
|
||||
components: {
|
||||
EditorHistory
|
||||
EditorHistory,
|
||||
},
|
||||
props: {
|
||||
commandCode: {
|
||||
type: String,
|
||||
default: 'temp'
|
||||
default: "temp",
|
||||
},
|
||||
isFullscreen: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
emits: ['restore', 'toggle-fullscreen'],
|
||||
emits: ["restore", "toggle-fullscreen"],
|
||||
methods: {
|
||||
showHistory() {
|
||||
this.$refs.history.open();
|
||||
},
|
||||
tryToSave(content, program) {
|
||||
this.$refs.history.tryToSave(content, program);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
@@ -16,16 +16,16 @@
|
||||
<script>
|
||||
import * as monaco from "monaco-editor";
|
||||
import { toRaw } from "vue";
|
||||
import importAll from "../js/common/importAll.js";
|
||||
import importAll from "js/common/importAll.js";
|
||||
|
||||
// 批量导入声明文件
|
||||
let apis = importAll(
|
||||
require.context("!raw-loader!../plugins/monaco/types/", false, /\.ts$/)
|
||||
require.context("!raw-loader!plugins/monaco/types/", false, /\.ts$/)
|
||||
);
|
||||
|
||||
// 批量导入关键字补全
|
||||
let languageCompletions = importAll(
|
||||
require.context("../plugins/monaco/completions/", false, /\.js$/)
|
||||
require.context("plugins/monaco/completions/", false, /\.js$/)
|
||||
);
|
||||
|
||||
let monacoCompletionProviders = {};
|
@@ -129,7 +129,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import levelDetail from "../../js/options/levelDetail.js";
|
||||
import levelDetail from "js/options/levelDetail.js";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@@ -238,9 +238,9 @@
|
||||
|
||||
<script>
|
||||
import { defineAsyncComponent } from "vue";
|
||||
import quickcommandParser from "../js/common/quickcommandParser.js";
|
||||
import importAll from "../js/common/importAll.js";
|
||||
import changeLog from "../js/options/changeLog.js";
|
||||
import quickcommandParser from "js/common/quickcommandParser.js";
|
||||
import importAll from "js/common/importAll.js";
|
||||
import changeLog from "js/options/changeLog.js";
|
||||
import pinyinMatch from "pinyin-match";
|
||||
import CommandCard from "components/CommandCard";
|
||||
import CommandEditor from "components/CommandEditor";
|
||||
|
@@ -80,7 +80,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MonacoEditor from "components/MonacoEditor";
|
||||
import MonacoEditor from "components/editor/MonacoEditor";
|
||||
|
||||
export default {
|
||||
components: { MonacoEditor },
|
||||
|
@@ -125,7 +125,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import commandTypes from "../js/options/commandTypes.js";
|
||||
import commandTypes from "js/options/commandTypes.js";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
Reference in New Issue
Block a user