From 21e52ba2fa323e8aebf291882083c1eca9f6a5af Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 24 May 2021 10:11:40 +0200 Subject: Added loading overlays & fixed the default RepositoryHeader data values --- package-lock.json | 18 ++++++++++++++++++ package.json | 1 + src/components/RepositoryHeader.vue | 2 +- src/views/RepositoryCommit.vue | 14 +++++++++++--- src/views/RepositoryLog.vue | 18 ++++++++++++++---- 5 files changed, 45 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 266ea36..2787ff0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "js-yaml": "^4.1.0", "nodegit": "^0.27.0", "vue": "^3.0.11", + "vue-loading-overlay": "^4.0.2", "vue-router": "^4.0.8" }, "devDependencies": { @@ -17057,6 +17058,17 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/vue-loading-overlay": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vue-loading-overlay/-/vue-loading-overlay-4.0.2.tgz", + "integrity": "sha512-2QNBeNrrzzYHFqe5hAjMXsWyy5FQ4f5xmqn6CwIbf54WoRtTu6tGlCAvHsgNnZQxTh8PG+Zo6244pglCkdXglg==", + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vue-router": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.0.8.tgz", @@ -30644,6 +30656,12 @@ } } }, + "vue-loading-overlay": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vue-loading-overlay/-/vue-loading-overlay-4.0.2.tgz", + "integrity": "sha512-2QNBeNrrzzYHFqe5hAjMXsWyy5FQ4f5xmqn6CwIbf54WoRtTu6tGlCAvHsgNnZQxTh8PG+Zo6244pglCkdXglg==", + "requires": {} + }, "vue-router": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.0.8.tgz", diff --git a/package.json b/package.json index 253769d..8db9404 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "js-yaml": "^4.1.0", "nodegit": "^0.27.0", "vue": "^3.0.11", + "vue-loading-overlay": "^4.0.2", "vue-router": "^4.0.8" }, "devDependencies": { diff --git a/src/components/RepositoryHeader.vue b/src/components/RepositoryHeader.vue index db1ab1e..b0db4f9 100644 --- a/src/components/RepositoryHeader.vue +++ b/src/components/RepositoryHeader.vue @@ -29,7 +29,7 @@ export default { }, setup(props) { - const state = reactive({ title: String, about: String }); + const state = reactive({ title: "", about: "" }); watch(() => { diff --git a/src/views/RepositoryCommit.vue b/src/views/RepositoryCommit.vue index 1fc1ea0..283ed69 100644 --- a/src/views/RepositoryCommit.vue +++ b/src/views/RepositoryCommit.vue @@ -1,7 +1,7 @@