feat: Added credits

This commit is contained in:
2025-05-04 01:02:03 +02:00
parent 2fc4134acc
commit 6c8b40cbad
7 changed files with 82 additions and 0 deletions

View 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>

View 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();
});
});

View 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'
}
]
}

View File

@@ -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>

View File

@@ -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)
}
} }

View File

@@ -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,