Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit 34d56c9

Browse files
authored
Develop (#18)
Develop > Master
1 parent 0fd75c1 commit 34d56c9

25 files changed

+1917
-1594
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"env": {
33
"client": {
44
"presets": [
5-
["es2015", {"modules": false}],
65
"stage-2",
76
"react",
87
["env", {
8+
"modules": false,
99
"targets": {
1010
"browsers": [
1111
"last 2 versions"

.stylelintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"rules": {
77
"indentation": 4,
88
"color-hex-length": "long",
9-
"order/properties-alphabetical-order": true
9+
"order/properties-alphabetical-order": true,
10+
"at-rule-no-unknown": null
1011
}
1112
}

package.json

+49-52
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"repository": {
3535
"type": "git",
36-
"url": "https://github.com/codeBelt/hapi-react-hot-loader-example"
36+
"url": "https://github.com/codeBelt/typescript-hapi-react-hot-loader-example"
3737
},
3838
"keywords": [
3939
"hapi",
@@ -51,89 +51,86 @@
5151
"license": "MIT",
5252
"devDependencies": {
5353
"@types/classnames": "2.2.3",
54-
"@types/fs-extra": "4.0.5",
55-
"@types/hapi": "16.1.11",
54+
"@types/fs-extra": "5.0.1",
55+
"@types/hapi": "17.0.5",
5656
"@types/history": "4.6.2",
57-
"@types/inert": "4.2.4",
58-
"@types/node": "8.0.53",
57+
"@types/inert": "5.1.0",
58+
"@types/node": "9.4.7",
5959
"@types/node-notifier": "0.0.28",
60-
"@types/react": "16.0.25",
61-
"@types/react-dom": "16.0.3",
62-
"@types/react-hot-loader": "3.0.5",
63-
"@types/react-redux": "5.0.13",
64-
"@types/react-router": "4.0.18",
65-
"@types/react-router-dom": "4.2.2",
66-
"@types/react-router-redux": "5.0.10",
67-
"@types/redux-form": "7.0.9",
60+
"@types/react": "16.0.40",
61+
"@types/react-dom": "16.0.4",
62+
"@types/react-hot-loader": "3.0.6",
63+
"@types/react-redux": "5.0.15",
64+
"@types/react-router": "4.0.22",
65+
"@types/react-router-dom": "4.2.4",
66+
"@types/react-router-redux": "5.0.12",
67+
"@types/redux-form": "7.2.2",
6868
"@types/serialize-javascript": "1.3.2",
69-
"@types/webpack": "3.8.1",
70-
"@types/webpack-env": "1.13.2",
71-
"awesome-typescript-loader": "3.4.0",
69+
"@types/webpack": "3.8.10",
70+
"@types/webpack-env": "1.13.5",
71+
"awesome-typescript-loader": "4.0.1",
7272
"babel-cli": "6.26.0",
7373
"babel-core": "6.26.0",
74-
"babel-loader": "7.1.2",
74+
"babel-loader": "7.1.4",
7575
"babel-plugin-system-import-transformer": "3.1.0",
7676
"babel-plugin-transform-class-properties": "6.24.1",
7777
"babel-plugin-transform-object-rest-spread": "6.26.0",
7878
"babel-preset-env": "1.6.1",
79-
"babel-preset-es2015": "6.24.1",
8079
"babel-preset-react": "6.24.1",
8180
"babel-preset-stage-2": "6.24.1",
8281
"babel-watch": "2.0.7",
8382
"concurrently": "3.5.1",
84-
"copy-webpack-plugin": "4.2.3",
85-
"cross-env": "5.1.1",
86-
"css-hot-loader": "1.3.4",
87-
"css-loader": "0.28.7",
83+
"copy-webpack-plugin": "4.5.1",
84+
"cross-env": "5.1.4",
85+
"css-hot-loader": "1.3.8",
86+
"css-loader": "0.28.10",
8887
"extract-text-webpack-plugin": "3.0.2",
89-
"html-webpack-harddisk-plugin": "0.1.0",
90-
"html-webpack-plugin": "2.30.1",
91-
"nodemon": "1.12.1",
92-
"postcss-apply": "0.8.0",
93-
"postcss-cssnext": "3.0.2",
94-
"postcss-import": "11.0.0",
95-
"postcss-loader": "2.0.9",
88+
"html-webpack-harddisk-plugin": "0.2.0",
89+
"html-webpack-plugin": "3.0.6",
90+
"node-sass": "4.8.1",
91+
"nodemon": "1.17.1",
9692
"rimraf": "2.6.2",
97-
"robotstxt-webpack-plugin": "4.0.0",
98-
"style-loader": "0.19.0",
99-
"stylelint": "8.3.0",
100-
"stylelint-config-standard": "18.0.0",
101-
"stylelint-order": "0.7.0",
102-
"tslib": "1.8.0",
103-
"tslint": "5.8.0",
104-
"tslint-react": "3.2.0",
105-
"typescript": "2.6.1",
106-
"webpack-dev-middleware": "1.12.1",
107-
"webpack-hot-middleware": "2.20.0",
108-
"webpack-simple-progress-plugin": "0.0.3",
93+
"robotstxt-webpack-plugin": "4.0.1",
94+
"sass-loader": "6.0.7",
95+
"style-loader": "0.20.3",
96+
"stylelint": "9.1.1",
97+
"stylelint-config-standard": "18.2.0",
98+
"stylelint-order": "0.8.1",
99+
"tslib": "1.9.0",
100+
"tslint": "5.9.1",
101+
"tslint-react": "3.5.1",
102+
"typescript": "2.7.2",
103+
"webpack-dev-middleware": "3.0.1",
104+
"webpack-hot-middleware": "2.21.2",
105+
"webpack-simple-progress-plugin": "0.0.4",
109106
"write-file-webpack-plugin": "4.2.0"
110107
},
111108
"dependencies": {
112109
"babel-polyfill": "6.26.0",
113-
"bootstrap": "next",
110+
"bootstrap": "4.0.0",
114111
"classnames": "2.2.5",
115112
"fetch-everywhere": "1.0.5",
116113
"form2js": "1.0.0",
117-
"fs-extra": "4.0.2",
118-
"hapi": "16.6.2",
119-
"hapi-webpack-plugin": "2.0.0",
114+
"fs-extra": "5.0.0",
115+
"hapi": "17.2.2",
116+
"hapi-webpack-plugin": "3.0.0",
120117
"history": "4.7.2",
121-
"inert": "4.2.1",
122-
"node-notifier": "5.1.2",
123-
"react": "16.1.1",
118+
"inert": "5.1.0",
119+
"node-notifier": "5.2.1",
120+
"react": "16.2.0",
124121
"react-async-bootstrapper": "1.1.2",
125122
"react-async-component": "1.0.2",
126-
"react-dom": "16.1.1",
123+
"react-dom": "16.2.0",
127124
"react-hot-loader": "3.1.3",
128-
"react-redux": "5.0.6",
125+
"react-redux": "5.0.7",
129126
"react-router": "4.2.0",
130127
"react-router-dom": "4.2.2",
131128
"react-router-redux": "5.0.0-alpha.8",
132129
"redux": "3.7.2",
133130
"redux-devtools-extension": "2.13.2",
134-
"redux-form": "7.1.2",
131+
"redux-form": "7.3.0",
135132
"redux-saga": "0.16.0",
136133
"serialize-javascript": "1.4.0",
137-
"webpack": "3.8.1"
134+
"webpack": "3.11.0"
138135
}
139136
}

postcss.config.js

-15
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
form:not(.u-validate) input:invalid {
22
background-color: #fafad2;
3-
border: 1px solid var(--COLOR_BRAND_PRIMARY);
3+
border: 1px solid $COLOR_BRAND_PRIMARY;
44
}

src/assets/styles/components/inputField.css src/assets/styles/components/inputField.scss

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
.inputField-input {
77
appearance: none;
88
background-color: #ffffff;
9-
border: 1px solid var(--COLOR_DARKGRAY_MEDIUM);
10-
box-shadow: inset 0 0 0 1px color(var(--COLOR_PRIMARY) alpha(0%));
9+
border: 1px solid $COLOR_DARKGRAY_MEDIUM;
10+
box-shadow: inset 0 0 0 1px rgba($COLOR_PRIMARY, 0);
1111
font-size: 16px;
1212
max-width: 100%;
1313
padding: 9px;
1414
transition:
15-
border-color 300ms var(--EASE_IN_QUAD),
16-
box-shadow 300ms var(--EASE_IN_QUAD);
15+
border-color 300ms $EASE_IN_QUAD,
16+
box-shadow 300ms $EASE_IN_QUAD;
1717

1818
&:focus {
19-
border-color: var(--COLOR_PRIMARY);
20-
box-shadow: inset 0 0 0 1px color(var(--COLOR_PRIMARY) alpha(100%));
19+
border-color: $COLOR_PRIMARY;
20+
box-shadow: inset 0 0 0 1px rgba($COLOR_PRIMARY, 100%);
2121
transition:
22-
border-color 250ms var(--EASE_OUT_QUAD),
23-
box-shadow 250ms var(--EASE_OUT_QUAD);
22+
border-color 250ms $EASE_OUT_QUAD,
23+
box-shadow 250ms $EASE_OUT_QUAD;
2424
}
2525
}
2626

@@ -36,5 +36,5 @@
3636
}
3737

3838
.inputField_noLabel .inputField-label {
39-
@apply --isVisuallyHidden;
39+
@include isVisuallyHidden;
4040
}

src/assets/styles/components/modal.css src/assets/styles/components/modal.scss

+3-28
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66
position: fixed;
77
right: 0;
88
top: 0;
9-
z-index: var(--Z_INDEX_MODAL);
10-
11-
@media (--SM) {
12-
padding-top: 50px;
13-
}
14-
15-
@media (--MD) {
16-
padding-top: 100px;
17-
}
9+
z-index: 6;
1810
}
1911

2012
.modal-overlay {
@@ -23,11 +15,10 @@
2315
bottom: 0;
2416
cursor: pointer;
2517
left: 0;
26-
opacity: 0;
2718
position: fixed;
2819
right: 0;
2920
top: 0;
30-
z-index: var(--Z_INDEX_MODAL_OVERLAY);
21+
z-index: 7;
3122
}
3223

3324
.modal-overlay_required {
@@ -46,23 +37,12 @@
4637
margin: auto auto 5px;
4738
max-width: 800px;
4839
min-height: 250px;
49-
opacity: 0;
5040
overflow: hidden;
5141
padding: 20px;
5242
position: relative;
5343
transform: translateY(-5px);
5444
width: calc(100% - 10px);
55-
z-index: var(--Z_INDEX_MODAL_CONTENT);
56-
57-
@media (--SM) {
58-
margin-bottom: 20px;
59-
transform: translateY(-50px);
60-
}
61-
62-
@media (--MD) {
63-
margin-bottom: 20px;
64-
transform: translateY(-100px);
65-
}
45+
z-index: 8;
6646
}
6747

6848
.modal-content_sm {
@@ -148,11 +128,6 @@
148128
.modal-footer_stack {
149129
display: block;
150130

151-
@media (--XS) {
152-
display: flex;
153-
justify-content: flex-end;
154-
}
155-
156131
& > * {
157132
margin-bottom: 10px;
158133
width: 100%;

src/assets/styles/helpers/easing.css

-9
This file was deleted.

src/assets/styles/helpers/easing.scss

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* stylelint-disable number-no-trailing-zeros */
2+
$EASE_IN_QUAD: cubic-bezier(0.550, 0.085, 0.680, 0.530);
3+
$EASE_OUT_QUAD: cubic-bezier(0.250, 0.460, 0.450, 0.940);
4+
$EASE_OUT_CUBIC: cubic-bezier(0.215, 0.610, 0.355, 1.000);

src/assets/styles/helpers/utils.css

-22
This file was deleted.

src/assets/styles/helpers/utils.scss

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* utils
2+
------------------------------------------------- */
3+
@mixin isVisuallyHidden() {
4+
border: 0;
5+
clip: rect(0 0 0 0);
6+
height: 1px;
7+
margin: -1px;
8+
overflow: hidden;
9+
padding: 0;
10+
position: absolute;
11+
width: 1px;
12+
}
13+
14+
.u-isHidden {
15+
display: none !important;
16+
}
17+
18+
.u-isVisuallyHidden {
19+
@include isVisuallyHidden;
20+
}

src/assets/styles/helpers/vars.css

-32
This file was deleted.

src/assets/styles/helpers/vars.scss

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* vars
2+
------------------------------------------------- */
3+
$COLOR_PRIMARY: rgb(0, 200, 230);
4+
$COLOR_SECONDARY: rgb(0, 60, 230);
5+
$COLOR_BRAND_PRIMARY: rgb(255, 0, 0);
6+
$COLOR_DARKGRAY_MEDIUM: rgb(112, 112, 112);
7+
8+
$XS: 32.5rem;
9+
$SM: 48rem;
10+
$MD: 60rem;

0 commit comments

Comments
 (0)