Skip to content

Commit f9523bf

Browse files
author
Jaime de Venecia
committed
Comment out entire component code in SlackLoginWindow.vue, clean commented-out code in Canvas.vue, remove large blocks of commented-out code in actions.ts, clean up comments in types.ts, remove StyleClassMap type, delete extractor.js, npm uninstall vue-sfc-parser.
1 parent 993e6f0 commit f9523bf

File tree

9 files changed

+21
-266
lines changed

9 files changed

+21
-266
lines changed

extractor.js

Lines changed: 0 additions & 131 deletions
This file was deleted.

package-lock.json

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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
"vue-multiselect": "^3.0.0-alpha.2",
6767
"vue-prism-editor": "^2.0.0-alpha.2",
6868
"vue-router": "4.0.13",
69-
"vue-sfc-parser": "^0.1.2",
7069
"vue3-draggable-resizable": "^1.6.4",
7170
"vue3-tree": "^0.11.0",
7271
"vued3tree": "^5.1.0",

src/components/Canvas.vue

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
FUNCTIONALITY:
77
- Displays previous 'Canvas' grid functionality
8-
- Deprecated by OverVue v.10.0 but left as option for users who wish to use it
8+
- Soft-deprecated by OverVue v.10.0 but left as option for users who wish to use it
99
-->
1010

