diff --git a/web/package.json b/web/package.json
index 3ac17cf..eb946c4 100644
--- a/web/package.json
+++ b/web/package.json
@@ -25,6 +25,7 @@
"utf8": "^3.0.0",
"vue": "^2.6.10",
"vue-debounce": "^2.2.0",
+ "vue-qrcode-component": "^2.1.1",
"vue-router": "^3.1.3",
"vuex": "^3.1.2",
"vuex-router-sync": "^5.0.0",
diff --git a/web/src/components/Navbar.vue b/web/src/components/Navbar.vue
index e3dc6c6..5e07a30 100644
--- a/web/src/components/Navbar.vue
+++ b/web/src/components/Navbar.vue
@@ -17,7 +17,7 @@
Items
-
+
Tickets
diff --git a/web/src/main.js b/web/src/main.js
index ff62b36..b76c69e 100644
--- a/web/src/main.js
+++ b/web/src/main.js
@@ -44,6 +44,10 @@ library.add(faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt, faSort, fa
faWindowClose, faCamera, faStop, faPen, faCheck, faTimes, faSave, faEye, faComment, faUser, faComments, faEnvelope);
Vue.component('font-awesome-icon', FontAwesomeIcon);
+import VueQRCodeComponent from 'vue-qrcode-component'
+
+Vue.component('qr-code', VueQRCodeComponent)
+
sync(store, router);
new Vue({
diff --git a/web/src/store/index.js b/web/src/store/index.js
index 9bc99f3..3ad6b1c 100644
--- a/web/src/store/index.js
+++ b/web/src/store/index.js
@@ -43,42 +43,8 @@ const store = new Vuex.Store({
loadedItems: [],
loadedBoxes: [],
toasts: [],
- tickets: [
- {
- id: 1,
- name: "test1",
- state: "open",
- assigned_to: "test",
- last_activity: "2019-12-27T12:00:00+01:00",
- timeline: [{name: "test1", time: "2019-12-27T12:00:00+01:00"}, {
- name: "test2",
- time: "2019-12-27T12:00:00+01:00"
- }]
- },
- {
- id: 2,
- name: "test2",
- state: "open",
- assigned_to: "test",
- last_activity: "2019-12-27T12:00:00+01:00",
- timeline: [{name: "test1", time: "2019-12-27T12:00:00+01:00"}, {
- name: "test2",
- time: "2019-12-27T12:00:00+01:00"
- }]
- },
- {
- id: 3,
- name: "test3",
- state: "open",
- assigned_to: "test",
- last_activity: "2019-12-27T12:00:00+01:00",
- timeline: [{name: "test1", time: "2019-12-27T12:00:00+01:00"}, {
- name: "test2",
- time: "2019-12-27T12:00:00+01:00"
- }]
- },
- ],
- userRoles: ['admin', 'postevent', 'orga', 'user'],
+ tickets: [],
+ userRoles: ['admin', 'team', 'orga', 'user'],
lastEvent: localStorage.getItem('lf_lastEvent') || '36C3',
lastUsed: localStorage.getItem('lf_lastUsed') || {},
},
diff --git a/web/src/views/admin/Debug.vue b/web/src/views/admin/Debug.vue
index 4c3960a..6178183 100644
--- a/web/src/views/admin/Debug.vue
+++ b/web/src/views/admin/Debug.vue
@@ -2,6 +2,7 @@
+
Events
@@ -57,7 +58,12 @@ import Events from "@/views/Events.vue";
export default {
name: 'Debug',
components: {Events, Table},
- computed: mapState(['events', 'loadedItems', 'loadedBoxes', 'mails', 'issues', 'systemEvents']),
+ computed: {
+ ...mapState(['events', 'loadedItems', 'loadedBoxes', 'mails', 'issues', 'systemEvents']),
+ qr_url() {
+ return window.location.href;
+ }
+ },
methods: {
...mapActions(['changeEvent', 'loadMails', 'loadIssues', 'loadSystemEvents']),
@@ -70,6 +76,8 @@ export default {
};
-
\ No newline at end of file