1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-03 13:33:32 +01:00
bitwarden-browser/src/popup/app.module.ts

214 lines
8.7 KiB
TypeScript
Raw Normal View History

2018-04-04 04:14:54 +02:00
import 'core-js';
import 'zone.js/dist/zone';
import { DragDropModule } from '@angular/cdk/drag-drop';
2018-04-04 04:14:54 +02:00
import { ToasterModule } from 'angular2-toaster';
import { Angulartics2Module } from 'angulartics2';
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';
2018-04-11 16:23:12 +02:00
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
2018-04-04 04:14:54 +02:00
import { AppRoutingModule } from './app-routing.module';
import { ServicesModule } from './services/services.module';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { EnvironmentComponent } from './accounts/environment.component';
import { HintComponent } from './accounts/hint.component';
import { HomeComponent } from './accounts/home.component';
2018-04-05 04:59:42 +02:00
import { LockComponent } from './accounts/lock.component';
2018-04-04 04:14:54 +02:00
import { LoginComponent } from './accounts/login.component';
import { RegisterComponent } from './accounts/register.component';
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
import { TwoFactorComponent } from './accounts/two-factor.component';
2018-04-14 04:08:24 +02:00
import { AppComponent } from './app.component';
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
import { PasswordGeneratorComponent } from './generator/password-generator.component';
2018-04-14 04:08:24 +02:00
import { PrivateModeComponent } from './private-mode.component';
import { ExportComponent } from './settings/export.component';
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
import { FoldersComponent } from './settings/folders.component';
2018-04-13 20:19:33 +02:00
import { OptionsComponent } from './settings/options.component';
2018-04-13 19:18:56 +02:00
import { PremiumComponent } from './settings/premium.component';
2018-04-09 23:35:16 +02:00
import { SettingsComponent } from './settings/settings.component';
2018-04-13 17:49:03 +02:00
import { SyncComponent } from './settings/sync.component';
2018-04-05 04:59:42 +02:00
import { TabsComponent } from './tabs.component';
2018-04-06 05:49:04 +02:00
import { AddEditComponent } from './vault/add-edit.component';
2018-04-11 19:51:09 +02:00
import { AttachmentsComponent } from './vault/attachments.component';
import { CiphersComponent } from './vault/ciphers.component';
2018-10-23 18:16:27 +02:00
import { CollectionsComponent } from './vault/collections.component';
2018-04-05 04:59:42 +02:00
import { CurrentTabComponent } from './vault/current-tab.component';
import { GroupingsComponent } from './vault/groupings.component';
2018-07-30 16:54:38 +02:00
import { PasswordHistoryComponent } from './vault/password-history.component';
import { ShareComponent } from './vault/share.component';
2018-04-06 05:09:49 +02:00
import { ViewComponent } from './vault/view.component';
2018-04-04 04:14:54 +02:00
2019-04-04 17:54:24 +02:00
import { A11yTitleDirective } from 'jslib/angular/directives/a11y-title.directive';
2018-04-04 14:27:31 +02:00
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';
2018-04-04 14:27:31 +02:00
import { FallbackSrcDirective } from 'jslib/angular/directives/fallback-src.directive';
2018-04-25 23:53:51 +02:00
import { InputVerbatimDirective } from 'jslib/angular/directives/input-verbatim.directive';
import { SelectCopyDirective } from 'jslib/angular/directives/select-copy.directive';
2018-04-04 14:27:31 +02:00
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';
2018-04-04 14:27:31 +02:00
2018-12-08 20:00:18 +01:00
import { ColorPasswordPipe } from 'jslib/angular/pipes/color-password.pipe';
2018-04-04 14:27:31 +02:00
import { I18nPipe } from 'jslib/angular/pipes/i18n.pipe';
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
import { ActionButtonsComponent } from './components/action-buttons.component';
2018-04-05 23:27:31 +02:00
import { CiphersListComponent } from './components/ciphers-list.component';
import { PopOutComponent } from './components/pop-out.component';
import { IconComponent } from 'jslib/angular/components/icon.component';
2018-04-04 14:27:31 +02:00
2018-08-31 21:47:35 +02:00
import {
CurrencyPipe,
registerLocaleData,
} from '@angular/common';
2018-08-02 15:30:33 +02:00
import localeBg from '@angular/common/locales/bg';
2019-01-18 21:59:00 +01:00
import localeCa from '@angular/common/locales/ca';
2018-08-02 15:30:33 +02:00
import localeCs from '@angular/common/locales/cs';
import localeDa from '@angular/common/locales/da';
import localeDe from '@angular/common/locales/de';
2019-01-16 02:47:48 +01:00
import localeEnGb from '@angular/common/locales/en-GB';
2018-08-02 15:30:33 +02:00
import localeEs from '@angular/common/locales/es';
import localeEt from '@angular/common/locales/et';
import localeFa from '@angular/common/locales/fa';
import localeFi from '@angular/common/locales/fi';
import localeFr from '@angular/common/locales/fr';
2019-08-29 13:20:41 +02:00
import localeHe from '@angular/common/locales/he';
2018-08-02 15:30:33 +02:00
import localeHr from '@angular/common/locales/hr';
import localeHu from '@angular/common/locales/hu';
import localeId from '@angular/common/locales/id';
import localeIt from '@angular/common/locales/it';
import localeJa from '@angular/common/locales/ja';
import localeKo from '@angular/common/locales/ko';
import localeNb from '@angular/common/locales/nb';
import localeNl from '@angular/common/locales/nl';
import localePl from '@angular/common/locales/pl';
import localePtBr from '@angular/common/locales/pt';
import localePtPt from '@angular/common/locales/pt-PT';
import localeRo from '@angular/common/locales/ro';
import localeRu from '@angular/common/locales/ru';
import localeSk from '@angular/common/locales/sk';
import localeSv from '@angular/common/locales/sv';
import localeTh from '@angular/common/locales/th';
import localeTr from '@angular/common/locales/tr';
import localeUk from '@angular/common/locales/uk';
import localeVi from '@angular/common/locales/vi';
import localeZhCn from '@angular/common/locales/zh-Hans';
import localeZhTw from '@angular/common/locales/zh-Hant';
registerLocaleData(localeBg, 'bg');
2019-01-18 21:59:00 +01:00
registerLocaleData(localeCa, 'ca');
2018-08-02 15:30:33 +02:00
registerLocaleData(localeCs, 'cs');
registerLocaleData(localeDa, 'da');
registerLocaleData(localeDe, 'de');
2019-01-16 02:47:48 +01:00
registerLocaleData(localeEnGb, 'en-GB');
2018-08-02 15:30:33 +02:00
registerLocaleData(localeEs, 'es');
registerLocaleData(localeEt, 'et');
registerLocaleData(localeFa, 'fa');
registerLocaleData(localeFi, 'fi');
registerLocaleData(localeFr, 'fr');
2019-08-29 13:20:41 +02:00
registerLocaleData(localeHe, 'he');
2018-08-02 15:30:33 +02:00
registerLocaleData(localeHr, 'hr');
registerLocaleData(localeHu, 'hu');
registerLocaleData(localeId, 'id');
registerLocaleData(localeIt, 'it');
registerLocaleData(localeJa, 'ja');
registerLocaleData(localeKo, 'ko');
registerLocaleData(localeNb, 'nb');
registerLocaleData(localeNl, 'nl');
registerLocaleData(localePl, 'pl');
registerLocaleData(localePtBr, 'pt-BR');
registerLocaleData(localePtPt, 'pt-PT');
registerLocaleData(localeRo, 'ro');
registerLocaleData(localeRu, 'ru');
registerLocaleData(localeSk, 'sk');
registerLocaleData(localeSv, 'sv');
registerLocaleData(localeTh, 'th');
registerLocaleData(localeTr, 'tr');
registerLocaleData(localeUk, 'uk');
registerLocaleData(localeVi, 'vi');
registerLocaleData(localeZhCn, 'zh-CN');
registerLocaleData(localeZhTw, 'zh-TW');
2018-04-04 04:14:54 +02:00
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
AppRoutingModule,
ServicesModule,
Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
pageTracking: {
clearQueryParams: true,
},
}),
2018-09-12 05:54:39 +02:00
ToasterModule.forRoot(),
2018-04-11 16:23:12 +02:00
InfiniteScrollModule,
DragDropModule,
2018-04-04 04:14:54 +02:00
],
declarations: [
2019-04-04 17:54:24 +02:00
A11yTitleDirective,
ActionButtonsComponent,
2018-04-06 05:49:04 +02:00
AddEditComponent,
2018-04-04 14:27:31 +02:00
ApiActionDirective,
2018-04-04 04:14:54 +02:00
AppComponent,
2018-04-11 19:51:09 +02:00
AttachmentsComponent,
2018-04-04 14:27:31 +02:00
AutofocusDirective,
BlurClickDirective,
BoxRowDirective,
CiphersComponent,
2018-04-05 23:27:31 +02:00
CiphersListComponent,
2018-10-23 18:16:27 +02:00
CollectionsComponent,
2018-12-08 20:00:18 +01:00
ColorPasswordPipe,
2018-04-05 04:59:42 +02:00
CurrentTabComponent,
EnvironmentComponent,
2018-04-10 01:05:36 +02:00
ExportComponent,
2018-04-04 14:27:31 +02:00
FallbackSrcDirective,
FolderAddEditComponent,
FoldersComponent,
2018-04-05 04:59:42 +02:00
GroupingsComponent,
HomeComponent,
HintComponent,
2018-04-04 14:27:31 +02:00
I18nPipe,
IconComponent,
2018-04-25 23:53:51 +02:00
InputVerbatimDirective,
2018-04-05 04:59:42 +02:00
LockComponent,
2018-04-04 04:14:54 +02:00
LoginComponent,
2018-04-13 20:19:33 +02:00
OptionsComponent,
2018-04-09 23:35:16 +02:00
PasswordGeneratorComponent,
PasswordGeneratorHistoryComponent,
2018-07-30 16:54:38 +02:00
PasswordHistoryComponent,
PopOutComponent,
2018-04-13 19:18:56 +02:00
PremiumComponent,
2018-04-14 04:08:24 +02:00
PrivateModeComponent,
RegisterComponent,
SearchCiphersPipe,
SelectCopyDirective,
2018-04-09 23:35:16 +02:00
SettingsComponent,
ShareComponent,
2018-04-04 14:27:31 +02:00
StopClickDirective,
StopPropDirective,
2018-04-13 17:49:03 +02:00
SyncComponent,
2018-04-05 04:59:42 +02:00
TabsComponent,
TrueFalseValueDirective,
TwoFactorOptionsComponent,
2018-04-06 05:09:49 +02:00
TwoFactorComponent,
ViewComponent,
2018-04-04 04:14:54 +02:00
],
2018-04-14 04:08:24 +02:00
entryComponents: [],
2018-08-31 21:47:35 +02:00
providers: [
CurrencyPipe,
],
2018-04-04 04:14:54 +02:00
bootstrap: [AppComponent],
})
export class AppModule { }