No description
Find a file
Djuri Baars 8332fec4a1
All checks were successful
WebUI CI / check-changes (push) Successful in 6s
WebUI CI / build (push) Successful in 5m53s
Add forgejo build workflow
2024-12-19 16:35:06 +01:00
.forgejo/workflows Add forgejo build workflow 2024-12-19 16:35:06 +01:00
.github/workflows Initial commit 2024-03-17 18:35:26 +01:00
.vscode Dependency updates and upgrades 2024-12-19 16:29:48 +01:00
patches Dependency updates and upgrades 2024-12-19 16:29:48 +01:00
src Dependency updates and upgrades 2024-12-19 16:29:48 +01:00
static Add favicon and logo 2024-03-19 01:34:21 +01:00
tests Initial commit 2024-03-17 18:35:26 +01:00
.eslintignore Initial commit 2024-03-17 18:35:26 +01:00
.eslintrc.cjs Initial commit 2024-03-17 18:35:26 +01:00
.gitignore Initial commit 2024-03-17 18:35:26 +01:00
.npmrc Initial commit 2024-03-17 18:35:26 +01:00
.prettierignore Initial commit 2024-03-17 18:35:26 +01:00
.prettierrc Initial commit 2024-03-17 18:35:26 +01:00
package.json Dependency updates and upgrades 2024-12-19 16:29:48 +01:00
playwright.config.ts Initial commit 2024-03-17 18:35:26 +01:00
README.md Initial commit 2024-03-17 18:35:26 +01:00
svelte.config.js Initial commit 2024-03-17 18:35:26 +01:00
tsconfig.json Initial commit 2024-03-17 18:35:26 +01:00
vite.config.ts Dependency updates and upgrades 2024-12-19 16:29:48 +01:00
yarn.lock Dependency updates and upgrades 2024-12-19 16:29:48 +01:00

BTClock WebUI

BTClock CI

The web user-interface for the OrangeBTClock, based on Svelte-kit and BTClock WebUI. It uses Bootstrap for the lay-out.

Developing

After installed dependencies with yarn, start a development server:

yarn dev

# or start the server and open the app in a new browser tab
yarn dev -- --open

Building

To create a production version of the WebUI:

yarn build

Make sure the postinstall script is ran, because otherwise the filenames are to long for the LittleFS filesystem.

Deploying

To upload the firmware to the OC, you need to GZIP all the files. You can use the python script gzip_build.py for that.

Then you can make a LittleFS.bin with mklittlefs:

mklittlefs -c build_gz -s 409600 littlefs.bin

You can preview the production build with yarn preview.