@protacon/muster-booking-frontend 1.30.0 → 1.31.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.
@@ -975,6 +975,8 @@ input[type='checkbox'] {
975
975
  top: 1em;
976
976
  line-height: 1.7em;
977
977
  border: 0.6em solid transparent;
978
+ height: 1vh;
979
+ width: 1vw;
978
980
  }
979
981
  .react-datepicker__navigation--previous {
980
982
  border-right-color: #000;
@@ -1056,7 +1058,7 @@ input[type='checkbox'] {
1056
1058
  flex-direction: column;
1057
1059
  width: 50%;
1058
1060
  height: 100%;
1059
- overflow-y: hidden;
1061
+ overflow-y: auto;
1060
1062
  padding-right: 32px;
1061
1063
  }
1062
1064
  @media (max-height: 991px) {
@@ -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.30.0",
7
+ "version": "1.31.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
- "@react-google-maps/api": "^1.13.0",
20
- "@types/react": "^16.14.5",
21
- "@types/react-dom": "^16.9.12",
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": "2.16.0",
29
- "react-select": "^3.2.0",
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/googlemaps": "^3.43.3",
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
- "awesome-typescript-loader": "^5.2.1",
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",