mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-13 10:24:20 +01:00
0ba2589461
* Update jslib (101c568
->14b01f2
) (#506) * Update jslib (14b01f2
->1513b25
) (#510) * [jslib] Update (1513b25
->7c3a9d6
) (#516) * update jslib (1513b25
->7c3a9d6
) * Updated call to constructor super * [SSO] Added SSO flows & functionality (#513) * update jslib * bump version * Added sso button (wip) * Added sso & change password // Added modules/routes // Added strings for localization * Added password strength comp // reverted login route * Updated sso component to send client id // added routing for sso // added crypto function to services module provider list * Added deep linking * First round of UI updates // Added sso browser launching // Added missing strings * Updated UI and added missing strings * Removed extra change password style * Let constructor for WindowMain handle default width/height * Prepared for jslib update * Update jslib (1513b25
->7c3a9d6
) * Update login super * Added params for launchSsoBrowser function * Update jslib (7c3a9d6
->4203937
) * Added missing strings, removed unnecessary class param * Upgrade TypeScript (#517) * Updated password score // Update styles * Removed password-strength component files * Cleaned up module class // Fixed UL/LI formatting issues * Use exisiting loading string // removed new string * Update jslib (4203937
->9957125
) * Updated class to perform new submit actions * Upgrade Angular (#520) * di resolution for CryptoFunctionServiceAbstraction * Update jslib (9957125
->5d874d0
) (#521) * Updated change password flow to match web * Updated callout style Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com> Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com>
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import {
|
|
RouterModule,
|
|
Routes,
|
|
} from '@angular/router';
|
|
|
|
import { AuthGuardService } from 'jslib/angular/services/auth-guard.service';
|
|
|
|
import { HintComponent } from './accounts/hint.component';
|
|
import { LockComponent } from './accounts/lock.component';
|
|
import { LoginComponent } from './accounts/login.component';
|
|
import { RegisterComponent } from './accounts/register.component';
|
|
import { SetPasswordComponent } from './accounts/set-password.component';
|
|
import { SsoComponent } from './accounts/sso.component';
|
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
|
|
|
import { VaultComponent } from './vault/vault.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: '/vault', pathMatch: 'full' },
|
|
{ path: 'lock', component: LockComponent },
|
|
{ path: 'login', component: LoginComponent },
|
|
{ path: '2fa', component: TwoFactorComponent },
|
|
{ path: 'register', component: RegisterComponent },
|
|
{
|
|
path: 'vault',
|
|
component: VaultComponent,
|
|
canActivate: [AuthGuardService],
|
|
},
|
|
{ path: 'hint', component: HintComponent },
|
|
{ path: 'set-password', component: SetPasswordComponent },
|
|
{ path: 'sso', component: SsoComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, {
|
|
useHash: true,
|
|
/*enableTracing: true,*/
|
|
})],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule { }
|