From 288d8849499b66de972d63a9909b86af177dc8b3 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Wed, 3 Jul 2024 16:53:45 +1000 Subject: [PATCH 1/2] Replace loading text with progress bar --- src/App.vue | 16 +++++++++--- src/components/ProgressBar.vue | 48 ++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 src/components/ProgressBar.vue diff --git a/src/App.vue b/src/App.vue index 41c506f..2a8fd8e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,7 +2,7 @@

QMK API Keyboard Status

-

Loading Data… {{ loadProgress }}%

+
@@ -16,7 +16,12 @@ Builds Passing - +
@@ -28,6 +33,7 @@ import reduce from 'lodash/reduce' import BuildList from '@/components/BuildList.vue' import ErrorPane from '@/components/ErrorPane.vue' +import ProgressBar from '@/components/ProgressBar.vue' let buildLog = {} @@ -89,7 +95,7 @@ async function loadBuildLog(keyboard) { buildLog[keyboard].message = `ERROR: ${e.message}` } - errorLogLoading.value = false; + errorLogLoading.value = false errorLog.value = buildLog[keyboard].message } @@ -176,6 +182,10 @@ body { #loading { margin-top: 1em; + display: flex; + flex-direction: column; + align-items: center; + gap: 32px; } @media (max-width: 640px) { diff --git a/src/components/ProgressBar.vue b/src/components/ProgressBar.vue new file mode 100644 index 0000000..8be1d35 --- /dev/null +++ b/src/components/ProgressBar.vue @@ -0,0 +1,48 @@ + + + + + From 7bc283e6ae609b0514f34ef39a64332cae87a658 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Wed, 3 Jul 2024 16:58:53 +1000 Subject: [PATCH 2/2] Remove spinning atom --- package.json | 3 --- src/App.vue | 1 - src/main.js | 7 ------- yarn.lock | 24 ------------------------ 4 files changed, 35 deletions(-) diff --git a/package.json b/package.json index d5c0ec5..b3a3479 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,6 @@ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore" }, "dependencies": { - "@fortawesome/fontawesome-svg-core": "^6.4.0", - "@fortawesome/free-solid-svg-icons": "^6.4.0", - "@fortawesome/vue-fontawesome": "^3.0.3", "ansi-to-html": "^0.7.2", "axios": "^1.4.0", "lodash": "^4.17.21", diff --git a/src/App.vue b/src/App.vue index 2a8fd8e..7a8fc4c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,6 @@