mirror of
https://github.com/He4eT/dice.git
synced 2026-05-04 17:37:25 +00:00
pkjs: bootstrap
This commit is contained in:
parent
ff18f5123b
commit
a62062add1
2 changed files with 36 additions and 0 deletions
31
src/pkjs/config.js
Normal file
31
src/pkjs/config.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
module.exports = [
|
||||
{
|
||||
"type": "text",
|
||||
"defaultValue": "Press your watch’s right side button to instantly roll a random number from 1 to N."
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"items": [
|
||||
{
|
||||
"type": "heading",
|
||||
"defaultValue": "Dice Settings"
|
||||
},
|
||||
{
|
||||
"messageKey": "UPPER_BOUND",
|
||||
"type": "slider",
|
||||
"label": "N",
|
||||
"defaultValue": 6,
|
||||
"step": 1,
|
||||
"min": 1,
|
||||
"max": 999999,
|
||||
"attributes": {
|
||||
"style": "display: none;"
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "submit",
|
||||
"defaultValue": "Save Settings"
|
||||
}
|
||||
];
|
||||
5
src/pkjs/index.js
Normal file
5
src/pkjs/index.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const Clay = require('pebble-clay');
|
||||
const clayConfig = require('./config');
|
||||
const clay = new Clay(clayConfig);
|
||||
|
||||
console.log(clay)
|
||||
Loading…
Add table
Add a link
Reference in a new issue