pkjs: bootstrap

This commit is contained in:
He4eT 2025-11-25 11:02:27 +01:00
commit a62062add1
2 changed files with 36 additions and 0 deletions

31
src/pkjs/config.js Normal file
View 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
View file

@ -0,0 +1,5 @@
const Clay = require('pebble-clay');
const clayConfig = require('./config');
const clay = new Clay(clayConfig);
console.log(clay)