From eb98a8ce95e4a49991270bf0e724aee32fd9c96e Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Fri, 17 Feb 2023 22:08:04 +0100 Subject: [PATCH] added dialog for shared items fix #2 --- public/static/style.css | 4 + src/App.vue | 23 +++++- src/components/AlbumContent.vue | 4 +- src/components/BoxContent.vue | 4 +- src/components/dialogs/SharedItems.vue | 110 +++++++++++++++++++++++++ src/store/modules/albums/actions.js | 13 ++- src/store/modules/boxes/actions.js | 13 ++- src/store/modules/share/actions.js | 5 ++ src/store/modules/share/getters.js | 5 ++ src/store/modules/share/index.js | 9 +- src/store/modules/share/mutations.js | 6 ++ src/store/modules/share/state.js | 3 + src/views/Share.vue | 5 ++ 13 files changed, 191 insertions(+), 13 deletions(-) create mode 100644 src/components/dialogs/SharedItems.vue create mode 100644 src/store/modules/share/getters.js create mode 100644 src/store/modules/share/mutations.js create mode 100644 src/store/modules/share/state.js diff --git a/public/static/style.css b/public/static/style.css index 34cb537..f7e29d8 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -808,6 +808,10 @@ li { list-style: none; } +li:hover { + background-color: var(--nav); +} + li.selected, li.active { background-color: var(--selected); diff --git a/src/App.vue b/src/App.vue index 184f415..3be0425 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,11 @@ @@ -135,6 +148,7 @@ import Player from "./components/Player"; import ServerSettings from "./components/dialogs/ServerSettings"; import AudioUploadDialog from "./components/dialogs/AudioUpload"; import VideoUploadDialog from "./components/dialogs/VideoUpload"; +import SharedItems from "./components/dialogs/SharedItems"; import { mapGetters } from "vuex"; @@ -245,7 +259,11 @@ export default { }, login() { let hash = window.location.hash.replace("#/", ""); - if (!hash.startsWith("login") && !hash.startsWith("setup") && !hash.startsWith("share")) { + if ( + !hash.startsWith("login") && + !hash.startsWith("setup") && + !hash.startsWith("share") + ) { let redirect = encodeURIComponent(hash); if (redirect) { this.$router.replace({ @@ -284,6 +302,7 @@ export default { UserProfile, VideoScreen, VideoUploadDialog, + SharedItems, }, }; \ No newline at end of file diff --git a/src/components/AlbumContent.vue b/src/components/AlbumContent.vue index ec04ead..73d359a 100644 --- a/src/components/AlbumContent.vue +++ b/src/components/AlbumContent.vue @@ -1,10 +1,10 @@