Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dakur committed Jan 29, 2025
1 parent 4ebdc4d commit 4e6ea29
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 329 deletions.
46 changes: 0 additions & 46 deletions frontend/src/scripts/administrativeUnitsMap/Filters.ts

This file was deleted.

64 changes: 0 additions & 64 deletions frontend/src/scripts/administrativeUnitsMap/InfoWindow.ts

This file was deleted.

85 changes: 0 additions & 85 deletions frontend/src/scripts/administrativeUnitsMap/Map.ts

This file was deleted.

49 changes: 0 additions & 49 deletions frontend/src/scripts/administrativeUnitsMap/index.ts

This file was deleted.

17 changes: 0 additions & 17 deletions frontend/src/scripts/administrativeUnitsMap/types.ts

This file was deleted.

60 changes: 0 additions & 60 deletions frontend/src/scripts/administrativeUnitsMap/utils.ts

This file was deleted.

4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
Assets::staticScript('lazyLoad', $theme);
Assets::staticScript('menuHandler', $theme);
Assets::staticScript('lightbox', $theme);
Assets::staticScript('administrativeUnitsMap', $theme);
Assets::script('references', $theme);
Assets::script('administrativeUnitsMap', $theme);
Assets::style('style', $theme);
});

Expand Down Expand Up @@ -149,7 +149,7 @@ function hb_administrative_units_map(string $administrationUnitsInJson, bool $ha

<div class="administrativeUnitsMap__map"
id="map"
data-organizationalUnits='<?php echo $administrationUnitsInJson ?>'
data-administrativeUnits='<?php echo $administrationUnitsInJson ?>'
></div>
<?php endif; ?>
</div>
Expand Down
6 changes: 0 additions & 6 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ const paths = {

const buildScriptsTask = (cb) => {
buildScripts(cb, [
{
distFileName: 'administrativeUnitsMap.js',
distPath: paths.scripts.global.dist, // folder to save the compiled js file into
sourceFileName: 'index.ts',
sourcePath: paths.scripts.global.src + '/administrativeUnitsMap',
},
{
distFileName: 'references.js',
distPath: paths.scripts.global.dist, // folder to save the compiled js file into
Expand Down
7 changes: 7 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
<!-- End Google Tag Manager -->
<?php endif; ?>

<script>
(g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})({
key: "AIzaSyDsxejbWcsI1eb4eoQJq47Eq9qxvSCMXSc",
v: "weekly",
});
</script>

<!-- Google Custom Search -->
<script async src="https://cse.google.com/cse.js?cx=4766a09e4b0ac4a34"></script>
</head>
Expand Down
Loading

0 comments on commit 4e6ea29

Please sign in to comment.