summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-05-06 15:13:58 +0200
committerJules Laplace <julescarbon@gmail.com>2020-05-06 15:13:58 +0200
commit0a1682688ed7ff2d81c0890b4e99f9ef92229ed7 (patch)
tree3b8ceb41b32177f494a4e8f6f750f0b2760a5dce /index.js
parent1f1948b48c64407ae5966a633cf4029189e83ec5 (diff)
adding modal fields
Diffstat (limited to 'index.js')
-rw-r--r--index.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/index.js b/index.js
index 9fb30988..9b8bdc03 100644
--- a/index.js
+++ b/index.js
@@ -64,6 +64,13 @@ var app = okcms.createApp({
FittingCodes: {type: 'text'},
BackgroundIsGray: {type: 'enum', options: ["true","false"] },
ClosedStoreImages: {type: 'captioned-image-list'},
+ // modal
+ showModal: {type: 'flag' },
+ modalTitle: {type: 'string'},
+ modalTaglineStyle: {type: 'enum', options: ["black","red","blue"] },
+ modalTaglinePosition: {type: 'enum', options: ["hidden","top","bottom"] },
+ modalContent: {type: 'text'},
+ modalTagline: {type: 'string'},
},
},
@@ -128,7 +135,9 @@ var app = okcms.createApp({
},
}
-}).listen(port)
+})
+app.listen(port)
+module.exports = app
console.log('Server listening at port ' + port + '...');