-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fixes and add ui/ux for admin page
- Loading branch information
Pop John
committed
Aug 13, 2024
1 parent
cc56a3c
commit dd788d1
Showing
12 changed files
with
199 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
|
||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { AdminComponent } from './components/admin/admin.component'; | ||
|
||
const ADMIN_ROUTES: Routes = [ | ||
{ | ||
path: '', | ||
component: AdminComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(ADMIN_ROUTES)], | ||
exports: [RouterModule] | ||
}) | ||
export class AdminRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
|
||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { ReactiveFormsModule } from '@angular/forms'; | ||
import { MatButtonToggleModule } from '@angular/material/button-toggle'; | ||
import { MatCardModule } from '@angular/material/card'; | ||
import { MatDividerModule } from '@angular/material/divider'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { MatTooltipModule } from '@angular/material/tooltip'; | ||
import { AdminRoutingModule } from './admin-routing.module'; | ||
import { AdminComponent } from './components/admin/admin.component'; | ||
|
||
@NgModule({ | ||
declarations: [AdminComponent], | ||
imports: [ | ||
CommonModule, | ||
AdminRoutingModule, | ||
MatDividerModule, | ||
MatIconModule, | ||
MatTooltipModule, | ||
MatButtonToggleModule, | ||
ReactiveFormsModule, | ||
MatCardModule | ||
] | ||
}) | ||
export class AdminModule {} |
51 changes: 51 additions & 0 deletions
51
frontend/src/app/modules/admin/components/admin/admin.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
SPDX-License-Identifier: Apache-2.0 --> | ||
|
||
<div class="admin-settings-container"> | ||
<p class="heading-primary-title">Admin</p> | ||
|
||
<p class="paragraph-regular-p3-default"> | ||
The Global Settings Admin Page allows administrators to manage and customize key app configurations, all from one | ||
central location. | ||
</p> | ||
|
||
<div class="divider-container mb-2"> | ||
<mat-divider></mat-divider> | ||
</div> | ||
|
||
<mat-card class="ms-card default-mode-card"> | ||
<div class="default-mode-header"> | ||
<div class="flex items-center mr-1"> | ||
<mat-icon | ||
fontSet="ms" | ||
fontIcon="icon-Info" | ||
matTooltip="Allows users to choose the default startup mode for the app, determining how it will open each time. Users can select their preferred interface or workflow, ensuring the app starts in the most convenient way for their needs."> | ||
</mat-icon> | ||
</div> | ||
|
||
<div class="paragraph-bold-p3-small-bold flex items-center">Default mode:</div> | ||
</div> | ||
|
||
<div class="mt-2 mb-2"> | ||
<mat-divider></mat-divider> | ||
</div> | ||
|
||
<mat-button-toggle-group class="mode-toggle-group"> | ||
<mat-button-toggle value="guided">Guided</mat-button-toggle> | ||
<mat-button-toggle value="expert">Expert</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
</mat-card> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
frontend/src/app/modules/admin/components/admin/admin.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
|
||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
.divider-container { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.default-mode-card { | ||
width: 300px; | ||
} | ||
|
||
.default-mode-header { | ||
display: flex; | ||
} | ||
|
||
.mode-toggle-group { | ||
display: flex; | ||
justify-content: center; | ||
} |
26 changes: 26 additions & 0 deletions
26
frontend/src/app/modules/admin/components/admin/admin.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
|
||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ms-admin', | ||
templateUrl: './admin.component.html', | ||
styleUrl: './admin.component.scss' | ||
}) | ||
export class AdminComponent { | ||
defaultSelectedMode?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters