Skip to content

Commit d2f8494

Browse files
committed
Initial commit
0 parents  commit d2f8494

Some content is hidden

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

51 files changed

+3747
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*.{html, js, css,scss, json}]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
10+
insert_final_newline = true
11+
12+
[*.{md,markdown,mdown,markdn}]
13+
indent_size = 2
14+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
babel.config.js
2+
jest.config.js
3+
jest-setup-files-after-env.js

.eslintrc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"jest": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 2020,
10+
"sourceType": "module"
11+
},
12+
"rules": {
13+
"no-debugger": "warn",
14+
"no-dupe-keys": "warn",
15+
"no-dupe-args": "warn",
16+
"no-duplicate-case": "warn",
17+
"no-empty": "warn",
18+
"no-extra-semi": "warn",
19+
"no-func-assign": "warn",
20+
"no-obj-calls": "warn",
21+
"no-sparse-arrays": "warn",
22+
"no-unreachable": "warn",
23+
"valid-typeof": "warn",
24+
"no-multi-spaces": "warn",
25+
"no-with": "warn",
26+
"curly": "warn",
27+
"no-unused-expressions": "warn",
28+
"no-shadow-restricted-names": "warn",
29+
"no-undefined": "off",
30+
"camelcase": "warn",
31+
32+
"indent": ["warn", 2, {
33+
"MemberExpression": "off"
34+
}],
35+
36+
"array-bracket-spacing": ["warn", "never"],
37+
"comma-spacing": "warn",
38+
"comma-style": "warn",
39+
"computed-property-spacing": "warn",
40+
"func-call-spacing": "warn",
41+
"key-spacing": "warn",
42+
"keyword-spacing": "warn",
43+
"new-cap": "warn",
44+
"no-mixed-spaces-and-tabs": "warn",
45+
"one-var": ["warn", {
46+
"var": "never",
47+
"let": "never",
48+
"const": "never"
49+
}],
50+
"semi": "warn",
51+
"space-in-parens": ["warn", "never"],
52+
"space-before-blocks": "warn",
53+
"unicode-bom": "warn",
54+
"new-parens": "warn",
55+
"no-nested-ternary": "warn",
56+
"space-infix-ops": "warn",
57+
"space-unary-ops": ["warn", {
58+
"words": true,
59+
"nonwords": false
60+
}],
61+
62+
// ES2015
63+
"constructor-super": "warn",
64+
"no-this-before-super": "warn",
65+
"no-var": "warn"
66+
}
67+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
node_modules
3+
package-lock.json
4+
cypress/videos
5+
cypress/screenshots

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.md
2+
3+
package.json
4+
package-lock.json
5+
node_modules
6+
7+
.prettierrc

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"printWidth": 100,
4+
"trailingComma": "none",
5+
"singleQuote": true,
6+
"useTabs": false,
7+
"tabWidth": 2,
8+
"arrowParens": "avoid",
9+
"bracketSpacing": true
10+
}

babel.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', {
4+
targets: {
5+
browsers: '> 3%'
6+
// browsers: '> 3%, ie 11' // ie 11 transpiles classes
7+
}
8+
}]
9+
],
10+
plugins: [
11+
'@babel/plugin-proposal-class-properties',
12+
'@babel/plugin-syntax-dynamic-import'
13+
]
14+
};

cypress.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

cypress/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
root: true,
3+
plugins: ['eslint-plugin-cypress'],
4+
env: {'cypress/globals': true},
5+
};

cypress/fixtures/example.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Using fixtures to represent data",
3+
"email": "[email protected]",
4+
"body": "Fixtures are a great way to mock data for responses to routes"
5+
}

cypress/fixtures/profile.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": 8739,
3+
"name": "Jane",
4+
"email": "[email protected]"
5+
}

