4 Commits

Author SHA1 Message Date
eneller
66fff4ee07 fix: pwa and external interop 2026-02-01 12:19:14 +01:00
eneller
8493e742e9 refactor: remove player list workaround 2026-02-01 12:01:42 +01:00
eneller
2999d8eee7 fix: prettier navbar 2026-02-01 10:49:21 +01:00
eneller
c4a2307530 feat: 3 screens for rotations
commit 563116331f
Author: eneller <erikneller@gmx.de>
Date:   Sun Feb 1 10:28:19 2026 +0100

    fix: edit list items

commit 1946c599be
Author: eneller <erikneller@gmx.de>
Date:   Sun Feb 1 10:19:16 2026 +0100

    fix: minor misc ui and data

commit 7c7762515b
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 23:02:01 2026 +0100

    feat: navbar

commit aaa0ab0638
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 21:05:23 2026 +0100

    feat: remove players

commit 4082932095
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 20:36:49 2026 +0100

    feat: dataservice

commit b6d34ce262
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 17:12:37 2026 +0100

    wip: rotations accordion

commit 764ce43138
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 16:29:11 2026 +0100

    refactor: basic screen

commit 1bc97df0da
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 15:52:06 2026 +0100

    feat: deduplicated player adding

commit 5408a8d9b6
Author: eneller <erikneller@gmx.de>
Date:   Sat Jan 31 00:31:01 2026 +0100

    central players list

commit 665cb25d34
Author: eneller <erikneller@gmx.de>
Date:   Fri Jan 30 23:15:16 2026 +0100

    feat: modal

commit 3b8e5145c3
Author: eneller <erikneller@gmx.de>
Date:   Fri Jan 30 22:51:09 2026 +0100

    wip: player modal

commit 51414f5a99
Author: eneller <erikneller@gmx.de>
Date:   Fri Jan 30 22:03:48 2026 +0100

    refactor: extract randomizer to component
2026-02-01 10:40:05 +01:00
8 changed files with 12 additions and 17 deletions

View File

@@ -3,8 +3,8 @@
</main>
<nav>
<ul ngbNav [activeId]="route.fragment | async" class="nav-tabs custom-navbar bg-body-secondary">
<li ngbNavItem="/edit" class="custom-navitem"><a ngbNavLink routerLink="/edit" routerLinkActive="active"><i class="bi bi-pencil-square"></i>{{ data.getPlayers().length }}</a></li>
<li ngbNavItem="/basic" class="custom-navitem"><a ngbNavLink routerLink="/basic" routerLinkActive="active"><i class="bi bi-shuffle"></i></a></li>
<li ngbNavItem="/rotations" class="custom-navitem"><a ngbNavLink routerLink="/rotations" routerLinkActive="active"><i class="bi bi-arrow-repeat"></i></a></li>
<li ngbNavItem="" class="custom-navitem"><a ngbNavLink routerLink="" routerLinkActive="active"><i class="bi bi-pencil-square"></i>{{ data.getPlayers().length }}</a></li>
<li ngbNavItem="/basic.t" class="custom-navitem"><a ngbNavLink routerLink="/basic.t" routerLinkActive="active"><i class="bi bi-shuffle"></i></a></li>
<li ngbNavItem="/rotations.t" class="custom-navitem"><a ngbNavLink routerLink="/rotations.t" routerLinkActive="active"><i class="bi bi-arrow-repeat"></i></a></li>
</ul>
</nav>

View File

@@ -22,7 +22,6 @@ tr{
overflow-y: auto;
}
.custom-navbar{
height: 3rem;
width: 100vw;
position: fixed;
bottom: 0;
@@ -34,5 +33,3 @@ tr{
text-align: center; /* Center the content of each item */
flex: 1;
}
.nav-link.active{
}

View File

@@ -2,16 +2,14 @@ import { Routes } from '@angular/router';
import { ScreenBasicComponent } from './screen-basic/screen-basic.component';
import { ScreenEditComponent } from './screen-edit/screen-edit.component';
import { ScreenRotationsComponent } from './screen-rotations/screen-rotations.component';
import { AppComponent } from './app.component';
export const routes: Routes = [
{
path: '',
children: [
{ path: '', redirectTo: 'edit', pathMatch: 'full' },
{ path: 'edit', component: ScreenEditComponent },
{ path: 'basic', component: ScreenBasicComponent },
{ path: 'rotations', component: ScreenRotationsComponent }
{ path: '', component: ScreenEditComponent },
{ path: 'basic.t', component: ScreenBasicComponent },
{ path: 'rotations.t', component: ScreenRotationsComponent }
]
}
];

View File

@@ -6,6 +6,7 @@ import { Player } from './model';
})
export class DataService {
private players: Player[] = [];
teams: Player[][] = [];
setPlayers(players: Player[]){
for (let player of players){

View File

@@ -26,7 +26,7 @@ export class Player{
return [this.name, values];
}
valueOf(): string{
toString(): string{
return this.name;
}
static deSerialize(name: string, values: string): Player{

View File

@@ -30,7 +30,7 @@
</tr>
</thead>
<tbody>
@for (team of teamsArray; track $index) {
@for (team of data.teams; track $index) {
<tr>
<td style="text-wrap: wrap;">{{ team.length | number }}</td>
<td class="wrap-cell">{{ team }}</td>

View File

@@ -19,7 +19,6 @@ export class ScreenBasicComponent {
numTeamsSelectorValue = "2";
numTeamsSelected = 2;
nTeamsValue = "4";
teamsArray: string[][] = [];
onButtonGenerate(): void{
if(this.numTeamsSelectorValue === 'n'){
@@ -40,10 +39,10 @@ export class ScreenBasicComponent {
let n = localPlayers[index];
localPlayers.splice(index,1);
let team = iterator.next().value;
team.push(n.name);
team.push(n);
}
this.teamsArray = teams;
this.data.teams = teams;
}
}

View File

@@ -9,7 +9,7 @@ html, body {
body {
margin:3em auto;
font-family: Roboto, "Helvetica Neue", sans-serif;
padding:0 .5em;
padding:.5em auto;
}
h1,h2,h3{
line-height:1.2;