@seta-labs/nuxt-foundation 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/apps.ts +18 -2
- package/app/assets/shell.css +13 -0
- package/app/components/FoundationBarra.vue +12 -12
- package/app/components/FoundationLauncher.vue +19 -4
- package/design-system/assets/Icone/README.md +1 -1
- package/design-system/assets/Icone/i-menu.svg +1 -0
- package/design-system/components/Launcher/README.md +2 -1
- package/design-system/components/Launcher/preview.html +2 -2
- package/design-system/components/bundle.css +4 -0
- package/design-system/design-system.json +9 -2
- package/design-system/vue/icons.ts +1 -0
- package/package.json +2 -1
package/app/apps.ts
CHANGED
|
@@ -4,15 +4,31 @@ import type { IconName } from '../design-system/vue/icons';
|
|
|
4
4
|
// `--app-<id>` token and `app-<id>` glyph in the design system, a release.
|
|
5
5
|
// `app`: a Nuxt UI that mounts the shell. `tool`: an external UI, opened in a
|
|
6
6
|
// new tab without the shell. URLs are production only: there is no staging and
|
|
7
|
-
// the other apps do not run locally.
|
|
7
|
+
// the other apps do not run locally. Third-party UIs go to `foundationTools`.
|
|
8
8
|
export const foundationApps = [
|
|
9
9
|
{ id: 'agency', name: 'Agency', kind: 'app', url: 'https://agency.setalabs.app' },
|
|
10
10
|
{ id: 'proxy', name: 'Proxy', kind: 'app', url: 'https://proxy.setalabs.app' },
|
|
11
11
|
{ id: 'geo', name: 'Geo', kind: 'app', url: 'https://geo.setalabs.app' },
|
|
12
12
|
{ id: 'immo', name: 'Immo', kind: 'app', url: 'https://immo.setalabs.app' },
|
|
13
|
-
{ id: 'infra', name: 'Infra', kind: 'tool', url: 'https://argocd.setalabs.app' },
|
|
14
13
|
] as const satisfies readonly FoundationAppEntry[];
|
|
15
14
|
|
|
15
|
+
// External tools of the whole suite, listed under the apps in the launcher and
|
|
16
|
+
// always opened in a new tab: they are not Seta apps, so no signature colour,
|
|
17
|
+
// only a service icon.
|
|
18
|
+
export const foundationTools = [
|
|
19
|
+
{ id: 'argocd', name: 'Argo CD', icon: 'automazione', url: 'https://argocd.setalabs.app' },
|
|
20
|
+
{ id: 'rancher', name: 'Rancher', icon: 'impostazioni', url: 'https://rancher.setalabs.app' },
|
|
21
|
+
{ id: 'swagger', name: 'Swagger', icon: 'documento', url: 'https://swagger.setalabs.app' },
|
|
22
|
+
{ id: 'grafana', name: 'Grafana', icon: 'crescita', url: 'https://setalabs.grafana.net' },
|
|
23
|
+
] as const satisfies readonly FoundationTool[];
|
|
24
|
+
|
|
25
|
+
export interface FoundationTool {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
icon: IconName;
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
16
32
|
export type FoundationAppKind = 'app' | 'tool';
|
|
17
33
|
|
|
18
34
|
export interface FoundationAppEntry {
|
package/app/assets/shell.css
CHANGED
|
@@ -231,6 +231,19 @@ body {
|
|
|
231
231
|
display: inline-flex;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
/* The menu button takes the left edge the drawer slides from; the app
|
|
235
|
+
launcher, a rarer action, moves to the right edge, past the user. */
|
|
236
|
+
.sf-launcher-ancora {
|
|
237
|
+
order: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.sf-launcher-ancora .sf-launcher {
|
|
241
|
+
position: fixed;
|
|
242
|
+
top: calc(var(--shell-barra) + var(--s-2));
|
|
243
|
+
left: auto;
|
|
244
|
+
right: var(--s-2);
|
|
245
|
+
}
|
|
246
|
+
|
|
234
247
|
.sf-shell__menu {
|
|
235
248
|
position: fixed;
|
|
236
249
|
top: var(--shell-barra);
|
|
@@ -10,6 +10,18 @@ const dev = import.meta.dev;
|
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
12
|
<header class="sf-barra sf-shell__barra">
|
|
13
|
+
<button
|
|
14
|
+
v-if="hasNav"
|
|
15
|
+
class="sf-btn sf-btn--icona sf-shell__apri-menu"
|
|
16
|
+
data-tour="menu-mobile"
|
|
17
|
+
type="button"
|
|
18
|
+
aria-controls="sf-menu"
|
|
19
|
+
:aria-expanded="menuOpen"
|
|
20
|
+
:aria-label="menuOpen ? 'Chiudi il menu' : 'Apri il menu'"
|
|
21
|
+
@click="$emit('toggleMenu')"
|
|
22
|
+
>
|
|
23
|
+
<SfIcona :name="menuOpen ? 'chiudi' : 'menu'" />
|
|
24
|
+
</button>
|
|
13
25
|
<FoundationLauncher />
|
|
14
26
|
<NuxtLink to="/" class="sf-shell__marchio" aria-label="Seta Foundation, torna all'inizio">
|
|
15
27
|
<SfSimbolo class="sf-shell__simbolo" />
|
|
@@ -30,17 +42,5 @@ const dev = import.meta.dev;
|
|
|
30
42
|
<span class="sf-barra__spazio" />
|
|
31
43
|
<span v-if="dev" class="sf-ambiente sf-ambiente--staging">DEV</span>
|
|
32
44
|
<FoundationUtente />
|
|
33
|
-
<button
|
|
34
|
-
v-if="hasNav"
|
|
35
|
-
class="sf-btn sf-btn--icona sf-shell__apri-menu"
|
|
36
|
-
data-tour="menu-mobile"
|
|
37
|
-
type="button"
|
|
38
|
-
aria-controls="sf-menu"
|
|
39
|
-
:aria-expanded="menuOpen"
|
|
40
|
-
:aria-label="menuOpen ? 'Chiudi il menu' : 'Apri il menu'"
|
|
41
|
-
@click="$emit('toggleMenu')"
|
|
42
|
-
>
|
|
43
|
-
<SfIcona :name="menuOpen ? 'chiudi' : 'altro'" />
|
|
44
|
-
</button>
|
|
45
45
|
</header>
|
|
46
46
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { foundationApps, type FoundationApp } from '../apps';
|
|
2
|
+
import { foundationApps, foundationTools, type FoundationApp } from '../apps';
|
|
3
3
|
|
|
4
4
|
const current = useFoundationApp();
|
|
5
5
|
const trigger = ref<HTMLElement | null>(null);
|
|
@@ -8,7 +8,6 @@ const { open, toggle } = usePopover(trigger, panel);
|
|
|
8
8
|
|
|
9
9
|
// The current app links to its own root, so the launcher works locally too.
|
|
10
10
|
const href = (app: FoundationApp): string => (app.id === current.value?.id ? '/' : app.url);
|
|
11
|
-
const isTool = (app: FoundationApp): boolean => app.kind === 'tool';
|
|
12
11
|
</script>
|
|
13
12
|
|
|
14
13
|
<template>
|
|
@@ -43,13 +42,29 @@ const isTool = (app: FoundationApp): boolean => app.kind === 'tool';
|
|
|
43
42
|
class="sf-launcher__app"
|
|
44
43
|
:href="href(app)"
|
|
45
44
|
:aria-current="app.id === current?.id ? 'page' : undefined"
|
|
46
|
-
:target="isTool(app) ? '_blank' : undefined"
|
|
47
|
-
:rel="isTool(app) ? 'noopener' : undefined"
|
|
48
45
|
>
|
|
49
46
|
<SfTessera :app="app.id" />
|
|
50
47
|
{{ app.name }}
|
|
51
48
|
</a>
|
|
52
49
|
</div>
|
|
50
|
+
<div class="sf-targa__riga">
|
|
51
|
+
<b>Strumenti</b><span class="sf-targa__filetto" />
|
|
52
|
+
<span>{{ String(foundationTools.length).padStart(2, '0') }}</span>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="sf-launcher__strumenti">
|
|
55
|
+
<a
|
|
56
|
+
v-for="tool in foundationTools"
|
|
57
|
+
:key="tool.id"
|
|
58
|
+
class="sf-launcher__strumento"
|
|
59
|
+
:href="tool.url"
|
|
60
|
+
target="_blank"
|
|
61
|
+
rel="noopener"
|
|
62
|
+
>
|
|
63
|
+
<SfIcona :name="tool.icon" />
|
|
64
|
+
{{ tool.name }}
|
|
65
|
+
<SfIcona name="freccia" :size="16" class="sf-launcher__esterno" />
|
|
66
|
+
</a>
|
|
67
|
+
</div>
|
|
53
68
|
</div>
|
|
54
69
|
</div>
|
|
55
70
|
</template>
|
|
@@ -2,5 +2,5 @@ Icone monolineari della landing Seta Labs più le icone di servizio della shell.
|
|
|
2
2
|
|
|
3
3
|
- Inchiostro dei file: `#767D8A` (leggibile su notte e su giorno). Nel codice usa i tracciati in linea con `stroke="currentColor"` e la classe `sf-icona`.
|
|
4
4
|
- Dalla landing: sviluppo, direzione, automazione, sito, crescita, ia, documento, mail, check, attenzione, info, freccia.
|
|
5
|
-
- Shell: app (launcher), cerca, notifiche, guida, impostazioni, aggiungi, chiudi, filtro, altro.
|
|
5
|
+
- Shell: app (launcher), cerca, notifiche, guida, impostazioni, aggiungi, chiudi, filtro, altro, menu (apre il menu laterale su mobile).
|
|
6
6
|
- Glifi delle app: `i-app-agency`, `i-app-proxy`, `i-app-geo`, `i-app-immo`, `i-app-spid`, `i-app-infra`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#767D8A" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter"><path d="M4 7h16M4 12h16M4 17h16"></path></svg>
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Launcher
|
|
2
2
|
|
|
3
|
-
Il pannello che si apre dal pulsante launcher: la griglia delle app della suite.
|
|
3
|
+
Il pannello che si apre dal pulsante launcher: la griglia delle app della suite e, sotto, gli strumenti esterni.
|
|
4
4
|
|
|
5
5
|
- La shell lo genera dal registro delle app (id, nome, tessera, URL per ambiente, ordine): aggiungere un'app = aggiungere una voce al registro.
|
|
6
6
|
- Griglia 3 colonne di `sf-launcher__app` (tessera 56 + nome). L'app corrente ha `aria-current="page"`.
|
|
7
|
+
- Sotto la griglia, il blocco Strumenti (Argo CD, Rancher, Swagger, Grafana): interfacce esterne alla suite, dal loro registro (nome, icona di servizio, URL). Due colonne di `sf-launcher__strumento` (icona + nome + freccia `sf-launcher__esterno`), nessuna tessera né colore di firma; si aprono sempre in una nuova scheda.
|
|
7
8
|
- Con meno di 10 app niente categorie; da 10 in su, titoli di sezione con lo stile di `sf-menu__titolo`.
|
|
8
9
|
- È l'unico componente, con Dialog e Toast, che usa `ombra-sovrapposto`.
|
|
9
10
|
- Si apre in `d-ampio` con `e-entrata`, si chiude in `d-rapido` con `e-uscita`; Esc lo chiude e riporta il focus sul pulsante.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- @dsCard group="Shell" height=
|
|
1
|
+
<!-- @dsCard group="Shell" height=470 subtitle="Pannello delle app" -->
|
|
2
2
|
<!doctype html>
|
|
3
3
|
<html lang="it">
|
|
4
4
|
<head><meta charset="utf-8"><title>Launcher</title>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</head>
|
|
7
7
|
<body>
|
|
8
8
|
<div class="sf pv">
|
|
9
|
-
<div class="sf-launcher" role="dialog" aria-label="App Seta Foundation"><div class="sf-targa__riga"><b>App</b><span>Seta Foundation</span><span class="sf-targa__filetto"></span><span>
|
|
9
|
+
<div class="sf-launcher" role="dialog" aria-label="App Seta Foundation"><div class="sf-targa__riga"><b>App</b><span>Seta Foundation</span><span class="sf-targa__filetto"></span><span>05</span></div><div class="sf-launcher__griglia"><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--agency"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="5" width="18" height="14"/><path d="M3 9h18"/><circle cx="12" cy="14" r="3"/><path d="M9 14h6"/></svg></span>Agency</a><a class="sf-launcher__app" href="#" aria-current="page"><span class="sf-tessera sf-tessera--proxy"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h6M15 12h6M12 3v6M12 15v6"/><path d="m18 9 3 3-3 3"/><rect x="9" y="9" width="6" height="6"/></svg></span>Proxy</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--geo"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21c-3.5-4-6-7.3-6-10.5a6 6 0 0 1 12 0C18 13.7 15.5 17 12 21z"/><rect x="10.5" y="9" width="3" height="3"/></svg></span>Geo</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--immo"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7V3h4M17 3h4v4M21 17v4h-4M7 21H3v-4"/><path d="M7 12.5 12 8l5 4.5"/><path d="M8.5 11.2V17h7v-5.8"/></svg></span>Immo</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--spid"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="6" width="18" height="12"/><circle cx="8.5" cy="11" r="2"/><path d="M5.5 16c.6-1.5 1.7-2.2 3-2.2s2.4.7 3 2.2"/><path d="M14 10h4M14 13h4"/></svg></span>SPID</a></div><div class="sf-targa__riga"><b>Strumenti</b><span class="sf-targa__filetto"></span><span>04</span></div><div class="sf-launcher__strumenti"><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M4.5 12A7.5 7.5 0 0 1 12 4.5h5"/><path d="M14 2.5 16.5 4.5 14 6.5"/><path d="M19.5 12A7.5 7.5 0 0 1 12 19.5H7"/><path d="M10 21.5 7.5 19.5 10 17.5"/><rect x="10.5" y="10.5" width="3" height="3"/></svg>Argo CD<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8"/><rect x="14" y="5" width="4" height="4"/><rect x="8" y="15" width="4" height="4"/></svg>Rancher<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3h8l4 4v14H6z"/><path d="M14 3v4h4"/><path d="M9 12h6M9 15h6M9 18h3"/></svg>Swagger<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 4v16h16"/><path d="M4 17h2M4 13h2M4 9h2M8 20v-2M12 20v-2M16 20v-2"/><path d="M7 16l4-4 3 3 6-6"/><path d="M20 9V6h-3"/></svg>Grafana<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a></div><div class="sf-launcher__piede"><a class="sf-btn sf-btn--testo sf-btn--compatto" href="#">Tutte le app <svg class="sf-icona sf-icona--16" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-btn sf-btn--testo sf-btn--compatto" href="#" style="color:var(--muted)">Stato servizi</a></div></div>
|
|
10
10
|
</div>
|
|
11
11
|
</body>
|
|
12
12
|
</html>
|
|
@@ -181,6 +181,10 @@
|
|
|
181
181
|
.sf-launcher__app:hover { background: var(--surface-2); }
|
|
182
182
|
.sf-launcher__app[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
|
|
183
183
|
.sf-launcher__piede { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
|
|
184
|
+
.sf-launcher__strumenti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
|
|
185
|
+
.sf-launcher__strumento { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
|
|
186
|
+
.sf-launcher__strumento:hover { color: var(--fg); background: var(--surface-2); }
|
|
187
|
+
.sf-launcher__esterno { margin-left: auto; transform: rotate(-45deg); opacity: 0.6; }
|
|
184
188
|
|
|
185
189
|
.sf-menu { width: var(--shell-menu); display: flex; flex-direction: column; gap: 20px; padding: 16px 12px; background: var(--bg); border-right: 1px solid var(--hud-tenue); }
|
|
186
190
|
.sf-menu__gruppo { display: flex; flex-direction: column; gap: 2px; }
|
|
@@ -197,6 +197,12 @@
|
|
|
197
197
|
"size": 251,
|
|
198
198
|
"type": "image/svg+xml"
|
|
199
199
|
},
|
|
200
|
+
"i-menu.svg": {
|
|
201
|
+
"blob": "cfbb2c4d45920e328e39956f1fc1a277",
|
|
202
|
+
"name": "i-menu.svg",
|
|
203
|
+
"size": 225,
|
|
204
|
+
"type": "image/svg+xml"
|
|
205
|
+
},
|
|
200
206
|
"i-notifiche.svg": {
|
|
201
207
|
"blob": "3eb2e82804336498193534010459e723",
|
|
202
208
|
"name": "i-notifiche.svg",
|
|
@@ -239,6 +245,7 @@
|
|
|
239
245
|
"i-chiudi.svg",
|
|
240
246
|
"i-filtro.svg",
|
|
241
247
|
"i-altro.svg",
|
|
248
|
+
"i-menu.svg",
|
|
242
249
|
"i-app-agency.svg",
|
|
243
250
|
"i-app-proxy.svg",
|
|
244
251
|
"i-app-geo.svg",
|
|
@@ -348,10 +355,10 @@
|
|
|
348
355
|
"Icone"
|
|
349
356
|
],
|
|
350
357
|
"lastChange": {
|
|
351
|
-
"at": "2026-09-
|
|
358
|
+
"at": "2026-09-26T18:00:00Z",
|
|
352
359
|
"by": "Andrea Moraglia",
|
|
353
360
|
"via": "Claude Code",
|
|
354
|
-
"note": "
|
|
361
|
+
"note": "Launcher: blocco Strumenti sotto le app (Argo CD, Rancher, Swagger, Grafana), righe discrete con freccia di link esterno; Infra esce dalle app."
|
|
355
362
|
},
|
|
356
363
|
"layout": "files",
|
|
357
364
|
"libraries": [],
|
|
@@ -24,6 +24,7 @@ export const icons = {
|
|
|
24
24
|
'impostazioni': '<path d="M4 7h10M18 7h2M4 17h4M12 17h8"/><rect x="14" y="5" width="4" height="4"/><rect x="8" y="15" width="4" height="4"/>',
|
|
25
25
|
'info': '<circle cx="12" cy="12" r="8"/><path d="M12 11v6"/><rect x="11.4" y="7.4" width="1.2" height="1.2"/>',
|
|
26
26
|
'mail': '<rect x="3" y="5" width="18" height="14"/><path d="m3 6 9 7 9-7"/>',
|
|
27
|
+
'menu': '<path d="M4 7h16M4 12h16M4 17h16"/>',
|
|
27
28
|
'notifiche': '<path d="M6 17V11a6 6 0 0 1 12 0v6"/><path d="M4 17h16"/><path d="M10 20h4"/>',
|
|
28
29
|
'sito': '<rect x="3" y="5" width="18" height="14"/><path d="M3 9h18"/><path d="M6 7h1M8.5 7h1M11 7h1"/><path d="M7 12h6M7 15h10"/>',
|
|
29
30
|
'sviluppo': '<path d="M9 7 4 12l5 5M15 7l5 5-5 5"/><path d="M13.5 5.5 10.5 18.5"/>',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seta-labs/nuxt-foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Seta Foundation: the Nuxt layer every internal Seta panel extends — design system mirror (tokens, sf- components, icons, brand) plus the shared shell (bar, app launcher, side menu, status bar)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
+
"dev": "nuxi dev .playground --port 3800",
|
|
28
29
|
"prepare": "nuxi prepare .playground",
|
|
29
30
|
"sync:design-system": "node scripts/sync-design-system.mjs",
|
|
30
31
|
"test": "vitest run",
|