From 54be2b78e410ff754fb51cfadbcce053dd0377e7 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 15 Nov 2023 17:10:34 +0100 Subject: [PATCH] Simplify nodeStore, and make it part of the httpdStore --- src/App.svelte | 2 - src/App/Header.svelte | 5 +- src/lib/httpd.ts | 24 ++++----- src/lib/node.ts | 91 -------------------------------- src/views/projects/Issues.svelte | 5 +- 5 files changed, 14 insertions(+), 113 deletions(-) delete mode 100644 src/lib/node.ts diff --git a/src/App.svelte b/src/App.svelte index 400f12e5f..98dcf737c 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -3,7 +3,6 @@ import * as router from "@app/lib/router"; import * as httpd from "@app/lib/httpd"; - import * as node from "@app/lib/node"; import { unreachable } from "@app/lib/utils"; import Footer from "./App/Footer.svelte"; @@ -31,7 +30,6 @@ const activeRouteStore = router.activeRouteStore; void httpd.initialize().finally(() => void router.loadFromLocation()); - void node.initialize(); if (!window.VITEST && !window.PLAYWRIGHT && import.meta.env.PROD) { const plausible = Plausible({ diff --git a/src/App/Header.svelte b/src/App/Header.svelte index 56a1ae134..b5f062ee8 100644 --- a/src/App/Header.svelte +++ b/src/App/Header.svelte @@ -4,7 +4,6 @@ import NodeInfo from "@app/App/Header/NodeInfo.svelte"; import Authenticate from "./Header/Authenticate.svelte"; import { httpdStore } from "@app/lib/httpd"; - import { nodeStore } from "@app/lib/node";