Skip to content

Commit 8a1dba2

Browse files
committed
Init api key menu item
1 parent ac22517 commit 8a1dba2

22 files changed

+139
-6
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules\\typescript\\lib"
3+
}

src/app/admin/admin-routing.module.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import { UserDetailComponent } from './users/user-detail/user-detail.component';
1212
import { UserEditComponent } from './users/user-edit/user-edit.component';
1313
import { UserListComponent } from './users/user-list/user-list.component';
1414
import { UsersComponent } from './users/users.component';
15+
import { ApiKeyComponent } from './api-key/api-key.component';
16+
import { ApiKeyListComponent } from './api-key/api-key-list/api-key-list.component';
17+
import { ApiKeyEditComponent } from './api-key/api-key-edit/api-key-edit.component';
18+
import { ApiKeyDetailComponent } from './api-key/api-key-detail/api-key-detail.component';
1519

1620

1721
const adminRoutes: Routes = [
@@ -44,6 +48,19 @@ const adminRoutes: Routes = [
4448
},
4549
],
4650
},
51+
{
52+
path: 'api-key',
53+
component: ApiKeyComponent,
54+
children: [
55+
{ path: '', component: ApiKeyListComponent },
56+
{ path: 'new-api-key', component: ApiKeyEditComponent },
57+
{ path: ':api-key-id', component: ApiKeyDetailComponent },
58+
{
59+
path: ':api-key-id/edit-api-key',
60+
component: ApiKeyEditComponent,
61+
},
62+
],
63+
},
4764

4865

4966
];

src/app/admin/admin.module.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ import { UsersComponent } from './users/users.component';
2828
import { MatSelectModule } from '@angular/material/select';
2929
import { MatFormFieldModule } from '@angular/material/form-field';
3030
import { MatSelectSearchModule } from '@shared/components/mat-select-search/mat-select-search.module';
31+
import { ApiKeyComponent } from './api-key/api-key.component';
32+
import { ApiKeyListComponent } from './api-key/api-key-list/api-key-list.component';
33+
import { ApiKeyTableComponent } from './api-key/api-key-list/api-key-table/api-key-table.component';
34+
import { ApiKeyEditComponent } from './api-key/api-key-edit/api-key-edit.component';
35+
import { ApiKeyDetailComponent } from './api-key/api-key-detail/api-key-detail.component';
3136

3237
@NgModule({
3338
declarations: [
@@ -46,6 +51,11 @@ import { MatSelectSearchModule } from '@shared/components/mat-select-search/mat-
4651
OrganisationDetailComponent,
4752
OrganisationEditComponent,
4853
OrganisationListComponent,
54+
ApiKeyComponent,
55+
ApiKeyListComponent,
56+
ApiKeyTableComponent,
57+
ApiKeyEditComponent,
58+
ApiKeyDetailComponent,
4959
],
5060
imports: [
5161
AdminRoutingModule,
@@ -79,6 +89,10 @@ import { MatSelectSearchModule } from '@shared/components/mat-select-search/mat-
7989
OrganisationDetailComponent,
8090
OrganisationEditComponent,
8191
OrganisationListComponent,
92+
ApiKeyComponent,
93+
ApiKeyListComponent,
94+
ApiKeyTableComponent,
95+
ApiKeyEditComponent,
8296
],
8397
})
8498
export class AdminModule {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>api-key-detail works!</p>

src/app/admin/api-key/api-key-detail/api-key-detail.component.scss

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-api-key-detail',
5+
templateUrl: './api-key-detail.component.html',
6+
styleUrls: ['./api-key-detail.component.scss']
7+
})
8+
export class ApiKeyDetailComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>api-key-edit works!</p>

src/app/admin/api-key/api-key-edit/api-key-edit.component.scss

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-api-key-edit',
5+
templateUrl: './api-key-edit.component.html',
6+
styleUrls: ['./api-key-edit.component.scss']
7+
})
8+
export class ApiKeyEditComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<app-top-bar [title]="'NAV.API-KEY' | translate">
2+
</app-top-bar>
3+
<div class="container-fluid">
4+
<div class="row">
5+
<div class="col-12">
6+
<div class="jumbotron--table">
7+
<app-api-key-table></app-api-key-table>
8+
</div>
9+
</div>
10+
</div>
11+
</div>

0 commit comments

Comments
 (0)