• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

divio / django-cms / #29546

24 Nov 2022 11:39AM UTC coverage: 77.399%. Remained the same
#29546

push

travis-ci

web-flow
build: bump loader-utils from 1.4.0 to 1.4.2 (#7435)

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fabian Braun <fsbraun@gmx.de>

1074 of 1547 branches covered (69.42%)

2565 of 3314 relevant lines covered (77.4%)

33.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/cms/static/cms/js/modules/loader.js
1
import Nprogress from 'nprogress';
2
import { debounce } from 'lodash';
3

4
Nprogress.configure({
1✔
5
    showSpinner: false,
6
    parent: '#cms-top',
7
    trickleSpeed: 200,
8
    minimum: 0.3,
9
    template: `
10
        <div class="cms-loading-bar" role="bar">
11
            <div class="cms-loading-peg"></div>
12
        </div>
13
    `
14
});
15

16
/**
17
 * Shows the loader spinner on the trigger knob for the toolbar.
18
 *
19
 * @method showLoader
20
 */
21
// instanbul ignore next
22
export const showLoader = debounce(() => {
1✔
23
    // due to this being animated loader we don't want things that show and hide loader
24
    // in one frame to actually show it, for example when setSettings is called in a browser
25
    // that supports localStorage. (it happens every time you click on a plugin for example)
26
    // we want to debounce the call and cancel it if it's in the same frame
27
    Nprogress.start();
×
28
}, 0);
29

30
/**
31
 * Hides the loader spinner on the trigger knob for the toolbar.
32
 *
33
 * @method hideLoader
34
 */
35
// instanbul ignore next
36
export const hideLoader = () => {
1✔
37
    showLoader.cancel();
2✔
38
    Nprogress.done();
2✔
39
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc