[JslibModule] Refactor to use JslibModule (#2462)

This commit is contained in:
Thomas Rittson 2022-03-21 21:13:02 +10:00 committed by GitHub
parent 7fc0844dd4
commit b54cc6ec8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 46 deletions

2
jslib

@ -1 +1 @@
Subproject commit f88515745c1164576929f63f72b1f06bdf79464a Subproject commit 9950fb42a15bad434a4b404419ff4a87af67a27b

View File

@ -58,26 +58,8 @@ 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 { 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 { BitwardenToastModule } from "jslib-angular/components/toastr.component";
import { A11yTitleDirective } from "jslib-angular/directives/a11y-title.directive"; import { JslibModule } from "jslib-angular/jslib.module";
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 { ColorPasswordCountPipe } from "jslib-angular/pipes/color-password-count.pipe";
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";
@ -186,52 +168,39 @@ registerLocaleData(localeZhTw, "zh-TW");
imports: [ imports: [
A11yModule, A11yModule,
AppRoutingModule, AppRoutingModule,
BrowserAnimationsModule,
BrowserModule,
DragDropModule,
FormsModule,
ReactiveFormsModule,
ScrollingModule,
ServicesModule,
BitwardenToastModule.forRoot({ BitwardenToastModule.forRoot({
maxOpened: 2, maxOpened: 2,
autoDismiss: true, autoDismiss: true,
closeButton: true, closeButton: true,
positionClass: "toast-bottom-full-width", positionClass: "toast-bottom-full-width",
}), }),
BrowserAnimationsModule,
BrowserModule,
DragDropModule,
FormsModule,
JslibModule,
ReactiveFormsModule,
ScrollingModule,
ServicesModule,
], ],
declarations: [ declarations: [
A11yTitleDirective,
ActionButtonsComponent, ActionButtonsComponent,
AddEditComponent, AddEditComponent,
AddEditCustomFieldsComponent, AddEditCustomFieldsComponent,
ApiActionDirective,
AppComponent, AppComponent,
AttachmentsComponent, AttachmentsComponent,
AutofocusDirective,
BlurClickDirective,
BoxRowDirective,
CalloutComponent,
CipherListVirtualScroll,
CipherRowComponent, CipherRowComponent,
CiphersComponent, CiphersComponent,
CollectionsComponent, CollectionsComponent,
ColorPasswordCountPipe,
ColorPasswordPipe,
CurrentTabComponent, CurrentTabComponent,
EnvironmentComponent, EnvironmentComponent,
ExcludedDomainsComponent, ExcludedDomainsComponent,
ExportComponent, ExportComponent,
ExportScopeCalloutComponent,
FallbackSrcDirective,
FolderAddEditComponent, FolderAddEditComponent,
FoldersComponent, FoldersComponent,
GroupingsComponent, GroupingsComponent,
HintComponent, HintComponent,
HomeComponent, HomeComponent,
I18nPipe,
IconComponent,
InputVerbatimDirective,
LockComponent, LockComponent,
LoginComponent, LoginComponent,
OptionsComponent, OptionsComponent,
@ -243,8 +212,6 @@ registerLocaleData(localeZhTw, "zh-TW");
PremiumComponent, PremiumComponent,
PrivateModeWarningComponent, PrivateModeWarningComponent,
RegisterComponent, RegisterComponent,
SearchCiphersPipe,
SelectCopyDirective,
SendAddEditComponent, SendAddEditComponent,
SendEffluxDatesComponent, SendEffluxDatesComponent,
SendGroupingsComponent, SendGroupingsComponent,
@ -255,11 +222,8 @@ registerLocaleData(localeZhTw, "zh-TW");
SettingsComponent, SettingsComponent,
ShareComponent, ShareComponent,
SsoComponent, SsoComponent,
StopClickDirective,
StopPropDirective,
SyncComponent, SyncComponent,
TabsComponent, TabsComponent,
TrueFalseValueDirective,
TwoFactorComponent, TwoFactorComponent,
TwoFactorOptionsComponent, TwoFactorOptionsComponent,
UpdateTempPasswordComponent, UpdateTempPasswordComponent,