From 0e66eaabb3b4ce9423277c78e321ca2c1d4bc04b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 16 Jun 2024 16:23:46 +0200 Subject: [PATCH] Implement dashboard content Signed-off-by: Knut Ahlers --- ci/build.mjs | 1 + package-lock.json | 13 +++ package.json | 3 +- src/components/_headNav.vue | 4 +- src/components/_toast.vue | 1 - src/components/app.vue | 1 + src/components/dashboard.vue | 45 ++++++++- src/components/dashboard/_statuspanel.vue | 107 +++++++++++++++++++++ src/components/dashboard/activeRaffles.vue | 52 ++++++++++ src/components/dashboard/changelog.vue | 59 ++++++++++++ src/components/dashboard/healthcheck.vue | 63 ++++++++++++ src/components/dashboard/scopes.vue | 62 ++++++++++++ src/global.d.ts | 12 +++ src/helpers/busevents.ts | 2 + src/langs/en.json | 18 ++++ src/main.ts | 11 ++- 16 files changed, 444 insertions(+), 10 deletions(-) create mode 100644 src/components/dashboard/_statuspanel.vue create mode 100644 src/components/dashboard/activeRaffles.vue create mode 100644 src/components/dashboard/changelog.vue create mode 100644 src/components/dashboard/healthcheck.vue create mode 100644 src/components/dashboard/scopes.vue diff --git a/ci/build.mjs b/ci/build.mjs index f2531bb..52abd06 100644 --- a/ci/build.mjs +++ b/ci/build.mjs @@ -11,6 +11,7 @@ const buildOpts = { entryPoints: ['src/main.ts'], legalComments: 'none', loader: { + '.md': 'text', '.ttf': 'file', '.woff2': 'file', }, diff --git a/package-lock.json b/package-lock.json index e9cbb39..6546174 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "@fortawesome/fontawesome-free": "^6.5.2", "bootstrap": "^5.3.3", "codejar": "^4.2.0", + "marked": "^13.0.0", "mitt": "^3.0.1", "prismjs": "^1.29.0", "vue": "^3.4.28", @@ -2687,6 +2688,18 @@ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", "license": "MIT" }, + "node_modules/marked": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-13.0.3.tgz", + "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", diff --git a/package.json b/package.json index e8d34ae..f7c8f73 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "@fortawesome/fontawesome-free": "^6.5.2", "bootstrap": "^5.3.3", "codejar": "^4.2.0", + "marked": "^13.0.0", "mitt": "^3.0.1", "prismjs": "^1.29.0", "vue": "^3.4.28", @@ -22,4 +23,4 @@ "eslint-plugin-vue": "^9.26.0", "typescript": "^5.4.5" } -} +} \ No newline at end of file diff --git a/src/components/_headNav.vue b/src/components/_headNav.vue index dc55b5f..a2b6804 100644 --- a/src/components/_headNav.vue +++ b/src/components/_headNav.vue @@ -1,5 +1,5 @@