feat: Added credits
This commit is contained in:
17
src/app/app-view/personal/about/about.component.html
Normal file
17
src/app/app-view/personal/about/about.component.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<h1 mat-dialog-title>O programie</h1>
|
||||||
|
<mat-dialog-content>
|
||||||
|
<h1>Projekt IPWA</h1>
|
||||||
|
<h2>Stworzone z myślą o potrzebach internatu.</h2>
|
||||||
|
<mat-action-list>
|
||||||
|
@for (link of LINKS; track $index) {
|
||||||
|
<a mat-list-item [href]="link.link" target="_blank">
|
||||||
|
<mat-icon matListItemIcon>{{link.icon}}</mat-icon>
|
||||||
|
<span matListItemTitle>{{link.title}}</span>
|
||||||
|
<span matListItemLine>{{link.info}}</span>
|
||||||
|
</a>
|
||||||
|
}
|
||||||
|
</mat-action-list>
|
||||||
|
</mat-dialog-content>
|
||||||
|
<mat-dialog-actions align="end">
|
||||||
|
<button mat-button mat-dialog-close>Zamknij</button>
|
||||||
|
</mat-dialog-actions>
|
||||||
23
src/app/app-view/personal/about/about.component.spec.ts
Normal file
23
src/app/app-view/personal/about/about.component.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { AboutComponent } from './about.component';
|
||||||
|
|
||||||
|
describe('AboutComponent', () => {
|
||||||
|
let component: AboutComponent;
|
||||||
|
let fixture: ComponentFixture<AboutComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [AboutComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(AboutComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
30
src/app/app-view/personal/about/about.component.ts
Normal file
30
src/app/app-view/personal/about/about.component.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { Link } from 'src/app/types/link';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-about',
|
||||||
|
templateUrl: './about.component.html',
|
||||||
|
styleUrl: './about.component.scss'
|
||||||
|
})
|
||||||
|
export class AboutComponent {
|
||||||
|
LINKS: { title: string, info: string, icon: string, link: string }[] = [
|
||||||
|
{
|
||||||
|
title: "Autor",
|
||||||
|
info: "Jan Szumotalski",
|
||||||
|
icon: "person",
|
||||||
|
link: "https://github.com/Slasherss1/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Źrodło',
|
||||||
|
info: 'Aplikacja jest darmowa i może ją uruchomić każdy!',
|
||||||
|
icon: 'code',
|
||||||
|
link: 'https://github.com/Slasherss1/ipwa-selfhosted'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Licencja",
|
||||||
|
info: 'GPL-3.0',
|
||||||
|
icon: 'license',
|
||||||
|
link: 'https://www.gnu.org/licenses/gpl-3.0-standalone.html'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -30,4 +30,9 @@
|
|||||||
<div matListItemTitle>Panel administracyjny</div>
|
<div matListItemTitle>Panel administracyjny</div>
|
||||||
<div matListItemLine>Poprzednio Tryb edycji</div>
|
<div matListItemLine>Poprzednio Tryb edycji</div>
|
||||||
</button>
|
</button>
|
||||||
|
<button mat-list-item (click)="openAbout()">
|
||||||
|
<mat-icon matListItemIcon>info</mat-icon>
|
||||||
|
<div matListItemTitle>O programie</div>
|
||||||
|
<div matListItemLine>Autor, licencja, źródło</div>
|
||||||
|
</button>
|
||||||
</mat-action-list>
|
</mat-action-list>
|
||||||
@@ -9,6 +9,7 @@ import { AppUpdateService } from 'src/app/services/app-update.service';
|
|||||||
import { LocalStorageService } from 'src/app/services/local-storage.service';
|
import { LocalStorageService } from 'src/app/services/local-storage.service';
|
||||||
import { KeyComponent } from './key/key.component';
|
import { KeyComponent } from './key/key.component';
|
||||||
import { CleanComponent } from './clean/clean.component';
|
import { CleanComponent } from './clean/clean.component';
|
||||||
|
import { AboutComponent } from './about/about.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-personal',
|
selector: 'app-personal',
|
||||||
@@ -61,4 +62,8 @@ export class PersonalComponent {
|
|||||||
})
|
})
|
||||||
this.ac.check()
|
this.ac.check()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected openAbout() {
|
||||||
|
this.dialog.open(AboutComponent)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ import { MatAutocompleteModule } from "@angular/material/autocomplete";
|
|||||||
import { AttendenceComponent } from './admin-view/grades/attendence/attendence.component';
|
import { AttendenceComponent } from './admin-view/grades/attendence/attendence.component';
|
||||||
import { AttendenceSummaryComponent } from './admin-view/grades/attendence-summary/attendence-summary.component';
|
import { AttendenceSummaryComponent } from './admin-view/grades/attendence-summary/attendence-summary.component';
|
||||||
import { HourDisplayComponent } from './admin-view/grades/attendence-summary/hour-display/hour-display.component';
|
import { HourDisplayComponent } from './admin-view/grades/attendence-summary/hour-display/hour-display.component';
|
||||||
|
import { AboutComponent } from './app-view/personal/about/about.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@@ -119,6 +120,7 @@ import { HourDisplayComponent } from './admin-view/grades/attendence-summary/hou
|
|||||||
AttendenceComponent,
|
AttendenceComponent,
|
||||||
AttendenceSummaryComponent,
|
AttendenceSummaryComponent,
|
||||||
HourDisplayComponent,
|
HourDisplayComponent,
|
||||||
|
AboutComponent,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user