-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from flockean/develop
feat: Style and ProjectManagement
- Loading branch information
Showing
23 changed files
with
219 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,8 @@ | |
"styles": [ | ||
"src/styles.scss" | ||
], | ||
"scripts": [] | ||
"scripts": [], | ||
"karmaConfig": "karma.conf.js" | ||
} | ||
} | ||
} | ||
|
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,39 @@ | ||
// Karma configuration file, see link for more information | ||
// https://karma-runner.github.io/1.0/config/configuration-file.html | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
basePath: '', | ||
frameworks: ['jasmine', '@angular-devkit/build-angular'], | ||
plugins: [ | ||
require('karma-jasmine'), | ||
require('karma-chrome-launcher'), | ||
require('karma-jasmine-html-reporter'), | ||
require('karma-coverage'), | ||
require('@angular-devkit/build-angular/plugins/karma') | ||
], | ||
client: { | ||
jasmine: { | ||
// you can add configuration options for Jasmine here | ||
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html | ||
// for example, you can disable the random execution with `random: false` | ||
// or set a specific seed with `seed: 4321` | ||
}, | ||
clearContext: false // leave Jasmine Spec Runner output visible in browser | ||
}, | ||
jasmineHtmlReporter: { | ||
suppressAll: true // removes the duplicated traces | ||
}, | ||
coverageReporter: { | ||
dir: require('path').join(__dirname, './coverage/lucas-web'), | ||
subdir: '.', | ||
reporters: [ | ||
{ type: 'html' }, | ||
{ type: 'text-summary' } | ||
] | ||
}, | ||
reporters: ['progress', 'kjhtml'], | ||
browsers: ['ChromeHeadless'], | ||
restartOnFileChange: true | ||
}); | ||
}; |
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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
<div class="p-4 m-4 bg-sky-500 rounded-md"> | ||
<div class="flex items-center justify-center font-bold text-lg"> {{title}} </div> | ||
<div class="pt-8 bg-sky-300 shadow-lg"> | ||
<div class="flex items-center justify-center font-bold text-4xl pb-7"> {{title}} </div> | ||
<div class="p-4 bg-sky-200 w-full"> | ||
<div class="inline-flex gap-4"> | ||
<div *ngIf=configService.isLoggedIn() class="font-bold"> {{configService.getStoredUserData().username}} </div> | ||
<div *ngIf=configService.isLoggedIn() class="font-bold text-red-500"> {{configService.getStoredUserData().permission}} </div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="basebob bg-sky-100"> | ||
<router-outlet/> | ||
<div> | ||
|
||
<router-outlet/> | ||
|
||
|
||
<div class="flex items-center justify-center p-16 m-16"> | ||
<nav class="navbar w-5/6 rounded-xl flex p-4 m-6 bg-sky-500 box-border"> | ||
<div id="navbar-items"> | ||
<button *ngIf="configService.isLoggedIn()" class="button" routerLink="MainPortal">Portfolio</button> | ||
<button class="button" routerLink="Cookies">Cookies</button> | ||
<button class="button" routerLink="LogIn">Login</button> | ||
<button *ngIf="configService.isLoggedIn()" class="button" (click)="configService.logout()">LogOut</button> | ||
</div> | ||
</nav> | ||
</div> | ||
<app-navibar/> |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
.center{ | ||
display: grid; | ||
place-items: center; | ||
.jersey{ | ||
font-family: jersey; | ||
} | ||
|
||
.navbar{ | ||
display: grid; | ||
place-items: center; | ||
position: absolute; | ||
bottom: 0; | ||
} | ||
|
||
#navbar-items{ | ||
display: flex; | ||
place-self: center; | ||
gap: 20px; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import { Routes } from '@angular/router'; | ||
import {MainPortalComponent} from "./main-portal/main-portal.component"; | ||
import {LogInPageComponent} from "./log-in-page/log-in-page.component"; | ||
import {AuthGuard} from "./app.guard"; | ||
import {logInRequired} from "./app.guard"; | ||
import {CookieComponent} from "./cookie/cookie.component"; | ||
import { ManagementViewComponent } from './management-view/management-view.component'; | ||
|
||
export const routes: Routes = [ | ||
{ | ||
path: "MainPortal", | ||
canActivate: [AuthGuard], | ||
path: "mainportal", | ||
component: MainPortalComponent | ||
}, | ||
{ | ||
path: "LogIn", | ||
path: "login", | ||
component: LogInPageComponent | ||
}, | ||
{ | ||
path: "Cookies", | ||
path: "cookies", | ||
component: CookieComponent | ||
}, | ||
{ | ||
path: "mgmt", | ||
component: ManagementViewComponent, | ||
canActivate: [logInRequired] | ||
}, | ||
{ | ||
path: "**", | ||
component: MainPortalComponent | ||
} | ||
]; |
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,12 @@ | ||
<div class="flex items-center justify-center p-16"> | ||
<nav class="grid place-items-center absolute bottom-0 w-full p-4 bg-sky-500 box-border"> | ||
<div class="flex place-self-center gap-5"> | ||
<button routerLink="mainportal">Portfolio</button> | ||
<button *ngIf="configService.isLoggedIn()" routerLink="mgmt"> Project Managment </button> | ||
<button routerLink="cookies">Cookies</button> | ||
<button routerLink="login">Login</button> | ||
<button *ngIf="configService.isLoggedIn()" (click)="configService.logout()">LogOut</button> | ||
<div class="animate-pulse"> 👻 </div> | ||
</div> | ||
</nav> | ||
</div> |
Empty file.
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 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NavibarComponent } from './navibar.component'; | ||
import { provideRouter } from '@angular/router'; | ||
import { routes } from '../../app.routes'; | ||
|
||
describe('NavibarComponent', () => { | ||
let component: NavibarComponent; | ||
let fixture: ComponentFixture<NavibarComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
providers: [provideRouter(routes)], | ||
imports: [NavibarComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(NavibarComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,17 @@ | ||
import { Component } from '@angular/core'; | ||
import { ConfigService } from '../../shared/config.service'; | ||
import { NgIf } from '@angular/common'; | ||
import { RouterLink } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-navibar', | ||
standalone: true, | ||
imports: [NgIf, RouterLink], | ||
templateUrl: './navibar.component.html', | ||
styleUrl: './navibar.component.scss' | ||
}) | ||
export class NavibarComponent { | ||
|
||
constructor(protected configService: ConfigService){} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="basebob"> | ||
Here will be the Managment of my Projects... someday | ||
</div> | ||
<div class="p-2 m2 border-black bg-sky-400"> | ||
<div> | ||
|
||
</div> | ||
</div> |
Empty file.
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ManagementViewComponent } from './management-view.component'; | ||
|
||
describe('ManagementViewComponent', () => { | ||
let component: ManagementViewComponent; | ||
let fixture: ComponentFixture<ManagementViewComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ManagementViewComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ManagementViewComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-management-view', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './management-view.component.html', | ||
styleUrl: './management-view.component.scss' | ||
}) | ||
export class ManagementViewComponent { | ||
|
||
} |
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.