Fix UI
This commit is contained in:
parent
41f1e5f2ab
commit
794d97fdf5
|
|
@ -1,4 +1,4 @@
|
|||
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="10.6661" cy="9.97865" r="9.28906" fill="#c3b600ff" stroke="#FFF4E3" stroke-width="1.23854"/>
|
||||
<path d="M7.87903 13.742C7.67846 13.742 7.50788 13.6717 7.36731 13.5312C7.2268 13.3907 7.15655 13.2202 7.15655 13.0195V11.4833C7.15655 11.2827 7.2268 11.1121 7.36731 10.9716C7.50788 10.8311 7.67846 10.7608 7.87903 10.7608H13.4525C13.653 10.7608 13.8236 10.8311 13.9642 10.9716C14.1047 11.1121 14.175 11.2827 14.175 11.4833V13.0195C14.175 13.2202 14.1047 13.3907 13.9642 13.5312C13.8236 13.6717 13.653 13.742 13.4525 13.742H7.87903ZM7.90287 13.1227H13.4286C13.4657 13.1227 13.4962 13.1108 13.52 13.087C13.5438 13.0632 13.5557 13.0328 13.5557 12.9958V11.5071C13.5557 11.4701 13.5438 11.4396 13.52 11.4158C13.4962 11.392 13.4657 11.3801 13.4286 11.3801H7.90287C7.86579 11.3801 7.83534 11.392 7.81153 11.4158C7.78772 11.4396 7.77582 11.4701 7.77582 11.5071V12.9958C7.77582 13.0328 7.78772 13.0632 7.81153 13.087C7.83534 13.1108 7.86579 13.1227 7.90287 13.1227ZM8.43318 10.1416L6.64844 9.11976L8.93891 8.73467L8.31572 6.47991L10.2228 7.83601L11.3779 5.80273L11.763 8.10508L14.0178 7.48189L12.6657 9.38893L13.9963 10.1416H12.7371L11.7622 9.58978L12.5053 8.54259L11.2652 8.88557L11.0517 7.62081L10.4236 8.7355L9.37643 7.99237L9.7194 9.23246L8.46651 9.44601L9.62569 10.1416H8.43318Z" fill="white"/>
|
||||
<circle cx="10.6661" cy="9.97865" r="9.28906" fill="yellow" stroke="black" stroke-width="1.23854"/>
|
||||
<path d="M7.87903 13.742C7.67846 13.742 7.50788 13.6717 7.36731 13.5312C7.2268 13.3907 7.15655 13.2202 7.15655 13.0195V11.4833C7.15655 11.2827 7.2268 11.1121 7.36731 10.9716C7.50788 10.8311 7.67846 10.7608 7.87903 10.7608H13.4525C13.653 10.7608 13.8236 10.8311 13.9642 10.9716C14.1047 11.1121 14.175 11.2827 14.175 11.4833V13.0195C14.175 13.2202 14.1047 13.3907 13.9642 13.5312C13.8236 13.6717 13.653 13.742 13.4525 13.742H7.87903ZM7.90287 13.1227H13.4286C13.4657 13.1227 13.4962 13.1108 13.52 13.087C13.5438 13.0632 13.5557 13.0328 13.5557 12.9958V11.5071C13.5557 11.4701 13.5438 11.4396 13.52 11.4158C13.4962 11.392 13.4657 11.3801 13.4286 11.3801H7.90287C7.86579 11.3801 7.83534 11.392 7.81153 11.4158C7.78772 11.4396 7.77582 11.4701 7.77582 11.5071V12.9958C7.77582 13.0328 7.78772 13.0632 7.81153 13.087C7.83534 13.1108 7.86579 13.1227 7.90287 13.1227ZM8.43318 10.1416L6.64844 9.11976L8.93891 8.73467L8.31572 6.47991L10.2228 7.83601L11.3779 5.80273L11.763 8.10508L14.0178 7.48189L12.6657 9.38893L13.9963 10.1416H12.7371L11.7622 9.58978L12.5053 8.54259L11.2652 8.88557L11.0517 7.62081L10.4236 8.7355L9.37643 7.99237L9.7194 9.23246L8.46651 9.44601L9.62569 10.1416H8.43318Z" fill="black"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
|
@ -1,4 +1,4 @@
|
|||
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="10.6661" cy="9.97865" r="9.28906" fill="#995C00" stroke="#FFF4E3" stroke-width="1.23854"/>
|
||||
<path d="M7.87903 13.742C7.67846 13.742 7.50788 13.6717 7.36731 13.5312C7.2268 13.3907 7.15655 13.2202 7.15655 13.0195V11.4833C7.15655 11.2827 7.2268 11.1121 7.36731 10.9716C7.50788 10.8311 7.67846 10.7608 7.87903 10.7608H13.4525C13.653 10.7608 13.8236 10.8311 13.9642 10.9716C14.1047 11.1121 14.175 11.2827 14.175 11.4833V13.0195C14.175 13.2202 14.1047 13.3907 13.9642 13.5312C13.8236 13.6717 13.653 13.742 13.4525 13.742H7.87903ZM7.90287 13.1227H13.4286C13.4657 13.1227 13.4962 13.1108 13.52 13.087C13.5438 13.0632 13.5557 13.0328 13.5557 12.9958V11.5071C13.5557 11.4701 13.5438 11.4396 13.52 11.4158C13.4962 11.392 13.4657 11.3801 13.4286 11.3801H7.90287C7.86579 11.3801 7.83534 11.392 7.81153 11.4158C7.78772 11.4396 7.77582 11.4701 7.77582 11.5071V12.9958C7.77582 13.0328 7.78772 13.0632 7.81153 13.087C7.83534 13.1108 7.86579 13.1227 7.90287 13.1227ZM8.43318 10.1416L6.64844 9.11976L8.93891 8.73467L8.31572 6.47991L10.2228 7.83601L11.3779 5.80273L11.763 8.10508L14.0178 7.48189L12.6657 9.38893L13.9963 10.1416H12.7371L11.7622 9.58978L12.5053 8.54259L11.2652 8.88557L11.0517 7.62081L10.4236 8.7355L9.37643 7.99237L9.7194 9.23246L8.46651 9.44601L9.62569 10.1416H8.43318Z" fill="white"/>
|
||||
<circle cx="10.6661" cy="9.97865" r="9.28906" fill="orange" stroke="black" stroke-width="1.23854"/>
|
||||
<path d="M7.87903 13.742C7.67846 13.742 7.50788 13.6717 7.36731 13.5312C7.2268 13.3907 7.15655 13.2202 7.15655 13.0195V11.4833C7.15655 11.2827 7.2268 11.1121 7.36731 10.9716C7.50788 10.8311 7.67846 10.7608 7.87903 10.7608H13.4525C13.653 10.7608 13.8236 10.8311 13.9642 10.9716C14.1047 11.1121 14.175 11.2827 14.175 11.4833V13.0195C14.175 13.2202 14.1047 13.3907 13.9642 13.5312C13.8236 13.6717 13.653 13.742 13.4525 13.742H7.87903ZM7.90287 13.1227H13.4286C13.4657 13.1227 13.4962 13.1108 13.52 13.087C13.5438 13.0632 13.5557 13.0328 13.5557 12.9958V11.5071C13.5557 11.4701 13.5438 11.4396 13.52 11.4158C13.4962 11.392 13.4657 11.3801 13.4286 11.3801H7.90287C7.86579 11.3801 7.83534 11.392 7.81153 11.4158C7.78772 11.4396 7.77582 11.4701 7.77582 11.5071V12.9958C7.77582 13.0328 7.78772 13.0632 7.81153 13.087C7.83534 13.1108 7.86579 13.1227 7.90287 13.1227ZM8.43318 10.1416L6.64844 9.11976L8.93891 8.73467L8.31572 6.47991L10.2228 7.83601L11.3779 5.80273L11.763 8.10508L14.0178 7.48189L12.6657 9.38893L13.9963 10.1416H12.7371L11.7622 9.58978L12.5053 8.54259L11.2652 8.88557L11.0517 7.62081L10.4236 8.7355L9.37643 7.99237L9.7194 9.23246L8.46651 9.44601L9.62569 10.1416H8.43318Z" fill="black"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
|
@ -1,4 +1,4 @@
|
|||
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="10.6661" cy="9.97865" r="9.28906" fill="#990000ff" stroke="#FFF4E3" stroke-width="1.23854"/>
|
||||
<path d="M7.87903 13.742C7.67846 13.742 7.50788 13.6717 7.36731 13.5312C7.2268 13.3907 7.15655 13.2202 7.15655 13.0195V11.4833C7.15655 11.2827 7.2268 11.1121 7.36731 10.9716C7.50788 10.8311 7.67846 10.7608 7.87903 10.7608H13.4525C13.653 10.7608 13.8236 10.8311 13.9642 10.9716C14.1047 11.1121 14.175 11.2827 14.175 11.4833V13.0195C14.175 13.2202 14.1047 13.3907 13.9642 13.5312C13.8236 13.6717 13.653 13.742 13.4525 13.742H7.87903ZM7.90287 13.1227H13.4286C13.4657 13.1227 13.4962 13.1108 13.52 13.087C13.5438 13.0632 13.5557 13.0328 13.5557 12.9958V11.5071C13.5557 11.4701 13.5438 11.4396 13.52 11.4158C13.4962 11.392 13.4657 11.3801 13.4286 11.3801H7.90287C7.86579 11.3801 7.83534 11.392 7.81153 11.4158C7.78772 11.4396 7.77582 11.4701 7.77582 11.5071V12.9958C7.77582 13.0328 7.78772 13.0632 7.81153 13.087C7.83534 13.1108 7.86579 13.1227 7.90287 13.1227ZM8.43318 10.1416L6.64844 9.11976L8.93891 8.73467L8.31572 6.47991L10.2228 7.83601L11.3779 5.80273L11.763 8.10508L14.0178 7.48189L12.6657 9.38893L13.9963 10.1416H12.7371L11.7622 9.58978L12.5053 8.54259L11.2652 8.88557L11.0517 7.62081L10.4236 8.7355L9.37643 7.99237L9.7194 9.23246L8.46651 9.44601L9.62569 10.1416H8.43318Z" fill="white"/>
|
||||
<circle cx="10.6661" cy="9.97865" r="9.28906" fill="red" stroke="black" stroke-width="1.23854"/>
|
||||
<path d="M7.87903 13.742C7.67846 13.742 7.50788 13.6717 7.36731 13.5312C7.2268 13.3907 7.15655 13.2202 7.15655 13.0195V11.4833C7.15655 11.2827 7.2268 11.1121 7.36731 10.9716C7.50788 10.8311 7.67846 10.7608 7.87903 10.7608H13.4525C13.653 10.7608 13.8236 10.8311 13.9642 10.9716C14.1047 11.1121 14.175 11.2827 14.175 11.4833V13.0195C14.175 13.2202 14.1047 13.3907 13.9642 13.5312C13.8236 13.6717 13.653 13.742 13.4525 13.742H7.87903ZM7.90287 13.1227H13.4286C13.4657 13.1227 13.4962 13.1108 13.52 13.087C13.5438 13.0632 13.5557 13.0328 13.5557 12.9958V11.5071C13.5557 11.4701 13.5438 11.4396 13.52 11.4158C13.4962 11.392 13.4657 11.3801 13.4286 11.3801H7.90287C7.86579 11.3801 7.83534 11.392 7.81153 11.4158C7.78772 11.4396 7.77582 11.4701 7.77582 11.5071V12.9958C7.77582 13.0328 7.78772 13.0632 7.81153 13.087C7.83534 13.1108 7.86579 13.1227 7.90287 13.1227ZM8.43318 10.1416L6.64844 9.11976L8.93891 8.73467L8.31572 6.47991L10.2228 7.83601L11.3779 5.80273L11.763 8.10508L14.0178 7.48189L12.6657 9.38893L13.9963 10.1416H12.7371L11.7622 9.58978L12.5053 8.54259L11.2652 8.88557L11.0517 7.62081L10.4236 8.7355L9.37643 7.99237L9.7194 9.23246L8.46651 9.44601L9.62569 10.1416H8.43318Z" fill="black"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
|
@ -130,9 +130,10 @@ export default class ResourcesDetailComponent implements OnInit {
|
|||
}
|
||||
|
||||
extractURL(source: string): string {
|
||||
const urlPattern = /https?:\/\/[^\s]+/g;
|
||||
const urlPattern = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/g;
|
||||
const matches = source.match(urlPattern);
|
||||
return matches ? matches[0] : '';
|
||||
const href = matches ? ((matches[0].startsWith('http') ? '' : 'https://') + matches[0]) : '';
|
||||
return href;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||
@Output() filtersChanged = new EventEmitter<FiltersValue>();
|
||||
|
||||
maxDate = new Date();
|
||||
minDate = new Date(1950);
|
||||
minDate = new Date(1982, 0, 1);
|
||||
|
||||
filteredSuggestions = signal<{ [key: string]: string[] }>({});
|
||||
suggestions: { [key: string]: string[] } = {};
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ export class MapViewComponent implements OnInit {
|
|||
popupAnchor: [1, -25],
|
||||
shadowSize: [25, 25]
|
||||
})
|
||||
}).bindPopup(`<h3>${feature.feature.properties.name} (${cache[countryName].iconSVG})</h3><br/>` + Object.keys(groupedByCity).map(cityName => {
|
||||
}).bindPopup(`<h3 style="position: sticky; top: 0; background-color: white;">${feature.feature.properties.name} (${cache[countryName].iconSVG})</h3><br/>` + Object.keys(groupedByCity).map(cityName => {
|
||||
return `${cityName} (${groupedByCity[cityName].length})`;
|
||||
}).sort().join('<br/>'), {
|
||||
maxHeight: 800
|
||||
|
|
|
|||
Loading…
Reference in New Issue