@seta-labs/nuxt-foundation 0.0.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 +33 -0
- package/app/assets/shell.css +190 -0
- package/app/components/FoundationBarra.vue +42 -0
- package/app/components/FoundationLauncher.vue +54 -0
- package/app/components/FoundationMenu.vue +30 -0
- package/app/components/FoundationStato.vue +16 -0
- package/app/components/FoundationUtente.vue +48 -0
- package/app/composables/useFoundation.ts +66 -0
- package/app/composables/usePopover.ts +50 -0
- package/app/layouts/default.vue +43 -0
- package/app/utils/app-link.ts +6 -0
- package/app.config.ts +22 -0
- package/design-system/README.md +77 -0
- package/design-system/assets/App/README.md +4 -0
- package/design-system/assets/Icone/README.md +6 -0
- package/design-system/assets/Icone/i-aggiungi.svg +1 -0
- package/design-system/assets/Icone/i-altro.svg +1 -0
- package/design-system/assets/Icone/i-app-agency.svg +1 -0
- package/design-system/assets/Icone/i-app-geo.svg +1 -0
- package/design-system/assets/Icone/i-app-immo.svg +1 -0
- package/design-system/assets/Icone/i-app-infra.svg +1 -0
- package/design-system/assets/Icone/i-app-proxy.svg +1 -0
- package/design-system/assets/Icone/i-app-spid.svg +1 -0
- package/design-system/assets/Icone/i-app.svg +1 -0
- package/design-system/assets/Icone/i-attenzione.svg +1 -0
- package/design-system/assets/Icone/i-automazione.svg +1 -0
- package/design-system/assets/Icone/i-cerca.svg +1 -0
- package/design-system/assets/Icone/i-check.svg +1 -0
- package/design-system/assets/Icone/i-chiudi.svg +1 -0
- package/design-system/assets/Icone/i-crescita.svg +1 -0
- package/design-system/assets/Icone/i-direzione.svg +1 -0
- package/design-system/assets/Icone/i-documento.svg +1 -0
- package/design-system/assets/Icone/i-filtro.svg +1 -0
- package/design-system/assets/Icone/i-freccia.svg +1 -0
- package/design-system/assets/Icone/i-guida.svg +1 -0
- package/design-system/assets/Icone/i-ia.svg +1 -0
- package/design-system/assets/Icone/i-impostazioni.svg +1 -0
- package/design-system/assets/Icone/i-info.svg +1 -0
- package/design-system/assets/Icone/i-mail.svg +1 -0
- package/design-system/assets/Icone/i-notifiche.svg +1 -0
- package/design-system/assets/Icone/i-sito.svg +1 -0
- package/design-system/assets/Icone/i-sviluppo.svg +1 -0
- package/design-system/assets/Marchio/README.md +8 -0
- package/design-system/assets/Marchio/favicon.svg +5 -0
- package/design-system/assets/Marchio/logo-dark-stretto.png +0 -0
- package/design-system/assets/Marchio/logo-light-stretto.png +0 -0
- package/design-system/components/Avviso/README.md +8 -0
- package/design-system/components/Avviso/preview.html +17 -0
- package/design-system/components/Barra/README.md +8 -0
- package/design-system/components/Barra/preview.html +24 -0
- package/design-system/components/BarraStato/README.md +7 -0
- package/design-system/components/BarraStato/preview.html +12 -0
- package/design-system/components/Bottone/README.md +12 -0
- package/design-system/components/Bottone/preview.html +15 -0
- package/design-system/components/Campo/README.md +9 -0
- package/design-system/components/Campo/preview.html +20 -0
- package/design-system/components/Card/README.md +9 -0
- package/design-system/components/Card/preview.html +13 -0
- package/design-system/components/Cover/preview.html +50 -0
- package/design-system/components/Dialog/README.md +8 -0
- package/design-system/components/Dialog/preview.html +12 -0
- package/design-system/components/Etichetta/README.md +8 -0
- package/design-system/components/Etichetta/preview.html +12 -0
- package/design-system/components/Launcher/README.md +9 -0
- package/design-system/components/Launcher/preview.html +12 -0
- package/design-system/components/Lettura/README.md +8 -0
- package/design-system/components/Lettura/preview.html +12 -0
- package/design-system/components/Menu/README.md +9 -0
- package/design-system/components/Menu/preview.html +17 -0
- package/design-system/components/Tabella/README.md +9 -0
- package/design-system/components/Tabella/preview.html +16 -0
- package/design-system/components/Targa/README.md +7 -0
- package/design-system/components/Targa/preview.html +12 -0
- package/design-system/components/Tessera/README.md +9 -0
- package/design-system/components/Tessera/preview.html +12 -0
- package/design-system/components/Toast/README.md +7 -0
- package/design-system/components/Toast/preview.html +12 -0
- package/design-system/components/Vuoto/README.md +7 -0
- package/design-system/components/Vuoto/preview.html +12 -0
- package/design-system/components/bundle.css +238 -0
- package/design-system/design-system.json +361 -0
- package/design-system/tokens.css +102 -0
- package/design-system/tokens.json +111 -0
- package/design-system/vue/SfIcona.vue +17 -0
- package/design-system/vue/SfTessera.vue +20 -0
- package/design-system/vue/icons.ts +32 -0
- package/nuxt.config.ts +36 -0
- package/package.json +45 -0
package/nuxt.config.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
|
|
4
|
+
const here = (path: string): string => fileURLToPath(new URL(path, import.meta.url));
|
|
5
|
+
const { version } = JSON.parse(readFileSync(here('./package.json'), 'utf8')) as { version: string };
|
|
6
|
+
|
|
7
|
+
// The layer: design system (tokens + sf- CSS + Vue primitives) and the shell.
|
|
8
|
+
// The host app sets `runtimeConfig.public.foundationApp` to its registry id;
|
|
9
|
+
// NUXT_PUBLIC_FOUNDATION_APP overrides it at runtime.
|
|
10
|
+
export default defineNuxtConfig({
|
|
11
|
+
app: {
|
|
12
|
+
head: {
|
|
13
|
+
link: [{ rel: 'icon', type: 'image/svg+xml', href: '/_foundation/favicon.svg' }],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
components: [
|
|
17
|
+
{ path: here('./design-system/vue'), pathPrefix: false },
|
|
18
|
+
{ path: here('./app/components'), pathPrefix: false },
|
|
19
|
+
],
|
|
20
|
+
css: [
|
|
21
|
+
here('./design-system/tokens.css'),
|
|
22
|
+
here('./design-system/components/bundle.css'),
|
|
23
|
+
here('./app/assets/shell.css'),
|
|
24
|
+
],
|
|
25
|
+
nitro: {
|
|
26
|
+
publicAssets: [
|
|
27
|
+
{ baseURL: '/_foundation', dir: here('./design-system/assets/Marchio'), maxAge: 86400 },
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
runtimeConfig: {
|
|
31
|
+
public: {
|
|
32
|
+
foundationApp: '',
|
|
33
|
+
foundationVersion: version,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@seta-labs/nuxt-foundation",
|
|
3
|
+
"version": "0.0.0",
|
|
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
|
+
"license": "UNLICENSED",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Seta-Labs/node-common.git",
|
|
9
|
+
"directory": "packages/nuxt-foundation"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./nuxt.config.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./nuxt.config.ts",
|
|
15
|
+
"./apps": "./app/apps.ts",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"app",
|
|
20
|
+
"design-system",
|
|
21
|
+
"app.config.ts",
|
|
22
|
+
"nuxt.config.ts"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"prepare": "nuxi prepare .playground",
|
|
29
|
+
"sync:design-system": "node scripts/sync-design-system.mjs",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"typecheck": "nuxi typecheck .playground"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"nuxt": "^4.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@nuxt/eslint": "^1.17.0",
|
|
38
|
+
"nuxt": "^4.5.2",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vitest": "^4.1.9",
|
|
41
|
+
"vue": "^3.5.43",
|
|
42
|
+
"vue-router": "^5.2.0",
|
|
43
|
+
"vue-tsc": "^3.3.11"
|
|
44
|
+
}
|
|
45
|
+
}
|