@massimo-cassandro/minimo 1.39.1 → 1.39.2
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/dev-tools/create-favicons/src/default-params.mjs +1 -1
- package/dev-tools/starter-kit/source_files/app/error-pages/error-pages.js +38 -0
- package/dev-tools/starter-kit/source_files/root/_sf/templates/_main-tpl.html.twig +1 -1
- package/dev-tools/starter-kit/source_files/root/_sf/templates/bundles/TwigBundle/Exception/error.html.twig +3 -3
- package/dev-tools/starter-kit/source_files/root/package-tpl.json +3 -0
- package/package.json +3 -3
- /package/{snippets/symfony → dev-tools/starter-kit/source_files/root/_sf/controller}/ImgViewerController.php +0 -0
- /package/{snippets/symfony → dev-tools/starter-kit/source_files/root/_sf/controller}/UnsplashController.php +0 -0
- /package/{snippets/symfony → dev-tools/starter-kit/source_files/root/_sf/controller}/ViewerController.php +0 -0
- /package/dev-tools/starter-kit/source_files/root/_sf/templates/{incl → _incl}/flash-messages.html.twig +0 -0
- /package/dev-tools/starter-kit/source_files/root/_sf/templates/{incl → _incl}/minimo-form-layout.html.twig +0 -0
|
@@ -43,7 +43,7 @@ export const default_params = {
|
|
|
43
43
|
// nome del file snippet, compresa l'estensione
|
|
44
44
|
// se questo parametro è null e anche `snippet_target_file` lo è, lo snippet non viene generato
|
|
45
45
|
// se il linguaggio è ejs il nome è sempre 'favicons.incl.ejs' e snippet_name viene ignorato
|
|
46
|
-
snippet_name: '
|
|
46
|
+
snippet_name: 'favicons.html',
|
|
47
47
|
|
|
48
48
|
// path (relativo a questo file) in cui salvare lo snippet
|
|
49
49
|
// se null, viene utilizzato lo stesso percorso indicato in `output_dir`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { unsplashPage } from '@massimo-cassandro/minimo';
|
|
4
|
+
// import './error-pages.css';
|
|
5
|
+
|
|
6
|
+
const errCode = document.documentElement.dataset.errCode || '500',
|
|
7
|
+
errText = document.documentElement.dataset.errText,
|
|
8
|
+
errors = {
|
|
9
|
+
'403': {
|
|
10
|
+
title: 'Ops, non puoi accedere a questa pagina'
|
|
11
|
+
},
|
|
12
|
+
'404': {
|
|
13
|
+
title: 'Ops, questa pagina non esiste'
|
|
14
|
+
},
|
|
15
|
+
'500': {
|
|
16
|
+
title: 'Ops, si è verificato un errore'
|
|
17
|
+
},
|
|
18
|
+
'503': {
|
|
19
|
+
title: 'Siamo spiacenti, il sito è temporaneamente in manutenzione'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
,url = '/get-unsplash'
|
|
23
|
+
;
|
|
24
|
+
|
|
25
|
+
document.title = `Errore ${errCode}`;
|
|
26
|
+
|
|
27
|
+
unsplashPage({
|
|
28
|
+
targetElement : document.getElementById('root'),
|
|
29
|
+
className : 'error-page',
|
|
30
|
+
unsplashDataUrl : url,
|
|
31
|
+
utmSource : 'ada-rinascente.bluvacanze.it',
|
|
32
|
+
title : errors[errCode]?.title ?? errText,
|
|
33
|
+
text : `(${errCode} ${errText})`,
|
|
34
|
+
backLink : errCode !== '503'? 'Torna alla <a href="/">Home</a>' : '',
|
|
35
|
+
// hidePhotoLink : true,
|
|
36
|
+
// cssModules : false,
|
|
37
|
+
// cssModulesObj : null
|
|
38
|
+
});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
7
7
|
<title>{%- block title -%}{%- endblock %} | Marketing</title>
|
|
8
8
|
<meta name="robots" content="noindex, nofollow, noarchive">
|
|
9
|
-
{%- include '
|
|
9
|
+
{%- include '_incl/favicons.incl.html.twig'-%}
|
|
10
10
|
{{- '' -}}
|
|
11
11
|
<link rel="preload" href="{{ asset('index.js') }}" as="script">
|
|
12
12
|
<link rel="preload" href="{{ asset('shared.js') }}" as="script">
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
8
8
|
<title>Errore {{ status_code }}</title>
|
|
9
9
|
<meta name="robots" content="noindex, nofollow, noarchive">
|
|
10
|
-
{%- include '
|
|
11
|
-
<link rel="preload" href="{{ asset('
|
|
12
|
-
<link rel="stylesheet" href="{{ asset('
|
|
10
|
+
{%- include '_incl/favicons.incl.html.twig'-%}
|
|
11
|
+
<link rel="preload" href="{{ asset('index.css') }}" as="style">
|
|
12
|
+
<link rel="stylesheet" href="{{ asset('index.css') }}" media="all">
|
|
13
13
|
<link rel="preload" href="{{ asset('error-pages.css') }}" as="style">
|
|
14
14
|
<link rel="stylesheet" href="{{ asset('error-pages.css') }}" media="all">
|
|
15
15
|
<link rel="preload" href="{{ asset('error-pages.js') }}" as="script">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massimo-cassandro/minimo",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.2",
|
|
4
4
|
"description": "Light css framework & utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"UPD-version": "npx update-version # --config=./dev-utilities.config.mjs",
|
|
37
37
|
"npm-publish": "npm publish",
|
|
38
|
-
"upd@m": "npx upd@m",
|
|
39
38
|
"build-tokens": "node ./dev-tools/design-tokens-builder/build-tokens.mjs --config ./design-tokens/tokens-config.mjs",
|
|
40
39
|
"build-margin-padding-css": "node ./scripts/build-margin-padding-css.mjs",
|
|
41
40
|
"generate:types": "node ./scripts/generate-class-types.mjs",
|
|
@@ -46,6 +45,7 @@
|
|
|
46
45
|
"checkJS": "npx tsc --noEmit -p jsconfig.json",
|
|
47
46
|
"checkJS ./src": "npx tsc --noEmit --allowJs --checkJs --target ES2023 --module ESNext --allowSyntheticDefaultImports --moduleResolution bundler declarations.d.ts types/global.d.ts src/**/*.js",
|
|
48
47
|
"npm outdated": "echo '*** ROOT ***' && npm outdated --omit=peer && echo '*** DEMO ***' && npm --prefix ./demo outdated && echo '*** END ***'",
|
|
48
|
+
"upd@m": "npx upd@m",
|
|
49
49
|
"npm upd": "echo '*** ROOT ***' && npm update && echo '*** DEMO ***' && npm --prefix ./demo update && echo '*** END ***'"
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@massimo-cassandro/eslint-config": "^3.0.
|
|
95
|
+
"@massimo-cassandro/eslint-config": "^3.0.18",
|
|
96
96
|
"@types/node": "^26.2.0",
|
|
97
97
|
"jsdom": "^30.0.1",
|
|
98
98
|
"style-dictionary": "^5.5.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|