update sveltekit, migrate to $app/state

This commit is contained in:
sam 2024-12-17 23:33:05 +01:00
parent 80385893c7
commit 397ffc2d5e
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 141 additions and 141 deletions

View file

@ -13,7 +13,7 @@
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-node": "^5.2.10", "@sveltejs/adapter-node": "^5.2.10",
"@sveltejs/kit": "^2.11.1", "@sveltejs/kit": "^2.12.1",
"@sveltejs/vite-plugin-svelte": "^4.0.3", "@sveltejs/vite-plugin-svelte": "^4.0.3",
"@sveltestrap/sveltestrap": "^6.2.7", "@sveltestrap/sveltestrap": "^6.2.7",
"@types/eslint": "^9.6.1", "@types/eslint": "^9.6.1",
@ -28,12 +28,12 @@
"prettier": "^3.4.2", "prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2", "prettier-plugin-svelte": "^3.3.2",
"sass": "^1.83.0", "sass": "^1.83.0",
"svelte": "^5.13.0", "svelte": "^5.14.2",
"svelte-bootstrap-icons": "^3.1.1", "svelte-bootstrap-icons": "^3.1.1",
"svelte-check": "^4.1.1", "svelte-check": "^4.1.1",
"sveltekit-i18n": "^2.4.2", "sveltekit-i18n": "^2.4.2",
"typescript": "^5.7.2", "typescript": "^5.7.2",
"typescript-eslint": "^8.18.0", "typescript-eslint": "^8.18.1",
"vite": "^5.4.11" "vite": "^5.4.11"
}, },
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c", "packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",

View file

