]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/pages/PolygonsPage.svelte
npm updates. All but svelte
[nominatim-ui.git] / src / pages / PolygonsPage.svelte
index 76025b269b9d4f98591e7a1ade89f9a10850a2f4..4e493b60d23f1c0231dd6f2e1c7b19c75d2fabef 100644 (file)
@@ -3,10 +3,12 @@
   import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
   import { formatOSMType, osmLink } from '../lib/helpers.js';
 
   import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
   import { formatOSMType, osmLink } from '../lib/helpers.js';
 
+  import Header from '../components/Header.svelte';
+
   let aPolygons = [];
 
   function loaddata() {
   let aPolygons = [];
 
   function loaddata() {
-    fetch_from_api('polygons', {format: 'json'}, function(data){
+    fetch_from_api('polygons', { format: 'json' }, function (data) {
       aPolygons = data;
     });
     update_html_title('Broken polygons');
       aPolygons = data;
     });
     update_html_title('Broken polygons');
@@ -14,7 +16,7 @@
   onMount(loaddata);
 </script>
 
   onMount(loaddata);
 </script>
 
-
+<Header/>
 <div class="container">
   <div class="row">
     <div class="col-sm-12">
 <div class="container">
   <div class="row">
     <div class="col-sm-12">
@@ -26,8 +28,7 @@
 
       <table class="table table-striped table-hover">
         <thead>
 
       <table class="table table-striped table-hover">
         <thead>
-          <th>OSM type</th>
-          <th>OSM id</th>
+          <th>OSM object</th>
           <th>Class</th>
           <th>Type</th>
           <th>Name</th>
           <th>Class</th>
           <th>Type</th>
           <th>Name</th>
@@ -39,7 +40,7 @@
         <tbody>
           {#each aPolygons as polygon}
             <tr>
         <tbody>
           {#each aPolygons as polygon}
             <tr>
-              <td>{polygon.osm_type}</td>
+              <!-- eslint-disable-next-line svelte/no-at-html-tags -->
               <td>{@html osmLink(polygon)}</td>
               <td>{polygon.class}</td>
               <td>{polygon.type}</td>
               <td>{@html osmLink(polygon)}</td>
               <td>{polygon.class}</td>
               <td>{polygon.type}</td>