4 Commits

Author SHA1 Message Date
semantic-release-bot
60c2fb2d7e chore(release): 1.2.1 2026-03-10 09:44:09 +00:00
e372505120 Merge pull request 'fix/style-loading-flash' (#7) from fix/style-loading-flash into develop
All checks were successful
Release / release (push) Successful in 29s
Reviewed-on: #7
2026-03-10 09:43:42 +00:00
4e393dd5e9 fix: reduce style loading flash 2026-03-10 10:40:46 +01:00
8fd4aba63e Merge branch 'develop' into feat/app-version 2026-03-10 10:14:46 +01:00
7 changed files with 883 additions and 80 deletions

View File

@@ -1,3 +1,10 @@
## [1.2.1](https://gitea.malio.fr/MALIO-DEV/Supervisor/compare/v1.2.0...v1.2.1) (2026-03-10)
### Bug Fixes
* reduce style loading flash ([4e393dd](https://gitea.malio.fr/MALIO-DEV/Supervisor/commit/4e393dd5e92a28d91e49affb9437687ac8de3817))
# [1.2.0](https://gitea.malio.fr/MALIO-DEV/Supervisor/compare/v1.1.0...v1.2.0) (2026-03-10) # [1.2.0](https://gitea.malio.fr/MALIO-DEV/Supervisor/compare/v1.1.0...v1.2.0) (2026-03-10)

View File

@@ -20,14 +20,18 @@
--font-mono: "JetBrains Mono", "Fira Code", monospace; --font-mono: "JetBrains Mono", "Fira Code", monospace;
} }
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@layer base { @layer base {
html {
background: rgb(var(--m-bg));
color-scheme: dark;
}
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
min-height: 100vh;
font-family: var(--font-display); font-family: var(--font-display);
background: rgb(var(--m-bg)); background: rgb(var(--m-bg));
color: rgb(var(--m-text)); color: rgb(var(--m-text));
@@ -35,6 +39,10 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
transition: background-color 0.4s ease, color 0.4s ease; transition: background-color 0.4s ease, color 0.4s ease;
} }
img {
display: block;
}
} }
@layer utilities { @layer utilities {

View File

@@ -1,7 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base { @layer base {
:root { :root {
--m-primary: 15 20 40; --m-primary: 15 20 40;

View File

@@ -18,32 +18,30 @@
<slot name="sidebar"/> <slot name="sidebar"/>
<nav class="sidebar-nav" aria-label="Sections"> <nav class="sidebar-nav" aria-label="Sections">
<p class="nav-label">Navigation</p> <p class="nav-label">Navigation</p>
<div class="flex flex-col gap-2">
<div class="bg-m-tertiary rounded-lg border border-m-accent/6">
<NuxtLink <NuxtLink
v-for="item in navItems" to="/"
:key="item.to" class="flex items-center gap-3 px-4 py-2 rounded-lg text-white hover:bg-m-tertiary/80 transition-colors"
v-slot="{ href, navigate, isExactActive }"
:to="item.to"
custom
> >
<a <IconifyIcon
:href="href" icon="mdi:home"
class="nav-link" class="text-lg"/>
:class="{ 'nav-link-active': isExactActive }" <p>Home</p>
:aria-current="isExactActive ? 'page' : undefined"
@click="navigate(); isMenuOpen = false"
>
<span class="nav-link-main">
<span class="nav-icon">
<IconifyIcon :icon="item.icon" class="text-lg" />
</span>
<span>
<span class="nav-title">{{ item.label }}</span>
<span class="nav-caption">{{ item.caption }}</span>
</span>
</span>
<span class="nav-pill">{{ item.short }}</span>
</a>
</NuxtLink> </NuxtLink>
</div>
<div class="bg-m-tertiary rounded-lg border border-m-accent/6">
<NuxtLink
to="/backup"
class="flex items-center gap-3 px-4 py-2 rounded-lg text-white hover:bg-m-tertiary/80 transition-colors"
>
<IconifyIcon
icon="mdi:data"
class="text-lg"/>
<p>Backup</p>
</NuxtLink>
</div>
</div>
</nav> </nav>
</div> </div>
<div class="sidebar-footer"> <div class="sidebar-footer">
@@ -299,8 +297,7 @@ const navItems = [
border: 1px solid transparent; border: 1px solid transparent;
color: white; color: white;
text-decoration: none; text-decoration: none;
transition: transition: background-color 0.2s ease,
background-color 0.2s ease,
border-color 0.2s ease, border-color 0.2s ease,
transform 0.2s ease, transform 0.2s ease,
box-shadow 0.2s ease; box-shadow 0.2s ease;
@@ -319,8 +316,7 @@ const navItems = [
} }
.nav-link-active { .nav-link-active {
background: background: linear-gradient(135deg, rgb(var(--m-accent) / 0.16), rgb(255 255 255 / 0.04));
linear-gradient(135deg, rgb(var(--m-accent) / 0.16), rgb(255 255 255 / 0.04));
border-color: rgb(var(--m-accent) / 0.24); border-color: rgb(var(--m-accent) / 0.24);
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
} }
@@ -378,8 +374,7 @@ const navItems = [
padding: 1rem; padding: 1rem;
border-radius: 16px; border-radius: 16px;
border: 1px solid rgb(var(--m-accent) / 0.14); border: 1px solid rgb(var(--m-accent) / 0.14);
background: background: radial-gradient(circle at top right, rgb(var(--m-accent) / 0.14), transparent 30%),
radial-gradient(circle at top right, rgb(var(--m-accent) / 0.14), transparent 30%),
rgb(255 255 255 / 0.04); rgb(255 255 255 / 0.04);
} }

View File

@@ -22,6 +22,18 @@ export default defineNuxtConfig({
compatibilityDate: "2025-07-15", compatibilityDate: "2025-07-15",
devtools: { enabled: true }, devtools: { enabled: true },
css: ["~/assets/css/main.css"], css: ["~/assets/css/main.css"],
app: {
head: {
link: [
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" },
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap"
}
]
}
},
runtimeConfig: { runtimeConfig: {
public: { public: {
appVersion: getRepoVersion() appVersion: getRepoVersion()

786
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,7 @@
}, },
"dependencies": { "dependencies": {
"@iconify/vue": "^5.0.0", "@iconify/vue": "^5.0.0",
"iconify": "^1.4.0",
"nuxt": "^4.3.1", "nuxt": "^4.3.1",
"vue": "^3.5.29", "vue": "^3.5.29",
"vue-router": "^4.6.4" "vue-router": "^4.6.4"