prepare for sharing music
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6ec3e60bd9
commit
daa2d339ce
@ -211,6 +211,9 @@ export default {
|
|||||||
selectAlbum(album) {
|
selectAlbum(album) {
|
||||||
this.$store.dispatch("albums/selectAlbum", album);
|
this.$store.dispatch("albums/selectAlbum", album);
|
||||||
},
|
},
|
||||||
|
share() {
|
||||||
|
this.$store.dispatch("albums/share", this.selectedAlbum);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
@ -340,16 +343,15 @@ export default {
|
|||||||
border-top: 1px solid #ffffff20;
|
border-top: 1px solid #ffffff20;
|
||||||
border-bottom: 1px solid #00000020;
|
border-bottom: 1px solid #00000020;
|
||||||
}
|
}
|
||||||
|
|
||||||
#stats button {
|
#stats button {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#trackList {
|
#trackList {
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
#header {
|
#header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -358,7 +360,6 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px), (max-height: 480px) {
|
@media (max-width: 480px), (max-height: 480px) {
|
||||||
#albumViewer {
|
#albumViewer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -168,6 +168,9 @@ export default {
|
|||||||
resetCover() {
|
resetCover() {
|
||||||
this.$store.dispatch("boxes/resetCover", this.selectedBox);
|
this.$store.dispatch("boxes/resetCover", this.selectedBox);
|
||||||
},
|
},
|
||||||
|
share() {
|
||||||
|
this.$store.dispatch("boxes/share", this.selectedBox);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
@ -249,18 +252,10 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header img {
|
#header img {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
width: 256px;
|
width: 256px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#videoList {
|
|
||||||
background-color: var(--white);
|
|
||||||
z-index: 1;
|
|
||||||
overflow: overlay;
|
|
||||||
}
|
|
||||||
|
|
||||||
#stats {
|
#stats {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -271,16 +266,19 @@ export default {
|
|||||||
border-top: 1px solid #ffffff20;
|
border-top: 1px solid #ffffff20;
|
||||||
border-bottom: 1px solid #00000020;
|
border-bottom: 1px solid #00000020;
|
||||||
}
|
}
|
||||||
|
|
||||||
#stats button {
|
#stats button {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#stats p {
|
#stats p {
|
||||||
max-width: 192px;
|
max-width: 192px;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
#videoList {
|
||||||
|
background-color: var(--white);
|
||||||
|
z-index: 1;
|
||||||
|
overflow: overlay;
|
||||||
|
}
|
||||||
.video {
|
.video {
|
||||||
width: 220px;
|
width: 220px;
|
||||||
}
|
}
|
||||||
@ -293,7 +291,6 @@ export default {
|
|||||||
max-width: initial;
|
max-width: initial;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px), (max-height: 480px) {
|
@media (max-width: 480px), (max-height: 480px) {
|
||||||
#boxViewer {
|
#boxViewer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -153,5 +153,12 @@ export default {
|
|||||||
visibility: album.visibility
|
visibility: album.visibility
|
||||||
}
|
}
|
||||||
axios.put(context.rootGetters.server + "/api/albums/" + album._id, body, context.rootGetters.headers);
|
axios.put(context.rootGetters.server + "/api/albums/" + album._id, body, context.rootGetters.headers);
|
||||||
|
},
|
||||||
|
share(context, album) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
axios.get(context.rootGetters.server + "/api/albums/" + album._id + "/share", context.rootGetters.headers).then(res => {
|
||||||
|
resolve(res.data);
|
||||||
|
});
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user