diff --git a/src/webapp/src/views/admin/events/TicketEditorView.vue b/src/webapp/src/views/admin/events/TicketEditorView.vue index ca52932..146ee61 100644 --- a/src/webapp/src/views/admin/events/TicketEditorView.vue +++ b/src/webapp/src/views/admin/events/TicketEditorView.vue @@ -13,33 +13,33 @@ created() { setTimeout( () => { const domContainer = document.getElementById( 'editor' ); - console.log( domContainer ); const template = { basePdf: BLANK_PDF, schemas: [ { - a: { - type: 'text', - position: { x: 0, y: 0 }, - width: 10, - height: 10, - }, - b: { - type: 'text', - position: { x: 10, y: 10 }, - width: 10, - height: 10, - }, - c: { - type: 'text', - position: { x: 20, y: 20 }, - width: 10, - height: 10, - }, + locationAndTime: { + type: 'text', + position: { x: 0, y: 0 }, + width: 10, + height: 10, + }, + ticketName: { + type: 'text', + position: { x: 10, y: 10 }, + width: 10, + height: 10, + }, + ticketQRCode: { + type: 'qrcode', + position: { x: 20, y: 20 }, + width: 10, + height: 10, + }, }, ], } const designer = new Designer( { domContainer, template } ); + // designer.updateTemplate( ) -> Used to update the template AND base PDF }, 300 ); } } diff --git a/website/src/setup/installation.md b/website/src/setup/installation.md index ccf6a26..4d349f3 100644 --- a/website/src/setup/installation.md +++ b/website/src/setup/installation.md @@ -23,4 +23,9 @@ Generally MySQL, except: - If your organisation is small and does only sell a few tickets at a time, the JSON based database works perfectly fine. - Your web hosting plan does not includes MySQL and you've got no access to MySQL in any other way. *NOTE: Free MySQL services should NEVER be used in such an application, as most hosting plans include MySQL which is much more reliable and if you lose access to the database, you can only access the root account and all other data (and therefore all user accounts) is lost.* -MySQL generally is more difficult to set up, but we'll run you through the process here to make the process easier for you. If you chose the JSON based database, skip ahead to the next chapter. \ No newline at end of file +MySQL generally is more difficult to set up, but we'll run you through the process here to make the process easier for you. If you chose the JSON based database, skip ahead to the next chapter. + +# Uploading libreevent + +## npm install +This project relies on a variety of different node.js modules that need to be installed on the server. Most webhosting providers give you an easy way to run *npm install*. If not, you might be required to upload the *node_modules* folder yourself. You can create such a folder either by downloading the *node_modules.zip* folder from the GitHub releases page or by installing npm on your local machine and then by running *npm i* in the terminal. \ No newline at end of file