mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-13 10:24:20 +01:00
8c12ba20cb
* Initial org filter work * update jslib * Move filter to below cipher length check * don't show vault filter in personal or org folder * Use family icon for families org * jslib and auth guard updates * lint fixes * rename GroupingsComponent to VaultFilterComponent * fix no folder showing all items * Add checks for PersonalOwnership policy * update css class names * lint fixes * cleanup * Some final cleanup * import order lint fix * remove unused import * Use smaller icon for chevron * Update src/popup/vault/organization-filter.component.ts Co-authored-by: Addison Beck <addisonbeck1@gmail.com> * Update src/popup/vault/organization-filter.component.ts Co-authored-by: Addison Beck <addisonbeck1@gmail.com> * fix lint error * remove extra localizations * rename orgFilter -> vaultSelect * Rename orgFilterService to VaultSelectService * lint fixes * combine vault select service with vault filter service * Use base vault filter service methods * Use VaultFilter model and other small fixes * lint fixes * Final restructuring pass * Update jslib and remove extra function * Remove extra imports * remove space * Remove vaultFilterService from background services * Update jslib to latest on feature branch * merge fix * update jslib * [feat] Implement EUVR for desktop Should contain only https://github.com/bitwarden/desktop/pull/1487, with merge resolutions and style fixes * [fix] Delete unused GroupingsComponentTemplate * [dep] Update jslib Co-authored-by: Addison Beck <addisonbeck1@gmail.com>
70 lines
2.1 KiB
TypeScript
70 lines
2.1 KiB
TypeScript
import { NgModule } from "@angular/core";
|
|
import { RouterModule, Routes } from "@angular/router";
|
|
|
|
import { AuthGuard } from "jslib-angular/guards/auth.guard";
|
|
import { LockGuard } from "jslib-angular/guards/lock.guard";
|
|
|
|
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 { RemovePasswordComponent } from "./accounts/remove-password.component";
|
|
import { SetPasswordComponent } from "./accounts/set-password.component";
|
|
import { SsoComponent } from "./accounts/sso.component";
|
|
import { TwoFactorComponent } from "./accounts/two-factor.component";
|
|
import { UpdateTempPasswordComponent } from "./accounts/update-temp-password.component";
|
|
import { LoginGuard } from "./guards/login.guard";
|
|
import { SendComponent } from "./send/send.component";
|
|
import { VaultComponent } from "./vault/vault.component";
|
|
|
|
const routes: Routes = [
|
|
{ path: "", redirectTo: "/vault", pathMatch: "full" },
|
|
{
|
|
path: "lock",
|
|
component: LockComponent,
|
|
canActivate: [LockGuard],
|
|
},
|
|
{
|
|
path: "login",
|
|
component: LoginComponent,
|
|
canActivate: [LoginGuard],
|
|
},
|
|
{ path: "2fa", component: TwoFactorComponent },
|
|
{ path: "register", component: RegisterComponent },
|
|
{
|
|
path: "vault",
|
|
component: VaultComponent,
|
|
canActivate: [AuthGuard],
|
|
},
|
|
{ path: "hint", component: HintComponent },
|
|
{ path: "set-password", component: SetPasswordComponent },
|
|
{ path: "sso", component: SsoComponent },
|
|
{
|
|
path: "send",
|
|
component: SendComponent,
|
|
canActivate: [AuthGuard],
|
|
},
|
|
{
|
|
path: "update-temp-password",
|
|
component: UpdateTempPasswordComponent,
|
|
canActivate: [AuthGuard],
|
|
},
|
|
{
|
|
path: "remove-password",
|
|
component: RemovePasswordComponent,
|
|
canActivate: [AuthGuard],
|
|
data: { titleId: "removeMasterPassword" },
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, {
|
|
useHash: true,
|
|
/*enableTracing: true,*/
|
|
}),
|
|
],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|