From d403dd453a0fbe19b29230a83f6615baec2cf4b0 Mon Sep 17 00:00:00 2001 From: DasWizardTales Date: Tue, 23 Jul 2024 12:22:44 +0530 Subject: [PATCH] fix: color scheme --- package-lock.json | 7 +++- package.json | 4 +- src/components/HeartbeatBar.vue | 54 --------------------------- src/components/HeartbeatBarStatus.vue | 47 +++++++++++++++++------ 4 files changed, 42 insertions(+), 70 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9bf96464b..2aa54c8fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,9 +79,7 @@ "tar": "~6.2.1", "tcp-ping": "~0.1.1", "thirty-two": "~1.0.2", - "tippy.js": "^6.3.7", "tough-cookie": "~4.1.3", - "vue3-calendar-heatmap": "^2.0.5", "ws": "^8.13.0" }, "devDependencies": { @@ -128,6 +126,7 @@ "stylelint-config-standard": "~25.0.0", "terser": "~5.15.0", "test": "~3.3.0", + "tippy.js": "^6.3.7", "typescript": "~4.4.4", "v-pagination-3": "~0.1.7", "vite": "~5.2.8", @@ -144,6 +143,7 @@ "vue-qrcode": "~1.0.0", "vue-router": "~4.2.5", "vue-toastification": "~2.0.0-rc.5", + "vue3-calendar-heatmap": "^2.0.5", "vuedraggable": "~4.1.0", "wait-on": "^7.2.0", "whatwg-url": "~12.0.1" @@ -3294,6 +3294,7 @@ "version": "2.10.2", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.10.2.tgz", "integrity": "sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ==", + "dev": true, "license": "MIT", "funding": { "type": "opencollective", @@ -14819,6 +14820,7 @@ "version": "6.3.7", "resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.7.tgz", "integrity": "sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==", + "dev": true, "license": "MIT", "dependencies": { "@popperjs/core": "^2.9.0" @@ -15768,6 +15770,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/vue3-calendar-heatmap/-/vue3-calendar-heatmap-2.0.5.tgz", "integrity": "sha512-qvveNQlTS5Aw7AvRLs0zOyu3uP5iGJlXJAnkrkG2ElDdyQ8H1TJhQ8rL702CROjAg16ezIveUY10nCO7lqZ25w==", + "dev": true, "license": "MIT", "engines": { "node": ">=16" diff --git a/package.json b/package.json index e513945e5..73e42aeec 100644 --- a/package.json +++ b/package.json @@ -144,9 +144,7 @@ "tar": "~6.2.1", "tcp-ping": "~0.1.1", "thirty-two": "~1.0.2", - "tippy.js": "^6.3.7", "tough-cookie": "~4.1.3", - "vue3-calendar-heatmap": "^2.0.5", "ws": "^8.13.0" }, "devDependencies": { @@ -193,6 +191,7 @@ "stylelint-config-standard": "~25.0.0", "terser": "~5.15.0", "test": "~3.3.0", + "tippy.js": "^6.3.7", "typescript": "~4.4.4", "v-pagination-3": "~0.1.7", "vite": "~5.2.8", @@ -209,6 +208,7 @@ "vue-qrcode": "~1.0.0", "vue-router": "~4.2.5", "vue-toastification": "~2.0.0-rc.5", + "vue3-calendar-heatmap": "^2.0.5", "vuedraggable": "~4.1.0", "wait-on": "^7.2.0", "whatwg-url": "~12.0.1" diff --git a/src/components/HeartbeatBar.vue b/src/components/HeartbeatBar.vue index c50ac8ca7..18b97ff50 100644 --- a/src/components/HeartbeatBar.vue +++ b/src/components/HeartbeatBar.vue @@ -311,60 +311,6 @@ export default { font-size: 12px; } -.connecting-line { - flex-grow: 1; - height: 1px; - background-color: #ededed; - margin-left: 10px; - margin-right: 10px; - margin-top: 2px; - - .dark & { - background-color: #333; - } -} - -.hp-bar-big { - .beat { - display: inline-block; - background-color: $primary; - border-radius: $border-radius; - - &.empty { - background-color: aliceblue; - } - - &.down { - background-color: $danger; - } - - &.pending { - background-color: $warning; - } - - &.maintenance { - background-color: $maintenance; - } - - &:not(.empty):hover { - transition: all ease-in-out 0.15s; - opacity: 0.8; - transform: scale(var(--hover-scale)); - } - } -} - -.dark { - .hp-bar-big .beat.empty { - background-color: #848484; - } -} - -.word { - color: #aaa; - font-size: 12px; -} - .connecting-line { flex-grow: 1; height: 1px; diff --git a/src/components/HeartbeatBarStatus.vue b/src/components/HeartbeatBarStatus.vue index 7c76392ed..9fe06d75d 100644 --- a/src/components/HeartbeatBarStatus.vue +++ b/src/components/HeartbeatBarStatus.vue @@ -2,9 +2,12 @@
@@ -52,16 +55,11 @@ export default { this.resize(); }, methods: { - /** - * Resize the heartbeat bar - * @returns {void} - */ resize() { if (this.$refs.wrap) { this.maxBeat = Math.floor(this.$refs.wrap.clientWidth / (this.beatWidth + this.beatMargin * 2)); } }, - }, }; @@ -69,13 +67,38 @@ export default {