Skip to content

Commit

Permalink
Minor updates jinja template, add command to push new version built w…
Browse files Browse the repository at this point in the history
…ith Docker
  • Loading branch information
marioscrock committed Aug 26, 2024
1 parent f97c27f commit 9f6286a
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 4 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ docker run -p 8080:80 cefriel/mobilitydcatap-ui
```

Visit http://localhost:8080.

### Update online

Build the image locally and push the updated files in the `dist` folder.

If you built the interface using the Docker container, you can get the required files by obtaining the CONTAINER_ID via `docker ps` and running the following command:
```sh
docker cp <CONTAINER_ID>:/usr/share/nginx/html/mobilitydcatap-ui/. ./dist/
```
5 changes: 5 additions & 0 deletions dist/css/chunk-vendors.32c2745c.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><script defer="defer" src="/mobilitydcatap-ui/js/chunk-vendors.b9ebfba6.js"></script><script defer="defer" src="/mobilitydcatap-ui/js/app.e7f78ed1.js"></script><link href="/mobilitydcatap-ui/css/chunk-vendors.72988098.css" rel="stylesheet"><link href="/mobilitydcatap-ui/css/app.a3a647c0.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><script defer="defer" src="/mobilitydcatap-ui/js/chunk-vendors.ef96eecc.js"></script><script defer="defer" src="/mobilitydcatap-ui/js/app.22fa3a70.js"></script><link href="/mobilitydcatap-ui/css/chunk-vendors.32c2745c.css" rel="stylesheet"><link href="/mobilitydcatap-ui/css/app.a3a647c0.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
2 changes: 2 additions & 0 deletions dist/js/app.22fa3a70.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/app.22fa3a70.js.map

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions dist/js/chunk-vendors.ef96eecc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/chunk-vendors.ef96eecc.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/assets/mobility-lifting.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
{%endif%}
];
{%endif%}

{%if json_content.mobility_themes%}
{% for mtheme in json_content.mobility_themes %}
mobilitydcatap:mobilityTheme mtheme:{{mtheme | lower | replace(" ", "-") | replace("," , "")}};
mobilitydcatap:mobilityTheme mtheme:{{mtheme | lower | replace(" ", "-") | replace("," , "")}};
{% endfor %}
{%endif%}
{%if '://' in json_content.spatial_coverage %}
Expand Down Expand Up @@ -128,7 +128,7 @@
{{asset_id | safe}} dcat:distribution {{distribution_id | safe}} .

{{distribution_id | safe}} rdf:type dcat:Distribution;
mobilitydcatap:mobilityDataStandard mdata:{{distribution.data_schema | lower | replace(" ", "-")}} ;
mobilitydcatap:mobilityDataStandard mdata:{{distribution.data_schema | lower | replace(" ", "-")}} ;
{% if '://' in json_content.spatial_coverage %}
dct:format <{{distribution.format}}>;
{%else%}
Expand Down

0 comments on commit 9f6286a

Please sign in to comment.