Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d7399e7

Browse files
changes
1 parent a1d5c0f commit d7399e7

File tree

18 files changed

+134
-23
lines changed

18 files changed

+134
-23
lines changed

‎AngularUI/angular.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@
2424
"tsConfig": "tsconfig.app.json",
2525
"assets": [
2626
"src/favicon.ico",
27-
"src/assets"
27+
"src/assets",
28+
"src/manifest.webmanifest",
29+
"src/manifest.webmanifest"
2830
],
2931
"styles": [
3032
"src/custom-theme.scss",
3133
"src/styles.css",
3234
"node_modules/ngx-toastr/toastr.css"
3335
],
34-
"scripts": []
36+
"scripts": [],
37+
"serviceWorker": true,
38+
"ngswConfigPath": "ngsw-config.json"
3539
},
3640
"configurations": {
3741
"production": {
@@ -93,7 +97,9 @@
9397
"karmaConfig": "karma.conf.js",
9498
"assets": [
9599
"src/favicon.ico",
96-
"src/assets"
100+
"src/assets",
101+
"src/manifest.webmanifest",
102+
"src/manifest.webmanifest"
97103
],
98104
"styles": [
99105
"src/styles.css"

‎AngularUI/ngsw-config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
3+
"index": "/index.html",
4+
"assetGroups": [
5+
{
6+
"name": "app",
7+
"installMode": "prefetch",
8+
"resources": {
9+
"files": [
10+
"/favicon.ico",
11+
"/index.html",
12+
"/manifest.webmanifest",
13+
"/*.css",
14+
"/*.js"
15+
]
16+
}
17+
},
18+
{
19+
"name": "assets",
20+
"installMode": "lazy",
21+
"updateMode": "prefetch",
22+
"resources": {
23+
"files": [
24+
"/assets/**",
25+
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
26+
]
27+
}
28+
}
29+
]
30+
}

‎AngularUI/package-lock.json

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

‎AngularUI/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"@angular/platform-browser": "~13.2.4",
2222
"@angular/platform-browser-dynamic": "~13.2.4",
2323
"@angular/router": "~13.2.4",
24-
"ngx-toastr": "^14.2.2",
24+
"@angular/service-worker": "~13.2.4",
25+
"ngx-toastr": "^14.2.4",
2526
"rxjs": "~7.4.0",
2627
"tslib": "^2.3.0",
2728
"zone.js": "~0.11.4"

‎AngularUI/src/app/app.module.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import { MatSelectModule } from '@angular/material/select';
3232
import { MatDatepickerModule } from '@angular/material/datepicker';
3333
import { MatNativeDateModule } from '@angular/material/core';
3434
import { MatToolbarModule } from '@angular/material/toolbar';
35+
import { ServiceWorkerModule } from '@angular/service-worker';
36+
import { environment } from '../environments/environment';
3537

3638
@NgModule({
3739
declarations: [
@@ -69,6 +71,18 @@ import { MatToolbarModule } from '@angular/material/toolbar';
6971
MatDatepickerModule,
7072
MatNativeDateModule,
7173
MatToolbarModule,
74+
ServiceWorkerModule.register('ngsw-worker.js', {
75+
enabled: environment.production,
76+
// Register the ServiceWorker as soon as the application is stable
77+
// or after 30 seconds (whichever comes first).
78+
registrationStrategy: 'registerWhenStable:30000'
79+
}),
80+
ServiceWorkerModule.register('ngsw-worker.js', {
81+
enabled: environment.production,
82+
// Register the ServiceWorker as soon as the app is stable
83+
// or after 30 seconds (whichever comes first).
84+
registrationStrategy: 'registerWhenStable:30000'
85+
}),
7286
],
7387
providers: [],
7488
bootstrap: [AppComponent],

‎AngularUI/src/app/components/department/show-dep/show-dep.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,13 @@ export class ShowDepComponent implements OnInit, AfterViewInit {
6060
addDepartment() {
6161
this.updateClicked = false;
6262
this.dialog.open(AddEditDepComponent, {
63-
width: '60%',
6463
data: [this.dep, this.updateClicked],
6564
});
6665
}
6766

6867
editClick(item: Department) {
6968
this.updateClicked = true;
7069
this.dialog.open(AddEditDepComponent, {
71-
width: '60%',
7270
data: [item, this.updateClicked],
7371
});
7472
}

‎AngularUI/src/app/components/employee/show-emp/show-emp.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,13 @@ export class ShowEmpComponent implements OnInit, AfterViewInit {
6363
addEmployee() {
6464
this.updateClicked = false;
6565
this.dialog.open(AddEditEmpComponent, {
66-
width: '60%',
6766
data: [null, this.updateClicked],
6867
});
6968
}
7069

7170
editEmployee(item: Employee) {
7271
this.updateClicked = true;
7372
this.dialog.open(AddEditEmpComponent, {
74-
width: '60%',
7573
data: [item, this.updateClicked],
7674
});
7775
}
1.22 KB
Loading[フレーム]
1.36 KB
Loading[フレーム]
1.39 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /