suterma / metronome-pwa

A simple metronome, as progressive web app
GNU General Public License v3.0
0 stars 0 forks source link

metronome-pwa

A simple metronome, as progressive web app. Available at https://tic.replayer.app

tic (metronome) main screen

Installation

You can use it right from the website, without any installation.

While visiting, you can then install it as a Progressive web application, for offline use within your browser:

Notes

Setup

This PWA was created with the minimal guide from How to create a new PWA-enabled VueJs app on Ubuntu 20.04 from scratch, using the following options:

Wake Lock API availablilty

Currently, the Screen Wake Lock API is not available on all browsers. There is an an abandoned, Non-standard, similar Wake Lock API by Mozilla, and the superseding Screen Wake Lock API.

In the hope to prevent screen locks, and while a better solution is available, the projects uses the NoSleep.js "Hack" by Rich Tibbett.

How to use Bulma in a Vue3 project (not using Buefy)

For a Vue3 project created with the Vue CLI (With the CSS Pre-processors not selected), mainly follow the guide at https://bulma.io/documentation/customize/with-node-sass/ (however using node-sass) with a few changes:

This will add the packages to the devDependencies in package.json

Then follow the steps from Number 3: https://bulma.io/documentation/customize/with-node-sass/#3-create-a-sass-file with the following adaptions

To run both the SASS autocompilation and npm's serve script, use two terminals. You can do that also from within VSCode.

Aligning the Buttons with controls

https://css-tricks.com/snippets/css/a-guide-to-flexbox/

Resources