diff --git a/app/eventyay/plugins/webcheckin/static/pretixplugins/webcheckin/components/searchresult-item.vue b/app/eventyay/plugins/webcheckin/static/pretixplugins/webcheckin/components/searchresult-item.vue index d05ad6f55c..82acd1fc54 100644 --- a/app/eventyay/plugins/webcheckin/static/pretixplugins/webcheckin/components/searchresult-item.vue +++ b/app/eventyay/plugins/webcheckin/static/pretixplugins/webcheckin/components/searchresult-item.vue @@ -2,7 +2,7 @@

{{ position.order }}-{{ position.positionid }} {{ position.attendee_name }}

- {{ itemvar }}
+ {{ productvar }}
{{ subevent }}
{{ position.secret }}
@@ -23,11 +23,11 @@ export default { if (this.position.checkins.length) return 'redeemed'; return this.position.order__status }, - itemvar() { + productvar() { if (this.position.variation) { - return `${i18nstring_localize(this.position.item.name)} – ${i18nstring_localize(this.position.variation.value)}` + return `${i18nstring_localize(this.position.product.name)} – ${i18nstring_localize(this.position.variation.value)}` } - return i18nstring_localize(this.position.item.name) + return i18nstring_localize(this.position.product.name) }, subevent() { if (!this.position.subevent) return '' diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/app.vue b/app/eventyay/static/pretixplugins/webcheckin/components/app.vue deleted file mode 100644 index 93a1c17d99..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/app.vue +++ /dev/null @@ -1,517 +0,0 @@ - - diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-item.vue b/app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-item.vue deleted file mode 100644 index ac408d3ad1..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-item.vue +++ /dev/null @@ -1,28 +0,0 @@ - - diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-select.vue b/app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-select.vue deleted file mode 100644 index 7f7315a356..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-select.vue +++ /dev/null @@ -1,101 +0,0 @@ - - diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/datefield.vue b/app/eventyay/static/pretixplugins/webcheckin/components/datefield.vue deleted file mode 100644 index 260e906793..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/datefield.vue +++ /dev/null @@ -1,54 +0,0 @@ - - \ No newline at end of file diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/datetimefield.vue b/app/eventyay/static/pretixplugins/webcheckin/components/datetimefield.vue deleted file mode 100644 index 5db993a86c..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/datetimefield.vue +++ /dev/null @@ -1,55 +0,0 @@ - - \ No newline at end of file diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/searchresult-item.vue b/app/eventyay/static/pretixplugins/webcheckin/components/searchresult-item.vue deleted file mode 100644 index 82acd1fc54..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/searchresult-item.vue +++ /dev/null @@ -1,46 +0,0 @@ - - diff --git a/app/eventyay/static/pretixplugins/webcheckin/components/timefield.vue b/app/eventyay/static/pretixplugins/webcheckin/components/timefield.vue deleted file mode 100644 index f6846ace5e..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/components/timefield.vue +++ /dev/null @@ -1,54 +0,0 @@ - - \ No newline at end of file diff --git a/app/eventyay/static/pretixplugins/webcheckin/main.js b/app/eventyay/static/pretixplugins/webcheckin/main.js deleted file mode 100644 index 9bf805b7d1..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/main.js +++ /dev/null @@ -1,71 +0,0 @@ -/*global gettext, Vue, App*/ -function gettext(msgid) { - if (typeof django !== 'undefined' && typeof django.gettext !== 'undefined') { - return django.gettext(msgid); - } - return msgid; -} - -function ngettext(singular, plural, count) { - if (typeof django !== 'undefined' && typeof django.ngettext !== 'undefined') { - return django.ngettext(singular, plural, count); - } - return plural; -} - - -moment.locale(document.body.attributes['data-datetimelocale'].value) -window.vapp = new Vue({ - components: { - App: App.default - }, - render: function (h) { - return h('App') - }, - data: { - api: { - lists: document.querySelector('#app').attributes['data-api-lists'].value, - }, - strings: { - 'checkinlist.select': gettext('Select a check-in list'), - 'checkinlist.none': gettext('No active check-in lists found.'), - 'checkinlist.switch': gettext('Switch check-in list'), - 'results.headline': gettext('Search results'), - 'results.none': gettext('No tickets found'), - 'check.headline': gettext('Check-in result'), - 'check.attention': gettext('This ticket requires special attention'), - 'scantype.switch': gettext('Switch direction'), - 'scantype.entry': gettext('Entry'), - 'scantype.exit': gettext('Exit'), - 'input.placeholder': gettext('Scan a ticket or search and press return…'), - 'pagination.next': gettext('Load more'), - 'status.p': gettext('Valid'), - 'status.n': gettext('Unpaid'), - 'status.c': gettext('Canceled'), - 'status.e': gettext('Canceled'), - 'status.redeemed': gettext('Redeemed'), - 'modal.cancel': gettext('Cancel'), - 'modal.continue': gettext('Continue'), - 'modal.unpaid.head': gettext('Ticket not paid'), - 'modal.unpaid.text': gettext('This ticket is not yet paid. Do you want to continue anyways?'), - 'modal.questions': gettext('Additional information required'), - 'result.ok': gettext('Valid ticket'), - 'result.exit': gettext('Exit recorded'), - 'result.already_redeemed': gettext('Ticket already used'), - 'result.questions': gettext('Information required'), - 'result.invalid': gettext('Invalid ticket'), - 'result.product': gettext('Invalid product'), - 'result.unpaid': gettext('Ticket not paid'), - 'result.rules': gettext('Entry not allowed'), - 'result.revoked': gettext('Ticket code revoked/changed'), - 'result.canceled': gettext('Order canceled'), - 'status.checkin': gettext('Checked-in Tickets'), - 'status.position': gettext('Valid Tickets'), - 'status.inside': gettext('Currently inside'), - }, - event_name: document.querySelector('#app').attributes['data-event-name'].value, - timezone: document.body.attributes['data-timezone'].value, - datetime_format: document.body.attributes['data-datetimeformat'].value, - }, - el: '#app' -}) diff --git a/app/eventyay/static/pretixplugins/webcheckin/scss/main.scss b/app/eventyay/static/pretixplugins/webcheckin/scss/main.scss deleted file mode 100644 index 2c5c1bb1eb..0000000000 --- a/app/eventyay/static/pretixplugins/webcheckin/scss/main.scss +++ /dev/null @@ -1,153 +0,0 @@ -@import "pretixbase/scss/_variables.scss"; -@import "bootstrap/scss/_bootstrap.scss"; -@import "pretixbase/scss/_theme.scss"; -@import "fontawesome/scss/font-awesome.scss"; -@import "datetimepicker/_bootstrap-datetimepicker.scss"; - -body { - background: #FBF7FC; -} - -.container { - padding-top: 20px; - padding-bottom: 20px; -} - -.loading-icon { - color: $brand-primary; - -webkit-animation: fa-spin 8s infinite linear; - animation: fa-spin 8s infinite linear; -} - -.meta { - padding: 20px; - text-align: center; - .settings { - font-size: 32px; - } - color: $text-muted; - .fa-sign-out { - color: $brand-warning; - } - - .status { - padding-top: 20px; - color: $text-muted; - .statistic { - display: block; - font-size: 30px; - } - } -} - -.scan-input { - margin-bottom: 20px; -} - -a.searchresult { - display: flex; - flex-direction: row; - min-height: 96px; - padding: 0; - color: $text-color; - - &:focus { - background: $gray-lightest; - } - - h4 { - margin: 0 0 5px; - } - - .details { - flex: auto 1 1; - padding: 10px; - } - - .status { - flex: 128px 0 0; - font-weight: bold; - color: white; - text-align: center; - display: flex; - justify-content: center; - align-items: center; - font-size: 140%; - - &.status-p { - background: $brand-success; - } - &.status-c, &.status-e, &.status-n { - background: $brand-danger; - } - &.status-redeemed { - background: $brand-warning; - } - } - - .secret { - word-break: break-word; - color: $text-muted; - } -} - -.check-result-status { - height: 30vh; - max-height: 200px; - font-size: 35px; - text-transform: uppercase; - font-weight: bold; - text-align: center; - display: flex; - align-items: center; - justify-content: center; - color: white; - - &.check-result-red { - background: $brand-danger; - } - &.check-result-green { - background: $brand-success; - } - &.check-result-orange { - background: $brand-warning; - } - &.check-result-purple { - background: $brand-primary; - } -} - -.attention { - padding: 10px; - text-align: center; - animation: blinking 1s infinite; - font-weight: bold; - font-size: 16px; -} - -.modal { - background: rgba(0, 0, 0, 0.7); -} -.modal.fade.in { - display: block; - overflow: auto; -} - -@-webkit-keyframes blinking { - 0%, 49% { - background-color: $brand-primary; - color: white; - } - 50%, 100% { - background-color: $brand-warning; - color: $brand-primary; - } -} - -.panel-primary .panel-heading a { - color: white; -} - -.modal-footer .btn-primary.pull-right { - margin-left: 10px; -} \ No newline at end of file