@ -44,16 +44,16 @@ importers:
devDependencies: devDependencies:
'@sveltejs/adapter-node': '@sveltejs/adapter-node':
specifier: ^5.2.10 specifier: ^5.2.10
version: 5.2.10(@sveltejs/kit@2.11.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0))) version: 5.2.10(@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))
'@sveltejs/kit': '@sveltejs/kit':
specifier: ^2.11.1 specifier: ^2.12.1
version: 2.11.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)) version: 2.12.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))
'@sveltejs/vite-plugin-svelte': '@sveltejs/vite-plugin-svelte':
specifier: ^4.0.3 specifier: ^4.0.3
version: 4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)) version: 4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))
'@sveltestrap/sveltestrap': '@sveltestrap/sveltestrap':
specifier: ^6.2.7 specifier: ^6.2.7
version: 6.2.7(svelte@5.13.0) version: 6.2.7(svelte@5.14.2)
'@types/eslint': '@types/eslint':
specifier: ^9.6.1 specifier: ^9.6.1
version: 9.6.1 version: 9.6.1
@ -77,7 +77,7 @@ importers:
version: 9.1.0(eslint@9.17.0) version: 9.1.0(eslint@9.17.0)
eslint-plugin-svelte: eslint-plugin-svelte:
specifier: ^2.46.1 specifier: ^2.46.1
version: 2.46.1(eslint@9.17.0)(svelte@5.13.0) version: 2.46.1(eslint@9.17.0)(svelte@5.14.2)
globals: globals:
specifier: ^15.13.0 specifier: ^15.13.0
version: 15.13.0 version: 15.13.0
@ -86,28 +86,28 @@ importers:
version: 3.4.2 version: 3.4.2
prettier-plugin-svelte: prettier-plugin-svelte:
specifier: ^3.3.2 specifier: ^3.3.2
version: 3.3.2(prettier@3.4.2)(svelte@5.13.0) version: 3.3.2(prettier@3.4.2)(svelte@5.14.2)
sass: sass:
specifier: ^1.83.0 specifier: ^1.83.0
version: 1.83.0 version: 1.83.0
svelte: svelte:
specifier: ^5.13.0 specifier: ^5.14.2
version: 5.13.0 version: 5.14.2
svelte-bootstrap-icons: svelte-bootstrap-icons:
specifier: ^3.1.1 specifier: ^3.1.1
version: 3.1.1 version: 3.1.1
svelte-check: svelte-check:
specifier: ^4.1.1 specifier: ^4.1.1
version: 4.1.1(picomatch@4.0.2)(svelte@5.13.0)(typescript@5.7.2) version: 4.1.1(picomatch@4.0.2)(svelte@5.14.2)(typescript@5.7.2)
sveltekit-i18n: sveltekit-i18n:
specifier: ^2.4.2 specifier: ^2.4.2
version: 2.4.2(svelte@5.13.0) version: 2.4.2(svelte@5.14.2)
typescript: typescript:
specifier: ^5.7.2 specifier: ^5.7.2
version: 5.7.2 version: 5.7.2
typescript-eslint: typescript-eslint:
specifier: ^8.18.0 specifier: ^8.18.1
version: 8.18.0(eslint@9.17.0)(typescript@5.7.2) version: 8.18.1(eslint@9.17.0)(typescript@5.7.2)
vite: vite:
specifier: ^5.4.11 specifier: ^5.4.11
version: 5.4.11(sass@1.83.0) version: 5.4.11(sass@1.83.0)
@ -431,8 +431,8 @@ packages:
'@popperjs/core@2.11.8': '@popperjs/core@2.11.8':
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
'@rollup/plugin-commonjs@28.0.1': '@rollup/plugin-commonjs@28.0.2':
resolution: {integrity: sha512-+tNWdlWKbpB3WgBN7ijjYkq9X5uhjmcvyjEght4NmH5fAU++zfQzAJ6wumLS+dNcvwEZhKx2Z+skY8m7v0wGSA==} resolution: {integrity: sha512-BEFI2EDqzl+vA1rl97IDRZ61AIwGH093d9nz8+dThxJNH8oSoB7MjWvPCX3dkaK1/RCJ/1v/R1XB15FuSs0fQw==}
engines: {node: '>=16.0.0 || 14 >= 14.17'} engines: {node: '>=16.0.0 || 14 >= 14.17'}
peerDependencies: peerDependencies:
rollup: ^2.68.0||^3.0.0||^4.0.0 rollup: ^2.68.0||^3.0.0||^4.0.0
@ -449,8 +449,8 @@ packages:
rollup: rollup:
optional: true optional: true
'@rollup/plugin-node-resolve@15.3.0': '@rollup/plugin-node-resolve@15.3.1':
resolution: {integrity: sha512-9eO5McEICxMzJpDW9OnMYSv4Sta3hmt7VtBFz5zR9273suNOydOyq/FrGeGy+KsTRFm8w0SLVhzig2ILFT63Ag==} resolution: {integrity: sha512-tgg6b91pAybXHJQMAAwW9VuWBO6Thi+q7BCNARLwSqlmsHz0XYURtGvh/AuwSADXSI4h/2uHbs7s4FzlZDGSGA==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
rollup: ^2.78.0||^3.0.0||^4.0.0 rollup: ^2.78.0||^3.0.0||^4.0.0
@ -458,8 +458,8 @@ packages:
rollup: rollup:
optional: true optional: true
'@rollup/pluginutils@5.1.3': '@rollup/pluginutils@5.1.4':
resolution: {integrity: sha512-Pnsb6f32CD2W3uCaLZIzDmeFyQ2b8UWMFI7xtwUezpcGBDVDW6y9XgAWIlARiGAo6eNF5FK5aQTr0LFyNyqq5A==} resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
@ -567,8 +567,8 @@ packages:
peerDependencies: peerDependencies:
'@sveltejs/kit': ^2.4.0 '@sveltejs/kit': ^2.4.0
'@sveltejs/kit@2.11.1': '@sveltejs/kit@2.12.1':
resolution: {integrity: sha512-dAiHDEd+AOm20eYdMPV1a2eKBOc0s/7XsSs7PCoNv2kKS7BAoVRC9uzR+FQmxLtp8xuEo9z8CtrMQoszkThltQ==} resolution: {integrity: sha512-M3rPijGImeOkI0DBJSwjqz+YFX2DyOf6NzWgHVk3mqpT06dlYCpcv5xh1q4rYEqB58yQlk4QA1Y35PUqnUiFKw==}
engines: {node: '>=18.13'} engines: {node: '>=18.13'}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
@ -634,51 +634,51 @@ packages:
'@types/sanitize-html@2.13.0': '@types/sanitize-html@2.13.0':
resolution: {integrity: sha512-X31WxbvW9TjIhZZNyNBZ/p5ax4ti7qsNDBDEnH4zAgmEh35YnFD1UiS6z9Cd34kKm0LslFW0KPmTQzu/oGtsqQ==} resolution: {integrity: sha512-X31WxbvW9TjIhZZNyNBZ/p5ax4ti7qsNDBDEnH4zAgmEh35YnFD1UiS6z9Cd34kKm0LslFW0KPmTQzu/oGtsqQ==}
'@typescript-eslint/eslint-plugin@8.18.0': '@typescript-eslint/eslint-plugin@8.18.1':
resolution: {integrity: sha512-NR2yS7qUqCL7AIxdJUQf2MKKNDVNaig/dEB0GBLU7D+ZdHgK1NoH/3wsgO3OnPVipn51tG3MAwaODEGil70WEw==} resolution: {integrity: sha512-Ncvsq5CT3Gvh+uJG0Lwlho6suwDfUXH0HztslDf5I+F2wAFAZMRwYLEorumpKLzmO2suAXZ/td1tBg4NZIi9CQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/parser@8.18.0': '@typescript-eslint/parser@8.18.1':
resolution: {integrity: sha512-hgUZ3kTEpVzKaK3uNibExUYm6SKKOmTU2BOxBSvOYwtJEPdVQ70kZJpPjstlnhCHcuc2WGfSbpKlb/69ttyN5Q==} resolution: {integrity: sha512-rBnTWHCdbYM2lh7hjyXqxk70wvon3p2FyaniZuey5TrcGBpfhVp0OxOa6gxr9Q9YhZFKyfbEnxc24ZnVbbUkCA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/scope-manager@8.18.0': '@typescript-eslint/scope-manager@8.18.1':
resolution: {integrity: sha512-PNGcHop0jkK2WVYGotk/hxj+UFLhXtGPiGtiaWgVBVP1jhMoMCHlTyJA+hEj4rszoSdLTK3fN4oOatrL0Cp+Xw==} resolution: {integrity: sha512-HxfHo2b090M5s2+/9Z3gkBhI6xBH8OJCFjH9MhQ+nnoZqxU3wNxkLT+VWXWSFWc3UF3Z+CfPAyqdCTdoXtDPCQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/type-utils@8.18.0': '@typescript-eslint/type-utils@8.18.1':
resolution: {integrity: sha512-er224jRepVAVLnMF2Q7MZJCq5CsdH2oqjP4dT7K6ij09Kyd+R21r7UVJrF0buMVdZS5QRhDzpvzAxHxabQadow==} resolution: {integrity: sha512-jAhTdK/Qx2NJPNOTxXpMwlOiSymtR2j283TtPqXkKBdH8OAMmhiUfP0kJjc/qSE51Xrq02Gj9NY7MwK+UxVwHQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/types@8.18.0': '@typescript-eslint/types@8.18.1':
resolution: {integrity: sha512-FNYxgyTCAnFwTrzpBGq+zrnoTO4x0c1CKYY5MuUTzpScqmY5fmsh2o3+57lqdI3NZucBDCzDgdEbIaNfAjAHQA==} resolution: {integrity: sha512-7uoAUsCj66qdNQNpH2G8MyTFlgerum8ubf21s3TSM3XmKXuIn+H2Sifh/ES2nPOPiYSRJWAk0fDkW0APBWcpfw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.18.0': '@typescript-eslint/typescript-estree@8.18.1':
resolution: {integrity: sha512-rqQgFRu6yPkauz+ms3nQpohwejS8bvgbPyIDq13cgEDbkXt4LH4OkDMT0/fN1RUtzG8e8AKJyDBoocuQh8qNeg==} resolution: {integrity: sha512-z8U21WI5txzl2XYOW7i9hJhxoKKNG1kcU4RzyNvKrdZDmbjkmLBo8bgeiOJmA06kizLI76/CCBAAGlTlEeUfyg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/utils@8.18.0': '@typescript-eslint/utils@8.18.1':
resolution: {integrity: sha512-p6GLdY383i7h5b0Qrfbix3Vc3+J2k6QWw6UMUeY5JGfm3C5LbZ4QIZzJNoNOfgyRe0uuYKjvVOsO/jD4SJO+xg==} resolution: {integrity: sha512-8vikiIj2ebrC4WRdcAdDcmnu9Q/MXXwg+STf40BVfT8exDqBCUPdypvzcUPxEqRGKg9ALagZ0UWcYCtn+4W2iQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/visitor-keys@8.18.0': '@typescript-eslint/visitor-keys@8.18.1':
resolution: {integrity: sha512-pCh/qEA8Lb1wVIqNvBke8UaRjJ6wrAWkJO5yyIbs8Yx6TNGYyfNjOo61tLv+WwLvoLPp4BQ8B7AHKijl8NGUfw==} resolution: {integrity: sha512-Vj0WLm5/ZsD013YeUKn+K0y8p1M0jPpxOkKdbD1wB0ns53a5piVY02zjf072TblEweAbcYiFiPoSMF3kp+VhhQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
acorn-jsx@5.3.2: acorn-jsx@5.3.2:
@ -747,8 +747,8 @@ packages:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'} engines: {node: '>=10'}
chokidar@4.0.1: chokidar@4.0.2:
resolution: {integrity: sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==} resolution: {integrity: sha512-/b57FK+bblSU+dfewfFe0rT1YjVDfOmeLQwCAuC+vwvgLkXboATqqmy+Ipux6JrF6L5joe5CBnFOw+gLWH6yKg==}
engines: {node: '>= 14.16.0'} engines: {node: '>= 14.16.0'}
color-convert@2.0.1: color-convert@2.0.1:
@ -890,8 +890,8 @@ packages:
resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==}
engines: {node: '>=0.10'} engines: {node: '>=0.10'}
esrap@1.2.3: esrap@1.3.0:
resolution: {integrity: sha512-ZlQmCCK+n7SGoqo7DnfKaP1sJZa49P01/dXzmjCASSo04p72w8EksT2NMK8CEX8DhKsfJXANioIw8VyHNsBfvQ==} resolution: {integrity: sha512-LPT4X5Ur2sGnkQscwgWXRPVDuQrbuJbrStLmVXVXd+lGQ/HoYmcAa47t0Egzw1bYHwhF0w+6DTkxL1Xctp10XQ==}
esrecurse@4.3.0: esrecurse@4.3.0:
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
@ -1093,8 +1093,8 @@ packages:
resolution: {integrity: sha512-rh+Zjr6DNfUYR3bPwJEnuwDdqMbxZW7LOQfUN4B54+Cl+0o5zaU9RJ6bcidfDtC1cWCZXQ+nvX8bf6bAji37QQ==} resolution: {integrity: sha512-rh+Zjr6DNfUYR3bPwJEnuwDdqMbxZW7LOQfUN4B54+Cl+0o5zaU9RJ6bcidfDtC1cWCZXQ+nvX8bf6bAji37QQ==}
engines: {node: '>=12'} engines: {node: '>=12'}
magic-string@0.30.15: magic-string@0.30.17:
resolution: {integrity: sha512-zXeaYRgZ6ldS1RJJUrMrYgNJ4fdwnyI6tVqoiIhyCyv5IVTK9BU8Ic2l253GGETQHxI4HNUwhJ3fjDhKqEoaAw==} resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
markdown-it@14.1.0: markdown-it@14.1.0:
resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
@ -1342,8 +1342,8 @@ packages:
svelte-tippy@1.3.2: svelte-tippy@1.3.2:
resolution: {integrity: sha512-41f+85hwhKBRqX0UNYrgFsi34Kk/KDvUkIZXYANxkWoA2NTVTCZbUC2J8hRNZ4TRVxObTshoZRjK2co5+i6LMw==} resolution: {integrity: sha512-41f+85hwhKBRqX0UNYrgFsi34Kk/KDvUkIZXYANxkWoA2NTVTCZbUC2J8hRNZ4TRVxObTshoZRjK2co5+i6LMw==}
svelte@5.13.0: svelte@5.14.2:
resolution: {integrity: sha512-ZG4VmBNze/j2KxT2GEeUm8Jr3RLYQ3P5Y9/flUDCgaAxgzx4ZRTdiyh+PCr7qRlOr5M8uidIqr+3DwUFVrdL+A==} resolution: {integrity: sha512-OxNh82bYjbutXNSZSPQspZzzmVzlRyNbiz0a6KrpOWvQ9LBUUZifXyeKhfl73LgyQC9UbsnVS9M55nQzqekMTA==}
engines: {node: '>=18'} engines: {node: '>=18'}
sveltekit-i18n@2.4.2: sveltekit-i18n@2.4.2:
@ -1379,8 +1379,8 @@ packages:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
typescript-eslint@8.18.0: typescript-eslint@8.18.1:
resolution: {integrity: sha512-Xq2rRjn6tzVpAyHr3+nmSg1/9k9aIHnJ2iZeOH7cfGOWqTkXTm3kwpQglEuLGdNrYvPF+2gtAs+/KF5rjVo+WQ==} resolution: {integrity: sha512-Mlaw6yxuaDEPQvb/2Qwu3/TfgeBHy9iTJ3mTwe7OvpPmF6KPQjVOfGyEJpPv6Ez2C34OODChhXrzYw/9phI0MQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
@ -1685,27 +1685,27 @@ snapshots:
'@popperjs/core@2.11.8': {} '@popperjs/core@2.11.8': {}
'@rollup/plugin-commonjs@28.0.1(rollup@4.28.1)': '@rollup/plugin-commonjs@28.0.2(rollup@4.28.1)':
dependencies: dependencies:
'@rollup/pluginutils': 5.1.3(rollup@4.28.1) '@rollup/pluginutils': 5.1.4(rollup@4.28.1)
commondir: 1.0.1 commondir: 1.0.1
estree-walker: 2.0.2 estree-walker: 2.0.2
fdir: 6.4.2(picomatch@4.0.2) fdir: 6.4.2(picomatch@4.0.2)
is-reference: 1.2.1 is-reference: 1.2.1
magic-string: 0.30.15 magic-string: 0.30.17
picomatch: 4.0.2 picomatch: 4.0.2
optionalDependencies: optionalDependencies:
rollup: 4.28.1 rollup: 4.28.1
'@rollup/plugin-json@6.1.0(rollup@4.28.1)': '@rollup/plugin-json@6.1.0(rollup@4.28.1)':
dependencies: dependencies:
'@rollup/pluginutils': 5.1.3(rollup@4.28.1) '@rollup/pluginutils': 5.1.4(rollup@4.28.1)
optionalDependencies: optionalDependencies:
rollup: 4.28.1 rollup: 4.28.1
'@rollup/plugin-node-resolve@15.3.0(rollup@4.28.1)': '@rollup/plugin-node-resolve@15.3.1(rollup@4.28.1)':
dependencies: dependencies:
'@rollup/pluginutils': 5.1.3(rollup@4.28.1) '@rollup/pluginutils': 5.1.4(rollup@4.28.1)
'@types/resolve': 1.20.2 '@types/resolve': 1.20.2
deepmerge: 4.3.1 deepmerge: 4.3.1
is-module: 1.0.0 is-module: 1.0.0
@ -1713,7 +1713,7 @@ snapshots:
optionalDependencies: optionalDependencies:
rollup: 4.28.1 rollup: 4.28.1
'@rollup/pluginutils@5.1.3(rollup@4.28.1)': '@rollup/pluginutils@5.1.4(rollup@4.28.1)':
dependencies: dependencies:
'@types/estree': 1.0.6 '@types/estree': 1.0.6
estree-walker: 2.0.2 estree-walker: 2.0.2
@ -1778,64 +1778,64 @@ snapshots:
'@rollup/rollup-win32-x64-msvc@4.28.1': '@rollup/rollup-win32-x64-msvc@4.28.1':
optional: true optional: true
'@sveltejs/adapter-node@5.2.10(@sveltejs/kit@2.11.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))': '@sveltejs/adapter-node@5.2.10(@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))':
dependencies: dependencies:
'@rollup/plugin-commonjs': 28.0.1(rollup@4.28.1) '@rollup/plugin-commonjs': 28.0.2(rollup@4.28.1)
'@rollup/plugin-json': 6.1.0(rollup@4.28.1) '@rollup/plugin-json': 6.1.0(rollup@4.28.1)
'@rollup/plugin-node-resolve': 15.3.0(rollup@4.28.1) '@rollup/plugin-node-resolve': 15.3.1(rollup@4.28.1)
'@sveltejs/kit': 2.11.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)) '@sveltejs/kit': 2.12.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))
rollup: 4.28.1 rollup: 4.28.1
'@sveltejs/kit@2.11.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0))': '@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))':
dependencies: dependencies:
'@sveltejs/vite-plugin-svelte': 4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)) '@sveltejs/vite-plugin-svelte': 4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))
'@types/cookie': 0.6.0 '@types/cookie': 0.6.0
cookie: 0.6.0 cookie: 0.6.0
devalue: 5.1.1 devalue: 5.1.1
esm-env: 1.2.1 esm-env: 1.2.1
import-meta-resolve: 4.1.0 import-meta-resolve: 4.1.0
kleur: 4.1.5 kleur: 4.1.5
magic-string: 0.30.15 magic-string: 0.30.17
mrmime: 2.0.0 mrmime: 2.0.0
sade: 1.8.1 sade: 1.8.1
set-cookie-parser: 2.7.1 set-cookie-parser: 2.7.1
sirv: 3.0.0 sirv: 3.0.0
svelte: 5.13.0 svelte: 5.14.2
tiny-glob: 0.2.9 tiny-glob: 0.2.9
vite: 5.4.11(sass@1.83.0) vite: 5.4.11(sass@1.83.0)
'@sveltejs/vite-plugin-svelte-inspector@3.0.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0))': '@sveltejs/vite-plugin-svelte-inspector@3.0.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))':
dependencies: dependencies:
'@sveltejs/vite-plugin-svelte': 4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)) '@sveltejs/vite-plugin-svelte': 4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))
debug: 4.4.0 debug: 4.4.0
svelte: 5.13.0 svelte: 5.14.2
vite: 5.4.11(sass@1.83.0) vite: 5.4.11(sass@1.83.0)
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0))': '@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))':
dependencies: dependencies:
'@sveltejs/vite-plugin-svelte-inspector': 3.0.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)))(svelte@5.13.0)(vite@5.4.11(sass@1.83.0)) '@sveltejs/vite-plugin-svelte-inspector': 3.0.1(@sveltejs/vite-plugin-svelte@4.0.3(svelte@5.14.2)(vite@5.4.11(sass@1.83.0)))(svelte@5.14.2)(vite@5.4.11(sass@1.83.0))
debug: 4.4.0 debug: 4.4.0
deepmerge: 4.3.1 deepmerge: 4.3.1
kleur: 4.1.5 kleur: 4.1.5
magic-string: 0.30.15 magic-string: 0.30.17
svelte: 5.13.0 svelte: 5.14.2
vite: 5.4.11(sass@1.83.0) vite: 5.4.11(sass@1.83.0)
vitefu: 1.0.4(vite@5.4.11(sass@1.83.0)) vitefu: 1.0.4(vite@5.4.11(sass@1.83.0))
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@sveltekit-i18n/base@1.3.7(svelte@5.13.0)': '@sveltekit-i18n/base@1.3.7(svelte@5.14.2)':
dependencies: dependencies:
svelte: 5.13.0 svelte: 5.14.2
'@sveltekit-i18n/parser-default@1.1.1': {} '@sveltekit-i18n/parser-default@1.1.1': {}
'@sveltestrap/sveltestrap@6.2.7(svelte@5.13.0)': '@sveltestrap/sveltestrap@6.2.7(svelte@5.14.2)':
dependencies: dependencies:
'@popperjs/core': 2.11.8 '@popperjs/core': 2.11.8
svelte: 5.13.0 svelte: 5.14.2
'@types/cookie@0.6.0': {} '@types/cookie@0.6.0': {}
@ -1865,14 +1865,14 @@ snapshots:
dependencies: dependencies:
htmlparser2: 8.0.2 htmlparser2: 8.0.2
'@typescript-eslint/eslint-plugin@8.18.0(@typescript-eslint/parser@8.18.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2)': '@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2)':
dependencies: dependencies:
'@eslint-community/regexpp': 4.12.1 '@eslint-community/regexpp': 4.12.1
'@typescript-eslint/parser': 8.18.0(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2)
'@typescript-eslint/scope-manager': 8.18.0 '@typescript-eslint/scope-manager': 8.18.1
'@typescript-eslint/type-utils': 8.18.0(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/type-utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2)
'@typescript-eslint/utils': 8.18.0(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2)
'@typescript-eslint/visitor-keys': 8.18.0 '@typescript-eslint/visitor-keys': 8.18.1
eslint: 9.17.0 eslint: 9.17.0
graphemer: 1.4.0 graphemer: 1.4.0
ignore: 5.3.2 ignore: 5.3.2
@ -1882,27 +1882,27 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/parser@8.18.0(eslint@9.17.0)(typescript@5.7.2)': '@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2)':
dependencies: dependencies:
'@typescript-eslint/scope-manager': 8.18.0 '@typescript-eslint/scope-manager': 8.18.1
'@typescript-eslint/types': 8.18.0 '@typescript-eslint/types': 8.18.1
'@typescript-eslint/typescript-estree': 8.18.0(typescript@5.7.2) '@typescript-eslint/typescript-estree': 8.18.1(typescript@5.7.2)
'@typescript-eslint/visitor-keys': 8.18.0 '@typescript-eslint/visitor-keys': 8.18.1
debug: 4.4.0 debug: 4.4.0
eslint: 9.17.0 eslint: 9.17.0
typescript: 5.7.2 typescript: 5.7.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/scope-manager@8.18.0': '@typescript-eslint/scope-manager@8.18.1':
dependencies: dependencies:
'@typescript-eslint/types': 8.18.0 '@typescript-eslint/types': 8.18.1
'@typescript-eslint/visitor-keys': 8.18.0 '@typescript-eslint/visitor-keys': 8.18.1
'@typescript-eslint/type-utils@8.18.0(eslint@9.17.0)(typescript@5.7.2)': '@typescript-eslint/type-utils@8.18.1(eslint@9.17.0)(typescript@5.7.2)':
dependencies: dependencies:
'@typescript-eslint/typescript-estree': 8.18.0(typescript@5.7.2) '@typescript-eslint/typescript-estree': 8.18.1(typescript@5.7.2)
'@typescript-eslint/utils': 8.18.0(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2)
debug: 4.4.0 debug: 4.4.0
eslint: 9.17.0 eslint: 9.17.0
ts-api-utils: 1.4.3(typescript@5.7.2) ts-api-utils: 1.4.3(typescript@5.7.2)
@ -1910,12 +1910,12 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/types@8.18.0': {} '@typescript-eslint/types@8.18.1': {}
'@typescript-eslint/typescript-estree@8.18.0(typescript@5.7.2)': '@typescript-eslint/typescript-estree@8.18.1(typescript@5.7.2)':
dependencies: dependencies:
'@typescript-eslint/types': 8.18.0 '@typescript-eslint/types': 8.18.1
'@typescript-eslint/visitor-keys': 8.18.0 '@typescript-eslint/visitor-keys': 8.18.1
debug: 4.4.0 debug: 4.4.0
fast-glob: 3.3.2 fast-glob: 3.3.2
is-glob: 4.0.3 is-glob: 4.0.3
@ -1926,20 +1926,20 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/utils@8.18.0(eslint@9.17.0)(typescript@5.7.2)': '@typescript-eslint/utils@8.18.1(eslint@9.17.0)(typescript@5.7.2)':
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0) '@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0)
'@typescript-eslint/scope-manager': 8.18.0 '@typescript-eslint/scope-manager': 8.18.1
'@typescript-eslint/types': 8.18.0 '@typescript-eslint/types': 8.18.1
'@typescript-eslint/typescript-estree': 8.18.0(typescript@5.7.2) '@typescript-eslint/typescript-estree': 8.18.1(typescript@5.7.2)
eslint: 9.17.0 eslint: 9.17.0
typescript: 5.7.2 typescript: 5.7.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/visitor-keys@8.18.0': '@typescript-eslint/visitor-keys@8.18.1':
dependencies: dependencies:
'@typescript-eslint/types': 8.18.0 '@typescript-eslint/types': 8.18.1
eslint-visitor-keys: 4.2.0 eslint-visitor-keys: 4.2.0
acorn-jsx@5.3.2(acorn@8.14.0): acorn-jsx@5.3.2(acorn@8.14.0):
@ -1999,7 +1999,7 @@ snapshots:
ansi-styles: 4.3.0 ansi-styles: 4.3.0
supports-color: 7.2.0 supports-color: 7.2.0
chokidar@4.0.1: chokidar@4.0.2:
dependencies: dependencies:
readdirp: 4.0.2 readdirp: 4.0.2
@ -2093,7 +2093,7 @@ snapshots:
dependencies: dependencies:
eslint: 9.17.0 eslint: 9.17.0
eslint-plugin-svelte@2.46.1(eslint@9.17.0)(svelte@5.13.0): eslint-plugin-svelte@2.46.1(eslint@9.17.0)(svelte@5.14.2):
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0) '@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0)
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
@ -2106,9 +2106,9 @@ snapshots:
postcss-safe-parser: 6.0.0(postcss@8.4.49) postcss-safe-parser: 6.0.0(postcss@8.4.49)
postcss-selector-parser: 6.1.2 postcss-selector-parser: 6.1.2
semver: 7.6.3 semver: 7.6.3
svelte-eslint-parser: 0.43.0(svelte@5.13.0) svelte-eslint-parser: 0.43.0(svelte@5.14.2)
optionalDependencies: optionalDependencies:
svelte: 5.13.0 svelte: 5.14.2
transitivePeerDependencies: transitivePeerDependencies:
- ts-node - ts-node
@ -2183,10 +2183,10 @@ snapshots:
dependencies: dependencies:
estraverse: 5.3.0 estraverse: 5.3.0
esrap@1.2.3: esrap@1.3.0:
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
'@types/estree': 1.0.6 '@typescript-eslint/types': 8.18.1
esrecurse@4.3.0: esrecurse@4.3.0:
dependencies: dependencies:
@ -2354,7 +2354,7 @@ snapshots:
luxon@3.5.0: {} luxon@3.5.0: {}
magic-string@0.30.15: magic-string@0.30.17:
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
@ -2462,10 +2462,10 @@ snapshots:
prelude-ls@1.2.1: {} prelude-ls@1.2.1: {}
prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.13.0): prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.14.2):
dependencies: dependencies:
prettier: 3.4.2 prettier: 3.4.2
svelte: 5.13.0 svelte: 5.14.2
prettier@3.4.2: {} prettier@3.4.2: {}
@ -2533,7 +2533,7 @@ snapshots:
sass@1.83.0: sass@1.83.0:
dependencies: dependencies:
chokidar: 4.0.1 chokidar: 4.0.2
immutable: 5.0.3 immutable: 5.0.3
source-map-js: 1.2.1 source-map-js: 1.2.1
optionalDependencies: optionalDependencies:
@ -2567,19 +2567,19 @@ snapshots:
svelte-bootstrap-icons@3.1.1: {} svelte-bootstrap-icons@3.1.1: {}
svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.13.0)(typescript@5.7.2): svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.14.2)(typescript@5.7.2):
dependencies: dependencies:
'@jridgewell/trace-mapping': 0.3.25 '@jridgewell/trace-mapping': 0.3.25
chokidar: 4.0.1 chokidar: 4.0.2
fdir: 6.4.2(picomatch@4.0.2) fdir: 6.4.2(picomatch@4.0.2)
picocolors: 1.1.1 picocolors: 1.1.1
sade: 1.8.1 sade: 1.8.1
svelte: 5.13.0 svelte: 5.14.2
typescript: 5.7.2 typescript: 5.7.2
transitivePeerDependencies: transitivePeerDependencies:
- picomatch - picomatch
svelte-eslint-parser@0.43.0(svelte@5.13.0): svelte-eslint-parser@0.43.0(svelte@5.14.2):
dependencies: dependencies:
eslint-scope: 7.2.2 eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3 eslint-visitor-keys: 3.4.3
@ -2587,13 +2587,13 @@ snapshots:
postcss: 8.4.49 postcss: 8.4.49
postcss-scss: 4.0.9(postcss@8.4.49) postcss-scss: 4.0.9(postcss@8.4.49)
optionalDependencies: optionalDependencies:
svelte: 5.13.0 svelte: 5.14.2
svelte-tippy@1.3.2: svelte-tippy@1.3.2:
dependencies: dependencies:
tippy.js: 6.3.7 tippy.js: 6.3.7
svelte@5.13.0: svelte@5.14.2:
dependencies: dependencies:
'@ampproject/remapping': 2.3.0 '@ampproject/remapping': 2.3.0
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
@ -2603,17 +2603,17 @@ snapshots:
aria-query: 5.3.2 aria-query: 5.3.2
axobject-query: 4.1.0 axobject-query: 4.1.0
esm-env: 1.2.1 esm-env: 1.2.1
esrap: 1.2.3 esrap: 1.3.0
is-reference: 3.0.3 is-reference: 3.0.3
locate-character: 3.0.0 locate-character: 3.0.0
magic-string: 0.30.15 magic-string: 0.30.17
zimmerframe: 1.1.2 zimmerframe: 1.1.2
sveltekit-i18n@2.4.2(svelte@5.13.0): sveltekit-i18n@2.4.2(svelte@5.14.2):
dependencies: dependencies:
'@sveltekit-i18n/base': 1.3.7(svelte@5.13.0) '@sveltekit-i18n/base': 1.3.7(svelte@5.14.2)
'@sveltekit-i18n/parser-default': 1.1.1 '@sveltekit-i18n/parser-default': 1.1.1
svelte: 5.13.0 svelte: 5.14.2
tiny-glob@0.2.9: tiny-glob@0.2.9:
dependencies: dependencies:
@ -2640,11 +2640,11 @@ snapshots:
dependencies: dependencies:
prelude-ls: 1.2.1 prelude-ls: 1.2.1
typescript-eslint@8.18.0(eslint@9.17.0)(typescript@5.7.2): typescript-eslint@8.18.1(eslint@9.17.0)(typescript@5.7.2):
dependencies: dependencies:
'@typescript-eslint/eslint-plugin': 8.18.0(@typescript-eslint/parser@8.18.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/eslint-plugin': 8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2)
'@typescript-eslint/parser': 8.18.0(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2)
'@typescript-eslint/utils': 8.18.0(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2)
eslint: 9.17.0 eslint: 9.17.0
typescript: 5.7.2 typescript: 5.7.2
transitivePeerDependencies: transitivePeerDependencies:

View file

@ -8,7 +8,7 @@
NavLink, NavLink,
NavItem, NavItem,
} from "@sveltestrap/sveltestrap"; } from "@sveltestrap/sveltestrap";
import { page } from "$app/stores"; import { page } from "$app/state";
import type { Meta, MeUser } from "$api/models/index"; import type { Meta, MeUser } from "$api/models/index";
import Logo from "$components/Logo.svelte"; import Logo from "$components/Logo.svelte";
import { t } from "$lib/i18n"; import { t } from "$lib/i18n";
@ -51,19 +51,19 @@
<NavItem> <NavItem>
<NavLink <NavLink
href="/@{user.username}" href="/@{user.username}"
active={$page.url.pathname.startsWith(`/@${user.username}`)} active={page.url.pathname.startsWith(`/@${user.username}`)}
> >
@{user.username} @{user.username}
</NavLink> </NavLink>
</NavItem> </NavItem>
<NavItem> <NavItem>
<NavLink href="/settings" active={$page.url.pathname.startsWith("/settings")}> <NavLink href="/settings" active={page.url.pathname.startsWith("/settings")}>
{$t("nav.settings")} {$t("nav.settings")}
</NavLink> </NavLink>
</NavItem> </NavItem>
{:else} {:else}
<NavItem> <NavItem>
<NavLink href="/auth/log-in" active={$page.url.pathname === "/auth/log-in"}> <NavLink href="/auth/log-in" active={page.url.pathname === "/auth/log-in"}>
{$t("nav.log-in")} {$t("nav.log-in")}
</NavLink> </NavLink>
</NavItem> </NavItem>

