@ozdao/martyrs 0.2.484 → 0.2.486
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Media-2NvSR0vE.js → Media-CXQSPHt2.js} +1 -1
- package/dist/{Media-EYG9WPI4.cjs → Media-DhpD64nT.cjs} +1 -1
- package/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/auth.server.cjs +2 -23
- package/dist/auth.server.js +1 -22
- package/dist/globals.crud-BQG1Lm0A.js +90 -0
- package/dist/globals.crud-Dv7UXbRM.cjs +89 -0
- package/dist/globals.server.cjs +3 -322
- package/dist/globals.server.js +1 -303
- package/dist/globals.websocket-DzvdIBf6.js +306 -0
- package/dist/globals.websocket-k6_B1T7k.cjs +322 -0
- package/dist/{main-BT1yoKH2.js → main-Cfh5138F.js} +2102 -1993
- package/dist/main-DKJqboZy.cjs +11 -0
- package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- package/dist/martyrs/src/components/{DatePicker → Calendar}/Calendar.vue.cjs +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/{DatePicker → Calendar}/Calendar.vue.js +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs +13 -7
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +14 -8
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Popup/{Popup.vue2.cjs → Popup.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Popup/{Popup.vue2.js.map → Popup.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Popup/{Popup.vue2.js → Popup.vue.js} +2 -2
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/auth.client.cjs +3 -0
- package/dist/martyrs/src/modules/auth/auth.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/auth.client.js +3 -0
- package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
- package/dist/martyrs/src/modules/auth/locales/en.cjs +79 -0
- package/dist/martyrs/src/modules/auth/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/locales/en.js +79 -0
- package/dist/martyrs/src/modules/auth/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/auth/locales/index.cjs +10 -0
- package/dist/martyrs/src/modules/auth/locales/index.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/locales/index.js +10 -0
- package/dist/martyrs/src/modules/auth/locales/index.js.map +1 -0
- package/dist/martyrs/src/modules/auth/locales/ru.cjs +79 -0
- package/dist/martyrs/src/modules/auth/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/locales/ru.js +79 -0
- package/dist/martyrs/src/modules/auth/locales/ru.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +0 -9
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +2 -11
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs +4 -6
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +4 -6
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +7 -9
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +7 -9
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +11 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +11 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +12 -14
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +12 -14
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +11 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +11 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +5 -47
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +5 -47
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/globals.client.cjs +1 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +1 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +3 -3
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +1 -1
- package/dist/martyrs/src/modules/globals/views/utils/axios-instance.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/utils/axios-instance.js.map +1 -1
- package/dist/martyrs/src/modules/icons/actions/IconShow.vue.cjs +49 -0
- package/dist/martyrs/src/modules/icons/actions/IconShow.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/actions/IconShow.vue.js +49 -0
- package/dist/martyrs/src/modules/icons/actions/IconShow.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs +34 -0
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js +34 -0
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +115 -122
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +163 -170
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +87 -0
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +87 -0
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.cjs +83 -0
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +83 -0
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +83 -0
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +83 -0
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/TrackCard.vue.cjs +68 -0
- package/dist/martyrs/src/modules/music/components/cards/TrackCard.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/TrackCard.vue.js +68 -0
- package/dist/martyrs/src/modules/music/components/cards/TrackCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +174 -0
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +174 -0
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +80 -0
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +80 -0
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/forms/UploadForm.vue.cjs +328 -0
- package/dist/martyrs/src/modules/music/components/forms/UploadForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/forms/UploadForm.vue.js +328 -0
- package/dist/martyrs/src/modules/music/components/forms/UploadForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.cjs +115 -0
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.js +115 -0
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/AlbumList.vue.cjs +44 -0
- package/dist/martyrs/src/modules/music/components/lists/AlbumList.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/AlbumList.vue.js +44 -0
- package/dist/martyrs/src/modules/music/components/lists/AlbumList.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/ArtistList.vue.cjs +305 -0
- package/dist/martyrs/src/modules/music/components/lists/ArtistList.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/ArtistList.vue.js +305 -0
- package/dist/martyrs/src/modules/music/components/lists/ArtistList.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/PlaylistList.vue.cjs +44 -0
- package/dist/martyrs/src/modules/music/components/lists/PlaylistList.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/PlaylistList.vue.js +44 -0
- package/dist/martyrs/src/modules/music/components/lists/PlaylistList.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/TrackList.vue.cjs +199 -0
- package/dist/martyrs/src/modules/music/components/lists/TrackList.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/lists/TrackList.vue.js +199 -0
- package/dist/martyrs/src/modules/music/components/lists/TrackList.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/AlbumDetail.vue.cjs +290 -0
- package/dist/martyrs/src/modules/music/components/pages/AlbumDetail.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/AlbumDetail.vue.js +290 -0
- package/dist/martyrs/src/modules/music/components/pages/AlbumDetail.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistDetail.vue.cjs +467 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistDetail.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistDetail.vue.js +467 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistDetail.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistForm.vue.cjs +382 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistForm.vue.js +382 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistManager.vue.cjs +303 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistManager.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistManager.vue.js +303 -0
- package/dist/martyrs/src/modules/music/components/pages/ArtistManager.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.cjs +221 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js +221 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +200 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +200 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicUpload.vue.cjs +50 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicUpload.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicUpload.vue.js +50 -0
- package/dist/martyrs/src/modules/music/components/pages/MusicUpload.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/PlaylistDetail.vue.cjs +556 -0
- package/dist/martyrs/src/modules/music/components/pages/PlaylistDetail.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/PlaylistDetail.vue.js +556 -0
- package/dist/martyrs/src/modules/music/components/pages/PlaylistDetail.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +449 -0
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +449 -0
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/TrackDetail.vue.cjs +87 -0
- package/dist/martyrs/src/modules/music/components/pages/TrackDetail.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/pages/TrackDetail.vue.js +87 -0
- package/dist/martyrs/src/modules/music/components/pages/TrackDetail.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +227 -0
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +227 -0
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.cjs +85 -0
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js +85 -0
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.cjs +71 -0
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +71 -0
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/music.client.cjs +137 -0
- package/dist/martyrs/src/modules/music/music.client.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/music.client.js +137 -0
- package/dist/martyrs/src/modules/music/music.client.js.map +1 -0
- package/dist/martyrs/src/modules/music/router/music.cjs +99 -0
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/router/music.js +99 -0
- package/dist/martyrs/src/modules/music/router/music.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/albums.cjs +167 -0
- package/dist/martyrs/src/modules/music/store/albums.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/store/albums.js +167 -0
- package/dist/martyrs/src/modules/music/store/albums.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/artists.cjs +154 -0
- package/dist/martyrs/src/modules/music/store/artists.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/store/artists.js +154 -0
- package/dist/martyrs/src/modules/music/store/artists.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/player.cjs +297 -0
- package/dist/martyrs/src/modules/music/store/player.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/store/player.js +297 -0
- package/dist/martyrs/src/modules/music/store/player.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/playlists.cjs +174 -0
- package/dist/martyrs/src/modules/music/store/playlists.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/store/playlists.js +174 -0
- package/dist/martyrs/src/modules/music/store/playlists.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/search.cjs +109 -0
- package/dist/martyrs/src/modules/music/store/search.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/store/search.js +109 -0
- package/dist/martyrs/src/modules/music/store/search.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/tracks.cjs +180 -0
- package/dist/martyrs/src/modules/music/store/tracks.cjs.map +1 -0
- package/dist/martyrs/src/modules/music/store/tracks.js +180 -0
- package/dist/martyrs/src/modules/music/store/tracks.js.map +1 -0
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +38 -36
- package/dist/music.server.cjs +1407 -0
- package/dist/music.server.js +1407 -0
- package/dist/orders.server.cjs +3 -88
- package/dist/orders.server.js +2 -87
- package/dist/socials.schema-BOZV82Mp.js +25 -0
- package/dist/socials.schema-CtpSF9dE.cjs +24 -0
- package/dist/style.css +250 -97
- package/package.json +1 -1
- package/src/.martyrs/filemap.json +2 -2
- package/src/components/Feed/Feed.vue +1 -1
- package/src/components/Field/Field.vue +42 -27
- package/src/components/index.js +2 -0
- package/src/main.js +6 -0
- package/src/modules/auth/auth.client.js +7 -0
- package/src/modules/auth/locales/en.js +76 -0
- package/src/modules/auth/locales/index.js +7 -0
- package/src/modules/auth/locales/ru.js +76 -0
- package/src/modules/auth/views/components/layouts/Auth.vue +2 -44
- package/src/modules/auth/views/components/pages/EnterCode.vue +5 -7
- package/src/modules/auth/views/components/pages/EnterPassword.vue +7 -10
- package/src/modules/auth/views/components/pages/ResetPassword.vue +9 -12
- package/src/modules/auth/views/components/pages/SignIn.vue +12 -15
- package/src/modules/auth/views/components/pages/SignUp.vue +9 -12
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +11 -48
- package/src/modules/events/components/pages/EditEvent.vue +1 -1
- package/src/modules/globals/globals.client.js +1 -0
- package/src/modules/globals/views/components/blocks/PopupDateSelector.vue +1 -1
- package/src/modules/globals/views/utils/axios-instance.js +15 -1
- package/src/modules/icons/actions/IconShow.vue +23 -0
- package/src/modules/icons/pages/IconsPage.vue +114 -120
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/dist/main-rF15sgss.cjs +0 -11
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/DatePicker/Calendar.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/DatePicker/Calendar.vue.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.cjs +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.js +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.cjs +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.js +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.cjs +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.js +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.cjs +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.js +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.cjs +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.js +0 -9
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.js.map +0 -1
- package/src/modules/auth/views/localization/EnterCode.json +0 -16
- package/src/modules/auth/views/localization/EnterPassword.json +0 -22
- package/src/modules/auth/views/localization/ResetPassword.json +0 -26
- package/src/modules/auth/views/localization/SignIn.json +0 -34
- package/src/modules/auth/views/localization/SignUp.json +0 -28
- /package/src/components/{DatePicker → Calendar}/Calendar.vue +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { computed, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, createVNode, withModifiers, toDisplayString } from "vue";
|
|
2
|
+
import Media from "../../../../components/Media/Media.vue.js";
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
|
+
import _sfc_main$2 from "../../../icons/navigation/IconPlay.vue.js";
|
|
5
|
+
import { actions } from "../../store/player.js";
|
|
6
|
+
import { state, actions as actions$1 } from "../../store/albums.js";
|
|
7
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const _hoisted_1 = { class: "album-cover pos-relative" };
|
|
9
|
+
const _hoisted_2 = { class: "album-overlay pos-absolute pos-t-0 pos-l-0 w-100 h-100 flex-center flex transition-cubic-in-out" };
|
|
10
|
+
const _hoisted_3 = { class: "album-info pd-small bg-dark-transp-20" };
|
|
11
|
+
const _hoisted_4 = { class: "t-white t-medium t-truncate" };
|
|
12
|
+
const _hoisted_5 = { class: "t-grey t-small t-truncate" };
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: "AlbumCard",
|
|
15
|
+
props: {
|
|
16
|
+
album: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const albumInfo = computed(() => {
|
|
24
|
+
var _a;
|
|
25
|
+
const releaseYear = props.album.releaseDate ? new Date(props.album.releaseDate).getFullYear() : "";
|
|
26
|
+
let artistName = "Unknown Artist";
|
|
27
|
+
if ((_a = props.album.artist) == null ? void 0 : _a.name) {
|
|
28
|
+
artistName = props.album.artist.name;
|
|
29
|
+
} else if (typeof props.album.artist === "string") {
|
|
30
|
+
artistName = props.album.artist;
|
|
31
|
+
}
|
|
32
|
+
return releaseYear ? `${artistName} • ${releaseYear}` : artistName;
|
|
33
|
+
});
|
|
34
|
+
const playAlbum = async (album) => {
|
|
35
|
+
if (state.currentAlbum && state.currentAlbum._id === album._id && state.currentAlbumTracks.length > 0) {
|
|
36
|
+
actions.setQueue(state.currentAlbumTracks);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const tracks = await actions$1.fetchAlbumTracks(album._id);
|
|
40
|
+
if (tracks && tracks.length > 0) {
|
|
41
|
+
actions.setQueue(tracks);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
const _component_router_link = resolveComponent("router-link");
|
|
46
|
+
return openBlock(), createBlock(_component_router_link, {
|
|
47
|
+
to: { name: "album-detail", params: { url: __props.album.url } },
|
|
48
|
+
class: "album-card d-block radius-small o-hidden"
|
|
49
|
+
}, {
|
|
50
|
+
default: withCtx(() => [
|
|
51
|
+
createElementVNode("div", _hoisted_1, [
|
|
52
|
+
createVNode(Media, {
|
|
53
|
+
url: __props.album.coverUrl || "/assets/placeholder-album.jpg",
|
|
54
|
+
class: "w-100 aspect-1x1 object-fit-cover"
|
|
55
|
+
}, null, 8, ["url"]),
|
|
56
|
+
createElementVNode("div", _hoisted_2, [
|
|
57
|
+
createVNode(_sfc_main$1, {
|
|
58
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => playAlbum(__props.album), ["stop"])),
|
|
59
|
+
class: "play-button bg-main radius-round flex-center flex aspect-1x1",
|
|
60
|
+
showLoader: false,
|
|
61
|
+
showSucces: false
|
|
62
|
+
}, {
|
|
63
|
+
default: withCtx(() => [
|
|
64
|
+
createVNode(_sfc_main$2, {
|
|
65
|
+
class: "i-small",
|
|
66
|
+
fill: "rgb(var(--black))"
|
|
67
|
+
})
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})
|
|
71
|
+
])
|
|
72
|
+
]),
|
|
73
|
+
createElementVNode("div", _hoisted_3, [
|
|
74
|
+
createElementVNode("h3", _hoisted_4, toDisplayString(__props.album.title), 1),
|
|
75
|
+
createElementVNode("p", _hoisted_5, toDisplayString(albumInfo.value), 1)
|
|
76
|
+
])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["to"]);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const AlbumCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b94f361e"]]);
|
|
84
|
+
export {
|
|
85
|
+
AlbumCard as default
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=AlbumCard.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlbumCard.vue.js","sources":["../../../../../../../src/modules/music/components/cards/AlbumCard.vue"],"sourcesContent":["<!-- components/cards/AlbumCard.vue -->\n<template>\n <router-link \n :to=\"{ name: 'album-detail', params: { url: album.url } }\" \n class=\"album-card d-block radius-small o-hidden\"\n >\n <div class=\"album-cover pos-relative\">\n <Media \n :url=\"album.coverUrl || '/assets/placeholder-album.jpg'\" \n class=\"w-100 aspect-1x1 object-fit-cover\"\n />\n <div class=\"album-overlay pos-absolute pos-t-0 pos-l-0 w-100 h-100 flex-center flex transition-cubic-in-out\">\n <Button \n @click.stop=\"playAlbum(album)\" \n class=\"play-button bg-main radius-round flex-center flex aspect-1x1\"\n :showLoader=\"false\"\n :showSucces=\"false\"\n >\n <IconPlay class=\"i-small\" fill=\"rgb(var(--black))\" />\n </Button>\n </div>\n </div>\n <div class=\"album-info pd-small bg-dark-transp-20\">\n <h3 class=\"t-white t-medium t-truncate\">{{ album.title }}</h3>\n <p class=\"t-grey t-small t-truncate\">{{ albumInfo }}</p>\n </div>\n </router-link>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport Media from '@martyrs/src/components/Media/Media.vue';\nimport Button from '@martyrs/src/components/Button/Button.vue';\nimport IconPlay from '@martyrs/src/modules/icons/navigation/IconPlay.vue';\n\n// Import player store & albums store\nimport { actions as playerActions } from '../../store/player.js';\nimport { state as albumsState, actions as albumsActions } from '../../store/albums.js';\n\nconst props = defineProps({\n album: {\n type: Object,\n required: true\n }\n});\n\n// Computed properties\nconst albumInfo = computed(() => {\n const releaseYear = props.album.releaseDate ? new Date(props.album.releaseDate).getFullYear() : '';\n let artistName = 'Unknown Artist';\n \n if (props.album.artist?.name) {\n artistName = props.album.artist.name;\n } else if (typeof props.album.artist === 'string') {\n artistName = props.album.artist;\n }\n \n return releaseYear ? `${artistName} • ${releaseYear}` : artistName;\n});\n\n// Methods\nconst playAlbum = async (album) => {\n // If album tracks are already loaded in state, use those\n if (albumsState.currentAlbum && albumsState.currentAlbum._id === album._id && albumsState.currentAlbumTracks.length > 0) {\n playerActions.setQueue(albumsState.currentAlbumTracks);\n return;\n }\n \n // Otherwise fetch tracks for this album\n const tracks = await albumsActions.fetchAlbumTracks(album._id);\n \n if (tracks && tracks.length > 0) {\n playerActions.setQueue(tracks);\n }\n};\n</script>\n\n<style scoped>\n.album-card {\n transition: transform 0.3s ease;\n}\n\n.album-card:hover {\n transform: translateY(-5px);\n}\n\n.album-overlay {\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.album-card:hover .album-overlay {\n opacity: 1;\n}\n\n.play-button {\n width: 48px;\n height: 48px;\n transform: scale(0.8);\n transition: transform 0.3s ease;\n}\n\n.album-card:hover .play-button {\n transform: scale(1);\n}\n</style>"],"names":["albumsState","playerActions","albumsActions"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuCA,UAAM,QAAQ;AAQd,UAAM,YAAY,SAAS,MAAM;;AAC/B,YAAM,cAAc,MAAM,MAAM,cAAc,IAAI,KAAK,MAAM,MAAM,WAAW,EAAE,YAAa,IAAG;AAChG,UAAI,aAAa;AAEjB,WAAI,WAAM,MAAM,WAAZ,mBAAoB,MAAM;AAC5B,qBAAa,MAAM,MAAM,OAAO;AAAA,MACjC,WAAU,OAAO,MAAM,MAAM,WAAW,UAAU;AACjD,qBAAa,MAAM,MAAM;AAAA,MAC7B;AAEE,aAAO,cAAc,GAAG,UAAU,MAAM,WAAW,KAAK;AAAA,IAC1D,CAAC;AAGD,UAAM,YAAY,OAAO,UAAU;AAEjC,UAAIA,MAAY,gBAAgBA,MAAY,aAAa,QAAQ,MAAM,OAAOA,MAAY,mBAAmB,SAAS,GAAG;AACvHC,gBAAc,SAASD,MAAY,kBAAkB;AACrD;AAAA,MACJ;AAGE,YAAM,SAAS,MAAME,UAAc,iBAAiB,MAAM,GAAG;AAE7D,UAAI,UAAU,OAAO,SAAS,GAAG;AAC/BD,gBAAc,SAAS,MAAM;AAAA,MACjC;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vueRouter = require("vue-router");
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
6
|
+
const _hoisted_1 = { class: "artist-image w-100 pos-relative aspect-1x1" };
|
|
7
|
+
const _hoisted_2 = ["src", "alt"];
|
|
8
|
+
const _hoisted_3 = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "w-100 h-100 bg-light flex-center flex"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = { class: "h3" };
|
|
13
|
+
const _hoisted_5 = { class: "t-white p-small" };
|
|
14
|
+
const _hoisted_6 = { class: "pd-small" };
|
|
15
|
+
const _hoisted_7 = { class: "mn-b-micro t-trim-2" };
|
|
16
|
+
const _hoisted_8 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "p-small t-transp t-trim"
|
|
19
|
+
};
|
|
20
|
+
const _sfc_main = {
|
|
21
|
+
__name: "ArtistCard",
|
|
22
|
+
props: {
|
|
23
|
+
artist: {
|
|
24
|
+
type: Object,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
clickable: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
showStatus: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(__props) {
|
|
37
|
+
const props = __props;
|
|
38
|
+
const router = vueRouter.useRouter();
|
|
39
|
+
const handleClick = () => {
|
|
40
|
+
if (!props.clickable) return;
|
|
41
|
+
router.push({
|
|
42
|
+
name: "artist-detail",
|
|
43
|
+
params: { url: props.artist.url }
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
48
|
+
class: vue.normalizeClass(["artist-card flex flex-column radius-medium o-hidden bg-white", { "cursor-pointer hover-scale-1": __props.clickable }]),
|
|
49
|
+
onClick: handleClick
|
|
50
|
+
}, [
|
|
51
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
52
|
+
__props.artist.photo ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
53
|
+
key: 0,
|
|
54
|
+
src: _ctx.FILE_SERVER_URL + __props.artist.photo,
|
|
55
|
+
alt: __props.artist.name,
|
|
56
|
+
class: "w-100 h-100 object-fit-cover",
|
|
57
|
+
loading: "lazy"
|
|
58
|
+
}, null, 8, _hoisted_2)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
59
|
+
vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(__props.artist.name ? __props.artist.name.charAt(0) : "?"), 1)
|
|
60
|
+
])),
|
|
61
|
+
__props.showStatus ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
62
|
+
key: 2,
|
|
63
|
+
class: vue.normalizeClass(["pos-absolute pos-t-small pos-r-small pd-micro radius-medium", {
|
|
64
|
+
"bg-second": __props.artist.status === "published",
|
|
65
|
+
"bg-fifth": __props.artist.status === "featured",
|
|
66
|
+
"bg-grey": __props.artist.status === "draft"
|
|
67
|
+
}])
|
|
68
|
+
}, [
|
|
69
|
+
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(__props.artist.status), 1)
|
|
70
|
+
], 2)) : vue.createCommentVNode("", true)
|
|
71
|
+
]),
|
|
72
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
73
|
+
vue.createElementVNode("h4", _hoisted_7, vue.toDisplayString(__props.artist.name), 1),
|
|
74
|
+
__props.artist.genres && __props.artist.genres.length ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_8, vue.toDisplayString(__props.artist.genres.join(", ")), 1)) : vue.createCommentVNode("", true)
|
|
75
|
+
]),
|
|
76
|
+
vue.renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
77
|
+
], 2);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const ArtistCard = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4e655a89"]]);
|
|
82
|
+
exports.default = ArtistCard;
|
|
83
|
+
//# sourceMappingURL=ArtistCard.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArtistCard.vue.cjs","sources":["../../../../../../../src/modules/music/components/cards/ArtistCard.vue"],"sourcesContent":["<template>\n <div \n class=\"artist-card flex flex-column radius-medium o-hidden bg-white\"\n :class=\"{ 'cursor-pointer hover-scale-1': clickable }\"\n @click=\"handleClick\"\n >\n <div class=\"artist-image w-100 pos-relative aspect-1x1\">\n <img \n v-if=\"artist.photo\" \n :src=\"FILE_SERVER_URL + artist.photo\" \n :alt=\"artist.name\"\n class=\"w-100 h-100 object-fit-cover\"\n loading=\"lazy\"\n />\n <div v-else class=\"w-100 h-100 bg-light flex-center flex\">\n <span class=\"h3\">{{ artist.name ? artist.name.charAt(0) : '?' }}</span>\n </div>\n \n <div \n v-if=\"showStatus\" \n class=\"pos-absolute pos-t-small pos-r-small pd-micro radius-medium\"\n :class=\"{\n 'bg-second': artist.status === 'published',\n 'bg-fifth': artist.status === 'featured',\n 'bg-grey': artist.status === 'draft'\n }\"\n >\n <span class=\"t-white p-small\">{{ artist.status }}</span>\n </div>\n </div>\n \n <div class=\"pd-small\">\n <h4 class=\"mn-b-micro t-trim-2\">{{ artist.name }}</h4>\n <p v-if=\"artist.genres && artist.genres.length\" class=\"p-small t-transp t-trim\">\n {{ artist.genres.join(', ') }}\n </p>\n </div>\n \n <slot name=\"actions\"></slot>\n </div>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport { useRouter } from 'vue-router';\n\nconst props = defineProps({\n artist: {\n type: Object,\n required: true\n },\n clickable: {\n type: Boolean,\n default: true\n },\n showStatus: {\n type: Boolean,\n default: false\n }\n});\n\nconst router = useRouter();\n\nconst handleClick = () => {\n if (!props.clickable) return;\n \n router.push({\n name: 'artist-detail',\n params: { url: props.artist.url }\n });\n};\n</script>\n\n<style scoped>\n.artist-card {\n border: 1px solid rgba(var(--grey), 0.2);\n transition: transform 0.2s ease;\n}\n\n.hover-scale-1:hover {\n transform: scale(1.02);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n}\n</style>"],"names":["useRouter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,UAAM,QAAQ;AAed,UAAM,SAASA,UAAAA,UAAW;AAE1B,UAAM,cAAc,MAAM;AACxB,UAAI,CAAC,MAAM,UAAW;AAEtB,aAAO,KAAK;AAAA,QACV,MAAM;AAAA,QACN,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG;AAAA,MACnC,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
2
|
+
import { useRouter } from "vue-router";
|
|
3
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _hoisted_1 = { class: "artist-image w-100 pos-relative aspect-1x1" };
|
|
5
|
+
const _hoisted_2 = ["src", "alt"];
|
|
6
|
+
const _hoisted_3 = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "w-100 h-100 bg-light flex-center flex"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_4 = { class: "h3" };
|
|
11
|
+
const _hoisted_5 = { class: "t-white p-small" };
|
|
12
|
+
const _hoisted_6 = { class: "pd-small" };
|
|
13
|
+
const _hoisted_7 = { class: "mn-b-micro t-trim-2" };
|
|
14
|
+
const _hoisted_8 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "p-small t-transp t-trim"
|
|
17
|
+
};
|
|
18
|
+
const _sfc_main = {
|
|
19
|
+
__name: "ArtistCard",
|
|
20
|
+
props: {
|
|
21
|
+
artist: {
|
|
22
|
+
type: Object,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
clickable: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
showStatus: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(__props) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const router = useRouter();
|
|
37
|
+
const handleClick = () => {
|
|
38
|
+
if (!props.clickable) return;
|
|
39
|
+
router.push({
|
|
40
|
+
name: "artist-detail",
|
|
41
|
+
params: { url: props.artist.url }
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock("div", {
|
|
46
|
+
class: normalizeClass(["artist-card flex flex-column radius-medium o-hidden bg-white", { "cursor-pointer hover-scale-1": __props.clickable }]),
|
|
47
|
+
onClick: handleClick
|
|
48
|
+
}, [
|
|
49
|
+
createElementVNode("div", _hoisted_1, [
|
|
50
|
+
__props.artist.photo ? (openBlock(), createElementBlock("img", {
|
|
51
|
+
key: 0,
|
|
52
|
+
src: _ctx.FILE_SERVER_URL + __props.artist.photo,
|
|
53
|
+
alt: __props.artist.name,
|
|
54
|
+
class: "w-100 h-100 object-fit-cover",
|
|
55
|
+
loading: "lazy"
|
|
56
|
+
}, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
57
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.artist.name ? __props.artist.name.charAt(0) : "?"), 1)
|
|
58
|
+
])),
|
|
59
|
+
__props.showStatus ? (openBlock(), createElementBlock("div", {
|
|
60
|
+
key: 2,
|
|
61
|
+
class: normalizeClass(["pos-absolute pos-t-small pos-r-small pd-micro radius-medium", {
|
|
62
|
+
"bg-second": __props.artist.status === "published",
|
|
63
|
+
"bg-fifth": __props.artist.status === "featured",
|
|
64
|
+
"bg-grey": __props.artist.status === "draft"
|
|
65
|
+
}])
|
|
66
|
+
}, [
|
|
67
|
+
createElementVNode("span", _hoisted_5, toDisplayString(__props.artist.status), 1)
|
|
68
|
+
], 2)) : createCommentVNode("", true)
|
|
69
|
+
]),
|
|
70
|
+
createElementVNode("div", _hoisted_6, [
|
|
71
|
+
createElementVNode("h4", _hoisted_7, toDisplayString(__props.artist.name), 1),
|
|
72
|
+
__props.artist.genres && __props.artist.genres.length ? (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(__props.artist.genres.join(", ")), 1)) : createCommentVNode("", true)
|
|
73
|
+
]),
|
|
74
|
+
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
75
|
+
], 2);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const ArtistCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e655a89"]]);
|
|
80
|
+
export {
|
|
81
|
+
ArtistCard as default
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=ArtistCard.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArtistCard.vue.js","sources":["../../../../../../../src/modules/music/components/cards/ArtistCard.vue"],"sourcesContent":["<template>\n <div \n class=\"artist-card flex flex-column radius-medium o-hidden bg-white\"\n :class=\"{ 'cursor-pointer hover-scale-1': clickable }\"\n @click=\"handleClick\"\n >\n <div class=\"artist-image w-100 pos-relative aspect-1x1\">\n <img \n v-if=\"artist.photo\" \n :src=\"FILE_SERVER_URL + artist.photo\" \n :alt=\"artist.name\"\n class=\"w-100 h-100 object-fit-cover\"\n loading=\"lazy\"\n />\n <div v-else class=\"w-100 h-100 bg-light flex-center flex\">\n <span class=\"h3\">{{ artist.name ? artist.name.charAt(0) : '?' }}</span>\n </div>\n \n <div \n v-if=\"showStatus\" \n class=\"pos-absolute pos-t-small pos-r-small pd-micro radius-medium\"\n :class=\"{\n 'bg-second': artist.status === 'published',\n 'bg-fifth': artist.status === 'featured',\n 'bg-grey': artist.status === 'draft'\n }\"\n >\n <span class=\"t-white p-small\">{{ artist.status }}</span>\n </div>\n </div>\n \n <div class=\"pd-small\">\n <h4 class=\"mn-b-micro t-trim-2\">{{ artist.name }}</h4>\n <p v-if=\"artist.genres && artist.genres.length\" class=\"p-small t-transp t-trim\">\n {{ artist.genres.join(', ') }}\n </p>\n </div>\n \n <slot name=\"actions\"></slot>\n </div>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport { useRouter } from 'vue-router';\n\nconst props = defineProps({\n artist: {\n type: Object,\n required: true\n },\n clickable: {\n type: Boolean,\n default: true\n },\n showStatus: {\n type: Boolean,\n default: false\n }\n});\n\nconst router = useRouter();\n\nconst handleClick = () => {\n if (!props.clickable) return;\n \n router.push({\n name: 'artist-detail',\n params: { url: props.artist.url }\n });\n};\n</script>\n\n<style scoped>\n.artist-card {\n border: 1px solid rgba(var(--grey), 0.2);\n transition: transform 0.2s ease;\n}\n\n.hover-scale-1:hover {\n transform: scale(1.02);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n}\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,UAAM,QAAQ;AAed,UAAM,SAAS,UAAW;AAE1B,UAAM,cAAc,MAAM;AACxB,UAAI,CAAC,MAAM,UAAW;AAEtB,aAAO,KAAK;AAAA,QACV,MAAM;AAAA,QACN,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG;AAAA,MACnC,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const Media = require("../../../../components/Media/Media.vue.cjs");
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
|
+
const IconPlay = require("../../../icons/navigation/IconPlay.vue.cjs");
|
|
7
|
+
const player = require("../../store/player.cjs");
|
|
8
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
9
|
+
const _hoisted_1 = { class: "playlist-cover pos-relative" };
|
|
10
|
+
const _hoisted_2 = { class: "playlist-overlay pos-absolute pos-t-0 pos-l-0 w-100 h-100 flex-center flex transition-cubic-in-out" };
|
|
11
|
+
const _hoisted_3 = { class: "playlist-info pd-small bg-dark-transp-20" };
|
|
12
|
+
const _hoisted_4 = { class: "t-white t-medium t-truncate" };
|
|
13
|
+
const _hoisted_5 = { class: "t-grey t-small t-truncate" };
|
|
14
|
+
const _sfc_main = {
|
|
15
|
+
__name: "PlaylistCard",
|
|
16
|
+
props: {
|
|
17
|
+
playlist: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const playlistInfo = vue.computed(() => {
|
|
25
|
+
var _a, _b, _c, _d, _e, _f;
|
|
26
|
+
const trackCount = ((_a = props.playlist.tracks) == null ? void 0 : _a.length) || 0;
|
|
27
|
+
let creatorName = "Unknown";
|
|
28
|
+
if ((_d = (_c = (_b = props.playlist.creator) == null ? void 0 : _b.target) == null ? void 0 : _c.profile) == null ? void 0 : _d.name) {
|
|
29
|
+
creatorName = props.playlist.creator.target.profile.name;
|
|
30
|
+
} else if ((_f = (_e = props.playlist.creator) == null ? void 0 : _e.target) == null ? void 0 : _f.name) {
|
|
31
|
+
creatorName = props.playlist.creator.target.name;
|
|
32
|
+
}
|
|
33
|
+
return `${creatorName} • ${trackCount} ${trackCount === 1 ? "track" : "tracks"}`;
|
|
34
|
+
});
|
|
35
|
+
const playPlaylist = (playlist) => {
|
|
36
|
+
var _a;
|
|
37
|
+
const tracks = ((_a = playlist.tracks) == null ? void 0 : _a.map((item) => item.track).filter((track) => track)) || [];
|
|
38
|
+
if (tracks.length > 0) {
|
|
39
|
+
player.actions.setQueue(tracks);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
const _component_router_link = vue.resolveComponent("router-link");
|
|
44
|
+
return vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
45
|
+
to: { name: "playlist-detail", params: { url: __props.playlist.url } },
|
|
46
|
+
class: "playlist-card d-block radius-small o-hidden"
|
|
47
|
+
}, {
|
|
48
|
+
default: vue.withCtx(() => [
|
|
49
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
50
|
+
vue.createVNode(Media.default, {
|
|
51
|
+
url: __props.playlist.coverUrl || "/assets/placeholder-playlist.jpg",
|
|
52
|
+
class: "w-100 aspect-1x1 object-fit-cover"
|
|
53
|
+
}, null, 8, ["url"]),
|
|
54
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
55
|
+
vue.createVNode(Button.default, {
|
|
56
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => playPlaylist(__props.playlist), ["stop"])),
|
|
57
|
+
class: "play-button bg-main radius-round flex-center flex aspect-1x1",
|
|
58
|
+
showLoader: false,
|
|
59
|
+
showSucces: false
|
|
60
|
+
}, {
|
|
61
|
+
default: vue.withCtx(() => [
|
|
62
|
+
vue.createVNode(IconPlay.default, {
|
|
63
|
+
class: "i-small",
|
|
64
|
+
fill: "rgb(var(--black))"
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})
|
|
69
|
+
])
|
|
70
|
+
]),
|
|
71
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
72
|
+
vue.createElementVNode("h3", _hoisted_4, vue.toDisplayString(__props.playlist.title), 1),
|
|
73
|
+
vue.createElementVNode("p", _hoisted_5, vue.toDisplayString(playlistInfo.value), 1)
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["to"]);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const PlaylistCard = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fb577898"]]);
|
|
82
|
+
exports.default = PlaylistCard;
|
|
83
|
+
//# sourceMappingURL=PlaylistCard.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaylistCard.vue.cjs","sources":["../../../../../../../src/modules/music/components/cards/PlaylistCard.vue"],"sourcesContent":["<!-- components/cards/PlaylistCard.vue -->\n<template>\n <router-link \n :to=\"{ name: 'playlist-detail', params: { url: playlist.url } }\" \n class=\"playlist-card d-block radius-small o-hidden\"\n >\n <div class=\"playlist-cover pos-relative\">\n <Media \n :url=\"playlist.coverUrl || '/assets/placeholder-playlist.jpg'\" \n class=\"w-100 aspect-1x1 object-fit-cover\"\n />\n <div class=\"playlist-overlay pos-absolute pos-t-0 pos-l-0 w-100 h-100 flex-center flex transition-cubic-in-out\">\n <Button \n @click.stop=\"playPlaylist(playlist)\" \n class=\"play-button bg-main radius-round flex-center flex aspect-1x1\"\n :showLoader=\"false\"\n :showSucces=\"false\"\n >\n <IconPlay class=\"i-small\" fill=\"rgb(var(--black))\" />\n </Button>\n </div>\n </div>\n <div class=\"playlist-info pd-small bg-dark-transp-20\">\n <h3 class=\"t-white t-medium t-truncate\">{{ playlist.title }}</h3>\n <p class=\"t-grey t-small t-truncate\">{{ playlistInfo }}</p>\n </div>\n </router-link>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport Media from '@martyrs/src/components/Media/Media.vue';\nimport Button from '@martyrs/src/components/Button/Button.vue';\nimport IconPlay from '@martyrs/src/modules/icons/navigation/IconPlay.vue';\n\n// Import player store\nimport { actions as playerActions } from '../../store/player.js';\n\nconst props = defineProps({\n playlist: {\n type: Object,\n required: true\n }\n});\n\n// Computed properties\nconst playlistInfo = computed(() => {\n const trackCount = props.playlist.tracks?.length || 0;\n let creatorName = 'Unknown';\n \n if (props.playlist.creator?.target?.profile?.name) {\n creatorName = props.playlist.creator.target.profile.name;\n } else if (props.playlist.creator?.target?.name) {\n creatorName = props.playlist.creator.target.name;\n }\n \n return `${creatorName} • ${trackCount} ${trackCount === 1 ? 'track' : 'tracks'}`;\n});\n\n// Methods\nconst playPlaylist = (playlist) => {\n // Extract tracks from playlist\n const tracks = playlist.tracks?.map(item => item.track).filter(track => track) || [];\n \n if (tracks.length > 0) {\n playerActions.setQueue(tracks);\n }\n};\n</script>\n\n<style scoped>\n.playlist-card {\n transition: transform 0.3s ease;\n}\n\n.playlist-card:hover {\n transform: translateY(-5px);\n}\n\n.playlist-overlay {\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.playlist-card:hover .playlist-overlay {\n opacity: 1;\n}\n\n.play-button {\n width: 48px;\n height: 48px;\n transform: scale(0.8);\n transition: transform 0.3s ease;\n}\n\n.playlist-card:hover .play-button {\n transform: scale(1);\n}\n</style>"],"names":["computed","playerActions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsCA,UAAM,QAAQ;AAQd,UAAM,eAAeA,IAAQ,SAAC,MAAM;;AAClC,YAAM,eAAa,WAAM,SAAS,WAAf,mBAAuB,WAAU;AACpD,UAAI,cAAc;AAElB,WAAI,uBAAM,SAAS,YAAf,mBAAwB,WAAxB,mBAAgC,YAAhC,mBAAyC,MAAM;AACjD,sBAAc,MAAM,SAAS,QAAQ,OAAO,QAAQ;AAAA,MACrD,YAAU,iBAAM,SAAS,YAAf,mBAAwB,WAAxB,mBAAgC,MAAM;AAC/C,sBAAc,MAAM,SAAS,QAAQ,OAAO;AAAA,MAChD;AAEE,aAAO,GAAG,WAAW,MAAM,UAAU,IAAI,eAAe,IAAI,UAAU,QAAQ;AAAA,IAChF,CAAC;AAGD,UAAM,eAAe,CAAC,aAAa;;AAEjC,YAAM,WAAS,cAAS,WAAT,mBAAiB,IAAI,UAAQ,KAAK,OAAO,OAAO,WAAS,WAAU,CAAE;AAEpF,UAAI,OAAO,SAAS,GAAG;AACrBC,eAAa,QAAC,SAAS,MAAM;AAAA,MACjC;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { computed, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, createVNode, withModifiers, toDisplayString } from "vue";
|
|
2
|
+
import Media from "../../../../components/Media/Media.vue.js";
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
|
+
import _sfc_main$2 from "../../../icons/navigation/IconPlay.vue.js";
|
|
5
|
+
import { actions } from "../../store/player.js";
|
|
6
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const _hoisted_1 = { class: "playlist-cover pos-relative" };
|
|
8
|
+
const _hoisted_2 = { class: "playlist-overlay pos-absolute pos-t-0 pos-l-0 w-100 h-100 flex-center flex transition-cubic-in-out" };
|
|
9
|
+
const _hoisted_3 = { class: "playlist-info pd-small bg-dark-transp-20" };
|
|
10
|
+
const _hoisted_4 = { class: "t-white t-medium t-truncate" };
|
|
11
|
+
const _hoisted_5 = { class: "t-grey t-small t-truncate" };
|
|
12
|
+
const _sfc_main = {
|
|
13
|
+
__name: "PlaylistCard",
|
|
14
|
+
props: {
|
|
15
|
+
playlist: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const playlistInfo = computed(() => {
|
|
23
|
+
var _a, _b, _c, _d, _e, _f;
|
|
24
|
+
const trackCount = ((_a = props.playlist.tracks) == null ? void 0 : _a.length) || 0;
|
|
25
|
+
let creatorName = "Unknown";
|
|
26
|
+
if ((_d = (_c = (_b = props.playlist.creator) == null ? void 0 : _b.target) == null ? void 0 : _c.profile) == null ? void 0 : _d.name) {
|
|
27
|
+
creatorName = props.playlist.creator.target.profile.name;
|
|
28
|
+
} else if ((_f = (_e = props.playlist.creator) == null ? void 0 : _e.target) == null ? void 0 : _f.name) {
|
|
29
|
+
creatorName = props.playlist.creator.target.name;
|
|
30
|
+
}
|
|
31
|
+
return `${creatorName} • ${trackCount} ${trackCount === 1 ? "track" : "tracks"}`;
|
|
32
|
+
});
|
|
33
|
+
const playPlaylist = (playlist) => {
|
|
34
|
+
var _a;
|
|
35
|
+
const tracks = ((_a = playlist.tracks) == null ? void 0 : _a.map((item) => item.track).filter((track) => track)) || [];
|
|
36
|
+
if (tracks.length > 0) {
|
|
37
|
+
actions.setQueue(tracks);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
const _component_router_link = resolveComponent("router-link");
|
|
42
|
+
return openBlock(), createBlock(_component_router_link, {
|
|
43
|
+
to: { name: "playlist-detail", params: { url: __props.playlist.url } },
|
|
44
|
+
class: "playlist-card d-block radius-small o-hidden"
|
|
45
|
+
}, {
|
|
46
|
+
default: withCtx(() => [
|
|
47
|
+
createElementVNode("div", _hoisted_1, [
|
|
48
|
+
createVNode(Media, {
|
|
49
|
+
url: __props.playlist.coverUrl || "/assets/placeholder-playlist.jpg",
|
|
50
|
+
class: "w-100 aspect-1x1 object-fit-cover"
|
|
51
|
+
}, null, 8, ["url"]),
|
|
52
|
+
createElementVNode("div", _hoisted_2, [
|
|
53
|
+
createVNode(_sfc_main$1, {
|
|
54
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => playPlaylist(__props.playlist), ["stop"])),
|
|
55
|
+
class: "play-button bg-main radius-round flex-center flex aspect-1x1",
|
|
56
|
+
showLoader: false,
|
|
57
|
+
showSucces: false
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_sfc_main$2, {
|
|
61
|
+
class: "i-small",
|
|
62
|
+
fill: "rgb(var(--black))"
|
|
63
|
+
})
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
})
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
createElementVNode("div", _hoisted_3, [
|
|
70
|
+
createElementVNode("h3", _hoisted_4, toDisplayString(__props.playlist.title), 1),
|
|
71
|
+
createElementVNode("p", _hoisted_5, toDisplayString(playlistInfo.value), 1)
|
|
72
|
+
])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["to"]);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const PlaylistCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fb577898"]]);
|
|
80
|
+
export {
|
|
81
|
+
PlaylistCard as default
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=PlaylistCard.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaylistCard.vue.js","sources":["../../../../../../../src/modules/music/components/cards/PlaylistCard.vue"],"sourcesContent":["<!-- components/cards/PlaylistCard.vue -->\n<template>\n <router-link \n :to=\"{ name: 'playlist-detail', params: { url: playlist.url } }\" \n class=\"playlist-card d-block radius-small o-hidden\"\n >\n <div class=\"playlist-cover pos-relative\">\n <Media \n :url=\"playlist.coverUrl || '/assets/placeholder-playlist.jpg'\" \n class=\"w-100 aspect-1x1 object-fit-cover\"\n />\n <div class=\"playlist-overlay pos-absolute pos-t-0 pos-l-0 w-100 h-100 flex-center flex transition-cubic-in-out\">\n <Button \n @click.stop=\"playPlaylist(playlist)\" \n class=\"play-button bg-main radius-round flex-center flex aspect-1x1\"\n :showLoader=\"false\"\n :showSucces=\"false\"\n >\n <IconPlay class=\"i-small\" fill=\"rgb(var(--black))\" />\n </Button>\n </div>\n </div>\n <div class=\"playlist-info pd-small bg-dark-transp-20\">\n <h3 class=\"t-white t-medium t-truncate\">{{ playlist.title }}</h3>\n <p class=\"t-grey t-small t-truncate\">{{ playlistInfo }}</p>\n </div>\n </router-link>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport Media from '@martyrs/src/components/Media/Media.vue';\nimport Button from '@martyrs/src/components/Button/Button.vue';\nimport IconPlay from '@martyrs/src/modules/icons/navigation/IconPlay.vue';\n\n// Import player store\nimport { actions as playerActions } from '../../store/player.js';\n\nconst props = defineProps({\n playlist: {\n type: Object,\n required: true\n }\n});\n\n// Computed properties\nconst playlistInfo = computed(() => {\n const trackCount = props.playlist.tracks?.length || 0;\n let creatorName = 'Unknown';\n \n if (props.playlist.creator?.target?.profile?.name) {\n creatorName = props.playlist.creator.target.profile.name;\n } else if (props.playlist.creator?.target?.name) {\n creatorName = props.playlist.creator.target.name;\n }\n \n return `${creatorName} • ${trackCount} ${trackCount === 1 ? 'track' : 'tracks'}`;\n});\n\n// Methods\nconst playPlaylist = (playlist) => {\n // Extract tracks from playlist\n const tracks = playlist.tracks?.map(item => item.track).filter(track => track) || [];\n \n if (tracks.length > 0) {\n playerActions.setQueue(tracks);\n }\n};\n</script>\n\n<style scoped>\n.playlist-card {\n transition: transform 0.3s ease;\n}\n\n.playlist-card:hover {\n transform: translateY(-5px);\n}\n\n.playlist-overlay {\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.playlist-card:hover .playlist-overlay {\n opacity: 1;\n}\n\n.play-button {\n width: 48px;\n height: 48px;\n transform: scale(0.8);\n transition: transform 0.3s ease;\n}\n\n.playlist-card:hover .play-button {\n transform: scale(1);\n}\n</style>"],"names":["playerActions"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsCA,UAAM,QAAQ;AAQd,UAAM,eAAe,SAAS,MAAM;;AAClC,YAAM,eAAa,WAAM,SAAS,WAAf,mBAAuB,WAAU;AACpD,UAAI,cAAc;AAElB,WAAI,uBAAM,SAAS,YAAf,mBAAwB,WAAxB,mBAAgC,YAAhC,mBAAyC,MAAM;AACjD,sBAAc,MAAM,SAAS,QAAQ,OAAO,QAAQ;AAAA,MACrD,YAAU,iBAAM,SAAS,YAAf,mBAAwB,WAAxB,mBAAgC,MAAM;AAC/C,sBAAc,MAAM,SAAS,QAAQ,OAAO;AAAA,MAChD;AAEE,aAAO,GAAG,WAAW,MAAM,UAAU,IAAI,eAAe,IAAI,UAAU,QAAQ;AAAA,IAChF,CAAC;AAGD,UAAM,eAAe,CAAC,aAAa;;AAEjC,YAAM,WAAS,cAAS,WAAT,mBAAiB,IAAI,UAAQ,KAAK,OAAO,OAAO,WAAS,WAAU,CAAE;AAEpF,UAAI,OAAO,SAAS,GAAG;AACrBA,gBAAc,SAAS,MAAM;AAAA,MACjC;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const Media = require("../../../../components/Media/Media.vue.cjs");
|
|
5
|
+
const IconPlay = require("../../../icons/navigation/IconPlay.vue.cjs");
|
|
6
|
+
const player = require("../../store/player.cjs");
|
|
7
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
8
|
+
const _hoisted_1 = { class: "track-card-content pd-small flex-v-center flex" };
|
|
9
|
+
const _hoisted_2 = { class: "track-cover mn-r-small" };
|
|
10
|
+
const _hoisted_3 = { class: "track-info flex-1" };
|
|
11
|
+
const _hoisted_4 = { class: "track-name t-white t-truncate" };
|
|
12
|
+
const _hoisted_5 = { class: "track-artist t-grey t-small t-truncate" };
|
|
13
|
+
const _hoisted_6 = { class: "track-play pos-absolute pos-r-0 pos-t-0 h-100 pd-small flex-center flex" };
|
|
14
|
+
const _hoisted_7 = { class: "play-button bg-main radius-round flex-center flex aspect-1x1 i-medium" };
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "TrackCard",
|
|
17
|
+
props: {
|
|
18
|
+
track: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const getArtistName = (track) => {
|
|
26
|
+
if (track.artist) {
|
|
27
|
+
if (typeof track.artist === "object") {
|
|
28
|
+
return track.artist.name || "Unknown Artist";
|
|
29
|
+
}
|
|
30
|
+
return track.artist;
|
|
31
|
+
}
|
|
32
|
+
return "Unknown Artist";
|
|
33
|
+
};
|
|
34
|
+
const playTrack = () => {
|
|
35
|
+
player.actions.playTrack(props.track);
|
|
36
|
+
};
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
39
|
+
class: "track-card radius-small o-hidden pos-relative cursor-pointer transition-cubic-in-out bg-dark-transp-20",
|
|
40
|
+
onClick: playTrack
|
|
41
|
+
}, [
|
|
42
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
43
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
44
|
+
vue.createVNode(Media.default, {
|
|
45
|
+
url: __props.track.coverUrl || __props.track.album && __props.track.album.coverUrl || "/assets/placeholder-track.jpg",
|
|
46
|
+
class: "w-3r h-3r object-fit-cover radius-small"
|
|
47
|
+
}, null, 8, ["url"])
|
|
48
|
+
]),
|
|
49
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
50
|
+
vue.createElementVNode("div", _hoisted_4, vue.toDisplayString(__props.track.title), 1),
|
|
51
|
+
vue.createElementVNode("div", _hoisted_5, vue.toDisplayString(getArtistName(__props.track)), 1)
|
|
52
|
+
]),
|
|
53
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
54
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
55
|
+
vue.createVNode(IconPlay.default, {
|
|
56
|
+
class: "i-small",
|
|
57
|
+
fill: "rgb(var(--black))"
|
|
58
|
+
})
|
|
59
|
+
])
|
|
60
|
+
])
|
|
61
|
+
])
|
|
62
|
+
]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const TrackCard = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-07d4284b"]]);
|
|
67
|
+
exports.default = TrackCard;
|
|
68
|
+
//# sourceMappingURL=TrackCard.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackCard.vue.cjs","sources":["../../../../../../../src/modules/music/components/cards/TrackCard.vue"],"sourcesContent":["<!-- components/cards/TrackCard.vue -->\n<template>\n <div \n class=\"track-card radius-small o-hidden pos-relative cursor-pointer transition-cubic-in-out bg-dark-transp-20\"\n @click=\"playTrack\"\n >\n <div class=\"track-card-content pd-small flex-v-center flex\">\n <div class=\"track-cover mn-r-small\">\n <Media \n :url=\"track.coverUrl || (track.album && track.album.coverUrl) || '/assets/placeholder-track.jpg'\" \n class=\"w-3r h-3r object-fit-cover radius-small\"\n />\n </div>\n \n <div class=\"track-info flex-1\">\n <div class=\"track-name t-white t-truncate\">{{ track.title }}</div>\n <div class=\"track-artist t-grey t-small t-truncate\">{{ getArtistName(track) }}</div>\n </div>\n \n <div class=\"track-play pos-absolute pos-r-0 pos-t-0 h-100 pd-small flex-center flex\">\n <div class=\"play-button bg-main radius-round flex-center flex aspect-1x1 i-medium\">\n <IconPlay class=\"i-small\" fill=\"rgb(var(--black))\"/>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport Media from '@martyrs/src/components/Media/Media.vue';\nimport IconPlay from '@martyrs/src/modules/icons/navigation/IconPlay.vue';\n\n// Import player store\nimport { actions as playerActions } from '../../store/player.js';\n\nconst props = defineProps({\n track: {\n type: Object,\n required: true\n }\n});\n\n// Methods\nconst getArtistName = (track) => {\n if (track.artist) {\n if (typeof track.artist === 'object') {\n return track.artist.name || 'Unknown Artist';\n }\n return track.artist;\n }\n return 'Unknown Artist';\n};\n\nconst playTrack = () => {\n playerActions.playTrack(props.track);\n};\n</script>\n\n<style scoped>\n.track-card {\n transition: background-color 0.3s ease;\n}\n\n.track-card:hover {\n background-color: rgba(var(--dark), 0.4);\n}\n\n.track-play {\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.track-card:hover .track-play {\n opacity: 1;\n}\n\n.play-button {\n transform: scale(0.8);\n transition: transform 0.3s ease;\n}\n\n.track-card:hover .play-button {\n transform: scale(1);\n}\n</style>"],"names":["playerActions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,QAAQ;AAQd,UAAM,gBAAgB,CAAC,UAAU;AAC/B,UAAI,MAAM,QAAQ;AAChB,YAAI,OAAO,MAAM,WAAW,UAAU;AACpC,iBAAO,MAAM,OAAO,QAAQ;AAAA,QAClC;AACI,eAAO,MAAM;AAAA,MACjB;AACE,aAAO;AAAA,IACT;AAEA,UAAM,YAAY,MAAM;AACtBA,qBAAc,UAAU,MAAM,KAAK;AAAA,IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode, createVNode, toDisplayString } from "vue";
|
|
2
|
+
import Media from "../../../../components/Media/Media.vue.js";
|
|
3
|
+
import _sfc_main$1 from "../../../icons/navigation/IconPlay.vue.js";
|
|
4
|
+
import { actions } from "../../store/player.js";
|
|
5
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _hoisted_1 = { class: "track-card-content pd-small flex-v-center flex" };
|
|
7
|
+
const _hoisted_2 = { class: "track-cover mn-r-small" };
|
|
8
|
+
const _hoisted_3 = { class: "track-info flex-1" };
|
|
9
|
+
const _hoisted_4 = { class: "track-name t-white t-truncate" };
|
|
10
|
+
const _hoisted_5 = { class: "track-artist t-grey t-small t-truncate" };
|
|
11
|
+
const _hoisted_6 = { class: "track-play pos-absolute pos-r-0 pos-t-0 h-100 pd-small flex-center flex" };
|
|
12
|
+
const _hoisted_7 = { class: "play-button bg-main radius-round flex-center flex aspect-1x1 i-medium" };
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: "TrackCard",
|
|
15
|
+
props: {
|
|
16
|
+
track: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const getArtistName = (track) => {
|
|
24
|
+
if (track.artist) {
|
|
25
|
+
if (typeof track.artist === "object") {
|
|
26
|
+
return track.artist.name || "Unknown Artist";
|
|
27
|
+
}
|
|
28
|
+
return track.artist;
|
|
29
|
+
}
|
|
30
|
+
return "Unknown Artist";
|
|
31
|
+
};
|
|
32
|
+
const playTrack = () => {
|
|
33
|
+
actions.playTrack(props.track);
|
|
34
|
+
};
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return openBlock(), createElementBlock("div", {
|
|
37
|
+
class: "track-card radius-small o-hidden pos-relative cursor-pointer transition-cubic-in-out bg-dark-transp-20",
|
|
38
|
+
onClick: playTrack
|
|
39
|
+
}, [
|
|
40
|
+
createElementVNode("div", _hoisted_1, [
|
|
41
|
+
createElementVNode("div", _hoisted_2, [
|
|
42
|
+
createVNode(Media, {
|
|
43
|
+
url: __props.track.coverUrl || __props.track.album && __props.track.album.coverUrl || "/assets/placeholder-track.jpg",
|
|
44
|
+
class: "w-3r h-3r object-fit-cover radius-small"
|
|
45
|
+
}, null, 8, ["url"])
|
|
46
|
+
]),
|
|
47
|
+
createElementVNode("div", _hoisted_3, [
|
|
48
|
+
createElementVNode("div", _hoisted_4, toDisplayString(__props.track.title), 1),
|
|
49
|
+
createElementVNode("div", _hoisted_5, toDisplayString(getArtistName(__props.track)), 1)
|
|
50
|
+
]),
|
|
51
|
+
createElementVNode("div", _hoisted_6, [
|
|
52
|
+
createElementVNode("div", _hoisted_7, [
|
|
53
|
+
createVNode(_sfc_main$1, {
|
|
54
|
+
class: "i-small",
|
|
55
|
+
fill: "rgb(var(--black))"
|
|
56
|
+
})
|
|
57
|
+
])
|
|
58
|
+
])
|
|
59
|
+
])
|
|
60
|
+
]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const TrackCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-07d4284b"]]);
|
|
65
|
+
export {
|
|
66
|
+
TrackCard as default
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=TrackCard.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackCard.vue.js","sources":["../../../../../../../src/modules/music/components/cards/TrackCard.vue"],"sourcesContent":["<!-- components/cards/TrackCard.vue -->\n<template>\n <div \n class=\"track-card radius-small o-hidden pos-relative cursor-pointer transition-cubic-in-out bg-dark-transp-20\"\n @click=\"playTrack\"\n >\n <div class=\"track-card-content pd-small flex-v-center flex\">\n <div class=\"track-cover mn-r-small\">\n <Media \n :url=\"track.coverUrl || (track.album && track.album.coverUrl) || '/assets/placeholder-track.jpg'\" \n class=\"w-3r h-3r object-fit-cover radius-small\"\n />\n </div>\n \n <div class=\"track-info flex-1\">\n <div class=\"track-name t-white t-truncate\">{{ track.title }}</div>\n <div class=\"track-artist t-grey t-small t-truncate\">{{ getArtistName(track) }}</div>\n </div>\n \n <div class=\"track-play pos-absolute pos-r-0 pos-t-0 h-100 pd-small flex-center flex\">\n <div class=\"play-button bg-main radius-round flex-center flex aspect-1x1 i-medium\">\n <IconPlay class=\"i-small\" fill=\"rgb(var(--black))\"/>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport Media from '@martyrs/src/components/Media/Media.vue';\nimport IconPlay from '@martyrs/src/modules/icons/navigation/IconPlay.vue';\n\n// Import player store\nimport { actions as playerActions } from '../../store/player.js';\n\nconst props = defineProps({\n track: {\n type: Object,\n required: true\n }\n});\n\n// Methods\nconst getArtistName = (track) => {\n if (track.artist) {\n if (typeof track.artist === 'object') {\n return track.artist.name || 'Unknown Artist';\n }\n return track.artist;\n }\n return 'Unknown Artist';\n};\n\nconst playTrack = () => {\n playerActions.playTrack(props.track);\n};\n</script>\n\n<style scoped>\n.track-card {\n transition: background-color 0.3s ease;\n}\n\n.track-card:hover {\n background-color: rgba(var(--dark), 0.4);\n}\n\n.track-play {\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.track-card:hover .track-play {\n opacity: 1;\n}\n\n.play-button {\n transform: scale(0.8);\n transition: transform 0.3s ease;\n}\n\n.track-card:hover .play-button {\n transform: scale(1);\n}\n</style>"],"names":["playerActions"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,QAAQ;AAQd,UAAM,gBAAgB,CAAC,UAAU;AAC/B,UAAI,MAAM,QAAQ;AAChB,YAAI,OAAO,MAAM,WAAW,UAAU;AACpC,iBAAO,MAAM,OAAO,QAAQ;AAAA,QAClC;AACI,eAAO,MAAM;AAAA,MACjB;AACE,aAAO;AAAA,IACT;AAEA,UAAM,YAAY,MAAM;AACtBA,cAAc,UAAU,MAAM,KAAK;AAAA,IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|