mojave v5.20.1
mojave
A library of commonly used JavaScript tools and helpers by Becklyn Studios.
UI Components
Overlay Loader
A global loader, that adds an overlay to your app until the loading is finished.
Usage
import the SCSS via
@import("~mojave/scss/overlay-loader/component")into your projectadd the positioning SCSS into your default theme:
@import "~mojave/scss/overlay-loader/positioning"; .my-app { @include position-overlay-loader(10 /* <- this is the z-index */); }Use the JS component:
import {OverlayLoader} from "mojave/ui/OverlayLoader"; export class FrontendLoader extends OverlayLoader { public constructor () { super(`<div class="loader-icon">My SVG</div>`); } }
Contributing / Development
To run the tests, first install all dependencies:
npm installThen run the kaba default task:
npx kabaYou need to run this task after every change in the library. You can also start a watcher to continuously build the library:
npx kaba -dNow open the file in tests/index.html in a web browser.
Test case files
Place all test case files under tests/cases/ as regular .js files.
The tests files are built using tests/build/all-tests.js, so if you add a new test case file, you must add an import there.
This build is compiled using kaba, so you can use regular modern JS.
Working on the project
- Make your changes in the library
- If you added a new file, update the bundle build in
tests/build/all-tests.js - Bundle the library via
kaba - Write your tests in
tests/cases/ - Open the QUnit page in your browser and check whether all tests work correctly.
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
10 years ago