diff --git a/package.json b/package.json index 50b33f8..df85fb3 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "fs-extra": "^7.0.1", "localforage": "^1.7.3", "mousetrap": "^1.6.3", + "sass": "^1.58.3", "vite": "^2.5.4", "vite-plugin-vue2": "1.9.0", "vue": "^3.2.47", @@ -23,7 +24,7 @@ "vue-template-compiler": "^2.6.11", "vue3-draggable-resizable": "^1.6.5", "vued3tree": "^3.6.4", - "vuedraggable": "^2.19.3", + "vuedraggable": "^4.1.0", "vuetify": "^3.1.6" }, "devDependencies": { diff --git a/src/components/ChildrenMultiselect.vue b/src/components/ChildrenMultiselect.vue index 61cb895..0ed5d84 100644 --- a/src/components/ChildrenMultiselect.vue +++ b/src/components/ChildrenMultiselect.vue @@ -20,11 +20,11 @@ import VueMultiselect from 'vue-multiselect'; export default { name: 'ChildrenMultiselect', components: { - VueMultiselect, + VueMultiselect }, data() { return { - multiValue: null, + multiValue: null }; }, computed: { @@ -33,30 +33,30 @@ export default { 'routes', 'activeComponent', 'componentChildrenMultiselectValue', - 'modalOpen', + 'modalOpen' ]), options() { const routes = Object.keys(this.routes); console.log('routes', routes); const exceptions = new Set(['App', this.activeComponent, ...routes]); console.log('exceptions', exceptions); - return Object.keys(this.componentMap).filter((component) => { + return Object.keys(this.componentMap).filter(component => { if (!exceptions.has(component)) return component; }); // return ['test']; - }, + } }, methods: { ...mapActions([ 'updateComponentChildrenMultiselectValue', - 'updateActiveComponentChildrenValue', + 'updateActiveComponentChildrenValue' ]), handleSelect(value) { console.log('VALUE', value); if (this.modalOpen) this.updateActiveComponentChildrenValue(value); this.updateComponentChildrenMultiselectValue(value); - }, - }, + } + } }; diff --git a/src/components/ComponentCodeDisplay.vue b/src/components/ComponentCodeDisplay.vue index e735041..c37303f 100644 --- a/src/components/ComponentCodeDisplay.vue +++ b/src/components/ComponentCodeDisplay.vue @@ -16,20 +16,20 @@ export default { activeComponentHtmlList: { get() { return toRaw(this.componentMap[this.activeComponent].htmlList); - }, - }, + } + } }, watch: { activeComponentHtmlList(oldList, newList) { this.displayHtmlList(newList); - }, + } }, mounted() { this.displayHtmlList(this.activeComponentHtmlList); }, methods: { traverseElement(list, codeDisplay, level = 0) { - list.forEach((htmlElementTagObj) => { + list.forEach(htmlElementTagObj => { let htmlElementMapKey = htmlElementTagObj.text; let htmlelementNode = document.createElement('p'); let openingTagNode = document.createElement('p'); @@ -65,8 +65,8 @@ export default { codeDisplay.innerText = ''; this.traverseElement(list, codeDisplay); - }, - }, + } + } }; diff --git a/src/components/ComponentDisplay.vue b/src/components/ComponentDisplay.vue index fd17660..db577e5 100644 --- a/src/components/ComponentDisplay.vue +++ b/src/components/ComponentDisplay.vue @@ -39,11 +39,11 @@ import Vue3DraggableResizable from 'vue3-draggable-resizable'; export default { name: 'ComponentDisplay', components: { - Vue3DraggableResizable, + Vue3DraggableResizable }, data() { return { - abilityToDelete: false, + abilityToDelete: false }; }, mounted() { @@ -70,14 +70,14 @@ export default { 'this.activeRouteArray (within activeComponentData)', this.activeRouteArray ); - return this.activeRouteArray.filter((componentData) => { + return this.activeRouteArray.filter(componentData => { return componentData.componentName === this.activeComponent; })[0]; - }, + } }, methods: { ...mapActions(['setActiveComponent', 'updateOpenModal']), - onResize: function (x, y) { + onResize: function(x, y) { console.log('on resiZe x', x); console.log('on resiZe y', y); // const { x, y, w, h} = payload; @@ -118,8 +118,8 @@ export default { // this.setActiveComponent(''); // } // }); - }, - }, + } + } }; diff --git a/src/components/EditQueue.vue b/src/components/EditQueue.vue index 68a6fd2..689dac3 100644 --- a/src/components/EditQueue.vue +++ b/src/components/EditQueue.vue @@ -22,7 +22,6 @@ import { setComponentHtmlList, addToComponentElementList } from '../store/types'; -import { setInterval } from 'timers'; export default { name: 'EditQueue', diff --git a/src/components/HomeQueue.vue b/src/components/HomeQueue.vue index dce4313..1067e50 100644 --- a/src/components/HomeQueue.vue +++ b/src/components/HomeQueue.vue @@ -1,62 +1,59 @@ diff --git a/src/components/HomeSidebar.vue b/src/components/HomeSidebar.vue index 5ea0d35..cefdab8 100644 --- a/src/components/HomeSidebar.vue +++ b/src/components/HomeSidebar.vue @@ -14,7 +14,7 @@ - + @@ -38,14 +38,14 @@ export default { name: 'HomeSidebar', components: { ChildrenMultiselect, - Icons, + Icons }, computed: { ...mapState([ 'componentMap', 'selectedElementList', 'routes', - 'activeRoute', + 'activeRoute' ]), componentNameInputValue: { get() { @@ -58,14 +58,14 @@ export default { set(value) { // console.log('value', value); this.updateComponentNameInputValue(value); - }, - }, + } + } }, methods: { ...mapActions([ 'registerComponent', 'addToSelectedElementList', - 'updateComponentNameInputValue', + 'updateComponentNameInputValue' ]), // invoked when click "add component" button handleClick() { @@ -78,14 +78,14 @@ export default { h: 200, htmlList: this.selectedElementList, children: [], - isActive: false, + isActive: false }; // console.log('component', component); console.log('component (HomeSidebar handleClick)', component); this.registerComponent(component); - }, - }, + } + } };