From 2565cabe38a00ef4c8f0b2f2fb722d6d1228e256 Mon Sep 17 00:00:00 2001 From: Khairul Hidayat Date: Mon, 4 Nov 2024 07:43:55 +0000 Subject: [PATCH] chore: update apps, color, etc --- src/launcher.ts | 8 +++----- src/quick-launch.ts | 14 ++++++-------- src/style.css | 2 +- vite.config.js | 4 ++-- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/launcher.ts b/src/launcher.ts index 1bc9aac..8007446 100644 --- a/src/launcher.ts +++ b/src/launcher.ts @@ -11,7 +11,7 @@ export const launcherItems: LauncherItem[] = [ }, { name: "Excalidraw", - href: "https://excalidraw.com/", + href: "https://draw.rul.sh", icon: "https://excalidraw.com/apple-touch-icon.png", }, { @@ -44,7 +44,7 @@ export const launcherItems: LauncherItem[] = [ { name: "Flatnotes", href: "http://100.64.0.3:8124", - icon: "https://github.com/dullage/flatnotes/blob/develop/client/public/android-chrome-192x192.png?raw=true", + icon: "https://raw.githubusercontent.com/dullage/flatnotes/refs/heads/develop/client/public/android-chrome-192x192.png", }, { name: "Gitea", @@ -157,15 +157,13 @@ export const launcherItems: LauncherItem[] = [ }, { name: "Incus UI", - href: "https://164.152.166.61:8443/", + href: "https://srv:8443/", icon: "https://linuxcontainers.org/static/img/containers.small.png", - disabled: true, }, { name: "Incus UI (Armbian)", href: "https://armbian:8443", icon: "https://linuxcontainers.org/static/img/containers.small.png", - disabled: true, }, ]; diff --git a/src/quick-launch.ts b/src/quick-launch.ts index 1d6a75e..3aadfba 100644 --- a/src/quick-launch.ts +++ b/src/quick-launch.ts @@ -6,16 +6,14 @@ export const initQuickLaunch = () => { throw new Error("Could not find quick-launch container"); } - const pinnedItems = launcherItems.filter((item) => item.pinned); - - container.innerHTML = pinnedItems - .filter((item) => item.disabled !== true) + container.innerHTML = launcherItems + .filter((item) => item.pinned && item.disabled !== true) .map((item) => { return ` - - ${item.name} - - `; + + ${item.name} + + `; }) .join(""); }; diff --git a/src/style.css b/src/style.css index 3411a7b..0d32682 100644 --- a/src/style.css +++ b/src/style.css @@ -5,7 +5,7 @@ html, body, #app { - @apply w-full h-screen max-h-dvh relative bg-gray-900 overflow-hidden p-0; + @apply w-full h-screen max-h-dvh relative bg-[#1b1e2b] overflow-hidden p-0; } .background { diff --git a/vite.config.js b/vite.config.js index d8efa56..4fe618c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -21,8 +21,8 @@ export default defineConfig({ type: "image/png", }, ], - theme_color: "#ffffff", - background_color: "#ffffff", + theme_color: "#1b1e2b", + background_color: "#1b1e2b", display: "standalone", }, }),