fix bugs caused by switch to vite

This commit is contained in:
2023-07-04 18:34:18 +02:00
parent 77260542e1
commit 2e0c9c49b5
4 changed files with 7 additions and 7 deletions

View File

@@ -146,7 +146,7 @@
</div> </div>
</td> </td>
<td> <td>
<input type="number" min="1" max="4" v-model="internal[ active ].seatNumberingPosition" @change="resubmit()"> <input type="number" min="1" max="100" v-model="internal[ active ].seatNumberingPosition" @change="resubmit()">
</td> </td>
</tr> </tr>

View File

@@ -277,7 +277,7 @@
addNewElement () { addNewElement () {
// TODO: Check that this algorithm actually works in practice. If not, replace with one that // TODO: Check that this algorithm actually works in practice. If not, replace with one that
// searches for the first available ID or uses a var to determine ID. // searches for the first available ID or uses a var to determine ID.
this.draggables[ Object.keys( this.draggables ).length + 1 ] = { 'x': 100, 'y':100, 'h': 100, 'w': 250, 'active': false, 'draggable': true, 'resizable': true, 'id': Object.keys( this.draggables ).length + 1, 'origin': 1, 'shape':'rectangular', 'type': 'seat', 'startingRow': 1, 'seatNumberingPosition': Object.keys( this.draggables ).length + 1, 'sector': 'A', 'text': { 'text': 'TestText', 'textSize': 20, 'colour': '#20FFFF' }, 'ticketCount': 1, 'numberingDirection': 'left' }; this.draggables[ Object.keys( this.draggables ).length + 1 ] = { 'x': 100, 'y':100, 'h': 100, 'w': 250, 'active': false, 'draggable': true, 'resizable': true, 'id': Object.keys( this.draggables ).length + 1, 'origin': 1, 'shape':'rectangular', 'type': 'seat', 'startingRow': 1, 'seatNumberingPosition': Object.keys( this.draggables ).length, 'sector': 'A', 'text': { 'text': 'TestText', 'textSize': 20, 'colour': '#20FFFF' }, 'ticketCount': 1, 'numberingDirection': 'left' };
this.saveHistory(); this.saveHistory();
document.getElementById( 'parent' ).scrollTop = 0; document.getElementById( 'parent' ).scrollTop = 0;
document.getElementById( 'parent' ).scrollLeft = 0; document.getElementById( 'parent' ).scrollLeft = 0;

View File

@@ -23,7 +23,7 @@
<p>{{ event.location }}, {{ event.date }}</p> <p>{{ event.location }}, {{ event.date }}</p>
<h4>Starting at {{ event.currency }} {{ event.startingPrice }}</h4> <h4>Starting at {{ event.currency }} {{ event.startingPrice }}</h4>
</div> </div>
<img :src="require( '@/assets/' + event.logo )" alt="event logo" class="ticket-logo"> <img :src="event.logo" alt="event logo" class="ticket-logo">
</router-link> </router-link>
</li> </li>
</ul> </ul>
@@ -95,7 +95,7 @@
}, },
data () { data () {
return { return {
events: { 'test':{ 'name': 'TestEvent', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'TestDate', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test', 'currency': 'CHF', 'logo': 'logo.png' }, 'test2':{ 'name': 'TestEvent2', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'TestDate', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test2', 'currency': 'CHF', 'logo': 'logo.png' } } events: { 'test':{ 'name': 'TestEvent', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'TestDate', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test', 'currency': 'CHF', 'logo': new URL( '/src/assets/logo.png', import.meta.url ).href }, 'test2':{ 'name': 'TestEvent2', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'TestDate', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test2', 'currency': 'CHF', 'logo': new URL( '/src/assets/logo.png', import.meta.url ).href } }
} }
} }
}; };

View File

@@ -20,7 +20,7 @@
<p>{{ event.description }}</p> <p>{{ event.description }}</p>
<b>{{ event.date }}</b> <b>{{ event.date }}</b>
</div> </div>
<img :src="require( '@/assets/' + event.logo )" alt="event logo" class="ticket-logo"> <img :src="event.logo" alt="event logo" class="ticket-logo">
</router-link> </router-link>
<router-link to="/admin/events/analytics" class="ticket" @click="setActiveTicket( event.eventID );" v-else="new Date( event.date ).getTime() > currentDate"> <router-link to="/admin/events/analytics" class="ticket" @click="setActiveTicket( event.eventID );" v-else="new Date( event.date ).getTime() > currentDate">
<div class="ticket-name"> <div class="ticket-name">
@@ -28,7 +28,7 @@
<p>{{ event.description }}</p> <p>{{ event.description }}</p>
<b>{{ event.date }}</b> <b>{{ event.date }}</b>
</div> </div>
<img :src="require( '@/assets/' + event.logo )" alt="event logo" class="ticket-logo"> <img :src="event.logo" alt="event logo" class="ticket-logo">
</router-link> </router-link>
</li> </li>
</ul> </ul>
@@ -100,7 +100,7 @@
}, },
data () { data () {
return { return {
events: { 'test':{ 'name': 'TestEvent', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'2023-07-15', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test', 'currency': 'CHF', 'logo': 'logo.png' }, 'test2':{ 'name': 'TestEvent2', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'2023-06-14', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test2', 'currency': 'CHF', 'logo': 'logo.png' } }, events: { 'test':{ 'name': 'TestEvent', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'2023-07-15', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test', 'currency': 'CHF', 'logo': new URL( '/src/assets/logo.png', import.meta.url ).href }, 'test2':{ 'name': 'TestEvent2', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'freeSeats': 2, 'maxSeats': 2, 'date':'2023-06-13', 'startingPrice':15, 'location': 'TestLocation', 'eventID': 'test2', 'currency': 'CHF', 'logo': new URL( '/src/assets/logo.png', import.meta.url ).href } },
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
eventList: { 'upcoming': { 'name': 'Upcoming', 'content': {} }, 'past': { 'name': 'Past', 'content': {} } }, eventList: { 'upcoming': { 'name': 'Upcoming', 'content': {} }, 'past': { 'name': 'Past', 'content': {} } },
} }