From c06f0adaf8539ddc795c5d63353113491231dd02 Mon Sep 17 00:00:00 2001 From: pheralb Date: Fri, 26 Jan 2024 23:57:13 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=A6=20Add=20``mode-watcher``=20lib?= =?UTF-8?q?rary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/package.json b/package.json index dfa4ac4..81b9d88 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "downloadjs": "1.4.7", "jszip": "3.10.1", "lucide-svelte": "0.314.0", + "mode-watcher": "0.1.2", "shiki": "0.14.7", "svelte-sonner": "0.3.6", "tailwind-merge": "2.2.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cdd1ff4..ec751c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,6 +29,9 @@ dependencies: lucide-svelte: specifier: 0.314.0 version: 0.314.0(svelte@4.2.9) + mode-watcher: + specifier: 0.1.2 + version: 0.1.2(svelte@4.2.9) shiki: specifier: 0.14.7 version: 0.14.7 @@ -2047,6 +2050,14 @@ packages: ufo: 1.3.2 dev: true + /mode-watcher@0.1.2(svelte@4.2.9): + resolution: {integrity: sha512-XTdPCdqC3kqSvB+Q262Kor983YJkkB2Z3vj9uqg5IqKQpOdiz+xB99Jihp8sWbyM67drC7KKp0Nt5FzCypZi2g==} + peerDependencies: + svelte: ^4.0.0 + dependencies: + svelte: 4.2.9 + dev: false + /mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} From b2caf5c371e44fce11ae27bd31a7a3a589872da9 Mon Sep 17 00:00:00 2001 From: pheralb Date: Fri, 26 Jan 2024 23:57:29 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8E=A8=20Update=20theme=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/theme.svelte | 53 +++---------------------------------- src/routes/+layout.svelte | 10 ++++--- 2 files changed, 9 insertions(+), 54 deletions(-) diff --git a/src/components/theme.svelte b/src/components/theme.svelte index d1d3900..cbfb0d3 100644 --- a/src/components/theme.svelte +++ b/src/components/theme.svelte @@ -1,59 +1,12 @@ - - - - - + {#if typeof svgInfo.route === 'string'} +
+ {svgInfo.title} + +
+ {:else} +
+ {svgInfo.title} + - + - -
+ + + {/if} {#if typeof svgInfo.wordmark === 'string' && svgInfo.wordmark !== undefined}