From fa89cba0b06d8c1ec2c981c9600d1e403da41e9e Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 23 Oct 2023 15:50:15 +0200 Subject: [PATCH] put dashboard config back into dashboard app repo --- Dockerfile | 3 +- data/apps.json | 132 ++++++++++++++++++++++++-------------------- data/bookmarks.json | 98 -------------------------------- data/imprint.json | 25 --------- data/search.json | 19 +------ 5 files changed, 77 insertions(+), 200 deletions(-) delete mode 100644 data/bookmarks.json delete mode 100644 data/imprint.json diff --git a/Dockerfile b/Dockerfile index 902c0af..1bbbc79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN yarn install COPY . ./ RUN yarn build -FROM ratisbonacoding/nginx-cloudflare-cache +FROM nginx:1.25-alpine3.18 COPY --from=build /app/build /app +COPY data /app/data COPY nginx.conf /etc/nginx/nginx.conf \ No newline at end of file diff --git a/data/apps.json b/data/apps.json index d7eafe3..00f1f16 100644 --- a/data/apps.json +++ b/data/apps.json @@ -1,71 +1,85 @@ { "categories": [ - { - "name": "Networking", - "items": [ - { - "name": "pfSense", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "security" - }, - { - "name": "Pihole", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "vpn_lock" - } - ] - }, { "name": "Monitoring", "items": [ { - "name": "Tautulli", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "bar_chart" + "name": "Grafana", + "displayURL": "grafana.services.yolokube.de", + "url": "https://grafana.services.yolokube.de", + "icon": "show_chart", + "newTab": true }, { - "name": "Grafana", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "show_chart" + "name": "Prometheus", + "displayURL": "prometheus.services.yolokube.de", + "url": "https://prometheus.services.yolokube.de", + "icon": "done", + "newTab": true + }, + { + "name": "Alert Manager", + "displayURL": "alertmanager.services.yolokube.de", + "url": "https://alertmanager.services.yolokube.de", + "icon": "notifications", + "newTab": true + } + ] + }, + { + "name": "Storage", + "items": [ + { + "name": "Longhorn", + "displayURL": "longhorn.services.yolokube.de", + "url": "https://longhorn.services.yolokube.de", + "icon": "save", + "newTab": true + } + ] + }, + { + "name": "Deployment", + "items": [ + { + "name": "Argo", + "displayURL": "argo.services.yolokube.de", + "url": "https://argo.services.yolokube.de", + "icon": "play_arrow", + "newTab": true + } + ] + }, + { + "name": "GitOps", + "items": [ + { + "name": "Gitea", + "displayURL": "git.ar21.de", + "url": "https://git.ar21.de", + "icon": "alt_route", + "newTab": true + }, + { + "name": "DroneCI", + "displayURL": "drone.ar21.de", + "url": "https://drone.ar21.de", + "icon": "engineering", + "newTab": true + } + ] + }, + { + "name": "Applications", + "items": [ + { + "name": "Paste", + "displayURL": "paste.apps.yolokube.de", + "url": "https://paste.apps.yolokube.de", + "icon": "description", + "newTab": true } ] } - ], - "apps": [ - { - "name": "Plex", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "tv" - }, - { - "name": "NextCloud", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "filter_drama" - }, - { - "name": "Ghost", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "rss_feed" - }, - { - "name": "Minecraft", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "games" - }, - - { - "name": "ESXi", - "displayURL": "example.com", - "url": "https://example.com", - "icon": "dns" - } ] -} +} \ No newline at end of file diff --git a/data/bookmarks.json b/data/bookmarks.json deleted file mode 100644 index 49193ce..0000000 --- a/data/bookmarks.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "groups": [ - { - "name": "Wikis", - "items": [ - { - "name": "Wikipedia", - "url": "https://en.wikipedia.org/" - }, - { - "name": "Arch Linux Wiki", - "url": "https://archlinux.org/" - } - ] - }, - { - "name": "Dev", - "items": [ - { - "name": "Codepen", - "url": "https://codepen.io/" - }, - { - "name": "JSFiddle", - "url": "https://jsfiddle.net/" - }, - { - "name": "Pastebin", - "url": "https://pastebin.com/" - } - ] - }, - { - "name": "Media", - "items": [ - { - "name": "Soundcloud", - "url": "https://soundcloud.com" - }, - { - "name": "YouTube", - "url": "https://youtube.com" - }, - { - "name": "Twitch", - "url": "https://twitch.tv" - } - ] - }, - { - "name": "Social Networks", - "items": [ - { - "name": "Facebook", - "url": "https://facebook.com" - }, - { - "name": "Twitter", - "url": "https://twitter.com" - }, - { - "name": "Instagram", - "url": "https://instagram.com" - } - ] - }, - { - "name": "Imageboards", - "items": [ - { - "name": "Reddit", - "url": "https://reddit.com" - }, - { - "name": "4chan", - "url": "https://4chan.org" - } - ] - }, - { - "name": "Tech", - "items": [ - { - "name": "Hackernoon", - "url": "https://hackernoon.com" - }, - { - "name": "The Verge", - "url": "https://theverge.com" - }, - { - "name": "Hackernews", - "url": "https://news.ycombinator.com" - } - ] - } - ] -} diff --git a/data/imprint.json b/data/imprint.json deleted file mode 100644 index c143aed..0000000 --- a/data/imprint.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "imprint": { - "name": { - "text": "John Doe", - "link": "#" - }, - "address": { - "text": "Null Ave. 1234, 90008 Los Angeles", - "link": "#" - }, - "phone": { - "text": "+1-202-555-0167", - "link": "#" - }, - "email": { - "text": "doe.john@example.com", - "link": "#" - }, - "url": { - "text": "example.com", - "link": "#" - }, - "text": "This is the place where you should put whatever you want it to say on the imprint page." - } -} diff --git a/data/search.json b/data/search.json index f1add11..4dc39e7 100644 --- a/data/search.json +++ b/data/search.json @@ -1,6 +1,6 @@ { "placeholder": "", - "defaultProvider": "https://google.com/search?q=", + "defaultProvider": "https://duckduckgo.com/?q=", "autoFocus": false, "providers": [ { @@ -13,11 +13,6 @@ "url": "https://www.discogs.com/search/?q=", "prefix": "/di" }, - { - "name": "Duck Duck Go", - "url": "https://duckduckgo.com/?q=", - "prefix": "/d" - }, { "name": "iMDB", "url": "https://www.imdb.com/find?q=", @@ -33,11 +28,6 @@ "url": "https://www.reddit.com/search?q=", "prefix": "/r" }, - { - "name": "Qwant", - "url": "https://www.qwant.com/?q=", - "prefix": "/q" - }, { "name": "Soundcloud", "url": "https://soundcloud.com/search?q=", @@ -53,15 +43,10 @@ "url": "https://www.thetvdb.com/search?q=", "prefix": "/tv" }, - { - "name": "Trakt", - "url": "https://trakt.tv/search?query=", - "prefix": "/t" - }, { "name": "YouTube", "url": "https://youtube.com/results?search_query=", "prefix": "/yt" } ] -} +} \ No newline at end of file