diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..858f024 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Multi-stage +# 1) Node image for building frontend assets +# 2) nginx stage to serve frontend assets + +# Name the node stage "builder" +FROM node:16 AS builder +# Set working directory +WORKDIR /app +# Copy all files from current directory to working dir in image +COPY . . +# install node modules and build assets +RUN npm install && npm run build + +# nginx state for serving content +FROM nginx:alpine +# Set working directory to nginx asset directory +WORKDIR /usr/share/nginx/html +# Remove default nginx static assets +RUN rm -rf ./* +# Copy static assets from builder stage +COPY --from=builder /app/dist . +# Add a custom nginx configuration that handles URL rewrites +COPY nginx.conf /etc/nginx/conf.d/default.conf +# Containers run nginx with global directives and daemon off +ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..497dbbb --- /dev/null +++ b/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file diff --git a/src/assets/docs/about-text.md b/src/assets/docs/about-text.md index 06422ba..e7939ad 100644 --- a/src/assets/docs/about-text.md +++ b/src/assets/docs/about-text.md @@ -1,4 +1,4 @@ -This is a beta release of the Blue Earth Data platform. The Blue Earth Data platform has been developed by Deltares as a free, web-based application to support the study and sharing of integrated water and subsoil-related data. The platform provides indicative data, which is primarily intended for professional specialists and researchers. +This is a release of the Blue Earth Data platform. The Blue Earth Data platform has been developed by Deltares as a free, web-based application to support the study and sharing of integrated water and subsoil-related data. The platform provides indicative data, which is primarily intended for professional specialists and researchers. Users are presented with global water and subsoil-related data through use of our multi-data viewer. The datasets included are subdivided over different themes and areas of interest, which can be selected on the left side of the screen. The global data is grouped under the Flooding, Coastal Management and Offshore themes. These themes incorporate datasets for amongst others global shoreline changes, global bathymetry, global river discharge and storm surge forecasts and global metocean conditions. Additionally, some regional datasets are added for the North Sea. Further information with each dataset is provided through the data selection menu. diff --git a/src/assets/docs/user-agreements - part 1.md b/src/assets/docs/user-agreements - part 1.md index 2b832c8..3488b1e 100644 --- a/src/assets/docs/user-agreements - part 1.md +++ b/src/assets/docs/user-agreements - part 1.md @@ -1,4 +1,4 @@ -## Blue Earth Data (beta) User Agreement Deltares +## Blue Earth Data User Agreement Deltares This legal agreement (hereinafter “User Agreement”) governs the conditions of use of this Deltares Open Data website and the data products (hereinafter “Data Products”) to be found, accessed and downloaded through our website. diff --git a/src/components/DataSetControls.vue b/src/components/DataSetControls.vue index 6772587..5cbc1a1 100644 --- a/src/components/DataSetControls.vue +++ b/src/components/DataSetControls.vue @@ -186,7 +186,7 @@ export default { 'getActiveVectorDataIds' ]), themeName() { - return this.getActiveTheme || 'All datasets' + return this.getActiveTheme || 'Map layers' }, activePanels() { const active = _.values(this.datasets).flatMap((dataset, index) => { diff --git a/src/components/metocean/graphs/ExtremeValues.vue b/src/components/metocean/graphs/ExtremeValues.vue index 3b7abad..6a51456 100644 --- a/src/components/metocean/graphs/ExtremeValues.vue +++ b/src/components/metocean/graphs/ExtremeValues.vue @@ -1,5 +1,10 @@