From cc85b286664f35764bb517f74ebb798bf61051ac Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Sun, 15 Dec 2024 03:50:57 -0800 Subject: [PATCH] chore: rename from "Home" to "Currently Playing" --- src/app/app.routes.ts | 4 ++-- ...nent.ts => currently-playing.component.ts} | 12 +++++----- src/assets/pause_icon.svg | 4 ++++ src/assets/play_icon.svg | 24 +++++++++++++++++++ 4 files changed, 36 insertions(+), 8 deletions(-) rename src/app/views/{home.component.ts => currently-playing.component.ts} (97%) create mode 100644 src/assets/pause_icon.svg create mode 100644 src/assets/play_icon.svg diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 267f11f..bbd8f4d 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,9 +1,9 @@ import { Routes } from "@angular/router"; -import {Home} from "./views/home.component"; +import {CurrentlyPlaying} from "./views/currently-playing.component"; export const routes: Routes = [ { path: "", - component: Home + component: CurrentlyPlaying } ]; diff --git a/src/app/views/home.component.ts b/src/app/views/currently-playing.component.ts similarity index 97% rename from src/app/views/home.component.ts rename to src/app/views/currently-playing.component.ts index 173ea2a..ed12d21 100644 --- a/src/app/views/home.component.ts +++ b/src/app/views/currently-playing.component.ts @@ -7,7 +7,7 @@ import {Metadata} from "../injectables/metadata"; import {injectMutation} from "@tanstack/angular-query-experimental"; @Component({ - selector: "app-home-material", + selector: "currently-playing-material", template: `
@@ -41,7 +41,7 @@ import {injectMutation} from "@tanstack/angular-query-experimental"; } `] }) -class AppHomeMaterial { +class CurrentlyPlayingMaterial { stateMetadata = inject(Metadata); } @@ -109,9 +109,9 @@ export class AlbumArt { @Component({ // TODO: Rename from "home" to "now-playing" selector: 'app-home', - imports: [AppHomeMaterial, AlbumArt], + imports: [CurrentlyPlayingMaterial, AlbumArt], template: ` - +
@if (!openFileMutation.data()) { @@ -141,7 +141,7 @@ export class AlbumArt {
} -
+ `, styles: [` .container { @@ -232,7 +232,7 @@ export class AlbumArt { } `] }) -export class Home { +export class CurrentlyPlaying { playingMetadata = injectSelector((state: RootState) => state.tauri); stateMetadata = inject(Metadata); diff --git a/src/assets/pause_icon.svg b/src/assets/pause_icon.svg new file mode 100644 index 0000000..2da26a5 --- /dev/null +++ b/src/assets/pause_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/play_icon.svg b/src/assets/play_icon.svg new file mode 100644 index 0000000..712056c --- /dev/null +++ b/src/assets/play_icon.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + -- 2.51.2