@protacon/muster-booking-frontend 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/CODEOWNERS +5 -0
- package/.github/copilot-instructions.md +10 -0
- package/.github/pull_request_template.md +5 -0
- package/.github/workflows/demo-build.yml +33 -0
- package/.github/workflows/{onPushTest.yml → mergeChecks.yml} +10 -6
- package/Dockerfile +31 -0
- package/LICENSE.md +1 -1
- package/README.md +13 -1
- package/dist/env.docker.js +1 -0
- package/dist/env.js +1 -1
- package/dist/env.template.js +1 -1
- package/dist/index.bundle.js +1 -1
- package/dist/styles.bundle.css +19 -3
- package/docker/.gitattributes +1 -0
- package/docker/entrypoint.sh +29 -0
- package/docker/nginx.conf +49 -0
- package/package.json +11 -8
- package/slack.json +3 -3
package/dist/styles.bundle.css
CHANGED
|
@@ -901,6 +901,13 @@ input[type='checkbox'] {
|
|
|
901
901
|
line-height: 19px;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
.slot-price-original {
|
|
905
|
+
font-weight: 400;
|
|
906
|
+
margin-right: 8px;
|
|
907
|
+
text-decoration: line-through;
|
|
908
|
+
opacity: 0.6;
|
|
909
|
+
}
|
|
910
|
+
|
|
904
911
|
.slot-time {
|
|
905
912
|
font-weight: 700;
|
|
906
913
|
font-size: 16px;
|
|
@@ -975,6 +982,8 @@ input[type='checkbox'] {
|
|
|
975
982
|
top: 1em;
|
|
976
983
|
line-height: 1.7em;
|
|
977
984
|
border: 0.6em solid transparent;
|
|
985
|
+
height: 1vh;
|
|
986
|
+
width: 1vw;
|
|
978
987
|
}
|
|
979
988
|
.react-datepicker__navigation--previous {
|
|
980
989
|
border-right-color: #000;
|
|
@@ -1056,7 +1065,7 @@ input[type='checkbox'] {
|
|
|
1056
1065
|
flex-direction: column;
|
|
1057
1066
|
width: 50%;
|
|
1058
1067
|
height: 100%;
|
|
1059
|
-
overflow-y:
|
|
1068
|
+
overflow-y: auto;
|
|
1060
1069
|
padding-right: 32px;
|
|
1061
1070
|
}
|
|
1062
1071
|
@media (max-height: 991px) {
|
|
@@ -1149,7 +1158,13 @@ input[type='checkbox'] {
|
|
|
1149
1158
|
}
|
|
1150
1159
|
|
|
1151
1160
|
.book-here-btn {
|
|
1152
|
-
|
|
1161
|
+
margin-left: 4px;
|
|
1162
|
+
color: #8ac100 !important;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
.finalize-step-business-message {
|
|
1166
|
+
font-size: 18px;
|
|
1167
|
+
font-weight: 700;
|
|
1153
1168
|
}
|
|
1154
1169
|
|
|
1155
1170
|
.confirm-bookin-button {
|
|
@@ -1291,7 +1306,7 @@ input[type='checkbox'] {
|
|
|
1291
1306
|
padding-bottom: 10px;
|
|
1292
1307
|
}
|
|
1293
1308
|
.insurance .btn-secondary {
|
|
1294
|
-
background-color: #
|
|
1309
|
+
background-color: #4ca7ba;
|
|
1295
1310
|
padding: 20px;
|
|
1296
1311
|
}
|
|
1297
1312
|
.insurance img {
|
|
@@ -1308,6 +1323,7 @@ input[type='checkbox'] {
|
|
|
1308
1323
|
.insurency-button-container {
|
|
1309
1324
|
display: flex;
|
|
1310
1325
|
}
|
|
1326
|
+
|
|
1311
1327
|
.visible-mobile-only {
|
|
1312
1328
|
display: none;
|
|
1313
1329
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text eol=lf
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
# Configuration from environment variables. For example FRONTEND_apiurl -> apiurl.
|
|
6
|
+
if [ ! -f "$CONFIG_JS_PATH" ]; then
|
|
7
|
+
echo "Config file $CONFIG_JS_PATH not found! Set in env variable CONFIG_JS_PATH"
|
|
8
|
+
exit 1
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
while IFS='' read -r line || [ -n "$line" ]; do
|
|
12
|
+
remainder="$line"
|
|
13
|
+
name="${remainder%%=*}"; remainder="${remainder#*=}"
|
|
14
|
+
value="${remainder}";
|
|
15
|
+
|
|
16
|
+
case $name in
|
|
17
|
+
"FRONTEND_"*)
|
|
18
|
+
echo "'$name' is FRONTEND configuration with value '$value', applying to config file."
|
|
19
|
+
field_name="${name#*_}"
|
|
20
|
+
|
|
21
|
+
sed -i "s|ENV_$field_name|$value|g" $CONFIG_JS_PATH
|
|
22
|
+
;;
|
|
23
|
+
*) ;;
|
|
24
|
+
esac
|
|
25
|
+
done <<EOF
|
|
26
|
+
$(env)
|
|
27
|
+
EOF
|
|
28
|
+
|
|
29
|
+
nginx -g "daemon off;"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
map $sent_http_content_type $expires {
|
|
2
|
+
default off;
|
|
3
|
+
text/html epoch;
|
|
4
|
+
text/css max;
|
|
5
|
+
application/javascript max;
|
|
6
|
+
~image/ max;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
server {
|
|
10
|
+
listen 80;
|
|
11
|
+
server_name localhost;
|
|
12
|
+
expires $expires;
|
|
13
|
+
root /usr/share/nginx/html;
|
|
14
|
+
|
|
15
|
+
if ($http_x_forwarded_proto = "http") {
|
|
16
|
+
return 301 https://$host$request_uri;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
location ~ env.js {
|
|
20
|
+
expires -1;
|
|
21
|
+
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
location / {
|
|
25
|
+
index index.html;
|
|
26
|
+
try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
gzip on;
|
|
30
|
+
gzip_disable "msie6";
|
|
31
|
+
gzip_vary on;
|
|
32
|
+
gzip_proxied any;
|
|
33
|
+
gzip_comp_level 6;
|
|
34
|
+
gzip_buffers 16 8k;
|
|
35
|
+
gzip_http_version 1.1;
|
|
36
|
+
gzip_min_length 256;
|
|
37
|
+
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;
|
|
38
|
+
|
|
39
|
+
server_tokens off;
|
|
40
|
+
disable_symlinks off;
|
|
41
|
+
|
|
42
|
+
error_log /var/log/nginx/app_error.log;
|
|
43
|
+
access_log /var/log/nginx/app_access.log;
|
|
44
|
+
|
|
45
|
+
error_page 500 502 503 504 /50x.html;
|
|
46
|
+
location = /50x.html {
|
|
47
|
+
root /usr/share/nginx/html;
|
|
48
|
+
}
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": "Muster by Pinja",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "/dist/index.bundle.js",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.32.0",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"start": "webpack-dev-server",
|
|
10
10
|
"build": "cross-env NODE_ENV=production OUTPUT=library webpack --progress",
|
|
@@ -16,17 +16,18 @@
|
|
|
16
16
|
"copywebconfig": "cp web.config dist\\web.config"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@types/react": "
|
|
21
|
-
"@types/react-dom": "
|
|
19
|
+
"@googlemaps/markerclusterer": "2.6.2",
|
|
20
|
+
"@types/react": "18.2.79",
|
|
21
|
+
"@types/react-dom": "18.2.25",
|
|
22
|
+
"@vis.gl/react-google-maps": "1.7.1",
|
|
22
23
|
"immutable-ics": "^0.4.0",
|
|
23
24
|
"js-sha256": "0.11.0",
|
|
24
25
|
"mdi-react": "^5.6.0",
|
|
25
26
|
"moment-timezone": "^0.5.40",
|
|
26
27
|
"promise-polyfill": "^8.2.0",
|
|
27
28
|
"react-bootstrap": "^1.5.2",
|
|
28
|
-
"react-datepicker": "
|
|
29
|
-
"react-select": "
|
|
29
|
+
"react-datepicker": "4.25.0",
|
|
30
|
+
"react-select": "5.8.0",
|
|
30
31
|
"redux": "^4.0.5",
|
|
31
32
|
"whatwg-fetch": "^3.6.2"
|
|
32
33
|
},
|
|
@@ -41,11 +42,13 @@
|
|
|
41
42
|
"@babel/preset-react": "^7.12.13",
|
|
42
43
|
"@babel/preset-typescript": "^7.13.0",
|
|
43
44
|
"@babel/runtime": "^7.13.10",
|
|
45
|
+
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
|
44
46
|
"@eslint/js": "^9.23.0",
|
|
45
|
-
"@types/
|
|
47
|
+
"@types/google.maps": "3.58.1",
|
|
48
|
+
"@types/jasmine": "5.1.4",
|
|
46
49
|
"@types/moment-timezone": "^0.5.30",
|
|
47
50
|
"@types/react-redux": "^7.1.16",
|
|
48
|
-
"
|
|
51
|
+
"ts-loader": "9.5.1",
|
|
49
52
|
"babel-loader": "^8.2.2",
|
|
50
53
|
"copy-webpack-plugin": "^9.0.0",
|
|
51
54
|
"cross-env": "^5.2.1",
|
package/slack.json
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
"actions": [
|
|
4
4
|
{
|
|
5
5
|
"type": "pull_request",
|
|
6
|
-
"channel": "#team-muster-
|
|
6
|
+
"channel": "#team-muster-pings",
|
|
7
7
|
"enabled": false
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"type": "review_request",
|
|
11
|
-
"channel": "#team-muster-
|
|
11
|
+
"channel": "#team-muster-pings"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"type": "review_status",
|
|
15
|
-
"channel": "#team-muster-
|
|
15
|
+
"channel": "#team-muster-pings"
|
|
16
16
|
}
|
|
17
17
|
]
|
|
18
18
|
}
|