Add update.sh, release-channel tagging, mobile settings page
Nightly Build / build (push) Successful in 6m28s
Nightly Build / build (push) Successful in 6m28s
install.sh / install-nightly.sh:
- Write .release-channel file ('release' or 'nightly') for future updates
- install.sh also writes .release-version (for update --check)
update.sh (new):
- Reads .release-channel to determine which channel to pull from
- Release: checks releases/LATEST vs .release-version, skips if current
- Nightly: always downloads latest
- Stops service before extraction, restarts after
- Rebuilds Python venv on update
ci/package.sh:
- Include update.sh in distribution tarball
Web / mobile:
- Add settings-page component for mobile
- Wire settings page into mobile-app navigation
- Chat page: load current user (/api/auth/me) for sender identity
- Full mobile.css redesign
- i18n: add mobile settings strings (en/fr/it)
This commit is contained in:
+14
-3
@@ -7,6 +7,8 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Agent" />
|
||||
<meta name="theme-color" content="#faf7f2" media="(prefers-color-scheme: light)" />
|
||||
<meta name="theme-color" content="#1c1814" media="(prefers-color-scheme: dark)" />
|
||||
<title>Skald</title>
|
||||
<link rel="icon" href="/assets/icons/favicon.ico" sizes="any" />
|
||||
<link rel="icon" href="/assets/icons/icon-192.png" type="image/png" />
|
||||
@@ -16,15 +18,24 @@
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
const dark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
// Same chain as the desktop shell: a saved choice wins over the OS.
|
||||
const saved = localStorage.getItem('theme');
|
||||
const dark = saved ? saved === 'dark' : window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
document.documentElement.setAttribute('data-bs-theme', dark ? 'dark' : 'light');
|
||||
window.matchMedia('(prefers-color-scheme: dark)')
|
||||
.addEventListener('change', e => {
|
||||
document.documentElement.setAttribute('data-bs-theme', e.matches ? 'dark' : 'light');
|
||||
if (!localStorage.getItem('theme')) {
|
||||
document.documentElement.setAttribute('data-bs-theme', e.matches ? 'dark' : 'light');
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- Font -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" />
|
||||
@@ -49,7 +60,7 @@
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; overflow: hidden; }
|
||||
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
|
||||
body { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
|
||||
mobile-app { display: flex; flex-direction: column; height: 100%; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user