chore: restart the repository with a clean history
CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
Squash the tree into one commit, drop docs/architecture.html, reset the version line to 0.3.0, consolidate the changelog, enable Renovate automerge for non-major updates and add AGENTS.md.
This commit is contained in:
438 files changed
+45070
No files matched your search
@@ -0,0 +1,94 @@
|
||||
import "@fontsource/plus-jakarta-sans/300.css";
|
||||
import "@fontsource/plus-jakarta-sans/400.css";
|
||||
import "@fontsource/plus-jakarta-sans/600.css";
|
||||
import "@fontsource/plus-jakarta-sans/700.css";
|
||||
import "@fontsource/plus-jakarta-sans/800.css";
|
||||
import { createBrowserRouter, Navigate, RouterProvider } from "react-router-dom";
|
||||
import "@/common/styles/main.sass";
|
||||
import { lazy, Suspense } from "react";
|
||||
import Root from "@/common/layouts/Root.jsx";
|
||||
import PublicRoot from "@/common/layouts/PublicRoot.jsx";
|
||||
import { ErrorBoundary, RouteErrorPage } from "@/common/components/ErrorBoundary";
|
||||
import PublicShell from "@/common/layouts/PublicShell.jsx";
|
||||
import Loading from "@/common/components/Loading";
|
||||
|
||||
const Tunnels = lazy(() => import("@/pages/Tunnels"));
|
||||
const TunnelDetail = lazy(() => import("@/pages/TunnelDetail"));
|
||||
const Settings = lazy(() => import("@/pages/Settings"));
|
||||
const SettingsServer = lazy(() => import("@/pages/Settings/pages/Server"));
|
||||
const SettingsForwarding = lazy(() => import("@/pages/Settings/pages/Forwarding"));
|
||||
const SettingsHttps = lazy(() => import("@/pages/Settings/pages/Https"));
|
||||
const SettingsDevices = lazy(() => import("@/pages/Settings/pages/Devices"));
|
||||
const SettingsAccount = lazy(() => import("@/pages/Settings/pages/Account"));
|
||||
const SettingsAccounts = lazy(() => import("@/pages/Settings/pages/Accounts"));
|
||||
const SettingsProviders = lazy(() => import("@/pages/Settings/pages/Providers"));
|
||||
const Setup = lazy(() => import("@/pages/Setup"));
|
||||
const Login = lazy(() => import("@/pages/Login"));
|
||||
const Select = lazy(() => import("@/pages/Select"));
|
||||
const Status = lazy(() => import("@/pages/Status"));
|
||||
const Handoff = lazy(() => import("@/pages/Handoff"));
|
||||
const Connect = lazy(() => import("@/pages/Connect"));
|
||||
const Invite = lazy(() => import("@/pages/Invite"));
|
||||
|
||||
export const BASE_PATH = "/@frislit";
|
||||
export const GITHUB_URL = "https://git.fristy.net/fristy/frislit";
|
||||
export const DOCS_URL = "https://git.fristy.net/fristy/frislit#documentation";
|
||||
export const AUTHOR_URL = "https://gnm.dev";
|
||||
export const FORK_URL = "https://fristy.dev";
|
||||
|
||||
const App = () => {
|
||||
const bootState = typeof window !== "undefined" ? window.__frislit__ : null;
|
||||
if (bootState) {
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<PublicShell>
|
||||
<Suspense fallback={<Loading />}>
|
||||
<Status {...bootState} />
|
||||
</Suspense>
|
||||
</PublicShell>
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <Root />,
|
||||
errorElement: <RouteErrorPage />,
|
||||
children: [
|
||||
{ path: "/", element: <Navigate to="/tunnels" replace /> },
|
||||
{ path: "/tunnels", element: <Tunnels /> },
|
||||
{ path: "/tunnels/:id", element: <TunnelDetail /> },
|
||||
{
|
||||
path: "/settings", element: <Settings />, children: [
|
||||
{ path: "server", element: <SettingsServer /> },
|
||||
{ path: "forwarding", element: <SettingsForwarding /> },
|
||||
{ path: "https", element: <SettingsHttps /> },
|
||||
{ path: "devices", element: <SettingsDevices /> },
|
||||
{ path: "accounts", element: <SettingsAccounts /> },
|
||||
{ path: "providers", element: <SettingsProviders /> },
|
||||
{ path: "account", element: <SettingsAccount /> },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
element: <PublicRoot />,
|
||||
errorElement: <RouteErrorPage />,
|
||||
children: [
|
||||
{ path: "/setup", element: <Setup /> },
|
||||
{ path: "/login", element: <Login /> },
|
||||
{ path: "/select", element: <Select /> },
|
||||
{ path: "/reattach", element: <Status kind="reattach" /> },
|
||||
{ path: "/handoff", element: <Handoff /> },
|
||||
{ path: "/connect/:code", element: <Connect /> },
|
||||
{ path: "/invite/:token", element: <Invite /> },
|
||||
],
|
||||
},
|
||||
], { basename: BASE_PATH });
|
||||
|
||||
return <RouterProvider router={router} />;
|
||||
};
|
||||
|
||||
export default App;
|
||||
Reference in new issue
Block a user