tnx-shared 5.2.26 → 5.2.27
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/assets/docker/Dockerfile
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
FROM euniversitytnapi/tn.clientbase.angular
|
|
2
2
|
|
|
3
3
|
RUN rm -rf /usr/share/nginx/html/*
|
|
4
|
-
COPY ./dist/
|
|
4
|
+
COPY ./dist/{{projectName}} /usr/share/nginx/html
|
|
5
|
+
COPY ./build-config/{{projectName}}/nginx.conf.template /etc/nginx/
|
|
6
|
+
COPY ./build-config/{{projectName}}/docker-entrypoint.sh /
|
|
5
7
|
|
|
6
8
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
7
9
|
CMD ["nginx", "-g", "daemon off;"]
|
|
@@ -5,9 +5,9 @@ set -eu
|
|
|
5
5
|
# List all variables to be substituted to avoid clashing with
|
|
6
6
|
# NGINX own variables: https://serverfault.com/questions/577370
|
|
7
7
|
envsubst \
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
'${BASE_HREF}' \
|
|
9
|
+
</etc/nginx/nginx.conf.template \
|
|
10
|
+
>/etc/nginx/nginx.conf
|
|
11
11
|
cat /etc/nginx/nginx.conf
|
|
12
12
|
|
|
13
13
|
# Set correct HTML base tag, so static resources are fetched
|
|
@@ -15,8 +15,8 @@ cat /etc/nginx/nginx.conf
|
|
|
15
15
|
# NOTE: Trailing and leading slashes in base href are important!
|
|
16
16
|
# Using `~` separator to avoid problems with forward slashes
|
|
17
17
|
sed --in-place \
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
's~<base href="/">~<base href="'$BASE_HREF'/"><script type="text/javascript"> window.baseHref = "'$BASE_HREF'"; window.appCode = "'$APP_CODE'"; window.commonMasterDataApi = "'$CONFIG_SERVICE'"; </script>~' \
|
|
19
|
+
/usr/share/nginx/html/index.html
|
|
20
20
|
|
|
21
21
|
cat /usr/share/nginx/html/index.html
|
|
22
22
|
exec "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tnx-shared",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.27",
|
|
4
4
|
"clientVersion": "5.2",
|
|
5
5
|
"version5.0": "5.0.19",
|
|
6
6
|
"version5.1": "5.1.22",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"jsplumb": "^2.15.6",
|
|
132
132
|
"ngx-extended-pdf-viewer": "^9.0.5"
|
|
133
133
|
},
|
|
134
|
-
"versionPrev": "5.2.
|
|
134
|
+
"versionPrev": "5.2.26",
|
|
135
135
|
"main": "bundles/tnx-shared.umd.js",
|
|
136
136
|
"module": "fesm2015/tnx-shared.js",
|
|
137
137
|
"es2015": "fesm2015/tnx-shared.js",
|