diff --git a/.wappler/project.json b/.wappler/project.json index e7642c6..1431db3 100644 --- a/.wappler/project.json +++ b/.wappler/project.json @@ -1,5 +1,5 @@ { - "projectName": "ERTFastFiller", + "projectName": "ErtFastFill", "styleFile": "/css/style.css", "assetsFolder": "/assets", "designFramework": "bootstrap5", diff --git a/.wappler/targets/Development/databases/dbCouch.json b/.wappler/targets/Development/databases/dbCouch.json index dde080e..931c3bc 100644 --- a/.wappler/targets/Development/databases/dbCouch.json +++ b/.wappler/targets/Development/databases/dbCouch.json @@ -3,7 +3,7 @@ "connection": { "host": "host.docker.internal", "port": 9913, - "user": "trainer", + "user": "training", "password": "sGynUdlM9cuLtUdc", "database": "db_training" }, @@ -13,16 +13,12 @@ "schema": { "partitioned": false, "tables": { - "da": { + "db_training": { "meta": [ { "name": "_id", "type": "objectId" }, - { - "name": "db_fullName", - "type": "text" - }, { "name": "db_licenseNumber", "type": "text" @@ -31,10 +27,6 @@ "name": "db_employeeID", "type": "text" }, - { - "name": "db_signatureData", - "type": "text" - }, { "name": "db_trainerSelected", "type": "text" @@ -43,60 +35,10 @@ "name": "db_stateName", "type": "text" }, - { - "name": "dummy1", - "type": "text", - "ui": { - "label": "dummy" - } - } - ] - }, - "ert": { - "meta": [ - { - "name": "_id", - "type": "objectId" - }, - { - "name": "docPDF", - "type": "text" - } - ], - "db_edits": { - "name": "daData" - } - }, - "driver": { - "meta": [ - { - "name": "_id", - "type": "objectId" - }, - { - "name": "db_fullName", - "type": "text" - }, - { - "name": "db_licenseNumber", - "type": "text" - }, - { - "name": "db_employeeID", - "type": "text" - }, { "name": "db_signatureData", "type": "text" }, - { - "name": "db_trainerSelected", - "type": "text" - }, - { - "name": "db_stateName", - "type": "text" - }, { "name": "dummy1", "type": "text" diff --git a/public/PDF/dummyFunctions.js b/public/PDF/dummyFunctions.js index d304f33..41c8cbb 100644 --- a/public/PDF/dummyFunctions.js +++ b/public/PDF/dummyFunctions.js @@ -9,6 +9,25 @@ function myFunction() { return myVar; } +/** + +// Just simple PouchDB calls to db.info and db.get to test fetch of a document + +function infoCouchDB() { + const db = new PouchDB('http://localhost:9913/db_training') + db.info().then(function (info) { + console.log(info) + }) + + db.get('da/1734165676725').then(function (doc) { + console.log(doc) + }) + +} + +*/ + + function runMyFunction() { // alert("function run") let result = generateRandomIdentifier(9); diff --git a/public/dmxAppConnect/dmxLazyLoad/dmxLazyLoad.js b/public/dmxAppConnect/dmxLazyLoad/dmxLazyLoad.js index 7124cd3..818b6e6 100644 --- a/public/dmxAppConnect/dmxLazyLoad/dmxLazyLoad.js +++ b/public/dmxAppConnect/dmxLazyLoad/dmxLazyLoad.js @@ -1,10 +1,10 @@ -dmx.Attribute('lazyload', 'mounted', function(node, attr) { - this.$addBinding(attr.value, function(value) { - node.classList.add('lazyload'); - }) -}); -dmx.Attribute('lazyload-dynamic', 'mounted', function(node, attr) { - this.$addBinding(attr.value, function(value) { - node.classList.add('lazyload'); - }) +dmx.Attribute('lazyload', 'mounted', function(node, attr) { + this.$addBinding(attr.value, function(value) { + node.classList.add('lazyload'); + }) +}); +dmx.Attribute('lazyload-dynamic', 'mounted', function(node, attr) { + this.$addBinding(attr.value, function(value) { + node.classList.add('lazyload'); + }) }); \ No newline at end of file diff --git a/views/success.ejs b/views/success.ejs index f815315..9f9fa9b 100644 --- a/views/success.ejs +++ b/views/success.ejs @@ -1,5 +1,6 @@ +
@@ -11,5 +12,8 @@ Return home
+
- \ No newline at end of file + + + \ No newline at end of file