Skip to content

Commit

Permalink
Remove design system
Browse files Browse the repository at this point in the history
It was only a placeholder until we get some content.
  • Loading branch information
rudolfs committed Sep 5, 2024
1 parent 169866e commit 5b33e1e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 44 deletions.
3 changes: 0 additions & 3 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { unreachable } from "@app/lib/utils";
import AuthenticationError from "@app/views/AuthenticationError.svelte";
import DesignSystem from "@app/views/DesignSystem.svelte";
import Home from "@app/views/Home.svelte";
const activeRouteStore = router.activeRouteStore;
Expand Down Expand Up @@ -44,8 +43,6 @@
<Home {...$activeRouteStore.params} />
{:else if $activeRouteStore.resource === "authenticationError"}
<AuthenticationError {...$activeRouteStore.params} />
{:else if $activeRouteStore.resource === "designSystem"}
<DesignSystem />
{:else}
{unreachable($activeRouteStore)}
{/if}
8 changes: 0 additions & 8 deletions src/lib/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ function setTitle(loadedRoute: LoadedRoute) {
} else if (loadedRoute.resource === "authenticationError") {
title.push("Authentication Error");
title.push("Radicle");
} else if (loadedRoute.resource === "designSystem") {
title.push("Design System");
title.push("Radicle");
} else {
utils.unreachable(loadedRoute);
}
Expand All @@ -126,9 +123,6 @@ function urlToRoute(url: URL): Route | null {
case "authenticationError": {
return { resource: "authenticationError", params: { error: "" } };
}
case "designSystem": {
return { resource: "designSystem" };
}
default: {
return null;
}
Expand All @@ -140,8 +134,6 @@ export function routeToPath(route: Route): string {
return "/";
} else if (route.resource === "authenticationError") {
return "/authenticationError";
} else if (route.resource === "designSystem") {
return "/designSystem";
} else if (route.resource === "booting") {
return "";
} else {
Expand Down
11 changes: 1 addition & 10 deletions src/lib/router/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@ interface LoadedHomeRoute {
params: { repos: RepoInfo[]; config: Config };
}

interface DesignSystemRoute {
resource: "designSystem";
}

export type Route =
| BootingRoute
| DesignSystemRoute
| HomeRoute
| AuthenticationErrorRoute;
export type Route = BootingRoute | HomeRoute | AuthenticationErrorRoute;

export type LoadedRoute =
| BootingRoute
| DesignSystemRoute
| LoadedHomeRoute
| AuthenticationErrorRoute;

Expand Down
18 changes: 0 additions & 18 deletions src/views/DesignSystem.svelte

This file was deleted.

5 changes: 0 additions & 5 deletions src/views/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import type { RepoInfo } from "@bindings/RepoInfo";
import Header from "@app/components/Header.svelte";
import Link from "@app/components/Link.svelte";
import RepoCard from "@app/components/RepoCard.svelte";
export let repos: RepoInfo[];
Expand All @@ -30,8 +29,4 @@
{/if}
{/each}
</div>

<div style:margin-top="1rem">
👉 <Link route={{ resource: "designSystem" }}>Design System</Link>
</div>
</div>

0 comments on commit 5b33e1e

Please sign in to comment.