basic dev setup done

This commit is contained in:
Keegan
2016-01-06 17:28:34 -08:00
parent d23eff9949
commit 58a1a3f498
9 changed files with 173 additions and 8 deletions
+77
View File
@@ -0,0 +1,77 @@
'use strict';
/* eslint-disable quotes */
module.exports = [
{
"type": "section",
"items": [
{
"type": "heading",
"id": "main-heading",
"value": "My Cool App"
},
{
"type": "footer",
"value": "By Keegan Lillo - <a href=\"http://lillo.me\">Lillo.me</a>"
}
]
},
{
"type": "section",
"items": [
{
"type": "subheading",
"value": "Settings"
},
{
"type": "block",
"items": [
{
"type": "input",
"app_key": "greeting",
"value": "Hello",
"label": "Greeting",
"attributes": {
"placeholder": "Enter a \"greeting\"",
"limit": 10,
"required": "required"
}
},
{
"type": "toggle",
"app_key": "like_stuff",
"label": "Enable Cool Stuff",
"value": true
},
{
"id": "flavor",
"type": "select",
"app_key": "flavor",
"value": "grape",
"label": "Favorite Flavor",
"options": [
{ "label": "Berry", "value": "berry" },
{ "label": "Grape", "value": "grape" },
{ "label": "Banana", "value": "banana" }
]
},
{
"type": "color",
"app_key": "background",
"value": "0xFF0000",
"label": "Background Color"
}
]
}
]
},
{
"type": "section",
"items": [
{
"type": "submit",
"value": "Save"
}
]
}
];
+5
View File
@@ -0,0 +1,5 @@
'use strict';
module.exports = function() {
console.debug('custom fn worked');
};
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Pebble Clay Development Page</title>
<link rel="stylesheet" href="../tmp/config-page.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
<body>
<form id="main-form"></form>
<script src="../tmp/dev.js"></script>
<script src="../tmp/config-page.js"></script>
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
'use strict';
window.returnTo = '$$RETURN_TO$$';
window.clayConfig = require('./config.js');
window.claySettings = {};
window.customFn = require('./custom-fn.js');