Skip to content

Commit 1a64f42

Browse files
committed
chore(format): Add Prettier and pre-commit hook for formatting staged files
1 parent 1c02221 commit 1a64f42

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1807
-1134
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package.json
2+
dist

README.md

+15-13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![npm](https://img.shields.io/npm/dw/ngx-ui-loader.svg)](https://www.npmjs.com/package/ngx-ui-loader)
66
[![](https://data.jsdelivr.com/v1/package/npm/ngx-ui-loader/badge?style=rounded)](https://www.jsdelivr.com/package/npm/ngx-ui-loader)
77
[![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/ngx-ui-loader.svg)](https://bundlephobia.com/result?p=ngx-ui-loader)
8+
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
89
[![license](https://img.shields.io/npm/l/ngx-ui-loader.svg)](https://github.com/t-ho/ngx-ui-loader/wiki/License)
910

1011
# ngx-ui-loader
@@ -18,16 +19,17 @@ Available spinners:
1819
[![ngx-ui-loader-spinners](https://raw.githubusercontent.com/t-ho/ngx-ui-loader/master/src/assets/available-spinners.gif)](https://ngx-ui-loader.stackblitz.io/spinners)
1920

2021
## Features
21-
* Support **multiple loaders** (>= [email protected]). See [Multiple loaders](https://github.com/t-ho/ngx-ui-loader/wiki/Getting-started#24-multiple-loaders) for more details and [demo here](https://ngx-ui-loader.stackblitz.io/multiloader)
22-
* Show foreground loader with **progress bar**
23-
* The page content can be **blurred/frosted** while showing foreground loader. See [NgxUiLoaderBlurred](https://github.com/t-ho/ngx-ui-loader/wiki/NgxUiLoaderBlurred-directive) directive for more details
24-
* Show loader with different id for different tasks
25-
* Be able to add **logo** and **loading text**
26-
* Be able to change position of spinners, logo and loading text
27-
* Be able to change color and size of logo, spinners and progress bar
28-
* Be able to change the direction of progress bar
29-
* Automatically show loader for router events. See [NgxUiLoaderRouterModule](https://github.com/t-ho/ngx-ui-loader/wiki/Automatically-show-loader-for-router-events) for more details
30-
* Automatically show loader for http requests. See [NgxUiLoaderHttpModule](https://github.com/t-ho/ngx-ui-loader/wiki/Automatically-show-loader-for-Http-requests) for more details
22+
23+
- Support **multiple loaders** (>= [email protected]). See [Multiple loaders](https://github.com/t-ho/ngx-ui-loader/wiki/Getting-started#24-multiple-loaders) for more details and [demo here](https://ngx-ui-loader.stackblitz.io/multiloader)
24+
- Show foreground loader with **progress bar**
25+
- The page content can be **blurred/frosted** while showing foreground loader. See [NgxUiLoaderBlurred](https://github.com/t-ho/ngx-ui-loader/wiki/NgxUiLoaderBlurred-directive) directive for more details
26+
- Show loader with different id for different tasks
27+
- Be able to add **logo** and **loading text**
28+
- Be able to change position of spinners, logo and loading text
29+
- Be able to change color and size of logo, spinners and progress bar
30+
- Be able to change the direction of progress bar
31+
- Automatically show loader for router events. See [NgxUiLoaderRouterModule](https://github.com/t-ho/ngx-ui-loader/wiki/Automatically-show-loader-for-router-events) for more details
32+
- Automatically show loader for http requests. See [NgxUiLoaderHttpModule](https://github.com/t-ho/ngx-ui-loader/wiki/Automatically-show-loader-for-Http-requests) for more details
3133

3234
## The full documentation is available at the [wiki page](https://github.com/t-ho/ngx-ui-loader/wiki)
3335

@@ -55,14 +57,14 @@ $ npm install --save ngx-ui-loader
5557
$ yarn add ngx-ui-loader
5658
```
5759

58-
*Please read [wiki page](https://github.com/t-ho/ngx-ui-loader/wiki) for more instructions*
60+
_Please read [wiki page](https://github.com/t-ho/ngx-ui-loader/wiki) for more instructions_
5961

60-
### * For Angular 4 and 5, please use ngx-ui-loader version 1.2.x
62+
### \* For Angular 4 and 5, please use ngx-ui-loader version 1.2.x
6163

6264
```shell
6365
$ npm install --save [email protected]
6466
```
6567

66-
*The documentation for **v1.2.x** is available [here](https://github.com/t-ho/ngx-ui-loader/blob/v1.x.x/README.md)*
68+
_The documentation for **v1.2.x** is available [here](https://github.com/t-ho/ngx-ui-loader/blob/v1.x.x/README.md)_
6769

6870
### If you like `ngx-ui-loader`, please give it a :star:

e2e/src/app.e2e-spec.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ describe('workspace-project App', () => {
1515

1616
afterEach(async () => {
1717
// Assert that there are no errors emitted from the browser
18-
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19-
expect(logs).not.toContain(jasmine.objectContaining({
20-
level: logging.Level.SEVERE,
21-
} as logging.Entry));
18+
const logs = await browser
19+
.manage()
20+
.logs()
21+
.get(logging.Type.BROWSER);
22+
expect(logs).not.toContain(
23+
jasmine.objectContaining({
24+
level: logging.Level.SEVERE
25+
} as logging.Entry)
26+
);
2227
});
2328
});

0 commit comments

Comments
 (0)