feat: Added admin start page
This commit is contained in:
1
src/app/admin-view/start/start.component.html
Normal file
1
src/app/admin-view/start/start.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<span class="main"><mat-icon class="icon">arrow_upward</mat-icon><span>Wybierz zakładkę w menu</span></span>
|
||||
13
src/app/admin-view/start/start.component.scss
Normal file
13
src/app/admin-view/start/start.component.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
.main {
|
||||
margin-top: 8px;
|
||||
margin-left: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1ch;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
font-size: 32pt;
|
||||
}
|
||||
23
src/app/admin-view/start/start.component.spec.ts
Normal file
23
src/app/admin-view/start/start.component.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { StartComponent } from './start.component';
|
||||
|
||||
describe('StartComponent', () => {
|
||||
let component: StartComponent;
|
||||
let fixture: ComponentFixture<StartComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [StartComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(StartComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
10
src/app/admin-view/start/start.component.ts
Normal file
10
src/app/admin-view/start/start.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-start',
|
||||
templateUrl: './start.component.html',
|
||||
styleUrl: './start.component.scss'
|
||||
})
|
||||
export class StartAdminComponent {
|
||||
|
||||
}
|
||||
@@ -20,6 +20,7 @@ import { SettingsComponent } from './admin-view/settings/settings.component';
|
||||
import { AttendenceSummaryComponent } from './admin-view/grades/attendence-summary/attendence-summary.component';
|
||||
import { NotificationsComponent } from './admin-view/notifications/notifications.component';
|
||||
import { OutboxComponent } from './admin-view/notifications/outbox/outbox.component';
|
||||
import { StartAdminComponent } from './admin-view/start/start.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{path: "", redirectTo: "login", pathMatch: "full"},
|
||||
@@ -31,6 +32,7 @@ const routes: Routes = [
|
||||
{path: "grades", component: PersonalComponent, title: "Konto"}
|
||||
]},
|
||||
{path: "admin", component: AdminViewComponent, title: "Panel administracyjny", canActivateChild: [authGuard, adminGuard], children: [
|
||||
{path: "", pathMatch: "full", component: StartAdminComponent},
|
||||
{path: "news", title: "Edytowanie wiadomości", component: NewsEditComponent},
|
||||
{path: "menu", title: "Edytowanie jadłospisu", component: MenuNewComponent},
|
||||
{path: "accounts", title: "Użytkownicy", component: AccountMgmtComponent},
|
||||
|
||||
@@ -85,6 +85,7 @@ import { OutboxComponent } from './admin-view/notifications/outbox/outbox.compon
|
||||
import { ToolbarComponent } from './admin-view/toolbar/toolbar.component';
|
||||
import { MessageComponent } from './admin-view/notifications/outbox/message/message.component';
|
||||
import { NotifDialogComponent } from './app-view/notif-dialog/notif-dialog.component';
|
||||
import { StartAdminComponent } from './admin-view/start/start.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@@ -134,6 +135,7 @@ import { NotifDialogComponent } from './app-view/notif-dialog/notif-dialog.compo
|
||||
ToolbarComponent,
|
||||
MessageComponent,
|
||||
NotifDialogComponent,
|
||||
StartAdminComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
||||
Reference in New Issue
Block a user