Skip to content

Commit 7fedc30

Browse files
committed
chore: format all code with new prettier rules
1 parent 84a08b7 commit 7fedc30

File tree

94 files changed

+5969
-5355
lines changed

Some content is hidden

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

94 files changed

+5969
-5355
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
3-
}
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

CHANGELOG.md

Lines changed: 292 additions & 286 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# angular-split [![npm latest version](https://img.shields.io/npm/v/angular-split/latest.svg?style=flat-square)](https://www.npmjs.com/package/angular-split) [![NPM next version](https://img.shields.io/npm/v/angular-split/next.svg?style=flat-square)](https://www.npmjs.com/package/angular-split) [![Travis build](https://img.shields.io/travis/com/bertrandg/angular-split/master.svg?style=flat-square&label=Cypress+E2E+tests)](https://travis-ci.com/bertrandg/angular-split)
2-
Angular UI library to split views and allow dragging to resize areas using CSS flexbox layout.
3-
4-
Documentation and examples:
5-
[https://bertrandg.github.io/angular-split/](https://bertrandg.github.io/angular-split/)
6-
7-
### Credits
8-
Crossbrowser testing sponsored by [Browser Stack](https://www.browserstack.com)
9-
[<img src="https://camo.githubusercontent.com/a7b268f2785656ab3ca7b1cbb1633ee5affceb8f/68747470733a2f2f64677a6f7139623561736a67312e636c6f756466726f6e742e6e65742f70726f64756374696f6e2f696d616765732f6c61796f75742f6c6f676f2d6865616465722e706e67" alt="Browser Stack" height="31px" style="background: cornflowerblue;">](https://www.browserstack.com)
10-
11-
### License
12-
13-
Apache 2.0
1+
# angular-split [![npm latest version](https://img.shields.io/npm/v/angular-split/latest.svg?style=flat-square)](https://www.npmjs.com/package/angular-split) [![NPM next version](https://img.shields.io/npm/v/angular-split/next.svg?style=flat-square)](https://www.npmjs.com/package/angular-split) [![Travis build](https://img.shields.io/travis/com/bertrandg/angular-split/master.svg?style=flat-square&label=Cypress+E2E+tests)](https://travis-ci.com/bertrandg/angular-split)
2+
3+
Angular UI library to split views and allow dragging to resize areas using CSS flexbox layout.
4+
5+
Documentation and examples:
6+
[https://bertrandg.github.io/angular-split/](https://bertrandg.github.io/angular-split/)
7+
8+
### Credits
9+
10+
Crossbrowser testing sponsored by [Browser Stack](https://www.browserstack.com)
11+
[<img src="https://camo.githubusercontent.com/a7b268f2785656ab3ca7b1cbb1633ee5affceb8f/68747470733a2f2f64677a6f7139623561736a67312e636c6f756466726f6e742e6e65742f70726f64756374696f6e2f696d616765732f6c61796f75742f6c6f676f2d6865616465722e706e67" alt="Browser Stack" height="31px" style="background: cornflowerblue;">](https://www.browserstack.com)
12+
13+
### License
14+
15+
Apache 2.0

angular.json

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,8 @@
2222
"main": "src_app/main.ts",
2323
"polyfills": "src_app/polyfills.ts",
2424
"tsConfig": "src_app/tsconfig.app.json",
25-
"assets": [
26-
"src_app/favicon.ico",
27-
"src_app/assets"
28-
],
29-
"styles": [
30-
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
31-
"src_app/styles.scss"
32-
],
25+
"assets": ["src_app/favicon.ico", "src_app/assets"],
26+
"styles": ["./node_modules/bootstrap/dist/css/bootstrap.min.css", "src_app/styles.scss"],
3327
"scripts": []
3428
},
3529
"configurations": {
@@ -91,13 +85,8 @@
9185
"main": "src_lazy_app/main.ts",
9286
"polyfills": "src_lazy_app/polyfills.ts",
9387
"tsConfig": "src_lazy_app/tsconfig.app.json",
94-
"assets": [
95-
"src_lazy_app/favicon.ico",
96-
"src_lazy_app/assets"
97-
],
98-
"styles": [
99-
"src_lazy_app/styles.scss"
100-
],
88+
"assets": ["src_lazy_app/favicon.ico", "src_lazy_app/assets"],
89+
"styles": ["src_lazy_app/styles.scss"],
10190
"scripts": []
10291
},
10392
"configurations": {
@@ -159,13 +148,8 @@
159148
"main": "src_lazy_app2/main.ts",
160149
"polyfills": "src_lazy_app2/polyfills.ts",
161150
"tsConfig": "src_lazy_app2/tsconfig.app.json",
162-
"assets": [
163-
"src_lazy_app2/favicon.ico",
164-
"src_lazy_app2/assets"
165-
],
166-
"styles": [
167-
"src_lazy_app2/styles.scss"
168-
],
151+
"assets": ["src_lazy_app2/favicon.ico", "src_lazy_app2/assets"],
152+
"styles": ["src_lazy_app2/styles.scss"],
169153
"scripts": []
170154
},
171155
"configurations": {
@@ -225,4 +209,4 @@
225209
}
226210
},
227211
"defaultProject": "angular-split-app"
228-
}
212+
}

cypress.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{
2-
"baseUrl": "http://localhost:4242",
3-
"viewportWidth": 1200,
4-
"viewportHeight": 800,
5-
"blacklistHosts": ["camo.githubusercontent.com"]
6-
}
1+
{
2+
"baseUrl": "http://localhost:4242",
3+
"viewportWidth": 1200,
4+
"viewportHeight": 800,
5+
"blacklistHosts": ["camo.githubusercontent.com"]
6+
}

cypress/fixtures/example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"name": "Using fixtures to represent data",
33
"email": "[email protected]",
44
"body": "Fixtures are a great way to mock data for responses to routes"
5-
}
5+
}
Lines changed: 78 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,78 @@
1-
/// <reference types="Cypress" />
2-
3-
import { moveGutter, checkSplitDirAndSizes } from '../support/splitUtils'
4-
5-
6-
context('Simple split example page tests', () => {
7-
const W = 1070;
8-
const H = 300;
9-
const GUTTER = 11;
10-
11-
beforeEach(() => {
12-
cy.visit('/#/examples/simple-split')
13-
})
14-
15-
it('Display initial state', () => {
16-
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [317.6875, 741.296875]);
17-
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [120, 768, 160]);
18-
})
19-
20-
it('Change direction', () => {
21-
cy.get('.btns > .btn').click();
22-
23-
checkSplitDirAndSizes('.ex-percent > as-split', 'vertical', W, H, GUTTER, [86.6875, 202.296875]);
24-
checkSplitDirAndSizes('.ex-pixel > as-split', 'vertical', W, H, GUTTER, [120, 0, 160]);
25-
})
26-
27-
it('Move gutter horizontally', () => {
28-
moveGutter('.ex-percent .as-split-gutter', 0, 280, 0);
29-
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [597.703125, 461.28125]);
30-
31-
moveGutter('.ex-pixel .as-split-gutter', 0, 280, 0);
32-
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [400, 488, 160]);
33-
})
34-
35-
it('Change direction & move gutter vertically', () => {
36-
cy.get('.btns > .btn').click();
37-
38-
moveGutter('.ex-percent .as-split-gutter', 0, 0, 60);
39-
checkSplitDirAndSizes('.ex-percent > as-split', 'vertical', W, H, GUTTER, [146.6875, 142.296875]);
40-
41-
moveGutter('.ex-pixel .as-split-gutter', 0, 0, 60);
42-
checkSplitDirAndSizes('.ex-pixel > as-split', 'vertical', W, H, GUTTER, [180, 0, 100]);
43-
})
44-
45-
it('Move gutter horizontally and move it back', () => {
46-
moveGutter('.ex-percent .as-split-gutter', 0, 280, 0);
47-
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [597.703125, 461.28125]);
48-
49-
moveGutter('.ex-percent .as-split-gutter', 0, -280, 0);
50-
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [317.71875, 741.265625]);
51-
52-
moveGutter('.ex-pixel .as-split-gutter', 0, 280, 0);
53-
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [400, 488, 160]);
54-
55-
moveGutter('.ex-pixel .as-split-gutter', 0, -280, 0);
56-
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [120, 768, 160]);
57-
})
58-
59-
it('Move gutter horizontally to max, change direction', () => {
60-
moveGutter('.ex-percent .as-split-gutter', 0, -1000, 0);
61-
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [0, 1059]);
62-
63-
moveGutter('.ex-pixel .as-split-gutter', 0, -1000, 0);
64-
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [0, 888, 160]);
65-
66-
cy.get('.btns > .btn').click();
67-
68-
checkSplitDirAndSizes('.ex-percent > as-split', 'vertical', W, H, GUTTER, [0, 289]);
69-
moveGutter('.ex-percent .as-split-gutter', 0, 0, 1000);
70-
71-
checkSplitDirAndSizes('.ex-pixel > as-split', 'vertical', W, H, GUTTER, [0, 118, 160]);
72-
moveGutter('.ex-pixel .as-split-gutter', 0, 0, 1000);
73-
74-
cy.get('.btns > .btn').click();
75-
76-
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [1059, 0]);
77-
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [278, 770, 0]);
78-
})
79-
})
1+
/// <reference types="Cypress" />
2+
3+
import { moveGutter, checkSplitDirAndSizes } from '../support/splitUtils'
4+
5+
context('Simple split example page tests', () => {
6+
const W = 1070
7+
const H = 300
8+
const GUTTER = 11
9+
10+
beforeEach(() => {
11+
cy.visit('/#/examples/simple-split')
12+
})
13+
14+
it('Display initial state', () => {
15+
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [317.6875, 741.296875])
16+
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [120, 768, 160])
17+
})
18+
19+
it('Change direction', () => {
20+
cy.get('.btns > .btn').click()
21+
22+
checkSplitDirAndSizes('.ex-percent > as-split', 'vertical', W, H, GUTTER, [86.6875, 202.296875])
23+
checkSplitDirAndSizes('.ex-pixel > as-split', 'vertical', W, H, GUTTER, [120, 0, 160])
24+
})
25+
26+
it('Move gutter horizontally', () => {
27+
moveGutter('.ex-percent .as-split-gutter', 0, 280, 0)
28+
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [597.703125, 461.28125])
29+
30+
moveGutter('.ex-pixel .as-split-gutter', 0, 280, 0)
31+
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [400, 488, 160])
32+
})
33+
34+
it('Change direction & move gutter vertically', () => {
35+
cy.get('.btns > .btn').click()
36+
37+
moveGutter('.ex-percent .as-split-gutter', 0, 0, 60)
38+
checkSplitDirAndSizes('.ex-percent > as-split', 'vertical', W, H, GUTTER, [146.6875, 142.296875])
39+
40+
moveGutter('.ex-pixel .as-split-gutter', 0, 0, 60)
41+
checkSplitDirAndSizes('.ex-pixel > as-split', 'vertical', W, H, GUTTER, [180, 0, 100])
42+
})
43+
44+
it('Move gutter horizontally and move it back', () => {
45+
moveGutter('.ex-percent .as-split-gutter', 0, 280, 0)
46+
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [597.703125, 461.28125])
47+
48+
moveGutter('.ex-percent .as-split-gutter', 0, -280, 0)
49+
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [317.71875, 741.265625])
50+
51+
moveGutter('.ex-pixel .as-split-gutter', 0, 280, 0)
52+
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [400, 488, 160])
53+
54+
moveGutter('.ex-pixel .as-split-gutter', 0, -280, 0)
55+
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [120, 768, 160])
56+
})
57+
58+
it('Move gutter horizontally to max, change direction', () => {
59+
moveGutter('.ex-percent .as-split-gutter', 0, -1000, 0)
60+
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [0, 1059])
61+
62+
moveGutter('.ex-pixel .as-split-gutter', 0, -1000, 0)
63+
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [0, 888, 160])
64+
65+
cy.get('.btns > .btn').click()
66+
67+
checkSplitDirAndSizes('.ex-percent > as-split', 'vertical', W, H, GUTTER, [0, 289])
68+
moveGutter('.ex-percent .as-split-gutter', 0, 0, 1000)
69+
70+
checkSplitDirAndSizes('.ex-pixel > as-split', 'vertical', W, H, GUTTER, [0, 118, 160])
71+
moveGutter('.ex-pixel .as-split-gutter', 0, 0, 1000)
72+
73+
cy.get('.btns > .btn').click()
74+
75+
checkSplitDirAndSizes('.ex-percent > as-split', 'horizontal', W, H, GUTTER, [1059, 0])
76+
checkSplitDirAndSizes('.ex-pixel > as-split', 'horizontal', W, H, GUTTER, [278, 770, 0])
77+
})
78+
})

0 commit comments

Comments
 (0)