@cima-foundation/schematics 0.4.12 → 17.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/package.json +1 -1
- package/src/new-library/files/__name@dasherize__/.github/workflows/build-and-release-app.yml +1 -1
- package/src/new-library/files/__name@dasherize__/angular.json +4 -5
- package/src/new-library/files/__name@dasherize__/ngupdate.sh +56 -0
- package/src/new-library/files/__name@dasherize__/package.json +47 -47
- package/src/new-library/files/__name@dasherize__/projects/__name@dasherize__-test-app/src/app/credits/credits-page/credits-page.component.html +1 -1
- package/src/new-library/files/__name@dasherize__/projects/__name@dasherize__-test-app/src/app/credits/credits-page/credits-page.component.ts +0 -3
- package/src/new-library/files/__name@dasherize__/projects/__name@dasherize__-test-app/src/app/credits/tor/tor.component.html +8 -8
- package/src/new-library/files/__name@dasherize__/projects/__name@dasherize__-test-app/src/test.ts +0 -11
- package/src/new-library/files/__name@dasherize__/projects/cima/__name@dasherize__/package.json +2 -2
- package/src/new-library/files/__name@dasherize__/projects/cima/__name@dasherize__/src/lib/__name@dasherize__-routing.module.ts +1 -1
- package/src/new-library/files/__name@dasherize__/projects/cima/__name@dasherize__/src/test.ts +0 -11
- package/src/new-library/files/__name@dasherize__/projects/cima/__name@dasherize__/tsconfig.lib.json +0 -1
- package/src/new-library/files/__name@dasherize__/tsconfig.json +6 -2
package/package.json
CHANGED
package/src/new-library/files/__name@dasherize__/.github/workflows/build-and-release-app.yml
CHANGED
|
@@ -10,6 +10,6 @@ jobs:
|
|
|
10
10
|
uses: CIMAFoundation/deployments-manager/.github/workflows/ngx-cima-release-app.yaml@main
|
|
11
11
|
with:
|
|
12
12
|
application-name: <%= dasherize(name) %>
|
|
13
|
-
build-script: npm run build:prod
|
|
13
|
+
build-script: npm run build:prod <%= dasherize(name) %>-test-app
|
|
14
14
|
npm-install-command: install
|
|
15
15
|
secrets: inherit
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
121
121
|
"configurations": {
|
|
122
122
|
"production": {
|
|
123
|
-
"
|
|
123
|
+
"buildTarget": "<%= dasherize(name) %>-test-app:build:production"
|
|
124
124
|
},
|
|
125
125
|
"development": {
|
|
126
|
-
"
|
|
126
|
+
"buildTarget": "<%= dasherize(name) %>-test-app:build:development"
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
"defaultConfiguration": "development"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"extract-i18n": {
|
|
132
132
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
133
133
|
"options": {
|
|
134
|
-
"
|
|
134
|
+
"buildTarget": "<%= dasherize(name) %>-test-app:build"
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
"test": {
|
|
@@ -232,6 +232,5 @@
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
}
|
|
236
|
-
"defaultProject": "<%= dasherize(name) %>-test-app"
|
|
235
|
+
}
|
|
237
236
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Chiedi all'utente da quale versione di Angular vuole iniziare l'aggiornamento
|
|
4
|
+
echo "Quale versione di Angular è attualmente installata? (13 o 15)"
|
|
5
|
+
read -p "Inserisci il numero della versione: " versione
|
|
6
|
+
|
|
7
|
+
# Crea un nuovo branch
|
|
8
|
+
git checkout -b update_angular_17
|
|
9
|
+
|
|
10
|
+
git add .
|
|
11
|
+
git commit -m "commit before update"
|
|
12
|
+
|
|
13
|
+
# Inizia l'aggiornamento dalla versione selezionata
|
|
14
|
+
if [ $versione -eq 13 ]; then
|
|
15
|
+
|
|
16
|
+
# Aggiorna a Angular 14
|
|
17
|
+
ng update @angular/core@14 @angular/cli@14 @angular/material@14 --force
|
|
18
|
+
git add .
|
|
19
|
+
git commit -m "update ng14"
|
|
20
|
+
|
|
21
|
+
# Aggiorna a Angular 15
|
|
22
|
+
ng update @angular/core@15 @angular/cli@15 @angular/material@15 --force
|
|
23
|
+
git add .
|
|
24
|
+
git commit -m "update ng15"
|
|
25
|
+
|
|
26
|
+
# Imposta versione uguale a 15 per il prossimo blocco
|
|
27
|
+
versione=15
|
|
28
|
+
fi
|
|
29
|
+
if [ $versione -eq 15 ]; then
|
|
30
|
+
|
|
31
|
+
# Aggiorna a Angular 16
|
|
32
|
+
ng update @angular/core@16 @angular/cli@16 @angular/material@16 --force
|
|
33
|
+
git add .
|
|
34
|
+
git commit -m "update ng16"
|
|
35
|
+
|
|
36
|
+
# Aggiorna a Angular 17
|
|
37
|
+
ng update @angular/core@17 @angular/cli@17 --force
|
|
38
|
+
git add .
|
|
39
|
+
git commit -m "update ng17"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# Esegui la migrazione a Material Design Components
|
|
43
|
+
# ng generate @angular/material:mdc-migration
|
|
44
|
+
# ng update @angular/material@17 --force
|
|
45
|
+
|
|
46
|
+
# aggiorna package json
|
|
47
|
+
# edit title in environment.ts
|
|
48
|
+
# add pathmatch: full in routing module
|
|
49
|
+
# add XXXX-test-app in build-and-reelase-app.yml
|
|
50
|
+
# correct credits
|
|
51
|
+
|
|
52
|
+
else
|
|
53
|
+
echo "Versione non supportata. Si prega di selezionare 13 o 15."
|
|
54
|
+
exit 1
|
|
55
|
+
|
|
56
|
+
fi
|
|
@@ -20,71 +20,71 @@
|
|
|
20
20
|
},
|
|
21
21
|
"private": true,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@angular/animations": "
|
|
24
|
-
"@angular/cdk": "^
|
|
25
|
-
"@angular/common": "
|
|
26
|
-
"@angular/compiler": "
|
|
27
|
-
"@angular/core": "
|
|
28
|
-
"@angular/
|
|
29
|
-
"@angular/
|
|
30
|
-
"@angular/
|
|
31
|
-
"@
|
|
32
|
-
"@angular/
|
|
33
|
-
"@angular/
|
|
34
|
-
"
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
23
|
+
"@angular/animations": "^17.2.3",
|
|
24
|
+
"@angular/cdk": "^17.2.1",
|
|
25
|
+
"@angular/common": "^17.2.3",
|
|
26
|
+
"@angular/compiler": "^17.2.3",
|
|
27
|
+
"@angular/core": "^17.2.3",
|
|
28
|
+
"@angular/forms": "^17.2.3",
|
|
29
|
+
"@angular/material": "^17.1.2",
|
|
30
|
+
"@angular/platform-browser": "^17.2.3",
|
|
31
|
+
"@angular/platform-browser-dynamic": "^17.2.3",
|
|
32
|
+
"@angular/router": "^17.2.3",
|
|
33
|
+
"@angular/service-worker": "^17.2.3",
|
|
34
|
+
"copyfiles": "^2.4.1",
|
|
35
|
+
"@cima/commons": "git+https://github.com/CIMAFoundation/ngx-cima-commons.git#v17.0.2",
|
|
36
|
+
"@angular/flex-layout": "^15.0.0-beta.42",
|
|
37
37
|
"@fortawesome/fontawesome-free": "^6.3.0",
|
|
38
|
-
"@kolkov/angular-editor": "
|
|
39
|
-
"@ngneat/until-destroy": "^
|
|
38
|
+
"@kolkov/angular-editor": "3.0.0-beta.0",
|
|
39
|
+
"@ngneat/until-destroy": "^10.0.0",
|
|
40
|
+
"@ngx-translate/core": "^15.0.0",
|
|
41
|
+
"@svgdotjs/svg.js": "^3.1.2",
|
|
40
42
|
"angular-animations": "^0.11.0",
|
|
41
|
-
"angular-gridster2": "^
|
|
42
|
-
"angular-oauth2-oidc": "^
|
|
43
|
+
"angular-gridster2": "^17.0.0",
|
|
44
|
+
"angular-oauth2-oidc": "^17.0.1",
|
|
43
45
|
"bootstrap": "^5.1.3",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"leaflet": "^1.8.0",
|
|
48
|
-
"@svgdotjs/svg.js": "^3.2.0",
|
|
49
|
-
"ngx-file-drop": "^13.0.0",
|
|
46
|
+
"flag-icons": "^7.1.0",
|
|
47
|
+
"jwt-decode": "^4.0.0",
|
|
48
|
+
"leaflet": "1.9.4",
|
|
50
49
|
"masonry-layout": "^4.2.2",
|
|
51
50
|
"moment": "^2.29.1",
|
|
52
|
-
"ngx-color-picker": "^
|
|
53
|
-
"ngx-
|
|
51
|
+
"ngx-color-picker": "^16.0.0",
|
|
52
|
+
"ngx-file-drop": "^16.0.0",
|
|
53
|
+
"ngx-masonry": "^14.0.1",
|
|
54
54
|
"ngx-order-pipe": "^2.2.0",
|
|
55
|
-
"rxjs": "
|
|
55
|
+
"rxjs": "^7.4.0",
|
|
56
56
|
"swiper": "^7.3.3",
|
|
57
57
|
"tslib": "^2.3.0",
|
|
58
|
-
"zone.js": "~0.
|
|
58
|
+
"zone.js": "~0.14.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@angular-
|
|
62
|
-
"@angular-
|
|
63
|
-
"@angular-eslint/
|
|
64
|
-
"@angular-eslint/eslint-plugin
|
|
65
|
-
"@angular-eslint/schematics": "
|
|
66
|
-
"@angular-eslint/template-parser": "
|
|
67
|
-
"@angular/cli": "
|
|
68
|
-
"@angular/compiler-cli": "
|
|
69
|
-
"@angular/localize": "^
|
|
61
|
+
"@angular-eslint/eslint-plugin-template": "17.2.1",
|
|
62
|
+
"@angular-devkit/build-angular": "^17.1.2",
|
|
63
|
+
"@angular-eslint/builder": "17.2.1",
|
|
64
|
+
"@angular-eslint/eslint-plugin": "17.2.1",
|
|
65
|
+
"@angular-eslint/schematics": "17.2.1",
|
|
66
|
+
"@angular-eslint/template-parser": "17.2.1",
|
|
67
|
+
"@angular/cli": "^17.1.2",
|
|
68
|
+
"@angular/compiler-cli": "^17.1.2",
|
|
69
|
+
"@angular/localize": "^17.1.2",
|
|
70
70
|
"@types/chance": "^1.1.3",
|
|
71
|
-
"@types/jasmine": "~
|
|
72
|
-
"@types/
|
|
73
|
-
"@
|
|
74
|
-
"@typescript-eslint/
|
|
75
|
-
"eslint": "
|
|
71
|
+
"@types/jasmine": "~5.1.4",
|
|
72
|
+
"@types/leaflet": "^1.7.10",
|
|
73
|
+
"@types/node": "^20.11.16",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
75
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
76
|
+
"eslint": "8.56.0",
|
|
76
77
|
"jasmine-core": "~3.8.0",
|
|
77
78
|
"karma": "~6.3.0",
|
|
78
79
|
"karma-chrome-launcher": "~3.1.0",
|
|
79
80
|
"karma-coverage": "~2.0.3",
|
|
80
81
|
"karma-jasmine": "~4.0.0",
|
|
81
82
|
"karma-jasmine-html-reporter": "^1.5.0",
|
|
82
|
-
"ng-packagr": "^
|
|
83
|
-
"ngx-pwa-icons": "^0.1.2",
|
|
83
|
+
"ng-packagr": "^17.1.2",
|
|
84
84
|
"npm-run-all": "^4.1.5",
|
|
85
|
-
"rimraf": "^
|
|
86
|
-
"typescript": "~
|
|
87
|
-
"wait-on": "^
|
|
85
|
+
"rimraf": "^5.0.5",
|
|
86
|
+
"typescript": "~5.3.3",
|
|
87
|
+
"wait-on": "^7.2.0",
|
|
88
88
|
"webpack-bundle-analyzer": "^4.5.0"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -17,8 +17,5 @@ export class CreditsPageComponent implements AfterViewInit {
|
|
|
17
17
|
ngAfterViewInit(): void {
|
|
18
18
|
this.portalService.setTitle(`Credits`);
|
|
19
19
|
this.faviconService.setPortalFavicon();
|
|
20
|
-
this.configService.getStaticCredits().subscribe((credits) => {
|
|
21
|
-
this.credits = credits;
|
|
22
|
-
} );
|
|
23
20
|
}
|
|
24
21
|
}
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
</p>
|
|
45
45
|
<p>
|
|
46
46
|
- <strong><em>Propagator</em></strong
|
|
47
|
-
|
|
47
|
+
>: servizio applicativo messo a disposizione di alcuni Utenti a supporto
|
|
48
48
|
delle attività di lotta attiva agli incendi boschivi, customizzabile
|
|
49
49
|
per ciascun Utente.
|
|
50
50
|
</p>
|
|
51
51
|
<p>
|
|
52
52
|
- <strong><em>Bulletin</em></strong
|
|
53
|
-
|
|
53
|
+
>: servizio applicativo messo a disposizione di alcuni Utenti a supporto
|
|
54
54
|
delle attività di allertamento, customizzabile per ciascun Utente.
|
|
55
55
|
</p>
|
|
56
56
|
<h3><strong>Idoneità ed accesso</strong></h3>
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
"In caso di conflitto tra gli obblighi del licenziatario derivanti dalla
|
|
154
154
|
licenza EUPL, e quelli derivanti dalle licenze delle componenti integrate,
|
|
155
155
|
ai sensi della clausola di compatibilità “<em
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
>prevalgono gli obblighi prescritti dalla licenza compatibile</em
|
|
157
|
+
>".
|
|
158
158
|
</p>
|
|
159
159
|
<p>
|
|
160
160
|
<strong><em>Utilizzo del portale da parte dell’Utente</em></strong>
|
|
@@ -284,9 +284,9 @@
|
|
|
284
284
|
<ul>
|
|
285
285
|
<li>
|
|
286
286
|
il soggetto richiedente deve darne preventiva comunicazione a DPC o a CIMA
|
|
287
|
-
inviando una e-mail all’indirizzo dewetra
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
inviando una e-mail all’indirizzo dewetra@protezionecivile.it<strong
|
|
288
|
+
>,</strong
|
|
289
|
+
>
|
|
290
290
|
indicando i propri dati identificativi ed il motivo della richiesta;
|
|
291
291
|
</li>
|
|
292
292
|
<li>
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
Per inviare qualunque tipo di comunicazione, reclamo, suggerimento relativo
|
|
375
375
|
al Portale o ai presenti Termini e Condizioni, l’Utente deve
|
|
376
376
|
contattare direttamente DPC o CIMA al seguente indirizzo e-mail:
|
|
377
|
-
mydewetra.world
|
|
377
|
+
mydewetra.world@cimafoundation.org.
|
|
378
378
|
</p>
|
|
379
379
|
<h3><strong>Recesso</strong></h3>
|
|
380
380
|
<p>
|
package/src/new-library/files/__name@dasherize__/projects/__name@dasherize__-test-app/src/test.ts
CHANGED
|
@@ -7,13 +7,6 @@ import {
|
|
|
7
7
|
platformBrowserDynamicTesting
|
|
8
8
|
} from '@angular/platform-browser-dynamic/testing';
|
|
9
9
|
|
|
10
|
-
declare const require: {
|
|
11
|
-
context(path: string, deep?: boolean, filter?: RegExp): {
|
|
12
|
-
keys(): string[];
|
|
13
|
-
<T>(id: string): T;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
|
|
17
10
|
// First, initialize the Angular testing environment.
|
|
18
11
|
getTestBed().initTestEnvironment(
|
|
19
12
|
BrowserDynamicTestingModule,
|
|
@@ -21,7 +14,3 @@ getTestBed().initTestEnvironment(
|
|
|
21
14
|
{ teardown: { destroyAfterEach: true }},
|
|
22
15
|
);
|
|
23
16
|
|
|
24
|
-
// Then we find all the tests.
|
|
25
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
|
26
|
-
// And load the modules.
|
|
27
|
-
context.keys().map(context);
|
|
@@ -10,7 +10,7 @@ import { <%= classify(name) %>AppContainerComponent } from './components/<%= das
|
|
|
10
10
|
import { HomeComponent } from './pages/home/home.component';
|
|
11
11
|
|
|
12
12
|
const routes: Routes = [
|
|
13
|
-
{ path: '', redirectTo: 'home' },
|
|
13
|
+
{ path: '', redirectTo: 'home', pathMatch: 'full'},
|
|
14
14
|
{
|
|
15
15
|
path: '',
|
|
16
16
|
component: <%= classify(name) %>AppContainerComponent,
|
package/src/new-library/files/__name@dasherize__/projects/cima/__name@dasherize__/src/test.ts
CHANGED
|
@@ -15,14 +15,3 @@ declare const require: {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
// First, initialize the Angular testing environment.
|
|
19
|
-
getTestBed().initTestEnvironment(
|
|
20
|
-
BrowserDynamicTestingModule,
|
|
21
|
-
platformBrowserDynamicTesting(),
|
|
22
|
-
{ teardown: { destroyAfterEach: true }},
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
// Then we find all the tests.
|
|
26
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
|
27
|
-
// And load the modules.
|
|
28
|
-
context.keys().map(context);
|
|
@@ -20,9 +20,13 @@
|
|
|
20
20
|
"experimentalDecorators": true,
|
|
21
21
|
"moduleResolution": "node",
|
|
22
22
|
"importHelpers": true,
|
|
23
|
-
"target": "
|
|
23
|
+
"target": "ES2022",
|
|
24
24
|
"module": "es2020",
|
|
25
|
-
"lib": [
|
|
25
|
+
"lib": [
|
|
26
|
+
"es2018",
|
|
27
|
+
"dom"
|
|
28
|
+
],
|
|
29
|
+
"useDefineForClassFields": false
|
|
26
30
|
},
|
|
27
31
|
"angularCompilerOptions": {
|
|
28
32
|
"enableI18nLegacyMessageIdFormat": false,
|