5.20.1 • Published 3 years ago

mojave v5.20.1

Weekly downloads
133
License
BSD-3-Clause
Repository
github
Last release
3 years ago

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

  1. import the SCSS via @import("~mojave/scss/overlay-loader/component") into your project

  2. add 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 */);
    }
  3. 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 install

Then run the kaba default task:

npx kaba

You need to run this task after every change in the library. You can also start a watcher to continuously build the library:

npx kaba -d

Now 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

  1. Make your changes in the library
  2. If you added a new file, update the bundle build in tests/build/all-tests.js
  3. Bundle the library via kaba
  4. Write your tests in tests/cases/
  5. Open the QUnit page in your browser and check whether all tests work correctly.
5.20.1

3 years ago

5.20.0

3 years ago

5.19.0

3 years ago

5.18.1

3 years ago

5.18.0

4 years ago

5.17.4

4 years ago

5.17.3

4 years ago

5.17.2

4 years ago

5.17.1

4 years ago

5.17.0

4 years ago

5.16.1

4 years ago

5.16.0

4 years ago

5.15.6

4 years ago

5.15.5

4 years ago

5.15.4

4 years ago

5.15.3

4 years ago

5.15.2

4 years ago

5.15.1

4 years ago

5.15.0

4 years ago

5.14.0

4 years ago

5.13.1

4 years ago

5.13.0

4 years ago

5.12.1

4 years ago

5.12.0

4 years ago

5.11.1

4 years ago

5.11.0

4 years ago

5.10.1

4 years ago

5.10.0

4 years ago

5.9.4

4 years ago

5.9.3

4 years ago

5.9.2

4 years ago

5.9.1

4 years ago

5.9.0

4 years ago

5.8.2

4 years ago

5.8.1

4 years ago

5.8.0

4 years ago

5.7.1

4 years ago

4.6.1

4 years ago

3.1.7

4 years ago

5.7.0

4 years ago

5.6.0

5 years ago

5.5.4

5 years ago

5.5.3

5 years ago

5.5.2

5 years ago

5.5.1

5 years ago

5.5.0

5 years ago

5.4.0

5 years ago

5.3.0

5 years ago

5.2.0

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.7.0

5 years ago

3.1.6

5 years ago

3.1.5

5 years ago

3.1.4

5 years ago

4.6.0

5 years ago

4.5.1

5 years ago

4.5.0

5 years ago

4.4.1

5 years ago

4.4.0

5 years ago

3.1.3

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

3.1.2

5 years ago

4.0.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.5.0

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.0.1-alpha.1

9 years ago