Skip to content

Commit 495e32c

Browse files
committed
improved CI/CD and cleaned code
1 parent 3b38057 commit 495e32c

File tree

7 files changed

+10
-243
lines changed

7 files changed

+10
-243
lines changed

.github/workflows/ngx-default.yml

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
cp -r client/* ngx-default/
3232
cd ngx-default
3333
echo "ngx.webart.work" > CNAME
34+
sed -i "s/admins.guard';/admins.guard';\\nimport { HashLocationStrategy, LocationStrategy } from '@angular\\/common';/g" src/app/app.module.ts
35+
sed -i "s|/\* providers \*/|/* providers */\\n\t\t{ provide: LocationStrategy, useClass: HashLocationStrategy },|g" src/app/app.module.ts
36+
sed -i "s/url: ''/url: 'https:\/\/webart.work'/g" src/environments/environment.prod.ts
3437
git add .
3538
git commit -m "Update Angular files from source repository" || echo "No changes to commit"
3639
git push --force

client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"private": true,
99
"dependencies": {
1010
"@angular/animations": "^19.0.1",
11-
"@angular/cdk": "^19.0.0",
11+
"@angular/cdk": "^19.0.1",
1212
"@angular/common": "^19.0.1",
1313
"@angular/compiler": "^19.0.1",
1414
"@angular/core": "^19.0.1",

client/src/app/app.module.ts

+6-14
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,6 @@ const routes: Routes = [
3939
(m) => m.ComponentsModule
4040
)
4141
},
42-
{
43-
path: 'test',
44-
canActivate: [MetaGuard],
45-
data: {
46-
meta: {
47-
title: 'test'
48-
}
49-
},
50-
loadChildren: () =>
51-
import('./pages/guest/test/test.module').then(
52-
(m) => m.TestModule
53-
)
54-
},
5542
{
5643
path: 'sign',
5744
canActivate: [MetaGuard],
@@ -188,7 +175,12 @@ const routes: Routes = [
188175
preloadingStrategy: PreloadAllModules
189176
})
190177
],
191-
providers: [AuthenticatedGuard, GuestGuard, AdminsGuard],
178+
providers: [
179+
/* providers */
180+
AuthenticatedGuard,
181+
GuestGuard,
182+
AdminsGuard
183+
],
192184
bootstrap: [AppComponent]
193185
})
194186
export class AppModule {}

client/src/app/pages/guest/test/test.component.html

-144
This file was deleted.

client/src/app/pages/guest/test/test.component.scss

-52
This file was deleted.

client/src/app/pages/guest/test/test.component.ts

-7
This file was deleted.

client/src/app/pages/guest/test/test.module.ts

-25
This file was deleted.

0 commit comments

Comments
 (0)