Compare commits
No commits in common. "68414e3e71a14f545a2fab3e8aa355ab5f5257d6" and "061e72c4598ae188c48d9526bf656ddd9f45478b" have entirely different histories.
68414e3e71
...
061e72c459
4 changed files with 136 additions and 180 deletions
|
@ -78,12 +78,6 @@ Vue.createApp({
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
window.addEventListener("keydown", this.keyDown);
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
window.removeEventListener("keydown", this.keyDown);
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
search(event) {
|
search(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -195,13 +189,5 @@ Vue.createApp({
|
||||||
orderedItems(items) {
|
orderedItems(items) {
|
||||||
return items.sort();
|
return items.sort();
|
||||||
},
|
},
|
||||||
keyDown(event) {
|
|
||||||
const keycode = event.code;
|
|
||||||
|
|
||||||
if (this.modalIsVisible && keycode === "Escape") {
|
|
||||||
event.preventDefault();
|
|
||||||
this.modalIsVisible = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}).mount("#ajouter-album");
|
}).mount("#ajouter-album");
|
||||||
|
|
|
@ -34,11 +34,6 @@ Vue.createApp({
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetch();
|
this.fetch();
|
||||||
|
|
||||||
window.addEventListener("keydown", this.keyDown);
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
window.removeEventListener("keydown", this.keyDown);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatParams(param) {
|
formatParams(param) {
|
||||||
|
@ -246,16 +241,5 @@ Vue.createApp({
|
||||||
|
|
||||||
return render;
|
return render;
|
||||||
},
|
},
|
||||||
keyDown(event) {
|
|
||||||
const keycode = event.code;
|
|
||||||
if (this.showModalDelete && keycode === "Escape") {
|
|
||||||
event.preventDefault();
|
|
||||||
this.showModalDelete = false;
|
|
||||||
}
|
|
||||||
if (this.showModalShare && keycode === "Escape") {
|
|
||||||
event.preventDefault();
|
|
||||||
this.showModalShare = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}).mount("#collection");
|
}).mount("#collection");
|
||||||
|
|
|
@ -25,10 +25,10 @@ if (typeof item !== "undefined") {
|
||||||
this.setTrackList();
|
this.setTrackList();
|
||||||
this.setIdentifiers();
|
this.setIdentifiers();
|
||||||
|
|
||||||
window.addEventListener("keydown", this.keyDown);
|
window.addEventListener("keydown", this.changeImage);
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
window.removeEventListener("keydown", this.keyDown);
|
window.removeEventListener("keydown", this.changeImage);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
shareMessage(message) {
|
shareMessage(message) {
|
||||||
|
@ -139,10 +139,10 @@ if (typeof item !== "undefined") {
|
||||||
this.setImage();
|
this.setImage();
|
||||||
},
|
},
|
||||||
changeImage(event) {
|
changeImage(event) {
|
||||||
event.preventDefault();
|
|
||||||
const direction = event.code;
|
const direction = event.code;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
this.modalIsVisible &&
|
||||||
["ArrowRight", "ArrowLeft", "Escape"].indexOf(direction) !==
|
["ArrowRight", "ArrowLeft", "Escape"].indexOf(direction) !==
|
||||||
-1
|
-1
|
||||||
) {
|
) {
|
||||||
|
@ -159,20 +159,6 @@ if (typeof item !== "undefined") {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
keyDown(event) {
|
|
||||||
const keycode = event.code;
|
|
||||||
if (this.modalIsVisible) {
|
|
||||||
this.changeImage(event);
|
|
||||||
}
|
|
||||||
if (this.showModalDelete && keycode === "Escape") {
|
|
||||||
event.preventDefault();
|
|
||||||
this.showModalDelete = false;
|
|
||||||
}
|
|
||||||
if (this.showModalShare && keycode === "Escape") {
|
|
||||||
event.preventDefault();
|
|
||||||
this.showModalShare = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
showAllIdentifiers() {
|
showAllIdentifiers() {
|
||||||
this.identifiersMode = "all";
|
this.identifiersMode = "all";
|
||||||
this.setIdentifiers();
|
this.setIdentifiers();
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="track.extraartists && track.extraartists.length > 0" class="sm-hidden">
|
<ul v-if="track.extraartists && track.extraartists.length > 0" class="sm-hidden">
|
||||||
<li v-for="extra in track.extraartists" class=" ml-4">
|
<li v-for="extra in track.extraartists" class=" ml-4">
|
||||||
<small>{{extra.role}} : <a :href="`/ma-collection?page=1&limit=16&sort=year&order=asc&artist=${extra.name}`">{{extra.name}}</a></small>
|
<small>{{extra.role}} : {{extra.name}}</small>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue