Skip to content

Commit

Permalink
Merge pull request #655 from geonetwork/cors-wc
Browse files Browse the repository at this point in the history
Fix CORS issues in webcomponent demo
  • Loading branch information
fgravin authored Oct 19, 2023
2 parents 2089b7b + 999a457 commit 96f8590
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<script src="gn-wc.js"></script>
<gn-dataset-view-chart
api-url="https://dev.geo2france.fr/geonetwork/srv/api"
dataset-id="accroche_velos"
dataset-id="9da51f58-15c6-4325-82b1-2cf6c8e75d0f"
aggregation="average"
x-property="adresse"
chart-type="line"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<script src="gn-wc.js"></script>
<gn-dataset-view-table
api-url="https://dev.geo2france.fr/geonetwork/srv/api"
dataset-id="population-mel"
dataset-id="9da51f58-15c6-4325-82b1-2cf6c8e75d0f"
primary-color="#0f4395"
secondary-color="#8bc832"
main-color="#555"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
<div style="display: flex">
<div style="width: 320px; shrink: 0; margin: 20px">
<gn-facets
api-url="https://apps.titellus.net/geonetwork/srv/api"
api-url="https://dev.geo2france.fr/geonetwork/srv/api"
facet-config='{"tag.default":{"terms":{"field":"tag.default","include":".*","size": 10}}}'
></gn-facets>
</div>
<div style="grow: 1; margin: 20px">
<gn-results-list
api-url="https://sdi.eea.europa.eu/catalogue/eea/api"
catalog-url="https://sdi.eea.europa.eu/catalogue/eea/fre/catalog.search#/metadata/{uuid}"
api-url="https://dev.geo2france.fr/geonetwork/srv/api"
catalog-url="https://dev.geo2france.fr/geonetwork/srv/fre/catalog.search#/metadata/{uuid}"
size="5"
primary-color="#0f4395"
secondary-color="#8bc832"
Expand Down
3 changes: 0 additions & 3 deletions apps/webcomponents/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ <h1 class="text-3xl">GeoNetwork demo</h1>
>Preview dataset as chart</a
>
</li>
<li class="mt-5">
<a href="gn-facets.sample.html">Facets & results feed</a>
</li>
<li class="mt-5">
<a href="gn-map-viewer.sample.html">Map viewer</a>
</li>
Expand Down

0 comments on commit 96f8590

Please sign in to comment.