Skip to content

Commit 4e08743

Browse files
committed
update registry
1 parent d24e237 commit 4e08743

File tree

10 files changed

+655
-246
lines changed

10 files changed

+655
-246
lines changed
Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-C5WbEy8w.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-CsGTvEip.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
gtag("js", new Date());
101101
gtag("config", "G-1B67VYZMXF");
102102
</script>
103-
<script type="module" crossorigin src="/assets/index-BO6NGjxR.js"></script>
104-
<link rel="stylesheet" crossorigin href="/assets/index-CsGTvEip.css">
103+
<script type="module" crossorigin src="/assets/index-B5ywWXR1.js"></script>
104+
<link rel="stylesheet" crossorigin href="/assets/index-C5WbEy8w.css">
105105
<link rel="manifest" href="/manifest.webmanifest"></head>
106106

107107
<body>

sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vix-site/src/App.vue

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<template>
2-
<div class="app">
3-
<!-- Main site header/footer only (hide for /registry sub-site) -->
2+
<div class="app" :class="{ 'app--registry': isRegistry }">
43
<SiteHeader v-if="!isRegistry" />
54

6-
<main class="main" :class="{ 'main--registry': isRegistry }">
5+
<main class="main">
76
<router-view />
87
</main>
98

109
<SiteFooter v-if="!isRegistry" />
1110

12-
<!-- PWA install prompt toast -->
1311
<PwaInstallToast
1412
:show="showInstallToast"
1513
:canInstall="canInstall"
@@ -19,7 +17,6 @@
1917
@dismiss="dismissInstall"
2018
/>
2119

22-
<!-- PWA update toast -->
2320
<PwaUpdateToast
2421
:show="showPwaToast"
2522
:version="appVersion"
@@ -30,19 +27,28 @@
3027
</template>
3128

3229
<script setup>
33-
import { inject, computed, onMounted, onBeforeUnmount, ref } from "vue";
30+
import { inject, computed, onMounted, onBeforeUnmount, ref, watch } from "vue";
3431
import { useRoute } from "vue-router";
3532
3633
import SiteHeader from "./components/SiteHeader.vue";
3734
import SiteFooter from "./components/SiteFooter.vue";
38-
3935
import PwaUpdateToast from "./components/PwaUpdateToast.vue";
4036
import PwaInstallToast from "./components/PwaInstallToast.vue";
4137
4238
const route = useRoute();
4339
44-
// Hide global header/footer for the registry sub-site
45-
const isRegistry = computed(() => route.path === "/registry" || route.path.startsWith("/registry/"));
40+
const isRegistry = computed(
41+
() => route.path === "/registry" || route.path.startsWith("/registry/")
42+
);
43+
44+
// Ajoute/retire une classe globale pour override le CSS global
45+
watch(
46+
isRegistry,
47+
(v) => {
48+
document.documentElement.classList.toggle("is-registry", v);
49+
},
50+
{ immediate: true }
51+
);
4652
4753
// ---------------------------
4854
// PWA Update Toast (existing)
@@ -55,7 +61,6 @@ const appVersion = import.meta.env.VITE_APP_VERSION;
5561
function refresh() {
5662
window.__vix_pwa_refresh__?.();
5763
}
58-
5964
function dismiss() {
6065
window.__vix_pwa_dismiss__?.();
6166
}
@@ -73,17 +78,14 @@ const INSTALL_DISMISS_KEY = "vix_pwa_install_dismiss_until";
7378
function nowMs() {
7479
return Date.now();
7580
}
76-
7781
function shouldShowInstallToast() {
7882
const until = Number(localStorage.getItem(INSTALL_DISMISS_KEY) || "0");
7983
return nowMs() > until;
8084
}
81-
8285
function setDismissCooldown(days = 7) {
8386
const until = nowMs() + days * 24 * 60 * 60 * 1000;
8487
localStorage.setItem(INSTALL_DISMISS_KEY, String(until));
8588
}
86-
8789
function dismissInstall() {
8890
setDismissCooldown(7);
8991
showInstallToast.value = false;
@@ -111,7 +113,6 @@ async function triggerInstall() {
111113
112114
function onBeforeInstallPrompt(e) {
113115
e.preventDefault();
114-
115116
deferredPrompt = e;
116117
canInstall.value = true;
117118
@@ -137,6 +138,9 @@ onMounted(() => {
137138
onBeforeUnmount(() => {
138139
window.removeEventListener("beforeinstallprompt", onBeforeInstallPrompt);
139140
window.removeEventListener("appinstalled", onAppInstalled);
141+
142+
// nettoyage au cas où on quitte l'app
143+
document.documentElement.classList.remove("is-registry");
140144
});
141145
</script>
142146
@@ -150,8 +154,7 @@ onBeforeUnmount(() => {
150154
min-height: calc(100vh - var(--header-h));
151155
}
152156
153-
/* Registry sub-site manages its own header spacing */
154-
.main--registry {
157+
.app--registry .main {
155158
padding-top: 0;
156159
min-height: 100vh;
157160
}

vix-site/src/data/github_stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"repo": "vixcpp/vix",
3-
"fetched_at": "2026-02-10T14:31:34.153Z",
3+
"fetched_at": "2026-02-10T15:03:24.152Z",
44
"stars": 267,
55
"forks": 22,
66
"open_issues": 182,

0 commit comments

Comments
 (0)