From 44d2afc32338ed723733196f6ceae1ed022abd65 Mon Sep 17 00:00:00 2001
From: pandadev <70103896+0PandaDEV@users.noreply.github.com>
Date: Sat, 13 Apr 2024 02:31:44 +0200
Subject: [PATCH] added eq and volume restoring from config
---
components/Player.vue | 83 +++++++++++++++++--------
lib/{Settings.ts => Config.ts} | 26 +++++---
lib/Player.ts | 88 +++++++++++++++++----------
pages/index.vue | 31 +++++++---
src-tauri/src/config.rs | 108 ++++++++++++++++++++-------------
5 files changed, 222 insertions(+), 114 deletions(-)
rename lib/{Settings.ts => Config.ts} (50%)
diff --git a/components/Player.vue b/components/Player.vue
index 3ad3990..b57c9a3 100644
--- a/components/Player.vue
+++ b/components/Player.vue
@@ -3,7 +3,7 @@
Player
-
![]()
+
-
+
-
- {{ time }} / {{ duration }}
-
+
{{ time }} / {{ duration }}
\ No newline at end of file
+@import "~/assets/styles/components/player.scss";
+
diff --git a/lib/Settings.ts b/lib/Config.ts
similarity index 50%
rename from lib/Settings.ts
rename to lib/Config.ts
index a5220e2..e976080 100644
--- a/lib/Settings.ts
+++ b/lib/Config.ts
@@ -2,10 +2,10 @@ interface EQSettings {
[key: string]: string;
}
-class Settings {
+export class Config {
static async readSettings(): Promise