diff --git a/bun.lockb b/bun.lockb index e5cda09..15c011f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 79d5360..176713d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "serve": "vite preview" }, "dependencies": { - "@commitlint/config-conventional": "^19.0.3", + "@commitlint/config-conventional": "^19.1.0", "@felte/solid": "^1.2.13", "@felte/validator-zod": "^1.0.17", "@fontsource/fira-sans": "^5.0.19", @@ -28,24 +28,24 @@ "@solid-primitives/storage": "^2.1.4", "@solid-primitives/timer": "^1.3.9", "@solid-primitives/websocket": "^1.2.2", - "@solidjs/router": "^0.9.1", + "@solidjs/router": "^0.13.1", "@tabler/icons-solidjs": "^2.47.0", "@tanstack/match-sorter-utils": "^8.11.8", - "@tanstack/solid-table": "^8.13.2", + "@tanstack/solid-table": "^8.14.0", "@tanstack/solid-virtual": "3.0.2", "@tanstack/virtual-core": "3.0.2", "@thisbeyond/solid-dnd": "^0.7.5", "@types/byte-size": "^8.1.2", - "@types/lodash": "^4.14.202", - "@types/node": "^20.11.25", + "@types/lodash": "^4.17.0", + "@types/node": "^20.11.30", "@types/uuid": "^9.0.8", - "@typescript-eslint/eslint-plugin": "^7.1.1", - "@typescript-eslint/parser": "^7.1.1", + "@typescript-eslint/eslint-plugin": "^7.3.1", + "@typescript-eslint/parser": "^7.3.1", "@vite-pwa/assets-generator": "^0.2.4", - "apexcharts": "^3.47.0", + "apexcharts": "^3.48.0", "autoprefixer": "^10.4.18", "byte-size": "^8.1.1", - "commitlint": "^19.0.3", + "commitlint": "^19.2.1", "daisyui": "^4.7.3", "dayjs": "^1.11.10", "eslint": "^8.57.0", @@ -61,16 +61,16 @@ "prettier-plugin-organize-imports": "^3.2.4", "prettier-plugin-tailwindcss": "^0.5.12", "solid-apexcharts": "^0.3.4", - "solid-js": "^1.8.15", + "solid-js": "^1.8.16", "solid-toast": "^0.5.0", "sort-package-json": "^2.8.0", - "tailwind-merge": "^2.2.1", + "tailwind-merge": "^2.2.2", "tailwindcss": "^3.4.1", "typescript": "^5.4.2", "uuid": "^9.0.1", - "vite": "^5.1.5", - "vite-plugin-pwa": "^0.19.2", - "vite-plugin-solid": "^2.10.1", + "vite": "^5.1.6", + "vite-plugin-pwa": "^0.19.5", + "vite-plugin-solid": "^2.10.2", "zod": "^3.22.4" } } diff --git a/src/App.tsx b/src/App.tsx index 89edb7c..72d5f49 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,7 @@ import { usePrefersDark } from '@solid-primitives/media' -import { Navigate, Route, Routes } from '@solidjs/router' -import { Show, createEffect, lazy } from 'solid-js' -import { Toaster } from 'solid-toast' +import { ParentComponent, Show, createEffect } from 'solid-js' import { twMerge } from 'tailwind-merge' import { Header } from '~/components' -import { ROUTES } from '~/constants' -import { I18nProvider, locale } from '~/i18n' import { WsMsg, autoSwitchTheme, @@ -19,14 +15,6 @@ import { useWsRequest, } from '~/signals' -const Setup = lazy(() => import('~/pages/Setup')) -const Overview = lazy(() => import('~/pages/Overview')) -const Connections = lazy(() => import('~/pages/Connections')) -const Logs = lazy(() => import('~/pages/Logs')) -const Proxies = lazy(() => import('~/pages/Proxies')) -const Rules = lazy(() => import('~/pages/Rules')) -const Config = lazy(() => import('~/pages/Config')) - const ProtectedResources = () => { const latestConnectionMsg = useWsRequest('connections') @@ -35,7 +23,7 @@ const ProtectedResources = () => { return null } -export const App = () => { +export const App: ParentComponent = ({ children }) => { const prefersDark = usePrefersDark() createEffect(() => { @@ -44,40 +32,22 @@ export const App = () => { }) return ( - -
-
+
+
-
-
- - - - - - - - - } /> - - - - - - - - -
-
- - +
+
{children}
- + + + + +
) } diff --git a/src/components/ConnectionsSettingsModal.tsx b/src/components/ConnectionsSettingsModal.tsx index 22c5850..f03d514 100644 --- a/src/components/ConnectionsSettingsModal.tsx +++ b/src/components/ConnectionsSettingsModal.tsx @@ -69,7 +69,7 @@ const TagClientSourceIPWithNameForm: Component = () => { return (
-