diff --git a/.github/release-notes/template.hbs b/.github/release-notes/template.hbs index 484bee03..ff6409f8 100644 --- a/.github/release-notes/template.hbs +++ b/.github/release-notes/template.hbs @@ -1,4 +1,4 @@ -# v{{version}} {{date}} +# v{{version}} ({{date}}) ## What's Changed {{#each commitGroups}} diff --git a/apps/app/src/app/app.component.ts b/apps/app/src/app/app.component.ts index 06dd4b78..9e8480a3 100644 --- a/apps/app/src/app/app.component.ts +++ b/apps/app/src/app/app.component.ts @@ -5,10 +5,36 @@ import { SendPingGQL } from '@playsetonline/apollo-definitions'; import { pingValue } from './app.config'; +import { version } from '@package'; + @Component({ standalone: true, selector: 'app-root', - template: ``, + template: ` + + v{{ version }} + `, + styles: ` + :host { + display: flex; + flex-direction: column; + + #app-version { + position: fixed; + bottom: 0; + + position: fixed; + color: rgb(255 255 255 / 90%); + + &::before { + content: attr(data-text); + position: absolute; + -webkit-text-stroke: 2px rgb(0 0 0 / 30%); + z-index: -1; + } + } + } + `, imports: [RouterOutlet], providers: [SendPingGQL], }) @@ -17,6 +43,8 @@ export class AppComponent { private readonly pingValue = pingValue; + version = version; + title = 'app'; constructor() { diff --git a/apps/app/src/app/component/card-shape/card-shape.component.ts b/apps/app/src/app/component/card-shape/card-shape.component.ts index 1a1b623b..58da43b9 100644 --- a/apps/app/src/app/component/card-shape/card-shape.component.ts +++ b/apps/app/src/app/component/card-shape/card-shape.component.ts @@ -1,4 +1,3 @@ -import { NgIf } from '@angular/common'; import { Component, computed, input } from '@angular/core'; import { CardColor, CardShading, CardShape } from '@playsetonline/api-definitions'; @@ -8,7 +7,6 @@ import { CardColor, CardShading, CardShape } from '@playsetonline/api-definition selector: 'app-card-shape', templateUrl: './card-shape.component.html', styleUrl: './card-shape.component.scss', - imports: [NgIf], }) export class CardShapeComponent { shape = input.required({ diff --git a/apps/app/src/app/component/card/card.component.scss b/apps/app/src/app/component/card/card.component.scss index 3a81aa22..463da1c4 100644 --- a/apps/app/src/app/component/card/card.component.scss +++ b/apps/app/src/app/component/card/card.component.scss @@ -2,7 +2,7 @@ aspect-ratio: 1 / 0.6666; height: 100%; - background: white; + background-color: white; border: solid 0.1rem #e5e5e5; border-radius: 3.3% / 5%; diff --git a/apps/app/src/app/component/card/card.component.ts b/apps/app/src/app/component/card/card.component.ts index 1609e9d7..e44fe2bb 100644 --- a/apps/app/src/app/component/card/card.component.ts +++ b/apps/app/src/app/component/card/card.component.ts @@ -1,4 +1,3 @@ -import { NgFor, NgIf } from '@angular/common'; import { Component, computed, input } from '@angular/core'; import { CardColor, CardShading, CardShape } from '@playsetonline/api-definitions'; @@ -10,7 +9,7 @@ import { CardShapeComponent } from '../card-shape/card-shape.component'; selector: 'app-card', templateUrl: './card.component.html', styleUrl: './card.component.scss', - imports: [NgIf, NgFor, CardShapeComponent], + imports: [CardShapeComponent], }) export class CardComponent { private readonly hello = 22; diff --git a/apps/app/src/app/layout/main/main.layout.ts b/apps/app/src/app/layout/main/main.layout.ts index 5c18fdcc..f386d93b 100644 --- a/apps/app/src/app/layout/main/main.layout.ts +++ b/apps/app/src/app/layout/main/main.layout.ts @@ -1,6 +1,6 @@ -import { AsyncPipe, JsonPipe, NgIf, NgTemplateOutlet } from '@angular/common'; +import { NgTemplateOutlet } from '@angular/common'; import { Component, OnInit, inject, signal } from '@angular/core'; -import { Router, RouterModule } from '@angular/router'; +import { Router, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router'; import { SwUpdate } from '@angular/service-worker'; import { CardColor, CardShading, CardShape } from '@playsetonline/api-definitions'; @@ -21,12 +21,11 @@ import { UserStore } from '../../store/user.store'; templateUrl: './main.layout.html', styleUrl: './main.layout.scss', imports: [ - RouterModule, + RouterOutlet, + RouterLink, + RouterLinkActive, NgTemplateOutlet, MediaDebugComponent, - NgIf, - JsonPipe, - AsyncPipe, CardShapeComponent, ], providers: [GetPingsGQL, GetUserInfoGQL], diff --git a/apps/app/src/app/page/example/component/menu/example-menu.component.ts b/apps/app/src/app/page/example/component/menu/example-menu.component.ts index 97f9a411..b8a22e7e 100644 --- a/apps/app/src/app/page/example/component/menu/example-menu.component.ts +++ b/apps/app/src/app/page/example/component/menu/example-menu.component.ts @@ -7,7 +7,7 @@ import { RouterModule } from '@angular/router'; selector: 'app-example-menu', imports: [NgTemplateOutlet, RouterModule], template: ` -