1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

[JslibModule] Refactor to use JslibModule (#1425)

This commit is contained in:
Thomas Rittson 2022-03-21 20:39:35 +10:00 committed by GitHub
parent 75f11cdbf1
commit be0b6113e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 52 deletions

2
jslib

@ -1 +1 @@
Subproject commit 41b199ab831eff8d197e006328274dbf8b1b11bd Subproject commit 9950fb42a15bad434a4b404419ff4a87af67a27b

View File

@ -63,26 +63,7 @@ import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { BrowserModule } from "@angular/platform-browser"; import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { AvatarComponent } from "jslib-angular/components/avatar.component"; import { JslibModule } from "jslib-angular/jslib.module";
import { CalloutComponent } from "jslib-angular/components/callout.component";
import { ExportScopeCalloutComponent } from "jslib-angular/components/export-scope-callout.component";
import { IconComponent } from "jslib-angular/components/icon.component";
import { BitwardenToastModule } from "jslib-angular/components/toastr.component";
import { A11yTitleDirective } from "jslib-angular/directives/a11y-title.directive";
import { ApiActionDirective } from "jslib-angular/directives/api-action.directive";
import { AutofocusDirective } from "jslib-angular/directives/autofocus.directive";
import { BlurClickDirective } from "jslib-angular/directives/blur-click.directive";
import { BoxRowDirective } from "jslib-angular/directives/box-row.directive";
import { CipherListVirtualScroll } from "jslib-angular/directives/cipherListVirtualScroll.directive";
import { FallbackSrcDirective } from "jslib-angular/directives/fallback-src.directive";
import { InputVerbatimDirective } from "jslib-angular/directives/input-verbatim.directive";
import { SelectCopyDirective } from "jslib-angular/directives/select-copy.directive";
import { StopClickDirective } from "jslib-angular/directives/stop-click.directive";
import { StopPropDirective } from "jslib-angular/directives/stop-prop.directive";
import { TrueFalseValueDirective } from "jslib-angular/directives/true-false-value.directive";
import { ColorPasswordPipe } from "jslib-angular/pipes/color-password.pipe";
import { I18nPipe } from "jslib-angular/pipes/i18n.pipe";
import { SearchCiphersPipe } from "jslib-angular/pipes/search-ciphers.pipe";
import { EnvironmentComponent } from "./accounts/environment.component"; import { EnvironmentComponent } from "./accounts/environment.component";
import { HintComponent } from "./accounts/hint.component"; import { HintComponent } from "./accounts/hint.component";
@ -183,47 +164,32 @@ registerLocaleData(localeZhTw, "zh-TW");
@NgModule({ @NgModule({
imports: [ imports: [
A11yModule,
AppRoutingModule, AppRoutingModule,
BrowserAnimationsModule, BrowserAnimationsModule,
BrowserModule, BrowserModule,
DragDropModule, DragDropModule,
FormsModule, FormsModule,
ReactiveFormsModule, JslibModule,
ServicesModule,
BitwardenToastModule.forRoot({
maxOpened: 5,
autoDismiss: true,
closeButton: true,
}),
ScrollingModule,
A11yModule,
OverlayModule, OverlayModule,
ReactiveFormsModule,
ScrollingModule,
ServicesModule,
], ],
declarations: [ declarations: [
A11yTitleDirective, AccountSwitcherComponent,
AddEditComponent, AddEditComponent,
AddEditCustomFieldsComponent, AddEditCustomFieldsComponent,
ApiActionDirective,
AppComponent, AppComponent,
AttachmentsComponent, AttachmentsComponent,
AutofocusDirective,
BlurClickDirective,
BoxRowDirective,
CalloutComponent,
CipherListVirtualScroll,
CiphersComponent, CiphersComponent,
CollectionsComponent, CollectionsComponent,
ColorPasswordPipe,
EnvironmentComponent, EnvironmentComponent,
ExportComponent, ExportComponent,
ExportScopeCalloutComponent,
FallbackSrcDirective,
FolderAddEditComponent, FolderAddEditComponent,
GroupingsComponent, GroupingsComponent,
HeaderComponent,
HintComponent, HintComponent,
I18nPipe,
IconComponent,
InputVerbatimDirective,
LockComponent, LockComponent,
LoginComponent, LoginComponent,
NavComponent, NavComponent,
@ -234,8 +200,7 @@ registerLocaleData(localeZhTw, "zh-TW");
PremiumComponent, PremiumComponent,
RegisterComponent, RegisterComponent,
RemovePasswordComponent, RemovePasswordComponent,
SearchCiphersPipe, SearchComponent,
SelectCopyDirective,
SendAddEditComponent, SendAddEditComponent,
SendComponent, SendComponent,
SendEffluxDatesComponent, SendEffluxDatesComponent,
@ -244,9 +209,6 @@ registerLocaleData(localeZhTw, "zh-TW");
SettingsComponent, SettingsComponent,
ShareComponent, ShareComponent,
SsoComponent, SsoComponent,
StopClickDirective,
StopPropDirective,
TrueFalseValueDirective,
TwoFactorComponent, TwoFactorComponent,
TwoFactorOptionsComponent, TwoFactorOptionsComponent,
UpdateTempPasswordComponent, UpdateTempPasswordComponent,
@ -255,10 +217,6 @@ registerLocaleData(localeZhTw, "zh-TW");
VerifyMasterPasswordComponent, VerifyMasterPasswordComponent,
ViewComponent, ViewComponent,
ViewCustomFieldsComponent, ViewCustomFieldsComponent,
HeaderComponent,
AccountSwitcherComponent,
AvatarComponent,
SearchComponent,
], ],
providers: [DatePipe], providers: [DatePipe],
bootstrap: [AppComponent], bootstrap: [AppComponent],