View file

@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import type { Snippet } from "svelte"; import type { Snippet } from "svelte";
import { page } from "$app/stores"; import { page } from "$app/state";
import { t } from "$lib/i18n"; import { t } from "$lib/i18n";
import { Nav, NavLink } from "@sveltestrap/sveltestrap"; import { Nav, NavLink } from "@sveltestrap/sveltestrap";
@ -10,11 +10,11 @@
const isActive = (path: string | string[], prefix: boolean = false) => const isActive = (path: string | string[], prefix: boolean = false) =>
typeof path === "string" typeof path === "string"
? prefix ? prefix
? $page.url.pathname.startsWith(path) ? page.url.pathname.startsWith(path)
: $page.url.pathname === path : page.url.pathname === path
: prefix : prefix
? path.some((p) => $page.url.pathname.startsWith(p)) ? path.some((p) => page.url.pathname.startsWith(p))
: path.some((p) => $page.url.pathname === p); : path.some((p) => page.url.pathname === p);
</script> </script>
<svelte:head> <svelte:head>

View file

@ -1,13 +1,13 @@
<script lang="ts"> <script lang="ts">
import type { Snippet } from "svelte"; import type { Snippet } from "svelte";
import { page } from "$app/stores"; import { page } from "$app/state";
import { t } from "$lib/i18n"; import { t } from "$lib/i18n";
import type { LayoutData } from "./$types"; import type { LayoutData } from "./$types";
type Props = { data: LayoutData; children: Snippet }; type Props = { data: LayoutData; children: Snippet };
let { data, children }: Props = $props(); let { data, children }: Props = $props();
const isActive = (path: string) => $page.url.pathname === path; const isActive = (path: string) => page.url.pathname === path;
let name = $derived( let name = $derived(
data.member.display_name === data.member.name data.member.display_name === data.member.name

View file

@ -1,13 +1,13 @@
<script lang="ts"> <script lang="ts">
import type { Snippet } from "svelte"; import type { Snippet } from "svelte";
import { page } from "$app/stores"; import { page } from "$app/state";
import { t } from "$lib/i18n"; import { t } from "$lib/i18n";
import type { LayoutData } from "./$types"; import type { LayoutData } from "./$types";
type Props = { data: LayoutData; children: Snippet }; type Props = { data: LayoutData; children: Snippet };
let { data, children }: Props = $props(); let { data, children }: Props = $props();
const isActive = (path: string) => $page.url.pathname === path; const isActive = (path: string) => page.url.pathname === path;
</script> </script>
<svelte:head> <svelte:head>