mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 03:05:32 +02:00
fix(frontend): add cookies and extensions to settings URL routing
SETTINGS_TABS was missing 'cookies' and 'extensions', so navigating to /settings/cookies or /settings/extensions silently fell back to the profile tab. Both tabs already existed in SettingsView; they just weren't recognised by parseLocation(). Includes rebuilt frontend static assets.
This commit is contained in:
parent
6db480229c
commit
38d8c1f702
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Archivr</title>
|
<title>Archivr</title>
|
||||||
<script type="module" crossorigin src="/assets/index-kKL3zajW.js"></script>
|
<script type="module" crossorigin src="/assets/index-AE6iQI2Q.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-C89vW3ol.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-C89vW3ol.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const PREVIEW_ROUTE = (() => {
|
||||||
})()
|
})()
|
||||||
|
|
||||||
const VIEWS = ['archive','tags','collections','runs','admin','settings']
|
const VIEWS = ['archive','tags','collections','runs','admin','settings']
|
||||||
const SETTINGS_TABS = ['profile','tokens','instance','storage']
|
const SETTINGS_TABS = ['profile','tokens','instance','cookies','extensions','storage']
|
||||||
|
|
||||||
function parseLocation() {
|
function parseLocation() {
|
||||||
const parts = window.location.pathname.split('/').filter(Boolean)
|
const parts = window.location.pathname.split('/').filter(Boolean)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue