-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
diff --git a/src/components/LeftSidebar/PinnedStuff.vue b/src/components/LeftSidebar/PinnedStuff.vue
index fe63392..4a70e1e 100644
--- a/src/components/LeftSidebar/PinnedStuff.vue
+++ b/src/components/LeftSidebar/PinnedStuff.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
diff --git a/src/components/RightSideBar/Main.vue b/src/components/RightSideBar/Main.vue
index 7624179..15c70f3 100644
--- a/src/components/RightSideBar/Main.vue
+++ b/src/components/RightSideBar/Main.vue
@@ -53,9 +53,9 @@ function changeTab(tab) {
display: none;
}
- // @include tablet-landscape {
- // width: 3rem;
- // }
+ @include tablet-landscape {
+ width: 3rem;
+ }
.grid {
height: 100%;
@@ -66,9 +66,9 @@ function changeTab(tab) {
grid-area: content;
width: 31rem;
- // @include tablet-landscape {
- // display: none;
- // }
+ @include tablet-landscape {
+ display: none;
+ }
.r-search {
height: 100%;
diff --git a/src/components/RightSideBar/NowPlaying.vue b/src/components/RightSideBar/NowPlaying.vue
index 71a7bef..e610967 100644
--- a/src/components/RightSideBar/NowPlaying.vue
+++ b/src/components/RightSideBar/NowPlaying.vue
@@ -59,7 +59,6 @@ export default {
setup() {
const current = ref(perks.current);
const putCommas = perks.putCommas;
- const pos = playAudio.pos;
const {playNext} = playAudio;
const {playPrev} = playAudio;
@@ -76,7 +75,6 @@ export default {
playNext,
playPrev,
playPause,
- pos,
seek,
isPlaying,
formatSeconds: perks.formatSeconds,
diff --git a/src/components/SettingsView/Main.vue b/src/components/SettingsView/Main.vue
new file mode 100644
index 0000000..db2c989
--- /dev/null
+++ b/src/components/SettingsView/Main.vue
@@ -0,0 +1,3 @@
+
+
Hello, settings here 😁
+
\ No newline at end of file
diff --git a/src/components/shared/Progress.vue b/src/components/shared/Progress.vue
index e7057eb..3563f8d 100644
--- a/src/components/shared/Progress.vue
+++ b/src/components/shared/Progress.vue
@@ -1,5 +1,6 @@
{
- const elem = document.getElementById('progress')
+ const elem = document.getElementsByClassName('progress-bar')[0];
+ const bottom_elem = document.getElementsByClassName('progress-bar')[1];
+
const full_path = url + encodeURIComponent(path);
new Promise((resolve, reject) => {
@@ -26,9 +31,12 @@ const playAudio = (path) => {
state.is_playing.value = true;
audio.ontimeupdate = () => {
+ current_time.value = audio.currentTime;
pos.value = (audio.currentTime / audio.duration) * 1000;
let bg_size = ((audio.currentTime / audio.duration)*100)
+
elem.style.backgroundSize = `${bg_size}% 100%`;
+ bottom_elem.style.backgroundSize = `${bg_size}% 100%`;
};
})
.catch((err) => console.log(err));
@@ -45,8 +53,8 @@ function playPrev() {
perks.current.value = perks.prev.value;
}
-function seek(pos) {
- audio.currentTime = (pos / 1000) * audio.duration;
+function seek(position) {
+ audio.currentTime = (position / 1000) * audio.duration;
}
function playPause() {
@@ -73,7 +81,7 @@ audio.addEventListener("ended", () => {
playNext();
});
-export default { playAudio, playNext, playPrev, playPause, seek, pos, playing };
+export default { playAudio, playNext, playPrev, playPause, seek, pos, playing, current_time };
// TODO
diff --git a/src/router/index.js b/src/router/index.js
index 35de5e6..4afc78e 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -7,6 +7,7 @@ import AlbumsExplorer from "../views/AlbumsExplorer.vue";
import AlbumView from "../views/AlbumView.vue";
import ArtistsExplorer from "../views/ArtistsExplorer.vue";
+import SettingsView from "../views/SettingsView.vue";
const routes = [
{
@@ -30,7 +31,7 @@ const routes = [
},
{
path: "/albums",
- name: "AlbumsExplorer",
+ name: "AlbumsView",
component: AlbumsExplorer,
},
{
@@ -40,9 +41,14 @@ const routes = [
},
{
path: "/artists",
- name: "ArtistsExplorer",
+ name: "ArtistsView",
component: ArtistsExplorer,
- }
+ },
+ {
+ path: "/settings",
+ name: "SettingsView",
+ component: SettingsView,
+ },
];
const router = createRouter({
diff --git a/src/views/SettingsView.vue b/src/views/SettingsView.vue
new file mode 100644
index 0000000..db2c989
--- /dev/null
+++ b/src/views/SettingsView.vue
@@ -0,0 +1,3 @@
+
+Hello, settings here 😁
+
\ No newline at end of file