Simple timer for Budibase with event
- Svelte 41.8%
- TypeScript 30.4%
- JavaScript 27.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| lib | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .npmignore | ||
| .prettierrc.json | ||
| ATTRIBUTIONS.md | ||
| index.js | ||
| jest.config.cjs | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| rollup.config.js | ||
| schema.json | ||
| tsconfig.json | ||
Budibase Timer Plugin ⏳
This budibase plugin adds a timer component. Click the timer input, and type in a duration. Set an action to execute when the timer runs out.
Features
- Timer with intuitive input.
- Somewhat pleasant presentation and decent UX.
- Integration with events, so you can run an action when the timer expires
Note: this still does have a few wrinkles to work out, though they're more cosmetic than functional.
Description
This is a single input component that lets you input a duration for a timer, set an action to execute when the timer expires, and allows you to start, stop, and reset the timer.
Use cases
- A quiz app with timer, with an action that saves answers on timeout.
- That's all I can think of 😅
Instructions
This project uses the pnpm package manager. You will need to install that before continuing:
npm install -g pnpm
To set up the project and pull dependencies, run:
pnpm install
To build your new plugin run the following:
pnpm run build
You can also re-build everytime you make a change to your plugin with the command:
pnpm run watch
To run tests:
pnpm run test