diff --git a/.gitignore b/.gitignore index 3751439..d5ee275 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,9 @@ yarn-debug.log* yarn-error.log* .pnpm-debug.log* +# do not track config files in public +/public/data/ + # production /build/ /data/ diff --git a/public/data/navbar.json b/config-templates/navbar.json.template similarity index 100% rename from public/data/navbar.json rename to config-templates/navbar.json.template diff --git a/config-templates/pages.json.template b/config-templates/pages.json.template new file mode 100644 index 0000000..22ed541 --- /dev/null +++ b/config-templates/pages.json.template @@ -0,0 +1,23 @@ +{ + "services": [ + { + "name": "Example", + "icon": "/icons/example1-logo.svg", + "href": "https://example.domain.com/", + "desc": "Example Description", + "warn": "Customizable Note", + "extLink": "https://external.com/", + "type": "docker", + "docker_container_name": "example", + "location": "location" + } + ], + "games": { + "server": { + "name": "Server Name", + "icon": "/icons/server-logo.png", + "href": "https://server.domain.com/", + "desc": "Description Content" + } + } +} diff --git a/config-templates/themes.json.template b/config-templates/themes.json.template new file mode 100644 index 0000000..a6a8469 --- /dev/null +++ b/config-templates/themes.json.template @@ -0,0 +1,31 @@ +{ + "themes": [ + { + "themeName": "Example", + "themeId": 0, + "colors": { + "background": "#ffffff", + "primary": "#00AAFF", + "secondary": "#FF5500", + "online": "#2BFF00", + "loading": "#D400FF", + "offline": "#FF002B" + } + }, + { + "themeName": "Example 2", + "themeId": 1, + "backgroundImage": "imageurl", + "colors": { + "background": "#0000", + "backgroundAlt": "#0000", + "primary": "#ccc", + "secondary": "#00C7C7", + "text": "#000", + "online": "#00ff00", + "loading": "#0063C7", + "offline": "#ff0000" + } + } + ] +} \ No newline at end of file diff --git a/public/data/pages.json b/public/data/pages.json deleted file mode 100644 index fe75a2f..0000000 --- a/public/data/pages.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "services": [ - { - "name": "Nextcloud", - "icon": "/icons/nextcloud-logo.svg", - "href": "https://nextcloud.neshweb.net/", - "desc": "Self-hosted Cloud Storage Service but longer and hopefully with wrap as well as some extra just to make sure", - "warn": "Note: Registration requires approval", - "extLink": "https://nextcloud.com/", - "type": "docker", - "docker_container_name": "nextcloud", - "location": "tower-0" - }, - { - "name": "Kavita", - "icon": "/icons/kavita-logo.svg", - "href": "https://kavita.neshweb.net", - "desc": "Self-hosted Manga Library", - "warn": "Registration via Admin invite", - "type": "docker", - "docker_container_name": "kavita", - "location": "tower-0" - }, - { - "name": "Calibre Web", - "icon": "/icons/calibre-logo.ico", - "href": "https://calibre.neshweb.net/", - "desc": "Self-hosted Ebook Library Service", - "warn": "Note: Registration only via Admin", - "type": "docker", - "docker_container_name": "calibre-web", - "location": "tower-0" - }, - { - "name": "PeerTube", - "icon": "/icons/peertube-logo.svg", - "href": "https://tube.neshweb.net/", - "desc": "Self-hosted PeerTube Instance", - "warn": "Note: Registration only via Admin", - "type": "docker", - "docker_container_name": "peertube", - "location": "tower-0" - }, - { - "name": "Mastodon", - "icon": "/icons/mastodon-logo.svg", - "href": "https://mastodon.neshweb.net/", - "desc": "Self-hosted Mastodon Instance", - "warn": "Note: Registration requires approval", - "type": "docker", - "docker_container_name": "mastodon-web", - "location": "tower-0" - }, - - { - "name": "Vaultwarden", - "icon": "/icons/vaultwarden-logo.svg", - "href": "https://vault.neshweb.net", - "desc": "Self-hosted Password Manager", - "warn": "Note: Invite only", - "type": "docker", - "docker_container_name": "vaultwarden", - "location": "tower-0" - }, - { - "name": "File Browser", - "href": "https://files.neshweb.net/", - "desc": "Server File Browser", - "warn": "Note: Registration only via Admin", - "type": "docker", - "docker_container_name": "filebrowser", - "location": "tower-0" - }, - { - "name": "Jellyfin", - "icon": "/icons/jellyfin-logo.svg", - "href": "https://jellyfin.neshweb.net/", - "desc": "Open-Source, Self-Hosted Media Platform", - "warn": "Note: Registration only via Admin", - "type": "docker", - "docker_container_name": "jellyfin", - "location": "tower-0" - }, - { - "name": "Navidrome", - "icon": "/icons/navidrome-logo.png", - "href": "https://navidrome.neshweb.net/", - "desc": "Open-Source, Self-Hosted Music Streaming Platform", - "warn": "Note: Registration only via Admin", - "type": "docker", - "docker_container_name": "navidrome", - "location": "tower-0" - }, - { - "name": "Picard", - "href": "https://picard.neshweb.net/", - "desc": "MP3 Tagger", - "warn": "Note: Access only via Admin", - "type": "docker", - "docker_container_name": "picard", - "location": "tower-0" - }, - { - "name": "Gitlab", - "icon": "/icons/gitlab-logo.svg", - "href": "https://gitlab.neshweb.net/", - "desc": "Self-hosted Git Service", - "warn": "Note: Registration only via Admin", - "type": "docker", - "docker_container_name": "gitlab", - "location": "tower-0" - }, - { - "name": "Portainer", - "icon": "/icons/portainer-logo.png", - "href": "https://portainer.neshweb.net/", - "desc": "Docker Container Manager", - "warn": "Note: Admin Only", - "type": "docker", - "docker_container_name": "portainer", - "location": "tower-0" - }, - { - "name": "Nginx", - "icon": "/icons/npm-logo.png", - "href": "https://nginx.neshweb.net/", - "desc": "Web-based Nginx Proxy Manager", - "warn": "Note: Admin Only", - "type": "docker", - "docker_container_name": "nginx-prox", - "location": "tower-0" - }, - { - "name": "Debug1", - "href": "https://qwant.com", - "desc": "Debug Debug Debug", - "warn": "Note: Debug", - "extLink": "https://qwant.com", - "type": "docker", - "docker_container_name": "matomo-web", - "location": "tower-0" - }, - { - "name": "Debug2", - "desc": "Debug Debug Debug", - "warn": "Note: Debug", - "extLink": "https://qwant.com", - "type": "docker", - "docker_container_name": "Debug", - "location": "tower-0" - }, - { - "name": "Proxmox", - "icon": "/icons/proxmox-logo.png", - "href": "https://proxmox.neshweb.net/", - "desc": "Hypervisor Webinterface", - "warn": "Note: Admin Only", - "type": "app", - "location": "" - } - ], - "games": { - "minecraft": { - "name": "Minecraft", - "icon": "/icons/minecraft-logo.png", - "href": "https://minecraft.neshweb.net/", - "desc": "View all currently available Minecraft Servers and their mods" - }, - "ready_or_not": { - "name": "Ready or Not", - "icon": "/icons/ron-logo.png", - "href": "https://readyornot.neshweb.net/", - "desc": "Collection of Floor Plans for the Game 'Ready or Not'" - }, - "zomboid": { - "name": "Zomboid", - "icon": "/icons/zomboid-logo.png", - "ip": "91.13.248.30", - "status": "Online" - }, - "factorio": { - "name": "Factorio", - "status": "Online" - }, - "space_engineers": { - "name": "Space Engineers", - "status": "Online" - } - } -} diff --git a/public/data/themes.json b/public/data/themes.json deleted file mode 100644 index ed306a4..0000000 --- a/public/data/themes.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "themes": [ - { - "themeName": "Cancer - Blue", - "themeId": 0, - "colors": { - "background": "#ffffff", - "primary": "#00AAFF", - "secondary": "#FF5500", - "online": "#2BFF00", - "loading": "#D400FF", - "offline": "#FF002B" - } - }, - { - "themeName": "Dark - Blue", - "themeId": 1, - "colors": { - "background": "#161616", - "backgroundAlt": "#000000", - "primary": "#00AAFF", - "secondary": "#FF5500", - "online": "#2BFF00", - "loading": "#D400FF", - "offline": "#FF002B" - } - }, - { - "themeName": "AMOLED - Blue", - "themeId": 2, - "colors": { - "background": "#000000", - "backgroundAlt": "#161616", - "primary": "#00AAFF", - "secondary": "#FF5500", - "online": "#2BFF00", - "loading": "#D400FF", - "offline": "#FF002B" - } - }, - { - "themeName": "AMOLED - Purple", - "themeId": 3, - "colors": { - "background": "#000000", - "backgroundAlt": "#161616", - "primary": "#886aff", - "secondary": "#E1FF6A", - "online": "#00ff00", - "loading": "#FF6A97", - "offline": "#ff0000" - } - }, - { - "themeName": "Nordlys", - "themeId": 4, - "backgroundImage": "https://images4.alphacoders.com/112/1123390.jpg", - "backgroundOffset": "60%", - "colors": { - "background": "#0008", - "primary": "#ccc", - "secondary": "#00C7C7", - "online": "#00ff00", - "loading": "#0063C7", - "offline": "#ff0000" - } - }, - { - "themeName": "dev", - "themeId": 5, - "backgroundImage": "https://images4.alphacoders.com/112/1123390.jpg", - "colors": { - "background": "#0000", - "backgroundAlt": "#0000", - "primary": "#ccc", - "secondary": "#00C7C7", - "text": "#000", - "online": "#00ff00", - "loading": "#0063C7", - "offline": "#ff0000" - } - } - ] -} \ No newline at end of file