Skip to content

Commit

Permalink
Add hard-coded copy of index file as JS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Potherca committed May 24, 2024
1 parent 0e25690 commit 3208b1d
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
export default {
"componentCss": `
`,
"pageCss": `
`,
"headHtml": `
`,
"bodyHtml": `
`,
"footHtml": `
`,
"componentTemplates": `
<template id="dummy">
<button data-simply-command="sayHello">Say Hello</button>
</template>
`,
"pageTemplates": `
<template data-simply-template="hello">
<simply-render rel="dummy"></simply-render>
</template>
`,
"simplyRawApi": {

},
"simplyDataApi": {

},
"simplyApp": {
"actions": {
"sayHello" : function (subject) {
return new Promise(function (resolve, reject) {
resolve(`Hello ${subject}`)
})
}
},
"commands": {
"sayHello" : function (element) {
// @TODO: Subject should eventually come from the HTML element
const subject = 'World'
simplyApp.actions.sayHello(subject)
.then((message) => {
alert(message)
})
}
},
"routes": {
"/" : function (params) {
editor.pageData.page = 'hello'
}
}
},
"transformers": {

},
"sorters": {

},
"dataSources": undefined

}

0 comments on commit 3208b1d

Please sign in to comment.