cypress/fixtures/users.json

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
[
2+
{
3+
"id": 1,
4+
"name": "Leanne Graham",
5+
"username": "Bret",
6+
"email": "[email protected]",
7+
"address": {
8+
"street": "Kulas Light",
9+
"suite": "Apt. 556",
10+
"city": "Gwenborough",
11+
"zipcode": "92998-3874",
12+
"geo": {
13+
"lat": "-37.3159",
14+
"lng": "81.1496"
15+
}
16+
},
17+
"phone": "1-770-736-8031 x56442",
18+
"website": "hildegard.org",
19+
"company": {
20+
"name": "Romaguera-Crona",
21+
"catchPhrase": "Multi-layered client-server neural-net",
22+
"bs": "harness real-time e-markets"
23+
}
24+
},
25+
{
26+
"id": 2,
27+
"name": "Ervin Howell",
28+
"username": "Antonette",
29+
"email": "[email protected]",
30+
"address": {
31+
"street": "Victor Plains",
32+
"suite": "Suite 879",
33+
"city": "Wisokyburgh",
34+
"zipcode": "90566-7771",
35+
"geo": {
36+
"lat": "-43.9509",
37+
"lng": "-34.4618"
38+
}
39+
},
40+
"phone": "010-692-6593 x09125",
41+
"website": "anastasia.net",
42+
"company": {
43+
"name": "Deckow-Crist",
44+
"catchPhrase": "Proactive didactic contingency",
45+
"bs": "synergize scalable supply-chains"
46+
}
47+
},
48+
{
49+
"id": 3,
50+
"name": "Clementine Bauch",
51+
"username": "Samantha",
52+
"email": "[email protected]",
53+
"address": {
54+
"street": "Douglas Extension",
55+
"suite": "Suite 847",
56+
"city": "McKenziehaven",
57+
"zipcode": "59590-4157",
58+
"geo": {
59+
"lat": "-68.6102",
60+
"lng": "-47.0653"
61+
}
62+
},
63+
"phone": "1-463-123-4447",
64+
"website": "ramiro.info",
65+
"company": {
66+
"name": "Romaguera-Jacobson",
67+
"catchPhrase": "Face to face bifurcated interface",
68+
"bs": "e-enable strategic applications"
69+
}
70+
},
71+
{
72+
"id": 4,
73+
"name": "Patricia Lebsack",
74+
"username": "Karianne",
75+
"email": "[email protected]",
76+
"address": {
77+
"street": "Hoeger Mall",
78+
"suite": "Apt. 692",
79+
"city": "South Elvis",
80+
"zipcode": "53919-4257",
81+
"geo": {
82+
"lat": "29.4572",
83+
"lng": "-164.2990"
84+
}
85+
},
86+
"phone": "493-170-9623 x156",
87+
"website": "kale.biz",
88+
"company": {
89+
"name": "Robel-Corkery",
90+
"catchPhrase": "Multi-tiered zero tolerance productivity",
91+
"bs": "transition cutting-edge web services"
92+
}
93+
},
94+
{
95+
"id": 5,
96+
"name": "Chelsey Dietrich",
97+
"username": "Kamren",
98+
"email": "[email protected]",
99+
"address": {
100+
"street": "Skiles Walks",
101+
"suite": "Suite 351",
102+
"city": "Roscoeview",
103+
"zipcode": "33263",
104+
"geo": {
105+
"lat": "-31.8129",
106+
"lng": "62.5342"
107+
}
108+
},
109+
"phone": "(254)954-1289",
110+
"website": "demarco.info",
111+
"company": {
112+
"name": "Keebler LLC",
113+
"catchPhrase": "User-centric fault-tolerant solution",
114+
"bs": "revolutionize end-to-end systems"
115+
}
116+
},
117+
{
118+
"id": 6,
119+
"name": "Mrs. Dennis Schulist",
120+
"username": "Leopoldo_Corkery",
121+
"email": "[email protected]",
122+
"address": {
123+
"street": "Norberto Crossing",
124+
"suite": "Apt. 950",
125+
"city": "South Christy",
126+
"zipcode": "23505-1337",
127+
"geo": {
128+
"lat": "-71.4197",
129+
"lng": "71.7478"
130+
}
131+
},
132+
"phone": "1-477-935-8478 x6430",
133+
"website": "ola.org",
134+
"company": {
135+
"name": "Considine-Lockman",
136+
"catchPhrase": "Synchronised bottom-line interface",
137+
"bs": "e-enable innovative applications"
138+
}
139+
},
140+
{
141+
"id": 7,
142+
"name": "Kurtis Weissnat",
143+
"username": "Elwyn.Skiles",
144+
"email": "[email protected]",
145+
"address": {
146+
"street": "Rex Trail",
147+
"suite": "Suite 280",
148+
"city": "Howemouth",
149+
"zipcode": "58804-1099",
150+
"geo": {
151+
"lat": "24.8918",
152+
"lng": "21.8984"
153+
}
154+
},
155+
"phone": "210.067.6132",
156+
"website": "elvis.io",
157+
"company": {
158+
"name": "Johns Group",
159+
"catchPhrase": "Configurable multimedia task-force",
160+
"bs": "generate enterprise e-tailers"
161+
}
162+
},
163+
{
164+
"id": 8,
165+
"name": "Nicholas Runolfsdottir V",
166+
"username": "Maxime_Nienow",
167+
"email": "[email protected]",
168+
"address": {
169+
"street": "Ellsworth Summit",
170+
"suite": "Suite 729",
171+
"city": "Aliyaview",
172+
"zipcode": "45169",
173+
"geo": {
174+
"lat": "-14.3990",
175+
"lng": "-120.7677"
176+
}
177+
},
178+
"phone": "586.493.6943 x140",
179+
"website": "jacynthe.com",
180+
"company": {
181+
"name": "Abernathy Group",
182+
"catchPhrase": "Implemented secondary concept",
183+
"bs": "e-enable extensible e-tailers"
184+
}
185+
},
186+
{
187+
"id": 9,
188+
"name": "Glenna Reichert",
189+
"username": "Delphine",
190+
"email": "[email protected]",
191+
"address": {
192+
"street": "Dayna Park",
193+
"suite": "Suite 449",
194+
"city": "Bartholomebury",
195+
"zipcode": "76495-3109",
196+
"geo": {
197+
"lat": "24.6463",
198+
"lng": "-168.8889"
199+
}
200+
},
201+
"phone": "(775)976-6794 x41206",
202+
"website": "conrad.com",
203+
"company": {
204+
"name": "Yost and Sons",
205+
"catchPhrase": "Switchable contextually-based project",
206+
"bs": "aggregate real-time technologies"
207+
}
208+
},
209+
{
210+
"id": 10,
211+
"name": "Clementina DuBuque",
212+
"username": "Moriah.Stanton",
213+
"email": "[email protected]",
214+
"address": {
215+
"street": "Kattie Turnpike",
216+
"suite": "Suite 198",
217+
"city": "Lebsackbury",
218+
"zipcode": "31428-2261",
219+
"geo": {
220+
"lat": "-38.2386",
221+
"lng": "57.2232"
222+
}
223+
},
224+
"phone": "024-648-3804",
225+
"website": "ambrose.net",
226+
"company": {
227+
"name": "Hoeger LLC",
228+
"catchPhrase": "Centralized empowering task-force",
229+
"bs": "target end-to-end models"
230+
}
231+
}
232+
]

cypress/integration/double-slider.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
describe('DoubleSlider', () => {
2+
beforeEach(() => {
3+
cy.visit('http://localhost:9000')
4+
});
5+
6+
it('should be rendered correctly', () => {
7+
cy.get('[data-elem="from"]')
8+
.click()
9+
.get('.rangepicker__selector')
10+
.should('be.visible')
11+
.get('[data-elem="from"]')
12+
.click()
13+
.get('.rangepicker__selector')
14+
.should('not.be.visible')
15+
});
16+
});

0 commit comments

Comments
 (0)