Migrate to vite and some more stuff

- server: add a `Track` class
- server: add a create_track_class function
- client: migrate from vue-cli to vite
This commit is contained in:
geoffrey45
2022-01-25 11:51:26 +03:00
parent 7689f13fdc
commit d6204946c2
18 changed files with 638 additions and 8372 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
<template>
<tr
class="songlist-item"
:class="{ current: current.id == song.id }"
>
<!-- :class="{ current: current._id.$oid == song._id.$oid }" -->
<td class="flex" @click="emitUpdate(song)">
<div
class="album-art rounded image"
@@ -12,7 +12,7 @@
>
<div
class="now-playing-track image"
v-if="current._id.$oid == song._id.$oid"
v-if="current.id == song.id"
:class="{ active: is_playing, not_active: !is_playing }"
></div>
</div>
@@ -45,7 +45,7 @@
</div>
</td>
<td class="song-duration">
{{ `${Math.trunc(song.length / 60)} min` }}
{{ song.length }}
</td>
</tr>
</template>