Skip to content

Commit 6643534

Browse files
committed
--wip--
1 parent bb49112 commit 6643534

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

frontend/layers/base/app/components/BaseColormode.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ const cookie = useBcCookie<'dark' | 'light'>('theme')
44
colorMode.preference = cookie.value || 'dark'
55
const handleUpdate = () => {
66
cookie.value = colorMode.preference as 'dark' | 'light'
7+
window.localStorage.setItem('theme', colorMode.preference)
78
}
89
</script>
910

1011
<template>
12+
<pre>
13+
{{ colorMode }}
14+
{{ cookie }}
15+
</pre>
1116
<BaseSwitch
1217
v-model="colorMode.preference"
1318
class="w-fit"

frontend/nuxt.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ export default defineNuxtConfig({
7171
'resize-detector',
7272
],
7373
},
74+
routeRules: {
75+
'**': {
76+
headers: {
77+
'Cache-Control': 'no-store',
78+
},
79+
},
80+
},
7481
devServer: {
7582
host: 'local.beaconcha.in',
7683
https: {

0 commit comments

Comments
 (0)