diff --git a/package-lock.json b/package-lock.json index f7d889b..ad8e931 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@tailwindcss/vite": "^4.1.7", "axios": "^1.9.0", + "gsap": "^3.13.0", "pinia": "^3.0.2", "tailwindcss": "^4.1.7", "vue": "^3.5.13", @@ -1841,6 +1842,12 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "license": "ISC" }, + "node_modules/gsap": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/gsap/-/gsap-3.13.0.tgz", + "integrity": "sha512-QL7MJ2WMjm1PHWsoFrAQH/J8wUeqZvMtHO58qdekHpCfhvhSL4gSiz6vJf5EeMP0LOn3ZCprL2ki/gjED8ghVw==", + "license": "Standard 'no charge' license: https://gsap.com/standard-license." + }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", diff --git a/package.json b/package.json index cf52a8a..e933d4e 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dependencies": { "@tailwindcss/vite": "^4.1.7", "axios": "^1.9.0", + "gsap": "^3.13.0", "pinia": "^3.0.2", "tailwindcss": "^4.1.7", "vue": "^3.5.13", diff --git a/src/components/Player.vue b/src/components/Player.vue index fcc140a..4acace0 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -1,9 +1,10 @@ \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 7a5c2c1..8be5812 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,10 +6,12 @@ import { createPinia } from 'pinia' import App from './App.vue' import HomePage from './pages/Home.vue' import AlbumDetailView from './pages/AlbumDetail.vue' +import Playroom from './pages/Playroom.vue' const routes = [ { path: '/', component: HomePage }, { path: '/albums/:albumId', component: AlbumDetailView }, + { path: '/playroom', component: Playroom } ] const router = createRouter({ diff --git a/src/pages/Playroom.vue b/src/pages/Playroom.vue new file mode 100644 index 0000000..b53f83e --- /dev/null +++ b/src/pages/Playroom.vue @@ -0,0 +1,68 @@ + + + \ No newline at end of file diff --git a/src/stores/usePlayQueueStore.ts b/src/stores/usePlayQueueStore.ts index 607e77f..b13afac 100644 --- a/src/stores/usePlayQueueStore.ts +++ b/src/stores/usePlayQueueStore.ts @@ -7,6 +7,8 @@ export const usePlayQueueStore = defineStore('queue', () =>{ const isPlaying = ref(false) const queueReplaceLock = ref(false) const isBuffering = ref(false) + const currentTime = ref(0) + const duration = ref(0) - return { list, currentIndex, isPlaying, queueReplaceLock, isBuffering } + return { list, currentIndex, isPlaying, queueReplaceLock, isBuffering, currentTime, duration } }) \ No newline at end of file