1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-09 19:28:06 +01:00

[PM-2014] feat: add new auth and auth core modules

This commit is contained in:
Andreas Coroiu 2023-05-08 09:37:07 +02:00
parent 2928ec7dd7
commit cfe8d9265a
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A
4 changed files with 24 additions and 0 deletions

View File

@ -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,

View 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 {}

View 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");
}
}
}

View File

@ -0,0 +1 @@
export * from "./auth.module";