Skip to content

Commit be43aae

Browse files
committed
ci: 🐝 bump verison
1 parent 1e27cf1 commit be43aae

File tree

5 files changed

+58
-56
lines changed

5 files changed

+58
-56
lines changed

.cz.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"commitizen": {
33
"name": "cz_conventional_commits",
4-
"version": "0.0.4",
4+
"version": "0.0.5",
55
"tag_format": "$version"
66
}
7-
}
7+
}

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ functions/**
55
package/**
66
node_modules/**
77
pnpm-lock.yaml
8+
.cz.json

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
### Fix
44

5+
- **package.json**: 💫 update config
56
- **index.ts**: 💫 fix import path
67
- 💫 add index.ts

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@rodneylab/sveltekit-components",
33
"description": "Handy components for building sites in SvelteKit",
4-
"version": "0.0.4",
4+
"version": "0.0.5",
55
"author": "Rodney Lab <[email protected]> (@rodneyLab)",
66
"license": "BSD-3-Clause",
77
"keywords": [

src/lib/components/Map.svelte

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
<script lang="ts">
2-
import { browser } from '$app/env';
3-
import website from '$lib/config/website';
4-
import type { Map, MapOptions, TileLayer, TileLayerOptions } from 'leaflet';
5-
import { onMount } from 'svelte';
2+
import { browser } from '$app/env';
3+
import website from '$lib/config/website';
4+
import type { Map, MapOptions, TileLayer, TileLayerOptions } from 'leaflet';
5+
import { onMount } from 'svelte';
66
7-
export let id: string;
8-
export let location: {
9-
latitude: number;
10-
longitude: number;
11-
};
12-
export let zoom: number = 19;
13-
export let style: string = 'width:425px; height:350px';
7+
export let id: string;
8+
export let location: {
9+
latitude: number;
10+
longitude: number;
11+
};
12+
export let zoom: number = 19;
13+
export let style: string = 'width:425px; height:350px';
1414
15-
const { mapboxAccessToken } = website;
16-
const { latitude, longitude } = location;
15+
const { mapboxAccessToken } = website;
16+
const { latitude, longitude } = location;
1717
18-
let leaflet: {
19-
map: (element: string | HTMLElement, options?: MapOptions) => Map;
20-
tileLayer: (urlTemplate: string, options?: TileLayerOptions) => TileLayer;
21-
};
18+
let leaflet: {
19+
map: (element: string | HTMLElement, options?: MapOptions) => Map;
20+
tileLayer: (urlTemplate: string, options?: TileLayerOptions) => TileLayer;
21+
};
2222
23-
onMount(() => {
24-
if (browser) {
25-
leaflet = window.L;
26-
const map = leaflet.map(id).setView([latitude, longitude], zoom);
27-
leaflet
28-
.tileLayer(
29-
'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}{r}?access_token={accessToken}',
30-
{
31-
attribution:
32-
'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
33-
maxZoom: 19,
34-
id: 'mapbox/streets-v11',
35-
tileSize: 512,
36-
zoomOffset: -1,
37-
accessToken: mapboxAccessToken,
38-
detectRetina: true
39-
}
40-
)
41-
.addTo(map);
42-
}
43-
});
23+
onMount(() => {
24+
if (browser) {
25+
leaflet = window.L;
26+
const map = leaflet.map(id).setView([latitude, longitude], zoom);
27+
leaflet
28+
.tileLayer(
29+
'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}{r}?access_token={accessToken}',
30+
{
31+
attribution:
32+
'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
33+
maxZoom: 19,
34+
id: 'mapbox/streets-v11',
35+
tileSize: 512,
36+
zoomOffset: -1,
37+
accessToken: mapboxAccessToken,
38+
detectRetina: true,
39+
},
40+
)
41+
.addTo(map);
42+
}
43+
});
4444
45-
// onDestroy(() => {
46-
// if (leaflet) {
47-
// leaflet = undefined;
48-
// }
49-
// });
45+
// onDestroy(() => {
46+
// if (leaflet) {
47+
// leaflet = undefined;
48+
// }
49+
// });
5050
</script>
5151

5252
<svelte:head>
53-
<link
54-
rel="stylesheet"
55-
href="https://unpkg.com/[email protected]/dist/leaflet.css"
56-
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
57-
crossorigin=""
58-
/>
59-
<script
60-
src="https://unpkg.com/[email protected]/dist/leaflet.js"
61-
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
62-
crossorigin=""></script>
53+
<link
54+
rel="stylesheet"
55+
href="https://unpkg.com/[email protected]/dist/leaflet.css"
56+
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
57+
crossorigin=""
58+
/>
59+
<script
60+
src="https://unpkg.com/[email protected]/dist/leaflet.js"
61+
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
62+
crossorigin=""></script>
6363
</svelte:head>
6464

6565
<div {id} {style} />

0 commit comments

Comments
 (0)