Migrate vue-splitpane to npm package

This commit is contained in:
Andrei Andreev 2022-02-06 18:02:42 +03:00
parent cc702fc1ee
commit 4efe5b720c
5 changed files with 10 additions and 4 deletions

5
package-lock.json generated
View File

@ -10531,6 +10531,11 @@
}
}
},
"vue-splitpane": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/vue-splitpane/-/vue-splitpane-1.0.6.tgz",
"integrity": "sha512-6sneVSEeF1VsCD025HP93nRxwzYhv3rotCeYi2Ah1FmGxwtfqbCZEIzaHGberdGNCpMlEzGD/1OIE1kK5QukLA=="
},
"vue-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",

View File

@ -21,6 +21,7 @@
"vis-network": "^5.1.1",
"vis-util": "^4.0.0",
"vue": "^2.6.11",
"vue-splitpane": "^1.0.6",
"vuedraggable": "^2.24.3"
},
"devDependencies": {

View File

@ -67,7 +67,6 @@
<script type="text/javascript" src="lib/vue.js"></script>
<script type="text/javascript" src="lib/v-tooltip.min.js"></script>
<script type="text/javascript" src="lib/deepmerge.js"></script>
<script type="text/javascript" src="lib/vue-split-pane.min.js"></script>
<script type="text/javascript" src="lib/codemirror.js"></script>
<script type="text/javascript" src="lib/simple.js"></script>
<script type="text/javascript" src="lib/show-hint.js"></script>

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,5 @@
<script>
import SplitPane from "vue-splitpane";
import AutomatorEditor from "./AutomatorEditor";
import AutomatorPointsList from "./AutomatorPointsList";
import AutomatorDocs from "./AutomatorDocs";
@ -6,6 +7,7 @@ import AutomatorDocs from "./AutomatorDocs";
export default {
name: "AutomatorTab",
components: {
SplitPane,
AutomatorEditor,
AutomatorPointsList,
AutomatorDocs
@ -59,7 +61,7 @@ export default {
in which case the next command will be immediately processed after the slower command is run.
<br>
The Automator autosaves with every change, but is not stored in the save file until the game is saved normally.
<split-pane
<SplitPane
:min-percent="40"
:default-percent="50"
split="vertical"
@ -67,7 +69,7 @@ export default {
>
<AutomatorEditor slot="paneL" />
<AutomatorDocs slot="paneR" />
</split-pane>
</SplitPane>
</div>
<AutomatorPointsList v-else />
</div>