2018-01-23 05:37:36 +01:00
|
|
|
import 'core-js';
|
2018-01-16 20:48:34 +01:00
|
|
|
import 'zone.js/dist/zone';
|
|
|
|
|
2018-02-08 16:37:54 +01:00
|
|
|
import { ToasterModule } from 'angular2-toaster';
|
2018-01-26 16:50:06 +01:00
|
|
|
import { Angulartics2Module } from 'angulartics2';
|
|
|
|
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';
|
2019-03-19 16:34:56 +01:00
|
|
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
2018-02-08 16:37:54 +01:00
|
|
|
|
2018-01-16 21:58:17 +01:00
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
2018-04-25 05:26:50 +02:00
|
|
|
import { ServicesModule } from './services.module';
|
2018-01-16 21:58:17 +01:00
|
|
|
|
2019-03-28 04:52:15 +01:00
|
|
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
2021-02-03 22:24:49 +01:00
|
|
|
import { DatePipe } from '@angular/common';
|
2018-02-08 16:37:54 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { FormsModule } from '@angular/forms';
|
2018-02-10 21:20:13 +01:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
2018-02-08 16:37:54 +01:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
|
2018-01-16 20:48:34 +01:00
|
|
|
import { AppComponent } from './app.component';
|
2018-02-08 16:37:54 +01:00
|
|
|
|
|
|
|
import { EnvironmentComponent } from './accounts/environment.component';
|
|
|
|
import { HintComponent } from './accounts/hint.component';
|
2018-02-10 04:47:53 +01:00
|
|
|
import { LockComponent } from './accounts/lock.component';
|
2018-02-08 16:37:54 +01:00
|
|
|
import { LoginComponent } from './accounts/login.component';
|
2018-02-16 21:03:29 +01:00
|
|
|
import { PremiumComponent } from './accounts/premium.component';
|
2018-02-08 16:37:54 +01:00
|
|
|
import { RegisterComponent } from './accounts/register.component';
|
2020-08-21 15:50:36 +02:00
|
|
|
import { SetPasswordComponent } from './accounts/set-password.component';
|
2018-02-10 05:41:29 +01:00
|
|
|
import { SettingsComponent } from './accounts/settings.component';
|
2020-08-21 15:50:36 +02:00
|
|
|
import { SsoComponent } from './accounts/sso.component';
|
2018-02-08 16:37:54 +01:00
|
|
|
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
|
|
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
|
|
|
|
2020-02-28 22:58:51 +01:00
|
|
|
import { CalloutComponent } from 'jslib/angular/components/callout.component';
|
2018-04-11 05:49:41 +02:00
|
|
|
import { IconComponent } from 'jslib/angular/components/icon.component';
|
2018-04-25 05:23:10 +02:00
|
|
|
import { ModalComponent } from 'jslib/angular/components/modal.component';
|
2018-04-11 05:49:41 +02:00
|
|
|
|
2019-04-02 04:43:42 +02:00
|
|
|
import { A11yTitleDirective } from 'jslib/angular/directives/a11y-title.directive';
|
2018-04-04 14:30:14 +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';
|
2018-04-04 20:19:09 +02:00
|
|
|
import { BoxRowDirective } from 'jslib/angular/directives/box-row.directive';
|
2018-04-04 14:30:14 +02:00
|
|
|
import { FallbackSrcDirective } from 'jslib/angular/directives/fallback-src.directive';
|
2019-04-01 19:40:49 +02:00
|
|
|
import { SelectCopyDirective } from 'jslib/angular/directives/select-copy.directive';
|
2018-04-04 14:30:14 +02:00
|
|
|
import { StopClickDirective } from 'jslib/angular/directives/stop-click.directive';
|
|
|
|
import { StopPropDirective } from 'jslib/angular/directives/stop-prop.directive';
|
2018-06-06 20:35:56 +02:00
|
|
|
import { TrueFalseValueDirective } from 'jslib/angular/directives/true-false-value.directive';
|
2018-02-08 16:37:54 +01:00
|
|
|
|
2018-12-08 17:06:46 +01:00
|
|
|
import { ColorPasswordPipe } from 'jslib/angular/pipes/color-password.pipe';
|
2018-04-04 14:30:14 +02:00
|
|
|
import { I18nPipe } from 'jslib/angular/pipes/i18n.pipe';
|
2018-04-05 17:11:32 +02:00
|
|
|
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
2018-02-08 16:37:54 +01:00
|
|
|
|
|
|
|
import { AddEditComponent } from './vault/add-edit.component';
|
|
|
|
import { AttachmentsComponent } from './vault/attachments.component';
|
|
|
|
import { CiphersComponent } from './vault/ciphers.component';
|
2018-10-23 21:50:21 +02:00
|
|
|
import { CollectionsComponent } from './vault/collections.component';
|
2018-08-02 05:21:32 +02:00
|
|
|
import { ExportComponent } from './vault/export.component';
|
2018-01-30 21:40:06 +01:00
|
|
|
import { FolderAddEditComponent } from './vault/folder-add-edit.component';
|
2018-01-24 04:21:14 +01:00
|
|
|
import { GroupingsComponent } from './vault/groupings.component';
|
2018-02-18 04:37:43 +01:00
|
|
|
import { PasswordGeneratorHistoryComponent } from './vault/password-generator-history.component';
|
2018-01-29 15:33:43 +01:00
|
|
|
import { PasswordGeneratorComponent } from './vault/password-generator.component';
|
2018-07-30 16:05:36 +02:00
|
|
|
import { PasswordHistoryComponent } from './vault/password-history.component';
|
2018-10-23 21:50:21 +02:00
|
|
|
import { ShareComponent } from './vault/share.component';
|
2018-01-16 22:12:26 +01:00
|
|
|
import { VaultComponent } from './vault/vault.component';
|
2018-01-24 04:21:14 +01:00
|
|
|
import { ViewComponent } from './vault/view.component';
|
2018-01-16 20:48:34 +01:00
|
|
|
|
2021-02-03 22:24:49 +01:00
|
|
|
import { AccessComponent } from './send/access.component';
|
|
|
|
import { AddEditComponent as SendAddEditComponent } from './send/add-edit.component';
|
|
|
|
import { SendComponent } from './send/send.component';
|
|
|
|
|
2018-08-02 15:26:50 +02:00
|
|
|
import { registerLocaleData } from '@angular/common';
|
2020-09-15 19:38:36 +02:00
|
|
|
import localeBe from '@angular/common/locales/be';
|
2018-08-02 15:26:50 +02:00
|
|
|
import localeBg from '@angular/common/locales/bg';
|
2019-01-18 21:57:33 +01:00
|
|
|
import localeCa from '@angular/common/locales/ca';
|
2018-08-02 15:26:50 +02:00
|
|
|
import localeCs from '@angular/common/locales/cs';
|
|
|
|
import localeDa from '@angular/common/locales/da';
|
|
|
|
import localeDe from '@angular/common/locales/de';
|
2020-05-23 05:14:22 +02:00
|
|
|
import localeEl from '@angular/common/locales/el';
|
2019-01-16 02:46:44 +01:00
|
|
|
import localEnGb from '@angular/common/locales/en-GB';
|
2018-08-02 15:26:50 +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';
|
|
|
|
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';
|
2020-09-15 19:38:36 +02:00
|
|
|
import localeMl from '@angular/common/locales/ml';
|
2018-08-02 15:26:50 +02:00
|
|
|
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';
|
2020-11-18 22:13:05 +01:00
|
|
|
import localeSr from '@angular/common/locales/sr';
|
2018-08-02 15:26:50 +02:00
|
|
|
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';
|
|
|
|
|
2020-09-15 19:38:36 +02:00
|
|
|
registerLocaleData(localeBe, 'be');
|
2018-08-02 15:26:50 +02:00
|
|
|
registerLocaleData(localeBg, 'bg');
|
2019-01-18 21:57:33 +01:00
|
|
|
registerLocaleData(localeCa, 'ca');
|
2018-08-02 15:26:50 +02:00
|
|
|
registerLocaleData(localeCs, 'cs');
|
|
|
|
registerLocaleData(localeDa, 'da');
|
|
|
|
registerLocaleData(localeDe, 'de');
|
2020-05-23 05:14:22 +02:00
|
|
|
registerLocaleData(localeEl, 'el');
|
2019-01-16 02:46:44 +01:00
|
|
|
registerLocaleData(localEnGb, 'en-GB');
|
2018-08-02 15:26:50 +02:00
|
|
|
registerLocaleData(localeEs, 'es');
|
|
|
|
registerLocaleData(localeEt, 'et');
|
|
|
|
registerLocaleData(localeFa, 'fa');
|
|
|
|
registerLocaleData(localeFi, 'fi');
|
|
|
|
registerLocaleData(localeFr, 'fr');
|
|
|
|
registerLocaleData(localeHr, 'hr');
|
|
|
|
registerLocaleData(localeHu, 'hu');
|
|
|
|
registerLocaleData(localeId, 'id');
|
|
|
|
registerLocaleData(localeIt, 'it');
|
|
|
|
registerLocaleData(localeJa, 'ja');
|
|
|
|
registerLocaleData(localeKo, 'ko');
|
2020-09-15 19:38:36 +02:00
|
|
|
registerLocaleData(localeMl, 'ml');
|
2018-08-02 15:26:50 +02:00
|
|
|
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');
|
2020-11-18 22:13:05 +01:00
|
|
|
registerLocaleData(localeSr, 'sr');
|
2018-08-02 15:26:50 +02:00
|
|
|
registerLocaleData(localeSv, 'sv');
|
|
|
|
registerLocaleData(localeTh, 'th');
|
|
|
|
registerLocaleData(localeTr, 'tr');
|
|
|
|
registerLocaleData(localeUk, 'uk');
|
|
|
|
registerLocaleData(localeVi, 'vi');
|
|
|
|
registerLocaleData(localeZhCn, 'zh-CN');
|
|
|
|
registerLocaleData(localeZhTw, 'zh-TW');
|
|
|
|
|
2018-01-16 20:48:34 +01:00
|
|
|
@NgModule({
|
2018-01-16 21:58:17 +01:00
|
|
|
imports: [
|
2018-02-10 21:20:13 +01:00
|
|
|
BrowserModule,
|
2018-01-26 20:12:41 +01:00
|
|
|
BrowserAnimationsModule,
|
2018-01-23 22:58:32 +01:00
|
|
|
FormsModule,
|
2018-01-16 21:58:17 +01:00
|
|
|
AppRoutingModule,
|
2018-01-23 05:37:36 +01:00
|
|
|
ServicesModule,
|
2020-08-18 22:13:15 +02:00
|
|
|
Angulartics2Module.forRoot({
|
2018-01-26 16:50:06 +01:00
|
|
|
pageTracking: {
|
|
|
|
clearQueryParams: true,
|
|
|
|
},
|
|
|
|
}),
|
2018-09-12 19:12:44 +02:00
|
|
|
ToasterModule.forRoot(),
|
2019-03-19 16:34:56 +01:00
|
|
|
InfiniteScrollModule,
|
2019-03-28 04:52:15 +01:00
|
|
|
DragDropModule,
|
2018-01-16 21:58:17 +01:00
|
|
|
],
|
|
|
|
declarations: [
|
2019-04-02 04:43:42 +02:00
|
|
|
A11yTitleDirective,
|
2021-02-03 22:24:49 +01:00
|
|
|
AccessComponent,
|
2018-01-26 20:56:54 +01:00
|
|
|
AddEditComponent,
|
2018-01-31 18:52:12 +01:00
|
|
|
ApiActionDirective,
|
2018-01-16 21:58:17 +01:00
|
|
|
AppComponent,
|
2018-01-30 05:19:55 +01:00
|
|
|
AttachmentsComponent,
|
2018-01-30 21:40:06 +01:00
|
|
|
AutofocusDirective,
|
2018-01-27 19:47:48 +01:00
|
|
|
BlurClickDirective,
|
2018-01-30 20:33:06 +01:00
|
|
|
BoxRowDirective,
|
2020-02-28 22:58:51 +01:00
|
|
|
CalloutComponent,
|
2018-01-24 04:21:14 +01:00
|
|
|
CiphersComponent,
|
2018-10-23 21:50:21 +02:00
|
|
|
CollectionsComponent,
|
2018-12-08 17:06:46 +01:00
|
|
|
ColorPasswordPipe,
|
2018-02-02 18:31:21 +01:00
|
|
|
EnvironmentComponent,
|
2018-08-02 05:21:32 +02:00
|
|
|
ExportComponent,
|
2018-01-24 05:38:56 +01:00
|
|
|
FallbackSrcDirective,
|
2018-01-30 21:40:06 +01:00
|
|
|
FolderAddEditComponent,
|
2018-01-24 04:21:14 +01:00
|
|
|
GroupingsComponent,
|
2018-01-31 23:06:14 +01:00
|
|
|
HintComponent,
|
2018-01-24 20:59:03 +01:00
|
|
|
I18nPipe,
|
2018-01-23 23:29:30 +01:00
|
|
|
IconComponent,
|
2018-02-10 04:47:53 +01:00
|
|
|
LockComponent,
|
2018-01-16 21:58:17 +01:00
|
|
|
LoginComponent,
|
2018-01-29 15:33:43 +01:00
|
|
|
ModalComponent,
|
|
|
|
PasswordGeneratorComponent,
|
2018-02-18 04:37:43 +01:00
|
|
|
PasswordGeneratorHistoryComponent,
|
2018-07-30 16:05:36 +02:00
|
|
|
PasswordHistoryComponent,
|
2018-02-16 21:03:29 +01:00
|
|
|
PremiumComponent,
|
2018-01-31 20:19:21 +01:00
|
|
|
RegisterComponent,
|
2018-01-30 03:41:00 +01:00
|
|
|
SearchCiphersPipe,
|
2019-04-01 19:40:49 +02:00
|
|
|
SelectCopyDirective,
|
2021-02-03 22:24:49 +01:00
|
|
|
SendAddEditComponent,
|
|
|
|
SendComponent,
|
2020-08-21 15:50:36 +02:00
|
|
|
SetPasswordComponent,
|
2018-02-10 05:41:29 +01:00
|
|
|
SettingsComponent,
|
2018-10-23 21:50:21 +02:00
|
|
|
ShareComponent,
|
2020-08-21 15:50:36 +02:00
|
|
|
SsoComponent,
|
2018-01-24 05:38:56 +01:00
|
|
|
StopClickDirective,
|
2018-01-27 20:43:29 +01:00
|
|
|
StopPropDirective,
|
2018-06-06 20:35:56 +02:00
|
|
|
TrueFalseValueDirective,
|
2018-02-01 04:54:13 +01:00
|
|
|
TwoFactorComponent,
|
2018-02-02 18:01:55 +01:00
|
|
|
TwoFactorOptionsComponent,
|
2018-01-16 22:12:26 +01:00
|
|
|
VaultComponent,
|
2018-01-24 04:21:14 +01:00
|
|
|
ViewComponent,
|
2018-01-16 21:58:17 +01:00
|
|
|
],
|
2018-01-29 15:33:43 +01:00
|
|
|
entryComponents: [
|
2018-01-30 05:19:55 +01:00
|
|
|
AttachmentsComponent,
|
2018-10-23 21:50:21 +02:00
|
|
|
CollectionsComponent,
|
2018-02-02 18:31:21 +01:00
|
|
|
EnvironmentComponent,
|
2018-08-02 05:21:32 +02:00
|
|
|
ExportComponent,
|
2018-01-30 21:40:06 +01:00
|
|
|
FolderAddEditComponent,
|
2018-01-29 15:33:43 +01:00
|
|
|
ModalComponent,
|
|
|
|
PasswordGeneratorComponent,
|
2018-02-18 04:37:43 +01:00
|
|
|
PasswordGeneratorHistoryComponent,
|
2018-07-30 16:05:36 +02:00
|
|
|
PasswordHistoryComponent,
|
2018-02-16 21:03:29 +01:00
|
|
|
PremiumComponent,
|
2018-02-10 05:41:29 +01:00
|
|
|
SettingsComponent,
|
2018-10-23 21:50:21 +02:00
|
|
|
ShareComponent,
|
2021-02-03 22:24:49 +01:00
|
|
|
SendAddEditComponent,
|
2018-02-02 18:01:55 +01:00
|
|
|
TwoFactorOptionsComponent,
|
2018-01-29 15:33:43 +01:00
|
|
|
],
|
2021-02-03 22:24:49 +01:00
|
|
|
providers: [DatePipe],
|
2018-01-16 20:48:34 +01:00
|
|
|
bootstrap: [AppComponent],
|
|
|
|
})
|
|
|
|
export class AppModule { }
|