diff --git a/jslib b/jslib index 66b3dbae177..476d21e9f07 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 66b3dbae177a795d6b5168f7cdbba2f98f309272 +Subproject commit 476d21e9f07f648784e92e6e7ec4ae37910e2449 diff --git a/locales/en/messages.json b/locales/en/messages.json new file mode 100644 index 00000000000..a02b3399a43 --- /dev/null +++ b/locales/en/messages.json @@ -0,0 +1,5 @@ +{ + "hello": { + "message": "hello world" + } +} diff --git a/locales/es/messages.json b/locales/es/messages.json new file mode 100644 index 00000000000..54364e73100 --- /dev/null +++ b/locales/es/messages.json @@ -0,0 +1,5 @@ +{ + "hello": { + "message": "hola mundo" + } +} diff --git a/src/app/accounts/hint.component.html b/src/app/accounts/hint.component.html new file mode 100644 index 00000000000..74cd8e246b3 --- /dev/null +++ b/src/app/accounts/hint.component.html @@ -0,0 +1,30 @@ +
diff --git a/src/app/accounts/hint.component.ts b/src/app/accounts/hint.component.ts new file mode 100644 index 00000000000..bb84ff02f9d --- /dev/null +++ b/src/app/accounts/hint.component.ts @@ -0,0 +1,22 @@ +import { Component } from '@angular/core'; +import { Router } from '@angular/router'; + +import { ToasterService } from 'angular2-toaster'; +import { Angulartics2 } from 'angulartics2'; + +import { ApiService } from 'jslib/abstractions/api.service'; +import { I18nService } from 'jslib/abstractions/i18n.service'; + +import { HintComponent as BaseHintComponent } from 'jslib/angular/components/hint.component'; + +@Component({ + selector: 'app-hint', + templateUrl: 'hint.component.html', +}) +export class HintComponent extends BaseHintComponent { + constructor(router: Router, analytics: Angulartics2, + toasterService: ToasterService, i18nService: I18nService, + apiService: ApiService) { + super(router, analytics, toasterService, i18nService, apiService); + } +} diff --git a/src/app/accounts/login.component.html b/src/app/accounts/login.component.html new file mode 100644 index 00000000000..2682c0946cc --- /dev/null +++ b/src/app/accounts/login.component.html @@ -0,0 +1,40 @@ + diff --git a/src/app/accounts/login.component.ts b/src/app/accounts/login.component.ts new file mode 100644 index 00000000000..3904d2bf9c6 --- /dev/null +++ b/src/app/accounts/login.component.ts @@ -0,0 +1,24 @@ +import { Component } from '@angular/core'; +import { Router } from '@angular/router'; + +import { ToasterService } from 'angular2-toaster'; +import { Angulartics2 } from 'angulartics2'; + +import { AuthService } from 'jslib/abstractions/auth.service'; +import { I18nService } from 'jslib/abstractions/i18n.service'; +import { SyncService } from 'jslib/abstractions/sync.service'; + +import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/login.component'; + +@Component({ + selector: 'app-login', + templateUrl: 'login.component.html', +}) +export class LoginComponent extends BaseLoginComponent { + constructor(authService: AuthService, router: Router, + analytics: Angulartics2, toasterService: ToasterService, + i18nService: I18nService, private syncService: SyncService) { + super(authService, router, analytics, toasterService, i18nService); + this.successRoute = '/vault'; + } +} diff --git a/src/app/accounts/register.component.html b/src/app/accounts/register.component.html new file mode 100644 index 00000000000..db6f2ecfa3f --- /dev/null +++ b/src/app/accounts/register.component.html @@ -0,0 +1,71 @@ + diff --git a/src/app/accounts/register.component.ts b/src/app/accounts/register.component.ts new file mode 100644 index 00000000000..0867b5903cf --- /dev/null +++ b/src/app/accounts/register.component.ts @@ -0,0 +1,25 @@ +import { Component } from '@angular/core'; +import { Router } from '@angular/router'; + +import { ToasterService } from 'angular2-toaster'; +import { Angulartics2 } from 'angulartics2'; + +import { ApiService } from 'jslib/abstractions/api.service'; +import { AuthService } from 'jslib/abstractions/auth.service'; +import { CryptoService } from 'jslib/abstractions/crypto.service'; +import { I18nService } from 'jslib/abstractions/i18n.service'; + +import { RegisterComponent as BaseRegisterComponent } from 'jslib/angular/components/register.component'; + +@Component({ + selector: 'app-register', + templateUrl: 'register.component.html', +}) +export class RegisterComponent extends BaseRegisterComponent { + constructor(authService: AuthService, router: Router, + analytics: Angulartics2, toasterService: ToasterService, + i18nService: I18nService, cryptoService: CryptoService, + apiService: ApiService) { + super(authService, router, analytics, toasterService, i18nService, cryptoService, apiService); + } +} diff --git a/src/app/accounts/two-factor-options.component.html b/src/app/accounts/two-factor-options.component.html new file mode 100644 index 00000000000..d2bbd3112a3 --- /dev/null +++ b/src/app/accounts/two-factor-options.component.html @@ -0,0 +1,24 @@ +