mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
stub out org manage pages
This commit is contained in:
@@ -14,6 +14,12 @@ import { LoginComponent } from './accounts/login.component';
|
|||||||
import { RegisterComponent } from './accounts/register.component';
|
import { RegisterComponent } from './accounts/register.component';
|
||||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||||
|
|
||||||
|
import { CollectionsComponent as OrgManageCollectionsComponent } from './organizations/manage/collections.component';
|
||||||
|
import { EventsComponent as OrgEventsComponent } from './organizations/manage/events.component';
|
||||||
|
import { GroupsComponent as OrgGroupsComponent } from './organizations/manage/groups.component';
|
||||||
|
import { ManageComponent as OrgManageComponent } from './organizations/manage/manage.component';
|
||||||
|
import { PeopleComponent as OrgPeopleComponent } from './organizations/manage/people.component';
|
||||||
|
|
||||||
import { ExportComponent as OrgExportComponent } from './organizations/tools/export.component';
|
import { ExportComponent as OrgExportComponent } from './organizations/tools/export.component';
|
||||||
import { ImportComponent as OrgImportComponent } from './organizations/tools/import.component';
|
import { ImportComponent as OrgImportComponent } from './organizations/tools/import.component';
|
||||||
import { ToolsComponent as OrgToolsComponent } from './organizations/tools/tools.component';
|
import { ToolsComponent as OrgToolsComponent } from './organizations/tools/tools.component';
|
||||||
@@ -127,6 +133,19 @@ const routes: Routes = [
|
|||||||
{ path: 'export', component: OrgExportComponent, data: { titleId: 'exportVault' } },
|
{ path: 'export', component: OrgExportComponent, data: { titleId: 'exportVault' } },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'manage',
|
||||||
|
component: OrgManageComponent,
|
||||||
|
canActivate: [OrganizationTypeGuardService],
|
||||||
|
data: { allowedTypes: [OrganizationUserType.Owner, OrganizationUserType.Admin] },
|
||||||
|
children: [
|
||||||
|
{ path: '', pathMatch: 'full', redirectTo: 'people' },
|
||||||
|
{ path: 'collections', component: OrgManageCollectionsComponent, data: { titleId: 'collections' } },
|
||||||
|
{ path: 'events', component: OrgEventsComponent, data: { titleId: 'eventLogs' } },
|
||||||
|
{ path: 'groups', component: OrgGroupsComponent, data: { titleId: 'groups' } },
|
||||||
|
{ path: 'people', component: OrgPeopleComponent, data: { titleId: 'people' } },
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ path: '**', redirectTo: '' },
|
{ path: '**', redirectTo: '' },
|
||||||
|
|||||||
@@ -32,6 +32,12 @@ import { RegisterComponent } from './accounts/register.component';
|
|||||||
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||||
|
|
||||||
|
import { CollectionsComponent as OrgManageCollectionsComponent } from './organizations/manage/collections.component';
|
||||||
|
import { EventsComponent as OrgEventsComponent } from './organizations/manage/events.component';
|
||||||
|
import { GroupsComponent as OrgGroupsComponent } from './organizations/manage/groups.component';
|
||||||
|
import { ManageComponent as OrgManageComponent } from './organizations/manage/manage.component';
|
||||||
|
import { PeopleComponent as OrgPeopleComponent } from './organizations/manage/people.component';
|
||||||
|
|
||||||
import { ExportComponent as OrgExportComponent } from './organizations/tools/export.component';
|
import { ExportComponent as OrgExportComponent } from './organizations/tools/export.component';
|
||||||
import { ImportComponent as OrgImportComponent } from './organizations/tools/import.component';
|
import { ImportComponent as OrgImportComponent } from './organizations/tools/import.component';
|
||||||
import { ToolsComponent as OrgToolsComponent } from './organizations/tools/tools.component';
|
import { ToolsComponent as OrgToolsComponent } from './organizations/tools/tools.component';
|
||||||
@@ -163,9 +169,14 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
|||||||
OrgAttachmentsComponent,
|
OrgAttachmentsComponent,
|
||||||
OrgCiphersComponent,
|
OrgCiphersComponent,
|
||||||
OrgCollectionsComponent,
|
OrgCollectionsComponent,
|
||||||
|
OrgEventsComponent,
|
||||||
OrgExportComponent,
|
OrgExportComponent,
|
||||||
OrgImportComponent,
|
OrgImportComponent,
|
||||||
OrgGroupingsComponent,
|
OrgGroupingsComponent,
|
||||||
|
OrgGroupsComponent,
|
||||||
|
OrgManageCollectionsComponent,
|
||||||
|
OrgManageComponent,
|
||||||
|
OrgPeopleComponent,
|
||||||
OrgToolsComponent,
|
OrgToolsComponent,
|
||||||
OrganizationsComponent,
|
OrganizationsComponent,
|
||||||
OrganizationLayoutComponent,
|
OrganizationLayoutComponent,
|
||||||
|
|||||||
3
src/app/organizations/manage/collections.component.html
Normal file
3
src/app/organizations/manage/collections.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>{{'collections' | i18n}}</h1>
|
||||||
|
</div>
|
||||||
7
src/app/organizations/manage/collections.component.ts
Normal file
7
src/app/organizations/manage/collections.component.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-org-manage-collections',
|
||||||
|
templateUrl: 'collections.component.html',
|
||||||
|
})
|
||||||
|
export class CollectionsComponent { }
|
||||||
3
src/app/organizations/manage/events.component.html
Normal file
3
src/app/organizations/manage/events.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>{{'eventLogs' | i18n}}</h1>
|
||||||
|
</div>
|
||||||
7
src/app/organizations/manage/events.component.ts
Normal file
7
src/app/organizations/manage/events.component.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-org-events',
|
||||||
|
templateUrl: 'events.component.html',
|
||||||
|
})
|
||||||
|
export class EventsComponent { }
|
||||||
3
src/app/organizations/manage/groups.component.html
Normal file
3
src/app/organizations/manage/groups.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>{{'groups' | i18n}}</h1>
|
||||||
|
</div>
|
||||||
7
src/app/organizations/manage/groups.component.ts
Normal file
7
src/app/organizations/manage/groups.component.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-org-groups',
|
||||||
|
templateUrl: 'groups.component.html',
|
||||||
|
})
|
||||||
|
export class GroupsComponent { }
|
||||||
26
src/app/organizations/manage/manage.component.html
Normal file
26
src/app/organizations/manage/manage.component.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<div class="container page-content">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">{{'manage' | i18n}}</div>
|
||||||
|
<div class="list-group list-group-flush">
|
||||||
|
<a routerLink="people" class="list-group-item" routerLinkActive="active">
|
||||||
|
{{'people' | i18n}}
|
||||||
|
</a>
|
||||||
|
<a routerLink="collections" class="list-group-item" routerLinkActive="active">
|
||||||
|
{{'collections' | i18n}}
|
||||||
|
</a>
|
||||||
|
<a routerLink="groups" class="list-group-item" routerLinkActive="active">
|
||||||
|
{{'groups' | i18n}}
|
||||||
|
</a>
|
||||||
|
<a routerLink="events" class="list-group-item" routerLinkActive="active">
|
||||||
|
{{'eventLogs' | i18n}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-9">
|
||||||
|
<router-outlet></router-outlet>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
7
src/app/organizations/manage/manage.component.ts
Normal file
7
src/app/organizations/manage/manage.component.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-org-manage',
|
||||||
|
templateUrl: 'manage.component.html',
|
||||||
|
})
|
||||||
|
export class ManageComponent { }
|
||||||
3
src/app/organizations/manage/people.component.html
Normal file
3
src/app/organizations/manage/people.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>{{'people' | i18n}}</h1>
|
||||||
|
</div>
|
||||||
7
src/app/organizations/manage/people.component.ts
Normal file
7
src/app/organizations/manage/people.component.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-org-people',
|
||||||
|
templateUrl: 'people.component.html',
|
||||||
|
})
|
||||||
|
export class PeopleComponent { }
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
import {
|
import { Component } from '@angular/core';
|
||||||
Component,
|
|
||||||
} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-org-tools',
|
selector: 'app-org-tools',
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import {
|
import { Component } from '@angular/core';
|
||||||
Component,
|
|
||||||
} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-tools',
|
selector: 'app-tools',
|
||||||
|
|||||||
@@ -1690,5 +1690,14 @@
|
|||||||
},
|
},
|
||||||
"loggedInAs": {
|
"loggedInAs": {
|
||||||
"message": "Logged in as"
|
"message": "Logged in as"
|
||||||
|
},
|
||||||
|
"eventLogs": {
|
||||||
|
"message": "Event Logs"
|
||||||
|
},
|
||||||
|
"people": {
|
||||||
|
"message": "People"
|
||||||
|
},
|
||||||
|
"groups": {
|
||||||
|
"message": "Groups"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user