Skip to content

Commit 2668a29

Browse files
committed
deleted test dir
2 parents 79c68bc + c6c0e73 commit 2668a29

Some content is hidden

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

69 files changed

+2657
-14984
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"@quasar/app": "^1.0.0",
39+
"@quasar/quasar-app-extension-testing": "^1.0.0",
3940
"@quasar/quasar-app-extension-testing-unit-jest": "^1.0.0",
4041
"@vue/eslint-config-standard": "^4.0.0",
4142
"babel-eslint": "^10.0.1",
@@ -58,4 +59,4 @@
5859
"browserslist": [
5960
"last 1 version, not dead, ie >= 11"
6061
]
61-
}
62+
}

quasar.extensions.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2+
"@quasar/testing": {
3+
"harnesses": ["unit-jest"]
4+
},
25
"@quasar/testing-unit-jest": {
36
"babel": "babelrc",
4-
"options": [
5-
"scripts"
6-
]
7+
"options": []
78
}
8-
}
9+
}

src-pwa/custom-service-worker.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
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"
5+
*/

src-pwa/register-service-worker.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { register } from 'register-service-worker'
2+
3+
// The ready(), registered(), cached(), updatefound() and updated()
4+
// events passes a ServiceWorkerRegistration instance in their arguments.
5+
// ServiceWorkerRegistration: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration
6+
7+
register(process.env.SERVICE_WORKER_FILE, {
8+
// The registrationOptions object will be passed as the second argument
9+
// to ServiceWorkerContainer.register()
10+
// https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register#Parameter
11+
12+
// registrationOptions: { scope: './' },
13+
14+
ready () {
15+
console.log('App is being served from cache by a service worker.')
16+
},
17+
18+
registered (registration) {
19+
console.log('Service worker has been registered.')
20+
},
21+
22+
cached (registration) {
23+
console.log('Content has been cached for offline use.')
24+
},
25+
26+
updatefound (registration) {
27+
console.log('New content is downloading.')
28+
},
29+
30+
updated (registration) {
31+
console.log('New content is available; please refresh.')
32+
},
33+
34+
offline () {
35+
console.log('No internet connection found. App is running in offline mode.')
36+
},
37+
38+
error (err) {
39+
console.error('Error during service worker registration:', err)
40+
}
41+
})

src/components/ComponentDisplay.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export default {
8484
window.addEventListener('keyup', event => {
8585
if (event.key === 'Backspace') {
8686
if (this.activeComponent && this.activeComponentData.isActive) {
87+
// console.log('this:', this)
8788
this.$store.dispatch('deleteActiveComponent')
8889
}
8990
}

0 commit comments

Comments
 (0)