Compare commits
8
Commits
ad870bd070
...
vgaNAR6ta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f7e957979 | ||
|
|
7c25390ead | ||
|
|
874226a140 | ||
|
|
eaba21e126 | ||
|
|
55bf14fc73 | ||
|
|
9b9ba2bbdd | ||
|
|
b7a7583ad0 | ||
|
|
45b54193d6 |
No files matched your search
@@ -15,4 +15,6 @@ POUR LE STATUT D'OUVERTURE DU LIEU IL FAUT :
|
|||||||
|
|
||||||
NB: les infos indiquées sont surtout là pour prévisualiser, mais ne sont pour l'instant pas plus que des envies personelles par rapport au lieu (rien d'officiel pour l'instant, juste des idées)
|
NB: les infos indiquées sont surtout là pour prévisualiser, mais ne sont pour l'instant pas plus que des envies personelles par rapport au lieu (rien d'officiel pour l'instant, juste des idées)
|
||||||
|
|
||||||
|
PS: BESOIN DE QQN POUR FAIRE LE BACKEND SVP <3 <3 <3
|
||||||
|
|
||||||
333
|
333
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<template>
|
||||||
|
<eventEditor></eventEditor>
|
||||||
|
<linkEditor></linkEditor>
|
||||||
|
<playlistEditor></playlistEditor>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name : 'Admin',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
console.log("Admin app is fully loaded!");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,359 @@
|
|||||||
|
<template>
|
||||||
|
<Teleport to="#event .windowContent" defer>
|
||||||
|
<div class="sectionTitle" v-show="eventPannel">
|
||||||
|
<p>{{newEventText}}        → </p>
|
||||||
|
<button type="button" class="toggleBtn" ref="newEventBtn" @click="toggleNewEvent">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="editor" v-show="newEvent">
|
||||||
|
<div class="inputDiv" id="title">
|
||||||
|
<p>  Titre     →</p>
|
||||||
|
<input type="text" name="eventTitle" v-model="title">
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="date">
|
||||||
|
<p>  Date     →</p>
|
||||||
|
<input type="text" name="eventDate" v-model="date">
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="time">
|
||||||
|
<p>  Heure     →</p>
|
||||||
|
<input type="text" name="eventTime" v-model="time">
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="subtitle">
|
||||||
|
<p>  Sous-titre   →</p>
|
||||||
|
<input type="text" name="eventSub" v-model="sub">
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="desc">
|
||||||
|
<p> ↙ Description    </p>
|
||||||
|
<textarea name="eventDesc" rows="8" cols="80" v-model="desc"></textarea>
|
||||||
|
</div>
|
||||||
|
<button type="button" name="saveChanges" class="textBtnStyle" @click="saveEvent" :class="{alert: eventAlertActive}">SAUVEGARDER !</button>
|
||||||
|
</div>
|
||||||
|
<div class="sectionTitle" v-show="eventPannel">
|
||||||
|
<p>Éditer les évènements       → </p>
|
||||||
|
<button type="button" class="toggleBtn" ref="oldEventBtn" @click="toggleOldEvent">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="oldEvent">
|
||||||
|
<div class="eventEntry" v-for="item of displayedEvents" ref="item.title">
|
||||||
|
<p>{{item.title}}</p>
|
||||||
|
<div class="controls">
|
||||||
|
<button type="button" name="edit" class="toggleBtn" id="edit" @click='editEvent(item)'>
|
||||||
|
<svg class="icon" viewBox="0 0 40.19 38.9">
|
||||||
|
<path d="M8.61,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26,1.41-.94,2.31-.94,1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31-1.41.96-2.31.96-1.67-.32-2.31-.96ZM17.78,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26c.64-.63,1.41-.94,2.31-.94s1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31c-.64.64-1.41.96-2.31.96s-1.67-.32-2.31-.96ZM26.96,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26c.64-.63,1.41-.94,2.31-.94s1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31-1.41.96-2.31.96-1.67-.32-2.31-.96Z"/>
|
||||||
|
<path d="M34.91,7.2l-1.92-1.92L27.71,0H0v38.9h40.19V12.48l-5.28-5.28ZM32.3,33.62H5.28V5.28h2.61s17.64,0,17.64,0v9.84h9.38v18.5h-2.61Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<button type="button" name="remove" class="toggleBtn" id="remove" @click='removeEvent(item)'>
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Teleport>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
#event .windowContent{
|
||||||
|
.sectionTitle{
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
padding-right: 33px;
|
||||||
|
padding-left: 33px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 13.12px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
padding-right: 7.77px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.textBtnStyle{
|
||||||
|
margin-bottom: 16.1px;
|
||||||
|
margin-right: 16.1px;
|
||||||
|
min-height: 33px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textBtnStyle.alert{
|
||||||
|
color: var(--back-color);
|
||||||
|
background-color: var(--main-color);
|
||||||
|
}
|
||||||
|
.inputDiv{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: var(--main-color);
|
||||||
|
width: 95%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
height: 44px;
|
||||||
|
|
||||||
|
input{
|
||||||
|
width: 60%;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
height: 33px;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 22px;
|
||||||
|
border-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#desc.inputDiv{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
height: 161px;
|
||||||
|
margin-bottom: 7.77px;
|
||||||
|
|
||||||
|
textarea{
|
||||||
|
width: 92%;
|
||||||
|
align-self: center;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
height: 77px;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 16.1px;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 22px;
|
||||||
|
border-width: thin;
|
||||||
|
resize: none;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
background-color: var(--main-color);
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
.eventEntry{
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--back-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 16.1px;
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--back-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls{
|
||||||
|
width: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7.77px;
|
||||||
|
|
||||||
|
.toggleBtn{
|
||||||
|
transform: rotate(0);
|
||||||
|
cursor: cell;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { lolLinkList } from '/src/lolLinks.js'
|
||||||
|
import { lolEventsList } from '/src/lolEvents.js'
|
||||||
|
import { loadAudioData } from '/src/data/audioData.js'
|
||||||
|
|
||||||
|
import { pannelStatusList } from '../pannelStatus.js'
|
||||||
|
|
||||||
|
import { watch } from 'vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name : 'EventEditor',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
newEventText: 'Nouvel Évènement',
|
||||||
|
eventAlertActive: false,
|
||||||
|
hideTimer: null,
|
||||||
|
submitEventText: 'SAUVEGARDER',
|
||||||
|
newEvent: false,
|
||||||
|
oldEvent: false,
|
||||||
|
title: '',
|
||||||
|
date: '',
|
||||||
|
time: '',
|
||||||
|
sub: '',
|
||||||
|
desc: '',
|
||||||
|
eventDefault: {
|
||||||
|
title: 'Exemple de Titre',
|
||||||
|
date: '13/12/26',
|
||||||
|
time: '13h12',
|
||||||
|
sub: 'exemple de sous-titre',
|
||||||
|
desc: 'exemple de description \nsur plusieurs lignes'
|
||||||
|
},
|
||||||
|
editingEvent: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
displayedEvents(){
|
||||||
|
return lolEventsList
|
||||||
|
},
|
||||||
|
eventPannel(){
|
||||||
|
return pannelStatusList.event;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toggleNewEvent(){
|
||||||
|
this.newEvent = !this.newEvent;
|
||||||
|
if (this.newEvent){
|
||||||
|
this.oldEvent = false;
|
||||||
|
if(!this.editingEvent){
|
||||||
|
this.backToDefaultEvent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$refs.newEventBtn.style.transform = this.newEvent ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
this.$refs.oldEventBtn.style.transform = this.oldEvent ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
},
|
||||||
|
toggleOldEvent(){
|
||||||
|
this.oldEvent = !this.oldEvent;
|
||||||
|
if (this.oldEvent){
|
||||||
|
this.newEvent = false;
|
||||||
|
}
|
||||||
|
this.$refs.newEventBtn.style.transform = this.newEvent ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
this.$refs.oldEventBtn.style.transform = this.oldEvent ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
},
|
||||||
|
backToDefaultEvent(){
|
||||||
|
this.title = this.eventDefault.title;
|
||||||
|
this.date = this.eventDefault.date;
|
||||||
|
this.time = this.eventDefault.time;
|
||||||
|
this.sub = this.eventDefault.sub;
|
||||||
|
this.desc = this.eventDefault.desc;
|
||||||
|
this.editingEvent = null;
|
||||||
|
this.newEventText = 'Nouvel Évènement';
|
||||||
|
},
|
||||||
|
createListEntry(){
|
||||||
|
let entry = {
|
||||||
|
title: this.title,
|
||||||
|
date: this.date,
|
||||||
|
time: this.time,
|
||||||
|
subtitle: this.sub,
|
||||||
|
desc: this.desc
|
||||||
|
}
|
||||||
|
|
||||||
|
return entry
|
||||||
|
},
|
||||||
|
saveEvent(){
|
||||||
|
let entry = this.createListEntry();
|
||||||
|
if(this.editingEvent){
|
||||||
|
Object.assign(this.editingEvent, {
|
||||||
|
title: this.title,
|
||||||
|
date: this.date,
|
||||||
|
time: this.time,
|
||||||
|
subtitle: this.sub,
|
||||||
|
desc: this.desc
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.displayedEvents.push(entry);
|
||||||
|
}
|
||||||
|
this.toggleOldEvent();
|
||||||
|
this.backToDefaultEvent();
|
||||||
|
},
|
||||||
|
removeEvent(obj){
|
||||||
|
let index = this.displayedEvents.indexOf(obj);
|
||||||
|
this.displayedEvents.splice(index, 1);
|
||||||
|
},
|
||||||
|
editEvent(obj){
|
||||||
|
console.log('selected :', obj)
|
||||||
|
this.editingEvent = obj;
|
||||||
|
|
||||||
|
this.title = obj.title;
|
||||||
|
this.date = obj.date;
|
||||||
|
this.time = obj.time;
|
||||||
|
this.sub = obj.subtitle;
|
||||||
|
this.desc = obj.desc;
|
||||||
|
this.newEventText = 'Éditer l\'évènement'
|
||||||
|
this.toggleNewEvent();
|
||||||
|
},
|
||||||
|
async eventSaveMsg(){
|
||||||
|
this.eventAlertActive = true;
|
||||||
|
this.submitEventText = "Enregistré !";
|
||||||
|
clearTimeout(this.hideTimer)
|
||||||
|
|
||||||
|
this.hideTimer = setTimeout(() => {
|
||||||
|
this.eventAlertActive = false;
|
||||||
|
this.submitEventText = 'SAUVEGARDER';
|
||||||
|
}, 1610)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
watch( () => this.eventPannel, () => {
|
||||||
|
if(!this.eventPannel){
|
||||||
|
this.oldEvent = false;
|
||||||
|
this.newEvent = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log("Event editor is fully loaded!");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,363 @@
|
|||||||
|
<template>
|
||||||
|
<Teleport to="#link .windowContent" defer>
|
||||||
|
<div class="sectionTitle" v-show="linkPannel">
|
||||||
|
<p>{{newLinkText}}        → </p>
|
||||||
|
<button type="button" class="toggleBtn" ref="newLinkBtn" @click="toggleNewLink">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="editor" v-show="newLink">
|
||||||
|
<div class="inputDiv" id="title">
|
||||||
|
<p>  Titre     →</p>
|
||||||
|
<input type="text" name="linkTitle" v-model="title">
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="desc">
|
||||||
|
<p> ↙ Description    </p>
|
||||||
|
<textarea name="linkDesc" rows="8" cols="80" v-model="desc"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="href">
|
||||||
|
<p> ↙ Lien    </p>
|
||||||
|
<textarea name="linkDesc" rows="8" cols="80" v-model="href"></textarea>
|
||||||
|
</div>
|
||||||
|
<button type="button" name="saveChanges" class="textBtnStyle" @click="saveLink" :class="{alert: linkAlertActive}">SAUVEGARDER !</button>
|
||||||
|
</div>
|
||||||
|
<div class="sectionTitle" v-show="linkPannel">
|
||||||
|
<p>Éditer les liens       → </p>
|
||||||
|
<button type="button" class="toggleBtn" ref="oldLinkBtn" @click="toggleOldLink">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="oldLink">
|
||||||
|
<div class="linkEntry" v-for="item of displayedLinks" ref="item.title">
|
||||||
|
<p>{{item.title}}</p>
|
||||||
|
<div class="controls">
|
||||||
|
<button type="button" name="edit" class="toggleBtn" id="edit" @click='editLink(item)'>
|
||||||
|
<svg class="icon" viewBox="0 0 40.19 38.9">
|
||||||
|
<path d="M8.61,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26,1.41-.94,2.31-.94,1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31-1.41.96-2.31.96-1.67-.32-2.31-.96ZM17.78,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26c.64-.63,1.41-.94,2.31-.94s1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31c-.64.64-1.41.96-2.31.96s-1.67-.32-2.31-.96ZM26.96,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26c.64-.63,1.41-.94,2.31-.94s1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31-1.41.96-2.31.96-1.67-.32-2.31-.96Z"/>
|
||||||
|
<path d="M34.91,7.2l-1.92-1.92L27.71,0H0v38.9h40.19V12.48l-5.28-5.28ZM32.3,33.62H5.28V5.28h2.61s17.64,0,17.64,0v9.84h9.38v18.5h-2.61Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<button type="button" name="remove" class="toggleBtn" id="remove" @click='removeLink(item)'>
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Teleport>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
#link .windowContent{
|
||||||
|
.sectionTitle{
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
padding-right: 33px;
|
||||||
|
padding-left: 33px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 13.12px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
padding-right: 7.77px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.textBtnStyle{
|
||||||
|
margin-bottom: 16.1px;
|
||||||
|
margin-right: 16.1px;
|
||||||
|
min-height: 33px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textBtnStyle.alert{
|
||||||
|
color: var(--back-color);
|
||||||
|
background-color: var(--main-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputDiv{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: var(--main-color);
|
||||||
|
width: 95%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
height: 44px;
|
||||||
|
|
||||||
|
input{
|
||||||
|
width: 60%;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
height: 33px;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 22px;
|
||||||
|
border-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#desc.inputDiv{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
height: 161px;
|
||||||
|
margin-bottom: 7.77px;
|
||||||
|
|
||||||
|
textarea{
|
||||||
|
width: 92%;
|
||||||
|
align-self: center;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
height: 77px;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 16.1px;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 22px;
|
||||||
|
border-width: thin;
|
||||||
|
resize: none;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#href.inputDiv{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
height: 161px;
|
||||||
|
margin-bottom: 7.77px;
|
||||||
|
|
||||||
|
textarea{
|
||||||
|
width: 92%;
|
||||||
|
align-self: center;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
height: 77px;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 16.1px;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 22px;
|
||||||
|
border-width: thin;
|
||||||
|
resize: none;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
background-color: var(--main-color);
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
.linkEntry{
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--back-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 16.1px;
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--back-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls{
|
||||||
|
width: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7.77px;
|
||||||
|
|
||||||
|
.toggleBtn{
|
||||||
|
transform: rotate(0);
|
||||||
|
cursor: cell;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { lolLinkList } from '/src/lolLinks.js'
|
||||||
|
|
||||||
|
import { pannelStatusList } from '../pannelStatus.js'
|
||||||
|
|
||||||
|
import { watch } from 'vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name : 'LinkEditor',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
newLinkText: 'Nouveau Lien',
|
||||||
|
linkAlertActive: false,
|
||||||
|
hideTimer: null,
|
||||||
|
submitLinkText: 'SAUVEGARDER',
|
||||||
|
newLink: false,
|
||||||
|
oldLink: false,
|
||||||
|
title: '',
|
||||||
|
href: '',
|
||||||
|
desc: '',
|
||||||
|
linkDefault: {
|
||||||
|
title: 'Exemple de Titre',
|
||||||
|
href: 'https://example.com/',
|
||||||
|
desc: 'exemple de description'
|
||||||
|
},
|
||||||
|
editingLink: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
displayedLinks(){
|
||||||
|
return lolLinkList
|
||||||
|
},
|
||||||
|
linkPannel(){
|
||||||
|
return pannelStatusList.link;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toggleNewLink(){
|
||||||
|
this.newLink = !this.newLink;
|
||||||
|
if (this.newLink){
|
||||||
|
this.oldLink = false;
|
||||||
|
if(!this.editingLink){
|
||||||
|
this.backToDefaultLink();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$refs.newLinkBtn.style.transform = this.newLink ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
this.$refs.oldLinkBtn.style.transform = this.oldLink ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
},
|
||||||
|
toggleOldLink(){
|
||||||
|
this.oldLink = !this.oldLink;
|
||||||
|
if (this.oldLink){
|
||||||
|
this.newLink = false;
|
||||||
|
}
|
||||||
|
this.$refs.newLinkBtn.style.transform = this.newLink ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
this.$refs.oldLinkBtn.style.transform = this.oldLink ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
},
|
||||||
|
backToDefaultLink(){
|
||||||
|
this.title = this.linkDefault.title;
|
||||||
|
this.href = this.linkDefault.href;
|
||||||
|
this.desc = this.linkDefault.desc;
|
||||||
|
this.editingLink = null;
|
||||||
|
this.newLinkText = 'Nouveau Lien';
|
||||||
|
},
|
||||||
|
createListEntry(){
|
||||||
|
let entry = {
|
||||||
|
title: this.title,
|
||||||
|
href: this.href,
|
||||||
|
desc: this.desc
|
||||||
|
}
|
||||||
|
|
||||||
|
return entry
|
||||||
|
},
|
||||||
|
saveLink(){
|
||||||
|
let entry = this.createListEntry();
|
||||||
|
if(this.editingLink){
|
||||||
|
Object.assign(this.editingLink, {
|
||||||
|
title: this.title,
|
||||||
|
href: this.href,
|
||||||
|
desc: this.desc
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.displayedLinks.push(entry);
|
||||||
|
}
|
||||||
|
this.toggleOldLink();
|
||||||
|
this.backToDefaultLink();
|
||||||
|
},
|
||||||
|
removeLink(obj){
|
||||||
|
let index = this.displayedLinks.indexOf(obj);
|
||||||
|
this.displayedLinks.splice(index, 1);
|
||||||
|
},
|
||||||
|
editLink(obj){
|
||||||
|
console.log('selected :', obj)
|
||||||
|
this.editingLink = obj;
|
||||||
|
|
||||||
|
this.title = obj.title;
|
||||||
|
this.href = obj.href
|
||||||
|
this.desc = obj.desc;
|
||||||
|
this.newLinkText = 'Éditer le lien'
|
||||||
|
this.toggleNewLink();
|
||||||
|
},
|
||||||
|
async linkSaveMsg(){
|
||||||
|
this.linkAlertActive = true;
|
||||||
|
this.submitLinkText = "Enregistré !";
|
||||||
|
clearTimeout(this.hideTimer)
|
||||||
|
|
||||||
|
this.hideTimer = setTimeout(() => {
|
||||||
|
this.eventAlertActive = false;
|
||||||
|
this.submitLinkText = 'SAUVEGARDER';
|
||||||
|
}, 1610)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
watch( () => this.linkPannel, () => {
|
||||||
|
if(!this.linkPannel){
|
||||||
|
this.oldLink = false;
|
||||||
|
this.newLink = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log("Link editor is fully loaded!");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,367 @@
|
|||||||
|
<template>
|
||||||
|
<Teleport to="#playlist .windowContent" defer>
|
||||||
|
<div class="sectionTitle" v-show="playlistPannel">
|
||||||
|
<p>{{newSongText}}           → </p>
|
||||||
|
<button type="button" class="toggleBtn" ref="newSongBtn" @click="toggleNewPlaylist">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="editor" v-show="newSong">
|
||||||
|
<div class="inputDiv" id="track">
|
||||||
|
<p>  Titre      →</p>
|
||||||
|
<input type="text" name="songTitle" v-model="track">
|
||||||
|
</div>
|
||||||
|
<div class="inputDiv" id="artist">
|
||||||
|
<p>  Artiste     →</p>
|
||||||
|
<input type="text" name="songArtist" v-model="artist">
|
||||||
|
</div>
|
||||||
|
<p v-show="editingSong" id="note">Note : Laisser vide pour conserver le fichier ↘</p>
|
||||||
|
<div class="inputDiv" id="src">
|
||||||
|
<p>  Fichier MP3   →</p>
|
||||||
|
<input type="file" name="songFile" ref="audioFile" @change="modifyFile">
|
||||||
|
</div>
|
||||||
|
<button type="button" name="saveChanges" class="textBtnStyle" @click="savePlaylist" :class="{alert: playlistAlertActive}">SAUVEGARDER !</button>
|
||||||
|
</div>
|
||||||
|
<div class="sectionTitle" v-show="playlistPannel">
|
||||||
|
<p>Modifier la playlist       → </p>
|
||||||
|
<button type="button" class="toggleBtn" ref="currentPlaylistBtn" @click="toggleCurrentPlaylist">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="currentPlaylist">
|
||||||
|
<div class="playlistEntry" v-for="item of displayedPlaylists" ref="item.track">
|
||||||
|
<p>{{item.track}} — {{item.artist}}</p>
|
||||||
|
<div class="controls">
|
||||||
|
<button type="button" name="edit" class="toggleBtn" id="edit" @click='editPlaylist(item)'>
|
||||||
|
<svg class="icon" viewBox="0 0 40.19 38.9">
|
||||||
|
<path d="M8.61,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26,1.41-.94,2.31-.94,1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31-1.41.96-2.31.96-1.67-.32-2.31-.96ZM17.78,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26c.64-.63,1.41-.94,2.31-.94s1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31c-.64.64-1.41.96-2.31.96s-1.67-.32-2.31-.96ZM26.96,30.26c-.64-.64-.96-1.41-.96-2.31s.32-1.63.96-2.26c.64-.63,1.41-.94,2.31-.94s1.67.31,2.31.94c.64.63.96,1.38.96,2.26s-.32,1.67-.96,2.31-1.41.96-2.31.96-1.67-.32-2.31-.96Z"/>
|
||||||
|
<path d="M34.91,7.2l-1.92-1.92L27.71,0H0v38.9h40.19V12.48l-5.28-5.28ZM32.3,33.62H5.28V5.28h2.61s17.64,0,17.64,0v9.84h9.38v18.5h-2.61Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<button type="button" name="remove" class="toggleBtn" id="remove" @click='removePlaylist(item)'>
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Teleport>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
#playlist .windowContent{
|
||||||
|
.sectionTitle{
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
padding-right: 33px;
|
||||||
|
padding-left: 33px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 13.12px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
padding-right: 7.77px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.textBtnStyle{
|
||||||
|
margin-bottom: 16.1px;
|
||||||
|
margin-right: 22px;
|
||||||
|
height: 33px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textBtnStyle.alert{
|
||||||
|
color: var(--back-color);
|
||||||
|
background-color: var(--main-color);
|
||||||
|
}
|
||||||
|
#note{
|
||||||
|
width: 66%;
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 13.12px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputDiv{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: var(--main-color);
|
||||||
|
width: 95%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
height: 44px;
|
||||||
|
|
||||||
|
input{
|
||||||
|
width: 60%;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
height: 33px;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-radius: 22px;
|
||||||
|
border-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--main-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#src.inputDiv{
|
||||||
|
|
||||||
|
input[type=file]::file-selector-button{
|
||||||
|
font-family: 'karrik';
|
||||||
|
font-size: 10px;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
color: var(--main-color);
|
||||||
|
padding-left: 0;
|
||||||
|
margin: 0;
|
||||||
|
border-width: 0 1.61px 0 0;
|
||||||
|
height: 100%;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 7.77px;
|
||||||
|
margin-left: -22px;
|
||||||
|
margin-right: 7.77px;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=file]::file-selector-button:hover{
|
||||||
|
font-family: 'karrik';
|
||||||
|
font-size: 13.12px;
|
||||||
|
background-color: var(--main-color);
|
||||||
|
color: var(--back-color);
|
||||||
|
padding-left: 0;
|
||||||
|
margin: 0;
|
||||||
|
border-width: 0 1.61px 0 0;
|
||||||
|
height: 100%;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 7.77px;
|
||||||
|
margin-left: -22px;
|
||||||
|
margin-right: 7.77px;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
background-color: var(--main-color);
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
.playlistEntry{
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--back-color);
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
padding-left: 16.1px;
|
||||||
|
padding-right: 16.1px;
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--back-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls{
|
||||||
|
width: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7.77px;
|
||||||
|
|
||||||
|
.toggleBtn{
|
||||||
|
transform: rotate(0);
|
||||||
|
cursor: cell;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { loadAudioData } from '/src/data/audioData.js'
|
||||||
|
import { watch } from 'vue'
|
||||||
|
|
||||||
|
import { pannelStatusList } from '../pannelStatus.js'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name : 'PlaylistEditor',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
newSongText: 'Nouveau Son',
|
||||||
|
playlistAlertActive: false,
|
||||||
|
hideTimer: null,
|
||||||
|
submitPlaylistText: 'SAUVEGARDER',
|
||||||
|
newSong: false,
|
||||||
|
currentPlaylist: false,
|
||||||
|
track: '',
|
||||||
|
artist: '',
|
||||||
|
src: null,
|
||||||
|
playlistDefault: {
|
||||||
|
track: 'exemple',
|
||||||
|
artist: 'exemple',
|
||||||
|
src: null
|
||||||
|
},
|
||||||
|
editingSong: null,
|
||||||
|
selectedInput: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
displayedPlaylists(){
|
||||||
|
return loadAudioData
|
||||||
|
},
|
||||||
|
playlistPannel(){
|
||||||
|
return pannelStatusList.playlist;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toggleNewPlaylist(){
|
||||||
|
this.newSong = !this.newSong;
|
||||||
|
if (this.newSong){
|
||||||
|
this.currentPlaylist = false;
|
||||||
|
if(!this.editingSong){
|
||||||
|
this.backToDefaultPlaylist();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$refs.newSongBtn.style.transform = this.newSong ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
this.$refs.currentPlaylistBtn.style.transform = this.currentPlaylist ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
},
|
||||||
|
toggleCurrentPlaylist(){
|
||||||
|
this.currentPlaylist = !this.currentPlaylist;
|
||||||
|
if (this.currentPlaylist){
|
||||||
|
this.newSong = false;
|
||||||
|
}
|
||||||
|
this.$refs.newSongBtn.style.transform = this.newSong ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
this.$refs.currentPlaylistBtn.style.transform = this.currentPlaylist ? 'rotate(0)' : 'rotate(45deg)';
|
||||||
|
},
|
||||||
|
backToDefaultPlaylist(){
|
||||||
|
this.track = this.playlistDefault.track;
|
||||||
|
this.artist = this.playlistDefault.artist;
|
||||||
|
this.editingSong = null;
|
||||||
|
this.newSongText = 'Nouveau Son';
|
||||||
|
},
|
||||||
|
createListEntry(){
|
||||||
|
let entry = {
|
||||||
|
track: this.track,
|
||||||
|
artist: this.artist,
|
||||||
|
src: this.src
|
||||||
|
}
|
||||||
|
console.log('created or modified entry :', entry)
|
||||||
|
return entry
|
||||||
|
},
|
||||||
|
savePlaylist(){
|
||||||
|
let entry = this.createListEntry();
|
||||||
|
if(this.editingSong){
|
||||||
|
Object.assign(this.editingSong, {
|
||||||
|
track: this.track,
|
||||||
|
artist: this.artist,
|
||||||
|
src: this.src
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.displayedPlaylists.push(entry);
|
||||||
|
}
|
||||||
|
this.toggleCurrentPlaylist();
|
||||||
|
this.backToDefaultPlaylist();
|
||||||
|
},
|
||||||
|
removePlaylist(obj){
|
||||||
|
let index = this.displayedPlaylists.indexOf(obj);
|
||||||
|
this.displayedPlaylists.splice(index, 1);
|
||||||
|
},
|
||||||
|
editPlaylist(obj){
|
||||||
|
console.log('selected :', obj)
|
||||||
|
this.editingSong = obj;
|
||||||
|
|
||||||
|
this.track = obj.track;
|
||||||
|
this.artist = obj.artist;
|
||||||
|
this.src = obj.src;
|
||||||
|
|
||||||
|
this.newSongText = 'Éditer les infos'
|
||||||
|
this.toggleNewPlaylist();
|
||||||
|
},
|
||||||
|
async playlistSaveMsg(){
|
||||||
|
this.playlistAlertActive = true;
|
||||||
|
this.submitPlaylistText = "Enregistré !";
|
||||||
|
clearTimeout(this.hideTimer)
|
||||||
|
|
||||||
|
this.hideTimer = setTimeout(() => {
|
||||||
|
this.eventAlertActive = false;
|
||||||
|
this.submitPlaylistText = 'SAUVEGARDER';
|
||||||
|
}, 1610)
|
||||||
|
},
|
||||||
|
modifyFile(){
|
||||||
|
if (this.selectedInput.files[0]){
|
||||||
|
this.src = this.selectedInput.files[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
this.selectedInput = this.$refs.audioFile;
|
||||||
|
console.log(this.selectedInput)
|
||||||
|
watch( () => this.playlistPannel, () => {
|
||||||
|
if(!this.playlistPannel){
|
||||||
|
this.newSong = false;
|
||||||
|
this.currentPlaylist = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log("Playlist editor is fully loaded!");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
id="svg2"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||||
|
width="94.468002"
|
||||||
|
height="94.468002"
|
||||||
|
viewBox="0 0 94.468002 94.468003"
|
||||||
|
sodipodi:docname="favicon.svg"
|
||||||
|
inkscape:export-filename="logo.png"
|
||||||
|
inkscape:export-xdpi="130.08"
|
||||||
|
inkscape:export-ydpi="130.08"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<metadata
|
||||||
|
id="metadata8">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs6" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1341"
|
||||||
|
inkscape:window-height="927"
|
||||||
|
id="namedview4"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="4.8680853"
|
||||||
|
inkscape:cx="38.824299"
|
||||||
|
inkscape:cy="53.306379"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:window-x="56"
|
||||||
|
inkscape:window-y="50"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pagecheckerboard="1"
|
||||||
|
inkscape:deskcolor="#d1d1d1" />
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#ffff4d;stroke-width:5.58135;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4542"
|
||||||
|
width="88.88665"
|
||||||
|
height="88.88665"
|
||||||
|
x="2.7906749"
|
||||||
|
y="2.7906749" />
|
||||||
|
<circle
|
||||||
|
style="opacity:1;fill:#ffff4d;fill-opacity:1;stroke:none;stroke-width:33.0659;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="circle868"
|
||||||
|
cx="47.234001"
|
||||||
|
cy="47.234001"
|
||||||
|
r="16.613539" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,72 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>LOL : admin</title>
|
||||||
|
<link rel="icon" type="image/svg" href="./favicon.svg" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="./style/css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="adminWelcome">
|
||||||
|
<p>
|
||||||
|
<strong>Bienvenue sur la page admin du LOL !</strong><br>
|
||||||
|
Ici tu peux éditer le contenu visible sur le site, dans les sections évènements & liens utiles, et aussi ajouter de la musique dans le player.<br>
|
||||||
|
On précise quand même (au cas où), que <strong>les auteurices des sons qu'on poste doivent avoir donné leur accord explicite avant que ça soit posté !</strong>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div id="adminContainer">
|
||||||
|
<div class="">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="adminSection" id="event">
|
||||||
|
<div class="windowStyle">
|
||||||
|
<div class="windowTitle">
|
||||||
|
<p>
|
||||||
|
Évènements affichés :
|
||||||
|
</p>
|
||||||
|
<button type="button" class="toggleBtn" id="eventBtn">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="windowContent">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="adminSection" id="other">
|
||||||
|
<div class="windowStyle" id="link">
|
||||||
|
<div class="windowTitle">
|
||||||
|
<p>
|
||||||
|
Panneau liens :
|
||||||
|
</p>
|
||||||
|
<button type="button" class="toggleBtn" id="linkBtn">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="windowContent">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="windowStyle" id="playlist">
|
||||||
|
<div class="windowTitle">
|
||||||
|
<p>
|
||||||
|
Playlist :
|
||||||
|
</p>
|
||||||
|
<button type="button" class="toggleBtn" id="playlistBtn">
|
||||||
|
<svg class="icon" viewBox="0 0 53.73 53.59">
|
||||||
|
<path d="M26.87,40.16l-13.43,13.43L0,40.16l13.43-13.43L.29,13.43,13.72,0l13.15,13.29L40.01.14l13.43,13.43-13,13.15,13.29,13.29-13.43,13.43-13.43-13.29Z"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="windowContent">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="adminContent"></div>
|
||||||
|
<script type="module" src="./main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import { createApp } from 'vue'
|
||||||
|
// import css
|
||||||
|
import './style.css'
|
||||||
|
// import app racine pour page admin
|
||||||
|
import Admin from './Admin.vue'
|
||||||
|
// import composants
|
||||||
|
import EventEditor from './components/EventEditor.vue'
|
||||||
|
import LinkEditor from './components/LinkEditor.vue'
|
||||||
|
import PlaylistEditor from './components/PlaylistEditor.vue'
|
||||||
|
|
||||||
|
// creation app
|
||||||
|
const app = createApp(Admin);
|
||||||
|
// Composants
|
||||||
|
app.component('eventEditor', EventEditor);
|
||||||
|
app.component('linkEditor', LinkEditor);
|
||||||
|
app.component('playlistEditor', PlaylistEditor)
|
||||||
|
|
||||||
|
// montage dans div#adminContent
|
||||||
|
app.mount('#adminContent');
|
||||||
|
|
||||||
|
//import variables reactive
|
||||||
|
import { pannelStatusList } from './pannelStatus.js'
|
||||||
|
|
||||||
|
document.documentElement.setAttribute('data-theme', 'main');
|
||||||
|
|
||||||
|
let eventBtn = document.querySelector('#eventBtn');
|
||||||
|
let eventTarget = document.querySelector('#event .windowContent');
|
||||||
|
|
||||||
|
let linkBtn = document.querySelector('#linkBtn');
|
||||||
|
let linkTarget = document.querySelector('#link .windowContent');
|
||||||
|
|
||||||
|
let playlistBtn = document.querySelector('#playlistBtn');
|
||||||
|
let playlistTarget = document.querySelector('#playlist .windowContent');
|
||||||
|
|
||||||
|
|
||||||
|
eventBtn.addEventListener('click', () => {
|
||||||
|
pannelStatusList.event = !pannelStatusList.event;
|
||||||
|
eventTarget.style.height = pannelStatusList.event ? '75vh' : 'auto';
|
||||||
|
document.querySelector('#eventBtn .icon').style.transform = pannelStatusList.event ? 'rotate(45deg)' : 'rotate(0)'
|
||||||
|
})
|
||||||
|
|
||||||
|
linkBtn.addEventListener('click', () => {
|
||||||
|
pannelStatusList.link = !pannelStatusList.link;
|
||||||
|
if(pannelStatusList.link){
|
||||||
|
pannelStatusList.playlist = false;
|
||||||
|
playlistTarget.style.height = 'auto';
|
||||||
|
document.querySelector('#playlistBtn .icon').style.transform = 'rotate(45deg)'
|
||||||
|
}
|
||||||
|
linkTarget.style.height = pannelStatusList.link ? '64.5vh' : '0';
|
||||||
|
document.querySelector('#linkBtn .icon').style.transform = pannelStatusList.link ? 'rotate(45deg)' : 'rotate(0)'
|
||||||
|
})
|
||||||
|
|
||||||
|
playlistBtn.addEventListener('click', () => {
|
||||||
|
pannelStatusList.playlist = !pannelStatusList.playlist;
|
||||||
|
if(pannelStatusList.playlist){
|
||||||
|
pannelStatusList.link = false
|
||||||
|
linkTarget.style.height = 'auto';
|
||||||
|
document.querySelector('#linkBtn .icon').style.transform = 'rotate(45deg)'
|
||||||
|
}
|
||||||
|
playlistTarget.style.height = pannelStatusList.playlist ? '64.5vh' : 'auto';
|
||||||
|
document.querySelector('#playlistBtn .icon').style.transform = pannelStatusList.playlist ? 'rotate(45deg)' : 'rotate(0)'
|
||||||
|
})
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import { reactive } from 'vue'
|
||||||
|
|
||||||
|
export const pannelStatusList = reactive({
|
||||||
|
event: false,
|
||||||
|
link: false,
|
||||||
|
playlist: false
|
||||||
|
})
|
||||||
+248
@@ -0,0 +1,248 @@
|
|||||||
|
:root[data-theme="main"]{
|
||||||
|
--back-color: #FFFF4D;
|
||||||
|
--main-color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*====================Typo*/
|
||||||
|
@font-face {
|
||||||
|
font-family: 'karrik';
|
||||||
|
src: url('/typo/Karrik-Italic.woff2').format('woff2');
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'karrik';
|
||||||
|
src: url('/typo/Karrik-Regular.woff2') format('woff2');
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
src: url('/typo/Velvelyne-Book.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'avara';
|
||||||
|
src: url('/typo/Avara-Black.woff2') format('woff2');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'pressStart2P';
|
||||||
|
src: url('/typo/PressStart2P-Regular.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
src:url('/typo/Velvelyne-Bold.ttf') format('truetype');
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*=============Désact défault*/
|
||||||
|
input {
|
||||||
|
-webkit-appearance: none !important;
|
||||||
|
appearance: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a{
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
cursor: alias;
|
||||||
|
}
|
||||||
|
|
||||||
|
button{
|
||||||
|
cursor: cell;
|
||||||
|
}
|
||||||
|
|
||||||
|
a p{
|
||||||
|
cursor:inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
a button{
|
||||||
|
cursor: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
cursor: inherit;
|
||||||
|
pointer-events: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dg{
|
||||||
|
display: none !important;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*====================BODY & BACKGROUND*/
|
||||||
|
html, body{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
background-color: var(--main-color);
|
||||||
|
width: 100%;
|
||||||
|
height:100%;
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: scroll;
|
||||||
|
display: block;
|
||||||
|
scrollbar-color: var(--back-color) var(--main-color);
|
||||||
|
scrollbar-width: thin;
|
||||||
|
z-index: -33;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*=======================pseudo-Fenetres*/
|
||||||
|
.windowStyle{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
border-radius: 16.1px;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
overflow: hidden;
|
||||||
|
height: auto;
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.windowTitle{
|
||||||
|
width:100%;
|
||||||
|
height:44px;
|
||||||
|
background-color: var(--main-color);
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: 'karrik';
|
||||||
|
font-weight: normal;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 16.1px;
|
||||||
|
color: var(--back-color);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.windowTitleLower{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13.12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggleBtn{
|
||||||
|
color: var(--back-color);
|
||||||
|
background-color: var(--main-color);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
border-radius: 16.1px;
|
||||||
|
border-color: var(--back-color);
|
||||||
|
width: 27px;
|
||||||
|
height: 27px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
cursor: copy;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggleBtn:hover{
|
||||||
|
color: var(--main-color);
|
||||||
|
background-color: var(--back-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.windowContent{
|
||||||
|
height:77%;
|
||||||
|
width:100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon{
|
||||||
|
fill: currentColor;
|
||||||
|
height: 13.12px;
|
||||||
|
width: auto;
|
||||||
|
pointer-events: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textBtnStyle{
|
||||||
|
font-family: 'karrik';
|
||||||
|
font-size: 13.12px;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
color: var(--main-color);
|
||||||
|
border-color: var(--main-color);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1.75px;
|
||||||
|
border-radius: 16.1px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 161px;
|
||||||
|
height: 77px;
|
||||||
|
align-self: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textBtnStyle:hover{
|
||||||
|
background-color: var(--main-color);
|
||||||
|
color: var(--back-color);
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*==================INTERFACE*/
|
||||||
|
#adminWelcome{
|
||||||
|
width: 100%;
|
||||||
|
height: 13.12vh;
|
||||||
|
padding: 13.12px;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
margin: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 13.12px;
|
||||||
|
color: var(--back-color);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong{
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminContainer{
|
||||||
|
width: 100%;
|
||||||
|
height: 90vh;
|
||||||
|
inset: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: var(--back-color);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adminSection{
|
||||||
|
width: 50%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
padding-top: 7.77px;
|
||||||
|
gap: 1vh;
|
||||||
|
}
|
||||||
Binary file not shown.
+5
-3
@@ -8,6 +8,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!--HORS VUE-->
|
<!--HORS VUE-->
|
||||||
|
<canvas id="canvas"></canvas>
|
||||||
|
<video autoplay muted loop src="./background.webm" id="background"></video>
|
||||||
<div id="mainContainer">
|
<div id="mainContainer">
|
||||||
<div class="uiStyle" id="topBar">
|
<div class="uiStyle" id="topBar">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
@@ -86,13 +88,13 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="uiStyle" id="lolOpener">
|
<div class="uiStyle" id="lolOpener">
|
||||||
<p>Le lieu est parfois ouvert en dehors des horaires habituels donc on a installé un capteur sur la porte :</p>
|
<p id="desc">Le lieu est parfois ouvert en dehors des horaires habituels donc on a installé un capteur sur la porte :</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="aboutSection">
|
<div id="aboutSection">
|
||||||
<div class="uiStyle" id="aboutText">
|
<div class="uiStyle" id="aboutText">
|
||||||
<p>
|
<p>
|
||||||
Le Laboratoire Ouvert Lyonnais (LOL) est un lieu de rassemblement et d'expérimentations pour tout les passionné·es d'informatique, d'électronique et de technique,
|
Le Laboratoire Ouvert Lyonnais (LOL) est un lieu de rassemblement et d'expérimentations pour tous·tes les passionné·es d'informatique, d'électronique et de technique,
|
||||||
qui souhaitent réparer, recycler, et se réapproprier les objets et outils qui nous entourent.<br>
|
qui souhaitent réparer, recycler, et se réapproprier les objets et outils qui nous entourent.<br>
|
||||||
Le LOL est un lieu d'exploration des alternatives et de bidouille anti-systèmes.
|
Le LOL est un lieu d'exploration des alternatives et de bidouille anti-systèmes.
|
||||||
</p>
|
</p>
|
||||||
@@ -104,7 +106,7 @@
|
|||||||
<p>
|
<p>
|
||||||
Nous revendiquons l'ouverture du code et des techniques,
|
Nous revendiquons l'ouverture du code et des techniques,
|
||||||
le partage des connaissances et l'autogestion,
|
le partage des connaissances et l'autogestion,
|
||||||
la liberté et l'anti-fascisme. <br><br>
|
l'anti-capitalisme et l'anti-fascisme. <br><br>
|
||||||
Nous condamnons donc toute forme de violence et de discrimination dans nos locaux.<br>
|
Nous condamnons donc toute forme de violence et de discrimination dans nos locaux.<br>
|
||||||
Tout comportement assimilé pourra, sur décision collective, vous mener à la sortie.
|
Tout comportement assimilé pourra, sur décision collective, vous mener à la sortie.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
+6
-3
@@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import PlayerIcon from './assets/icons/play.svg'
|
import PlayerIcon from './assets/icons/player.svg'
|
||||||
import LinkIcon from './assets/icons/folder.svg'
|
import LinkIcon from './assets/icons/folder.svg'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -60,6 +60,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { dataStorage } from './dataExchange.js'
|
import { dataStorage } from './dataExchange.js'
|
||||||
|
|
||||||
|
import { cuteAndCyber } from './artAndTexture.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name : 'App',
|
name : 'App',
|
||||||
computed: {
|
computed: {
|
||||||
@@ -86,12 +89,12 @@
|
|||||||
openPannel(str){
|
openPannel(str){
|
||||||
if(!(this.pannelStatus.activePannels.includes(str))){
|
if(!(this.pannelStatus.activePannels.includes(str))){
|
||||||
this.pannelStatus.activePannels.push(str)
|
this.pannelStatus.activePannels.push(str)
|
||||||
} else {
|
|
||||||
this.focusPannel(str)
|
|
||||||
}
|
}
|
||||||
|
this.focusPannel(str)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
cuteAndCyber();
|
||||||
console.log("Vue root app is fully loaded!");
|
console.log("Vue root app is fully loaded!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,148 @@
|
|||||||
|
import { lolState } from './lolStatus.js'
|
||||||
|
|
||||||
|
const arr = []
|
||||||
|
for (let i = 0; i < 256; i++){
|
||||||
|
arr.push(i)
|
||||||
|
}
|
||||||
|
|
||||||
|
function createPermTable(){
|
||||||
|
let data = [...arr]
|
||||||
|
//console.log('base :', arr)
|
||||||
|
for (let i = data.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[data[i], data[j]] = [data[j], data[i]];
|
||||||
|
}
|
||||||
|
//console.log('result :', permutationTable)
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
const perm = createPermTable();
|
||||||
|
const p = [...perm, ...perm];
|
||||||
|
|
||||||
|
const F2 = 0.5 * (Math.sqrt(3) - 1); // Skew factor for 2D
|
||||||
|
const G2 = (3 - Math.sqrt(3)) / 6; // Unskew factor for 2D
|
||||||
|
const scale = 0.7
|
||||||
|
|
||||||
|
const target = document.querySelector('#canvas');
|
||||||
|
|
||||||
|
const ctx = target.getContext('2d');
|
||||||
|
|
||||||
|
// 12 gradient vectors for 2D Simplex Noise
|
||||||
|
const grad3 = [
|
||||||
|
[1, 1], [-1, 1], [1, -1], [-1, -1],
|
||||||
|
[1, 0], [-1, 0], [0, 1], [0, -1],
|
||||||
|
[1, 2], [-1, 2], [2, 1], [-2, 1]
|
||||||
|
];
|
||||||
|
|
||||||
|
function simplex(x, y) {
|
||||||
|
// Step 1: Skew input coordinates to simplex grid
|
||||||
|
const s = (x + y) * F2; // Skew factor
|
||||||
|
const i = Math.floor(x + s); // Simplex grid i
|
||||||
|
const j = Math.floor(y + s); // Simplex grid j
|
||||||
|
|
||||||
|
// Step 2: Unskew to get (x0, y0) in Cartesian space (distance to (i,j))
|
||||||
|
const t = (i + j) * G2;
|
||||||
|
const x0 = x - (i - t); // Unskewed x in [0,1)
|
||||||
|
const y0 = y - (j - t); // Unskewed y in [0,1)
|
||||||
|
|
||||||
|
// Step 3: Determine which simplex (triangle) the point is in
|
||||||
|
let i1, j1; // Offsets for the other two simplex vertices
|
||||||
|
if (x0 > y0) {
|
||||||
|
i1 = 1; j1 = 0; // Lower triangle (x0 > y0)
|
||||||
|
} else {
|
||||||
|
i1 = 0; j1 = 1; // Upper triangle (x0 ≤ y0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Step 4: Coordinates of the other two simplex vertices
|
||||||
|
const x1 = x0 - i1 + G2; // Distance to (i+i1, j+j1)
|
||||||
|
const y1 = y0 - j1 + G2;
|
||||||
|
const x2 = x0 - 1 + 2 * G2; // Distance to (i+1, j+1)
|
||||||
|
const y2 = y0 - 1 + 2 * G2;
|
||||||
|
|
||||||
|
// Step 5: Hash indices for the 3 simplex vertices
|
||||||
|
const ii = i & 255;
|
||||||
|
const jj = j & 255;
|
||||||
|
const gi0 = p[ii + p[jj]] % 12; // (i,j) gradient index
|
||||||
|
const gi1 = p[ii + i1 + p[jj + j1]] % 12; // (i+i1,j+j1) gradient index
|
||||||
|
const gi2 = p[ii + 1 + p[jj + 1]] % 12; // (i+1,j+1) gradient index
|
||||||
|
|
||||||
|
// Step 6: Compute contributions from each vertex
|
||||||
|
let t0 = 0.5 - x0 * x0 - y0 * y0; // Falloff (t^4 fade)
|
||||||
|
const n0 = t0 < 0 ? 0 : Math.pow(t0, 4) * (grad3[gi0][0] * x0 + grad3[gi0][1] * y0);
|
||||||
|
|
||||||
|
let t1 = 0.5 - x1 * x1 - y1 * y1;
|
||||||
|
const n1 = t1 < 0 ? 0 : Math.pow(t1, 4) * (grad3[gi1][0] * x1 + grad3[gi1][1] * y1);
|
||||||
|
|
||||||
|
let t2 = 0.5 - x2 * x2 - y2 * y2;
|
||||||
|
const n2 = t2 < 0 ? 0 : Math.pow(t2, 4) * (grad3[gi2][0] * x2 + grad3[gi2][1] * y2);
|
||||||
|
|
||||||
|
// Step 7: Sum contributions and normalize (2D Simplex ranges ~[-1, 1])
|
||||||
|
return 70 * (n0 + n1 + n2); // 70 scales to ~[-1, 1]
|
||||||
|
}
|
||||||
|
|
||||||
|
function analogLikeNoise(){
|
||||||
|
let tH = target.height;
|
||||||
|
let tW = target.width;
|
||||||
|
//console.log('window dimensions :', tH, tW)
|
||||||
|
const img = ctx.createImageData(tW, tH);
|
||||||
|
let offset = 0;
|
||||||
|
let index = 0;
|
||||||
|
let brightness = 0;
|
||||||
|
|
||||||
|
for(let x = 0; x<tW; x++){
|
||||||
|
const sx = x * scale + offset
|
||||||
|
for(let y = 0; y<tH; y++){
|
||||||
|
let lum = Math.random()*161
|
||||||
|
|
||||||
|
//img.data[index++] = lum*150/255;
|
||||||
|
index++
|
||||||
|
img.data[index++] = lum;
|
||||||
|
img.data[index++] = lum;
|
||||||
|
img.data[index++] = 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ctx.putImageData(img, 0, 0);
|
||||||
|
|
||||||
|
offset ++;
|
||||||
|
if(offset>1024){
|
||||||
|
offset = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let time = 0
|
||||||
|
|
||||||
|
function scanlines(){
|
||||||
|
time += 0.05;
|
||||||
|
let tH = target.height;
|
||||||
|
let tW = target.width;
|
||||||
|
//console.log('window dimensions :', tH, tW)
|
||||||
|
const img = ctx.createImageData(tW, tH);
|
||||||
|
let index = 0;
|
||||||
|
|
||||||
|
for(let y = 0; y<tH; y++){
|
||||||
|
for(let x = 0; x<tW; x++){
|
||||||
|
let lum = (Math.sin(y*2 - time *2) * 50) +128;
|
||||||
|
|
||||||
|
//img.data[index++] = lum;
|
||||||
|
index++;
|
||||||
|
img.data[index++] = lum + Math.random()*16;
|
||||||
|
//img.data[index++] = lum + Math.random()*32;
|
||||||
|
index++
|
||||||
|
img.data[index++] = 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ctx.putImageData(img, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function cuteAndCyber(){
|
||||||
|
if(!(lolState.isOpen)){
|
||||||
|
document.querySelector('#background').style.visibility = 'hidden';
|
||||||
|
analogLikeNoise();
|
||||||
|
requestAnimationFrame(cuteAndCyber);
|
||||||
|
}else{
|
||||||
|
scanlines();
|
||||||
|
document.querySelector('#background').playbackRate = 0.777;
|
||||||
|
document.querySelector('#background').style.visibility = 'visible';
|
||||||
|
requestAnimationFrame(cuteAndCyber);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 97.51 84.66">
|
||||||
|
<path d="M18.91,0v49.74c-.47-.03-.94-.06-1.42-.06-4.72,0-8.81,1.74-12.28,5.21-3.47,3.47-5.21,7.51-5.21,12.1,0,4.96,1.74,9.15,5.21,12.56,3.47,3.41,7.57,5.12,12.28,5.12,4.96,0,9.12-1.7,12.47-5.12,3.35-3.41,5.02-7.6,5.02-12.56,0-.53-.03-1.05-.07-1.57V16h46.6v22.48c-.49-.04-.99-.07-1.49-.07-4.72,0-8.81,1.74-12.28,5.21-3.47,3.47-5.21,7.51-5.21,12.1,0,4.96,1.74,9.15,5.21,12.56,3.47,3.41,7.57,5.12,12.28,5.12,4.96,0,9.12-1.7,12.47-5.12,3.31-3.37,4.97-7.49,5.02-12.37h0V0H18.91Z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 626 B |
@@ -46,6 +46,8 @@
|
|||||||
border-radius: 16.1px;
|
border-radius: 16.1px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
|
mix-blend-mode: exclusion;
|
||||||
|
filter: contrast(200%);
|
||||||
|
|
||||||
.titleSection{
|
.titleSection{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -102,6 +104,7 @@
|
|||||||
.eventEntry:hover{
|
.eventEntry:hover{
|
||||||
background-color: var(--back-color);
|
background-color: var(--back-color);
|
||||||
color: var(--main-color);
|
color: var(--main-color);
|
||||||
|
mix-blend-mode: normal;
|
||||||
|
|
||||||
p{
|
p{
|
||||||
color: var(--main-color);
|
color: var(--main-color);
|
||||||
|
|||||||
@@ -38,6 +38,17 @@
|
|||||||
left: 77px;
|
left: 77px;
|
||||||
padding-bottom: 3.33px;
|
padding-bottom: 3.33px;
|
||||||
|
|
||||||
|
@media(min-width:650px){
|
||||||
|
left: 333px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 1300px){
|
||||||
|
width: 333px;
|
||||||
|
max-height: 333px;
|
||||||
|
top: 222px;
|
||||||
|
left: 1000px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#eventContent{
|
#eventContent{
|
||||||
padding: 7.77px;
|
padding: 7.77px;
|
||||||
@@ -63,13 +74,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*================ PC LARGE*/
|
|
||||||
@media(min-width:650px){
|
|
||||||
#eventPannel{
|
|
||||||
left: 333px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="windowContent" id="linkContent">
|
<div class="windowContent" id="linkContent">
|
||||||
|
<p id="info">Par ici on poste pleins de truc qu'on trouve utiles, n'hésite pas à fouiller </p>
|
||||||
<a id="linkItem" v-for="item of displayedLinks" :href="item.href" class="textBtnStyle">
|
<a id="linkItem" v-for="item of displayedLinks" :href="item.href" class="textBtnStyle">
|
||||||
<p><strong>{{item.title}}</strong><br>{{item.desc}}</p>
|
<p><strong>{{item.title}}</strong><br>{{item.desc}}</p>
|
||||||
</a>
|
</a>
|
||||||
@@ -47,12 +48,37 @@
|
|||||||
height: 333px;
|
height: 333px;
|
||||||
top: 222px;
|
top: 222px;
|
||||||
left: 117px;
|
left: 117px;
|
||||||
|
|
||||||
|
@media(min-width:650px){
|
||||||
|
left: 477px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 1300px){
|
||||||
|
width: 333px;
|
||||||
|
height: 444px;
|
||||||
|
top: 420px;
|
||||||
|
left: 555px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#linkContent{
|
#linkContent{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
||||||
|
p#info{
|
||||||
|
padding-right: 7.77px;
|
||||||
|
padding-left: 7.77px;
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 13.12px;
|
||||||
|
color: var(--main-color);
|
||||||
|
border-width: 0 0 1.61px 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--main-color);
|
||||||
|
padding-bottom: 7.77px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#linkItem{
|
#linkItem{
|
||||||
@@ -73,12 +99,11 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 16.1px;
|
font-size: 16.1px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*================ PC LARGE*/
|
p{
|
||||||
@media(min-width:650px){
|
border-width: 0;
|
||||||
#linkPannel{
|
padding-bottom: 0;
|
||||||
left: 477px;
|
margin-bottom: 7.77px;;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
import PauseIcon from '../assets/icons/pause.svg'
|
import PauseIcon from '../assets/icons/pause.svg'
|
||||||
import NextIcon from '../assets/icons/next.svg'
|
import NextIcon from '../assets/icons/next.svg'
|
||||||
import PrevIcon from '../assets/icons/prev.svg'
|
import PrevIcon from '../assets/icons/prev.svg'
|
||||||
import { loadAudioData } from '@/data/audioData.js'
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -24,13 +23,13 @@
|
|||||||
<marquee direction="left" behavior="scroll" scrollamount="7" width="100%">{{selectedSong.track}} — {{selectedSong.artist}}</marquee>
|
<marquee direction="left" behavior="scroll" scrollamount="7" width="100%">{{selectedSong.track}} — {{selectedSong.artist}}</marquee>
|
||||||
</div>
|
</div>
|
||||||
<div id="controls">
|
<div id="controls">
|
||||||
<button type="button" class="iconBtnStyle" @click="prevTrack" data-tooltip="précédente">
|
<button type="button" class="iconBtnStyle" @mousedown.stop @touchstart.stop @click="prevTrack" data-tooltip="précédente">
|
||||||
<PrevIcon name="prev" class="icon"/>
|
<PrevIcon name="prev" class="icon"/>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="iconBtnStyle" @click="toggleAudio" data-tooltip="lancer">
|
<button type="button" class="iconBtnStyle" @mousedown.stop @touchstart.stop @click="toggleAudio" data-tooltip="lancer">
|
||||||
<component :is="isPlaying? PauseIcon : PlayIcon" class="icon"/>
|
<component :is="isPlaying? PauseIcon : PlayIcon" class="icon"/>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="iconBtnStyle" @click="nextTrack" data-tooltip="suivante">
|
<button type="button" class="iconBtnStyle" @mousedown.stop @touchstart.stop @click="nextTrack" data-tooltip="suivante">
|
||||||
<NextIcon name="next" class="icon"/>
|
<NextIcon name="next" class="icon"/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -66,6 +65,16 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
|
|
||||||
|
@media(min-width:700px){
|
||||||
|
left: 477px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 1300px){
|
||||||
|
width: 333px;
|
||||||
|
top: 333px;
|
||||||
|
left: 333px;
|
||||||
|
}
|
||||||
|
|
||||||
.closeBtn{
|
.closeBtn{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
@@ -109,16 +118,11 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*================ PC LARGE*/
|
|
||||||
@media(min-width:650px){
|
|
||||||
#playerPannel{
|
|
||||||
left: 477px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { loadAudioData } from '../data/audioData.js'
|
||||||
|
|
||||||
import Moveable from 'vue3-moveable';
|
import Moveable from 'vue3-moveable';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -130,7 +134,6 @@
|
|||||||
return{
|
return{
|
||||||
target: null,
|
target: null,
|
||||||
audioTarget: null,
|
audioTarget: null,
|
||||||
audioData: [],
|
|
||||||
selectedSong:{
|
selectedSong:{
|
||||||
track: "",
|
track: "",
|
||||||
artist: "",
|
artist: "",
|
||||||
@@ -142,6 +145,11 @@
|
|||||||
isPlaying: false
|
isPlaying: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
audioData(){
|
||||||
|
return loadAudioData
|
||||||
|
}
|
||||||
|
},
|
||||||
emits: ['close','focus'],
|
emits: ['close','focus'],
|
||||||
methods: {
|
methods: {
|
||||||
onDrag({ target, transform }) {
|
onDrag({ target, transform }) {
|
||||||
@@ -186,10 +194,8 @@
|
|||||||
},
|
},
|
||||||
async mounted(){
|
async mounted(){
|
||||||
this.target = this.$refs.playerPannel;
|
this.target = this.$refs.playerPannel;
|
||||||
|
|
||||||
this.audioData = await loadAudioData();
|
|
||||||
this.audioTarget = this.$refs.selectedAudio;
|
this.audioTarget = this.$refs.selectedAudio;
|
||||||
//console.log('AUDIO/', this.audioData);
|
console.log('AUDIO/', this.audioData);
|
||||||
this.loadAudio();
|
this.loadAudio();
|
||||||
|
|
||||||
console.log("Player pannel is loaded!");
|
console.log("Player pannel is loaded!");
|
||||||
|
|||||||
@@ -8,30 +8,37 @@
|
|||||||
#lolStatusContainer{
|
#lolStatusContainer{
|
||||||
width: 161px;
|
width: 161px;
|
||||||
height: 33px;
|
height: 33px;
|
||||||
background-color: transparent;
|
background-color: var(--main-color);
|
||||||
color: var(--main-color);
|
color: var(--back-color);
|
||||||
border-color: var(--main-color);
|
border-color: var(--main-color);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: thin;
|
border-width: thin;
|
||||||
border-radius: 0;
|
border-radius: 33px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
padding-bottom: 3.33px;
|
padding-bottom: 7.77px;
|
||||||
margin-left: 1.61vw;
|
margin-left: 1.61vw;
|
||||||
|
padding-left: 3.33px;
|
||||||
|
filter: contrast(200%) saturate(200%);
|
||||||
|
|
||||||
p{
|
p{
|
||||||
font-family: 'pressStart2P';
|
font-family: 'pressStart2P';
|
||||||
font-size: 13.12px;
|
font-size: 16.1px;
|
||||||
letter-spacing: 1.61px;
|
letter-spacing: 1.61px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#lolOpener #lolStatusContainer{
|
#lolOpener #lolStatusContainer{
|
||||||
|
padding-top: 3.33px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
|
||||||
|
@media(min-width: 700px){
|
||||||
|
width: 44%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -56,7 +63,7 @@
|
|||||||
this.statusText = this.lolCurrentStatus ? 'OUVERT !' : 'FERMÉ...';
|
this.statusText = this.lolCurrentStatus ? 'OUVERT !' : 'FERMÉ...';
|
||||||
document.documentElement.setAttribute('data-theme' , currentTheme);
|
document.documentElement.setAttribute('data-theme' , currentTheme);
|
||||||
document.querySelector('link').href = this.lolCurrentStatus ? './src/assets/favicon_open.svg' : './src/assets/favicon.svg'
|
document.querySelector('link').href = this.lolCurrentStatus ? './src/assets/favicon_open.svg' : './src/assets/favicon.svg'
|
||||||
this.$refs.lolStatus.style.animation = this.lolCurrentStatus ? 'blink 1.61s infinite' : 'none';
|
this.$refs.lolStatus.style.animation = this.lolCurrentStatus ? 'blink 3.33s infinite' : 'none';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
import { reactive } from 'vue'
|
||||||
|
|
||||||
import audio01 from './juste-tek.mp3'
|
import audio01 from './juste-tek.mp3'
|
||||||
import audio02 from './sinking-into-.mp3'
|
import audio02 from './sinking-into-.mp3'
|
||||||
import audio03 from './technoloooogia.mp3'
|
import audio03 from './technoloooogia.mp3'
|
||||||
|
|
||||||
export async function loadAudioData() {
|
export const loadAudioData = reactive (
|
||||||
let audioFiles = [
|
[
|
||||||
{
|
{
|
||||||
track: 'the sink',
|
track: 'the sink',
|
||||||
artist: '333',
|
artist: '333',
|
||||||
@@ -20,6 +22,4 @@ export async function loadAudioData() {
|
|||||||
src: audio03
|
src: audio03
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
//console.log(audioFiles);
|
)
|
||||||
return audioFiles
|
|
||||||
}
|
|
||||||
+39
-16
@@ -138,6 +138,39 @@ html, body{
|
|||||||
scrollbar-color: var(--back-color) var(--main-color);
|
scrollbar-color: var(--back-color) var(--main-color);
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
z-index: -33;
|
z-index: -33;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#canvas{
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
mix-blend-mode: screen;
|
||||||
|
z-index: -2;
|
||||||
|
opacity: .25;
|
||||||
|
filter: saturate(333%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#background{
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: auto;
|
||||||
|
height: 133%;
|
||||||
|
overflow: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: -1;
|
||||||
|
opacity: 1;
|
||||||
|
visibility: hidden;
|
||||||
|
filter: contrast(200%) saturate(33%) grayscale();
|
||||||
|
transform: rotate(180deg);
|
||||||
|
mix-blend-mode: difference;
|
||||||
|
|
||||||
|
@media(min-width: 700px){
|
||||||
|
height: 200%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainContainer{
|
#mainContainer{
|
||||||
@@ -169,6 +202,7 @@ html, body{
|
|||||||
.textBtnStyle:hover{
|
.textBtnStyle:hover{
|
||||||
background-color: var(--main-color);
|
background-color: var(--main-color);
|
||||||
color: var(--back-color);
|
color: var(--back-color);
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconBtnStyle{
|
.iconBtnStyle{
|
||||||
@@ -457,6 +491,7 @@ html, body{
|
|||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
padding-left: 13.12px;
|
padding-left: 13.12px;
|
||||||
|
mix-blend-mode: exclusion;
|
||||||
|
|
||||||
#hackerLogo{
|
#hackerLogo{
|
||||||
width: 77px;
|
width: 77px;
|
||||||
@@ -501,18 +536,6 @@ html, body{
|
|||||||
position: relative;
|
position: relative;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
#lolStatus{
|
|
||||||
width:90%;
|
|
||||||
height: 44px;
|
|
||||||
border-color: var(--main-color);
|
|
||||||
border-style: solid;
|
|
||||||
border-width: thin;
|
|
||||||
border-radius: 0;
|
|
||||||
align-self: center;
|
|
||||||
margin-bottom: 7.77px;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(min-width: 700px){
|
@media(min-width: 700px){
|
||||||
@@ -563,10 +586,9 @@ html, body{
|
|||||||
padding-left: 16.1px;
|
padding-left: 16.1px;
|
||||||
height: 77px;
|
height: 77px;
|
||||||
|
|
||||||
#lolStatus{
|
#desc{
|
||||||
width: 44%;
|
width: 44%;
|
||||||
align-self: center;
|
box-sizing: border-box;
|
||||||
margin-top: 7.77px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -650,7 +672,7 @@ html, body{
|
|||||||
#aboutText{
|
#aboutText{
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height: auto;
|
height: auto;
|
||||||
padding-left: 4.44px;
|
padding-left: 13.12px;
|
||||||
padding-right: 13.12px;
|
padding-right: 13.12px;
|
||||||
padding-bottom: 13.12px;
|
padding-bottom: 13.12px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
@@ -660,6 +682,7 @@ html, body{
|
|||||||
}
|
}
|
||||||
@media(min-width: 1300px){
|
@media(min-width: 1300px){
|
||||||
height: 50vh;
|
height: 50vh;
|
||||||
|
padding-left: 33px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p{
|
p{
|
||||||
|
|||||||
@@ -14,5 +14,13 @@ export default defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, './src')
|
'@': path.resolve(__dirname, './src')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
input: {
|
||||||
|
main: path.resolve(import.meta.dirname, 'index.html'),
|
||||||
|
admin: path.resolve(import.meta.dirname, 'admin/index.html'),
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user