Skip to content

Commit 17b70ba

Browse files
committed
chore: updated project structure
1 parent 8c39911 commit 17b70ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+234
-535
lines changed

angular.json

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"aot": false,
2626
"assets": [
2727
"apps/mc-web/src/favicon.ico",
28+
"apps/mc-web/src/assets",
2829
{
29-
"glob": "**/+(common|errors).json",
30+
"glob": "**/*",
3031
"input": "./libs/i18n-resources",
3132
"output": "./assets/i18n"
3233
}
@@ -105,25 +106,6 @@
105106
}
106107
}
107108
},
108-
"welcome": {
109-
"root": "libs/feature/welcome",
110-
"sourceRoot": "libs/feature/welcome/src",
111-
"projectType": "library",
112-
"prefix": "mc-web",
113-
"architect": {
114-
"lint": {
115-
"builder": "@angular-devkit/build-angular:tslint",
116-
"options": {
117-
"tsConfig": [
118-
"libs/feature/welcome/tsconfig.lib.json"
119-
],
120-
"exclude": [
121-
"**/node_modules/**"
122-
]
123-
}
124-
}
125-
}
126-
},
127109
"mc-mocks-server": {
128110
"root": "apps/mc-mocks-server",
129111
"sourceRoot": "apps/mc-mocks-server/src",
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2-
# For additional information regarding the format and rule options, please see:
3-
# https://github.com/browserslist/browserslist#queries
4-
5-
# You can see what browsers were selected by your queries by running:
6-
# npx browserslist
7-
8-
> 0.5%
9-
last 2 versions
10-
Firefox ESR
11-
not dead
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
1212
not IE 9-11 # For IE 9-11 support, remove 'not'.

apps/mc-web/package.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/mc-web/src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const routes: Routes = [
1010
},
1111
{
1212
path: 'welcome',
13-
loadChildren: () => import('@libs/feature/welcome').then(m => m.WelcomeModule)
14-
},
13+
loadChildren: () => import('@mc-web/welcome/shell').then(m => m.ManagementShellModule)
14+
}
1515
];
1616

1717

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,10 @@
1-
import { Component, OnInit, Renderer2 } from '@angular/core';
2-
import { AppTheme } from '@libs/api-models';
3-
import { LayoutFacade } from '@libs/store/layout';
1+
import { Component } from '@angular/core';
42

53

64
@Component({
75
selector: 'app-root',
86
templateUrl: './app.component.html'
97
})
10-
export class AppComponent implements OnInit {
8+
export class AppComponent {
119

12-
currentModelTheme: AppTheme;
13-
currentTheme: AppTheme;
14-
15-
constructor(
16-
private renderer: Renderer2,
17-
private layoutFacade: LayoutFacade
18-
) {}
19-
20-
ngOnInit() {
21-
this.layoutFacade.getTheme().subscribe((theme) => {
22-
this.changeThemeOnBody(theme);
23-
});
24-
}
25-
26-
themeChange(newTheme: AppTheme) {
27-
this.layoutFacade.setTheme(newTheme);
28-
}
29-
30-
private changeThemeOnBody(theme) {
31-
if (theme) {
32-
this.renderer.removeClass(document.body, `theme-${this.currentTheme}`);
33-
this.currentTheme = this.currentModelTheme = theme;
34-
this.renderer.addClass(document.body, `theme-${theme}`);
35-
}
36-
}
3710
}

apps/mc-web/src/app/app.module.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { NgModule } from '@angular/core';
22
import { FormsModule } from '@angular/forms';
33
import { BrowserModule } from '@angular/platform-browser';
44
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
5-
import { StateLayoutModule } from '@libs/store/layout';
6-
import { StoreRootModule } from '@libs/store/root';
75
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
86
import { McNavbarModule } from '@ptsecurity/mosaic/navbar';
97

@@ -29,10 +27,7 @@ import { AppComponent } from './app.component';
2927
StoreDevtoolsModule.instrument({
3028
name: 'mc-web',
3129
logOnly: environment.production
32-
}),
33-
34-
StoreRootModule,
35-
StateLayoutModule
30+
})
3631
],
3732
bootstrap: [AppComponent]
3833
})

apps/mc-web/src/app/app.theme.scss

Lines changed: 0 additions & 78 deletions
This file was deleted.
File renamed without changes.

apps/mc-web/tsconfig.app.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc/apps/mc-web"
4+
"outDir": "../../dist/out-tsc",
5+
"types": []
56
},
6-
"exclude": [
7-
"test.ts",
8-
"**/*.spec.ts"
9-
],
10-
"include": [
11-
"**/*.ts",
12-
"../../libs/feature/auth/src/index.ts"
13-
]
7+
"files": ["src/main.ts", "src/polyfills.ts"]
148
}

apps/mc-web/tsconfig.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)