Skip to content

Commit 077a768

Browse files
authored
Merge pull request #25 from oslabs-beta/dev2021
Final Pull Request of OSLabs Beta.
2 parents bd4e9ca + 68d683a commit 077a768

Some content is hidden

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

49 files changed

+23312
-19933
lines changed

.eslintrc.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-len */
12
module.exports = {
23
root: true,
34

@@ -18,15 +19,13 @@ module.exports = {
1819
],
1920

2021
// required to lint *.vue files
21-
plugins: [
22-
'vue'
23-
],
22+
plugins: ['vue'],
2423

2524
globals: {
26-
'ga': true, // Google Analytics
27-
'cordova': true,
28-
'__statics': true,
29-
'process': true
25+
ga: true, // Google Analytics
26+
cordova: true,
27+
__statics: true,
28+
process: true
3029
},
3130

3231
// add your custom rules here

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ yarn-debug.log*
1313
yarn-error.log*
1414
/coverage
1515
package-lock.json
16+
vetur.config.js
1617

1718
# Editor directories and files
1819
.idea

package-lock.json

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

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "overvue",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"description": "Vue Prototype DevTool",
55
"productName": "OverVue",
66
"cordovaId": "org.cordova.quasar.app",
7-
"author": "Team OverVue, Team Vuetiful",
7+
"author": "Team OverVue, Team Vuetiful, Team Vuelociraptors",
88
"private": true,
99
"bugs": {
1010
"url": "https://github.com/TeamOverVue/OverVue/issues"
@@ -39,6 +39,7 @@
3939
"vue-drag-resize": "^1.3.2",
4040
"vue-draggable-nested-tree": "^2.2.17",
4141
"vue-draggable-resizable": "^2.0.0-rc2",
42+
"vue-js-toggle-button": "^1.3.3",
4243
"vue-loader": "^15.7.0",
4344
"vue-multiselect": "^2.1.6",
4445
"vue-prism-editor": "^0.2.1",
@@ -50,14 +51,15 @@
5051
"@quasar/app": "^1.0.0",
5152
"@quasar/quasar-app-extension-testing": "^1.0.0",
5253
"@quasar/quasar-app-extension-testing-unit-jest": "^1.0.0",
54+
"@vue/devtools": "^5.3.4",
5355
"@vue/eslint-config-standard": "^4.0.0",
5456
"babel-eslint": "^10.0.1",
5557
"devtron": "^1.4.0",
5658
"electron": "^5.0.6",
5759
"electron-builder": "^22.11.10",
5860
"electron-debug": "^3.0.1",
5961
"electron-devtools-installer": "^2.2.4",
60-
"eslint": "^5.10.0",
62+
"eslint": "^7.32.0",
6163
"eslint-loader": "^2.1.1",
6264
"eslint-plugin-vue": "^5.0.0",
6365
"strip-ansi": "^3.0.1",

src-electron/electron-flag.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// THIS FEATURE-FLAG FILE IS AUTOGENERATED,
2+
// REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING
3+
import "quasar/dist/types/feature-flag";
4+
5+
declare module "quasar/dist/types/feature-flag" {
6+
interface QuasarFeatureFlags {
7+
electron: true;
8+
}
9+
}

src-electron/main-process/electron-main.dev.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* environment.
66
*/
77

8+
// NOTE Aug 2021 - VUEJS DevTools not loading, need to debug why is does not in Dev mode
9+
810
// Install `electron-debug` with `devtron`
911
require('electron-debug')({ showDevTools: true })
1012

src-pwa/custom-service-worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file (which will be your service worker)
3-
* is picked up by the build system ONLY if
4-
* quasar.conf > pwa > workboxPluginMode is set to "InjectManifest"
2+
This file (which will be your service worker)
3+
is picked up by the build system ONLY if
4+
quasar.conf > pwa > workboxPluginMode is set to "InjectManifest"
55
*/

src-pwa/pwa-flag.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// THIS FEATURE-FLAG FILE IS AUTOGENERATED,
2+
// REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING
3+
import "quasar/dist/types/feature-flag";
4+
5+
declare module "quasar/dist/types/feature-flag" {
6+
interface QuasarFeatureFlags {
7+
pwa: true;
8+
}
9+
}

src-pwa/register-service-worker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ register(process.env.SERVICE_WORKER_FILE, {
3232
},
3333

3434
offline () {
35-
console.log('No internet connection found. App is running in offline mode.')
35+
console.log(
36+
'No internet connection found. App is running in offline mode.'
37+
)
3638
},
3739

3840
error (err) {

src/App.vue

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,14 @@ let redoMixin = {
4040
// console.log("Are these equal to each other?", action == this.undoneAction[this.undoneAction.length-1])
4141
if (!this.isTimetraveling) {
4242
if (this.undoneAction[this.undoneAction.length - 1]) {
43-
if (action.type === this.undoneAction[this.undoneAction.length - 1].type &&
44-
deepEqual(action.payload, this.undoneAction[this.undoneAction.length - 1].payload)) {
43+
if (
44+
action.type ===
45+
this.undoneAction[this.undoneAction.length - 1].type &&
46+
deepEqual(
47+
action.payload,
48+
this.undoneAction[this.undoneAction.length - 1].payload
49+
)
50+
) {
4551
this.undoneAction.pop()
4652
} else {
4753
this.undoneAction = []
@@ -50,19 +56,21 @@ let redoMixin = {
5056
}
5157
})
5258
},
53-
59+
// undo + redo function calling
60+
// metaKey accounts for Command Key on Mac
5461
mounted () {
5562
const throttledUndo = throttle(this.undo, 300)
5663
const throttledRedo = throttle(this.redo, 300)
57-
64+
// undo function calling
5865
window.addEventListener('keydown', event => {
59-
if (event.ctrlKey && event.key === 'z') {
66+
if ((event.ctrlKey || event.metaKey) && event.key === 'z') {
6067
event.preventDefault()
6168
throttledUndo()
6269
}
6370
})
71+
// redo function calling
6472
window.addEventListener('keydown', event => {
65-
if (event.ctrlKey && event.key === 'y') {
73+
if ((event.ctrlKey || event.metaKey) && event.key === 'y') {
6674
event.preventDefault()
6775
throttledRedo()
6876
}
@@ -90,8 +98,10 @@ let redoMixin = {
9098
this.undoneAction.push(undone)
9199
if (ignoredActions.has(undone.type)) {
92100
// console.log('We undid an ignored action!')
93-
while (this.doneAction[this.doneAction.length - 1] &&
94-
ignoredActions.has(this.doneAction[this.doneAction.length - 1].type)) {
101+
while (
102+
this.doneAction[this.doneAction.length - 1] &&
103+
ignoredActions.has(this.doneAction[this.doneAction.length - 1].type)
104+
) {
95105
this.undoneAction.push(this.doneAction.pop())
96106
}
97107
/* if we get here, that means we have undone all "useless" actions
@@ -130,7 +140,6 @@ let redoMixin = {
130140
this.redo()
131141
}
132142
}
133-
134143
}
135144
}
136145
@@ -140,5 +149,4 @@ export default {
140149
}
141150
</script>
142151

143-
<style>
144-
</style>
152+
<style></style>

0 commit comments

Comments
 (0)