1111
<template>
@@ -650,18 +650,13 @@ const gridHeight = computed(() => {
650650
//methods
651651
const setActiveComponent: typeof store.setActiveComponent = (payload) =>
652652
store.setActiveComponent(payload);
653-
// const updateComponentChildrenMultiselectValue: typeof store.updateComponentChildrenMultiselectValue = (payload) =>
654-
// store.updateComponentChildrenMultiselectValue(payload);
655653
const updateActiveComponentChildrenValue: typeof store.updateActiveComponentChildrenValue =
656654
(payload) => store.updateActiveComponentChildrenValue(payload);
657655
const updateComponentPosition: typeof store.updateComponentPosition = (
658656
payload
659657
) => store.updateComponentPosition(payload);
660-
// const updateStartingPosition: typeof store.updateStartingPosition = (payload) =>
661-
// (payload);
662658
const updateComponentLayer: typeof store.updateComponentLayer = (payload) =>
663659
store.updateComponentLayer(payload);
664-
// const updateStartingSize: typeof store.updateStartingSize = (payload) => store.updateStartingSize(payload);
665660
const updateComponentSize: typeof store.updateComponentSize = (payload) =>
666661
store.updateComponentSize(payload);
667662
const addActiveComponentNote: typeof store.addActiveComponentNote = (payload) =>
@@ -1015,23 +1010,6 @@ li:hover {
10151010
background-color: rgba(223, 218, 218, 0.613);
10161011
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
10171012
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
1018-
// background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
1019-
// -webkit-linear-gradient(0, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
1020-
// -webkit-linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
1021-
// -webkit-linear-gradient(0, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
1022-
// background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
1023-
// -moz-linear-gradient(0, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
1024-
// -moz-linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
1025-
// -moz-linear-gradient(0, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
1026-
// background-image: linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
1027-
// linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
1028-
// linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
1029-
// linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
1030-
// -pie-background: linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px) -2px -2px / 100px,
1031-
// linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px) -2px -2px / 100px,
1032-
// linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px) -1px -1px / 20px,
1033-
// linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px) -1px -1px / 20px,
1034-
// $secondary;
10351013
behavior: url(/pie/PIE.htc);
10361014
}
10371015
@@ -1080,9 +1058,6 @@ li:hover {
10801058
}
10811059
10821060
.cssContainerText {
1083-
// display: flex;
1084-
// justify-content: center;
1085-
// align-content: center;
10861061
position: absolute;
10871062
text-align: center;
10881063
font-size: 4em;

src/components/slack_login/SlackLoginWindow.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<template>
1+
<!--
2+
NOTE: This component was formerly rendered in MyLayout.vue prior to OverVue v.10.0, but this feature has been deprecated for the time being.
3+
-->
4+
5+
<!-- <template>
26
<q-btn class="menu-btn" color="purple" no-caps @click="openLogin">
3-
<!-- Slack logo -->
47
<svg
58
xmlns="http://www.w3.org/2000/svg"
69
style="height: 20px; width: 20px; margin-right: 12px"
@@ -183,4 +186,4 @@ const openLogin = () => {
183186
width: 80%;
184187
margin: 10px 0px;
185188
}
186-
</style>
189+
</style> -->

src/store/actions.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -704,16 +704,9 @@ const actions: Store<"main", State, {}, Actions> = {
704704

705705
this.addComponentToActiveRouteInRouteMap(payload);
706706

707-
// const value = this.componentChildrenMultiselectValue.map(
708-
// (component) => this.componentMap[component]
709-
// );
710-
711707
if (this.parentSelected.length) {
712708
this.addParent(payload);
713709
}
714-
715-
// this.updateComponentChildrenValue({ componentName, value });
716-
// this.updateComponentChildrenMultiselectValue([]);
717710
this.updateComponentNameInputValue("");
718711
this.setSelectedElementList([]);
719712
this.setActiveComponent(componentName);
@@ -844,9 +837,6 @@ const actions: Store<"main", State, {}, Actions> = {
844837
};
845838
} else {
846839
this.activeComponent = payload;
847-
// this.activeComponentObj = this.routes[this.activeRoute].filter(
848-
// (comp) => comp.componentName === this.activeComponent
849-
// )[0];
850840
this.activeComponentObj = this.componentMap[
851841
this.activeComponent
852842
] as Component;
@@ -862,21 +852,6 @@ const actions: Store<"main", State, {}, Actions> = {
862852
this.componentMap = payload;
863853
},
864854

865-
// executed when a new component is made
866-
// also invoked when a child is added to the parent from the sidebar (EditSidebar or HomeSidebar?)
867-
// also invoked when clicked on invoking the modal-view
868-
// event: @ VueMultiselect
869-
// updateComponentChildrenMultiselectValue(payload) {
870-
// this.componentChildrenMultiselectValue = payload;
871-
// },
872-
873-
// executed when a new component is made
874-
// additionally adds children to the component
875-
// updateComponentChildrenValue(payload) {
876-
// const { componentName, value } = payload;
877-
// this.componentMap[componentName].children = value;
878-
// },
879-
880855
updateComponentNameInputValue(payload) {
881856
this.componentNameInputValue = payload;
882857
},
@@ -986,8 +961,6 @@ const actions: Store<"main", State, {}, Actions> = {
986961
// delete block
987962
if (temp.filter((el) => payload === el).length > 0) {
988963
//commented stuff below does not seem necessary for the functionality of this if block.
989-
//children will be current children EXCLUDING payload
990-
// const child = temp.filter((el) => payload.includes(el));
991964
let childCount = 0;
992965
const components = Object.values(this.componentMap);
993966
for (const comp of components) {
@@ -1001,12 +974,6 @@ const actions: Store<"main", State, {}, Actions> = {
1001974
...temp.filter((el) => payload === el)
1002975
);
1003976
}
1004-
// const newHTMLList = state.componentMap[
1005-
// state.activeComponent
1006-
// ].htmlList.filter((el) => el !== child[0]);
1007-
// state.componentMap[state.activeComponent].htmlList = newHTMLList;
1008-
// const newMap = { ...state.componentMap };
1009-
// state.componentMap = { ...newMap };
1010977

1011978
//delete the instances of the Child Component in the activeComponent's htmlList
1012979
const componentName = this.activeComponent;
@@ -1028,12 +995,6 @@ const actions: Store<"main", State, {}, Actions> = {
1028995
const active = this.componentMap[payload] as Component;
1029996
//updates the htmlList with the child components deleted
1030997
this.componentMap[componentName].htmlList = htmlList;
1031-
1032-
//delete the parent because the payload is no longer a child to the active component
1033-
1034-
// delete active.parent[this.activeComponent];
1035-
1036-
// add block
1037998
} else {
1038999
const child = temp;
10391000
child.push(payload);
@@ -1257,14 +1218,6 @@ const actions: Store<"main", State, {}, Actions> = {
12571218
this.setActiveComponent("");
12581219
},
12591220

1260-
// updateStartingPosition (payload) {
1261-
1262-
// },
1263-
1264-
// updateStartingSize (payload) {
1265-
1266-
// },
1267-
12681221
// *** END PROJECTS *** //////////////////////////////////////////////
12691222

12701223
// IMAGES

0 commit comments

Comments
 (0)