tweak docs, update ticket editor

This commit is contained in:
2023-06-19 08:44:19 +02:00
parent e3df40067c
commit b98fc4f37f
2 changed files with 25 additions and 20 deletions

View File

@@ -13,33 +13,33 @@
created() { created() {
setTimeout( () => { setTimeout( () => {
const domContainer = document.getElementById( 'editor' ); const domContainer = document.getElementById( 'editor' );
console.log( domContainer );
const template = { const template = {
basePdf: BLANK_PDF, basePdf: BLANK_PDF,
schemas: [ schemas: [
{ {
a: { locationAndTime: {
type: 'text', type: 'text',
position: { x: 0, y: 0 }, position: { x: 0, y: 0 },
width: 10, width: 10,
height: 10, height: 10,
}, },
b: { ticketName: {
type: 'text', type: 'text',
position: { x: 10, y: 10 }, position: { x: 10, y: 10 },
width: 10, width: 10,
height: 10, height: 10,
}, },
c: { ticketQRCode: {
type: 'text', type: 'qrcode',
position: { x: 20, y: 20 }, position: { x: 20, y: 20 },
width: 10, width: 10,
height: 10, height: 10,
}, },
}, },
], ],
} }
const designer = new Designer( { domContainer, template } ); const designer = new Designer( { domContainer, template } );
// designer.updateTemplate( ) -> Used to update the template AND base PDF
}, 300 ); }, 300 );
} }
} }

View File

@@ -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. - 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.* - 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. 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.