Skip to content

Commit a40935e

Browse files
committed
Merge branch 'dev' into ah/final-touches
2 parents 26d9ddc + b676485 commit a40935e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2271
-2216
lines changed

package-lock.json

Lines changed: 1092 additions & 1069 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<script setup>
1111
/* IMPORTS */
1212
import { onMounted, ref } from "vue";
13-
import { useStore } from "./store/main.js";
13+
import { useStore } from "./stores/main.js";
1414
const deepEqual = require("lodash.isequal");
1515
const cloneDeep = require("lodash.clonedeep");
1616
const throttle = require("lodash.throttle");
17-
17+
const store = useStore();
1818
/* LIFECYCLE HOOKS */
1919
2020
onMounted(() => {
@@ -50,7 +50,7 @@ const doneAction = ref([]);
5050
const undoneAction = ref([]);
5151
const isTimetraveling = ref(false);
5252
53-
const store = useStore();
53+
5454
5555
store.$onAction((action) => {
5656
if (typeof action.args[0] === "object") {
@@ -118,7 +118,7 @@ const redo = () => {
118118
store[actionName](cloneDeep(action.args[0]));
119119
}
120120
isTimetraveling.value = false;
121-
121+
122122
if (action && ignoredActions.has(action.name)) {
123123
redo();
124124
}
@@ -135,4 +135,4 @@ const redoTrigger = () => {
135135
const throttledRedo = throttle(redo, 300);
136136
throttledRedo();
137137
};
138-
</script>
138+
</script>

src/components/Canvas.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ import VueMultiselect from "vue-multiselect";
533533
import "vue-draggable-resizable/src/components/vue-draggable-resizable.css";
534534
import "vue3-draggable-resizable/dist/Vue3DraggableResizable.css";
535535
import { ColorPicker } from "vue-accessible-color-picker";
536-
import { useStore } from "../store/main.js";
536+
import { useStore } from "../stores/main.js";
537537
import { ref, computed, onMounted, watch } from "vue";
538538
import { ResizePayload, Component } from "../../types";
539539
@@ -1255,3 +1255,4 @@ li:hover {
12551255
background: black;
12561256
}
12571257
</style>
1258+
../stores/main.js

src/components/composables/useExportComponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { openHtmlElementMap } from "src/store/state/htmlElementMap";
1+
import { openHtmlElementMap } from "src/stores/state/htmlElementMap";
22
import { computed } from "vue";
3-
import { useStore } from "src/store/main";
3+
import { useStore } from "src/stores/main";
44
// @ts-ignore
55
const { ipcRenderer } = window;
66

src/components/left-sidebar/ComponentTab/ActionsSubMenu.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
LOCATION IN APP:
33
[left sidebar] COMPONENT > Update Component > Actions
44
@@ -62,7 +62,7 @@
6262
/* IMPORTS */
6363
import { computed } from "vue";
6464
import VueMultiselect from "vue-multiselect";
65-
import { useStore } from "../../../store/main.js";
65+
import { useStore } from "../../../stores/main.js";
6666
import { Component } from "../../../../types";
6767
6868
/* COMPUTED VALUES */
@@ -115,3 +115,4 @@ const deleteAction = (action: string) => {
115115
align-items: center;
116116
}
117117
</style>
118+
../../../stores/main.js

src/components/left-sidebar/ComponentTab/AttributesSubMenu.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
LOCATION IN APP:
33
[left sidebar] COMPONENT > Update Component > Component Attributes
44
@@ -84,7 +84,7 @@
8484
<script setup lang="ts">
8585
/* IMPORTS */
8686
import { computed, ref } from "vue";
87-
import { useStore } from "../../../store/main.js";
87+
import { useStore } from "../../../stores/main.js";
8888
import { Component } from "../../../../types";
8989
const cloneDeep = require("lodash.clonedeep");
9090
@@ -156,3 +156,4 @@ const deleteAttribute = (attribute: "id" | "class") => {
156156
cursor: pointer;
157157
}
158158
</style>
159+
../../../stores/main.js

src/components/left-sidebar/ComponentTab/ComponentTab.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
LOCATION IN APP:
33
[left sidebar] COMPONENT
44
@@ -16,7 +16,7 @@
1616
<script setup lang="ts">
1717
/* IMPORTS */
1818
import { computed } from "vue";
19-
import { useStore } from "../../../store/main.js";
19+
import { useStore } from "../../../stores/main.js";
2020
import CreateMenu from "./CreateMenu.vue";
2121
import UpdateMenu from "./UpdateMenu.vue";
2222
@@ -56,3 +56,4 @@ const activeComponent = computed(() => store.activeComponent);
5656
padding: 10px 0;
5757
}
5858
</style>
59+
../../../stores/main.js

src/components/left-sidebar/ComponentTab/CreateMenu.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
LOCATION IN APP:
33
[left sidebar] COMPONENT > default view
44
@@ -131,7 +131,7 @@
131131
<script setup lang="ts">
132132
/* IMPORTS */
133133
import { computed, ref, watch } from "vue";
134-
import { useStore } from "../../../store/main.js";
134+
import { useStore } from "../../../stores/main.js";
135135
import { Component } from "../../../../types";
136136
import { useCreateComponent } from "../../composables/useCreateComponent.js";
137137
import ParentMultiselect from "./ParentMultiselect.vue";
@@ -356,3 +356,4 @@ img {
356356
background: $subprimary;
357357
}
358358
</style>
359+
../../../stores/main.js

src/components/left-sidebar/ComponentTab/Icons.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
LOCATION IN APP:
33
[left sidebar] COMPONENT > default view > ELEMENTS
44
@@ -31,7 +31,7 @@
3131
<script setup lang="ts">
3232
/* IMPORTS */
3333
import { computed } from "vue";
34-
import { useStore } from "../../../store/main.js";
34+
import { useStore } from "../../../stores/main.js";
3535
import { HtmlElement } from "app/types";
3636
3737
/* EMITS */
@@ -157,3 +157,4 @@ button:active {
157157
color: $menutext;
158158
}
159159
</style>
160+
../../../stores/main.js

src/components/left-sidebar/ComponentTab/ImportComponent.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
NOTE:
33
[OverVue v.10.0] Functionality is disabled; past iterations had intended to implement this functionality though hasn't actually been incorporated yet
44
@@ -20,7 +20,7 @@
2020
/* IMPORTS */
2121
import { computed } from "vue";
2222
const { fs, ipcRenderer } = window as any;
23-
import { useStore } from "../../../store/main.js";
23+
import { useStore } from "../../../stores/main.js";
2424
import { Component, HtmlElement, HtmlElementMap } from "../../../../types";
2525
import { useCreateComponent } from "../../composables/useCreateComponent.js";
2626
@@ -418,3 +418,4 @@ const openVueFile = (data: any) => {
418418
margin: 30px 0px;
419419
}
420420
</style>
421+
../../../stores/main.js

0 commit comments

Comments
 (0)