mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-10 19:38:11 +01:00
[PM-2014] feat: add new auth and auth core modules
This commit is contained in:
parent
2928ec7dd7
commit
cfe8d9265a
@ -6,6 +6,7 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||
import { InfiniteScrollModule } from "ngx-infinite-scroll";
|
||||
|
||||
import { AppComponent } from "./app.component";
|
||||
import { AuthModule } from "./auth";
|
||||
import { CoreModule } from "./core";
|
||||
import { OssRoutingModule } from "./oss-routing.module";
|
||||
import { OssModule } from "./oss.module";
|
||||
@ -13,6 +14,7 @@ import { WildcardRoutingModule } from "./wildcard-routing.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
AuthModule,
|
||||
OssModule,
|
||||
BrowserAnimationsModule,
|
||||
FormsModule,
|
||||
|
11
apps/web/src/app/auth/auth.module.ts
Normal file
11
apps/web/src/app/auth/auth.module.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { CoreAuthModule } from "./core/core.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [CoreAuthModule],
|
||||
declarations: [],
|
||||
providers: [],
|
||||
exports: [],
|
||||
})
|
||||
export class AuthModule {}
|
10
apps/web/src/app/auth/core/core.module.ts
Normal file
10
apps/web/src/app/auth/core/core.module.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { NgModule, Optional, SkipSelf } from "@angular/core";
|
||||
|
||||
@NgModule({})
|
||||
export class CoreAuthModule {
|
||||
constructor(@Optional() @SkipSelf() parentModule?: CoreAuthModule) {
|
||||
if (parentModule) {
|
||||
throw new Error("CoreAuthModule is already loaded. Import it in AuthModule only");
|
||||
}
|
||||
}
|
||||
}
|
1
apps/web/src/app/auth/index.ts
Normal file
1
apps/web/src/app/auth/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "./auth.module";
|
Loading…
Reference in New Issue
Block a user