tangled
alpha
login
or
join now
flo-bit.dev
/
blento
21
fork
atom
your personal website on atproto - mirror
blento.app
21
fork
atom
overview
issues
pulls
pipelines
npm run format
unbedenklich
1 month ago
d55a4f08
74872072
+71
-39
4 changed files
expand all
collapse all
unified
split
.claude
settings.local.json
src
lib
cards
core
MapCard
Map.svelte
SectionCard
EditingSectionCard.svelte
SectionCard.svelte
+32
-32
.claude/settings.local.json
···
1
1
{
2
2
-
"permissions": {
3
3
-
"allow": [
4
4
-
"Bash(pnpm check:*)",
5
5
-
"mcp__ide__getDiagnostics",
6
6
-
"mcp__plugin_svelte_svelte__svelte-autofixer",
7
7
-
"mcp__plugin_svelte_svelte__list-sections",
8
8
-
"Bash(pkill:*)",
9
9
-
"Bash(timeout 8 pnpm dev:*)",
10
10
-
"Bash(git checkout:*)",
11
11
-
"Bash(npx svelte-kit:*)",
12
12
-
"Bash(ls:*)",
13
13
-
"Bash(pnpm format:*)",
14
14
-
"Bash(pnpm add:*)",
15
15
-
"WebSearch",
16
16
-
"WebFetch(domain:github.com)",
17
17
-
"WebFetch(domain:flipclockjs.com)",
18
18
-
"WebFetch(domain:codepen.io)",
19
19
-
"WebFetch(domain:flo-bit.dev)",
20
20
-
"Bash(pnpm install)",
21
21
-
"Bash(pnpm install:*)",
22
22
-
"Bash(pnpm config:*)",
23
23
-
"Bash(lsof:*)",
24
24
-
"Bash(pnpm dev)",
25
25
-
"Bash(pnpm exec svelte-kit:*)",
26
26
-
"Bash(pnpm build:*)",
27
27
-
"Bash(pnpm remove:*)",
28
28
-
"Bash(grep:*)",
29
29
-
"Bash(find:*)",
30
30
-
"Bash(npx prettier:*)",
31
31
-
"Bash(node -e:*)"
32
32
-
]
33
33
-
}
2
2
+
"permissions": {
3
3
+
"allow": [
4
4
+
"Bash(pnpm check:*)",
5
5
+
"mcp__ide__getDiagnostics",
6
6
+
"mcp__plugin_svelte_svelte__svelte-autofixer",
7
7
+
"mcp__plugin_svelte_svelte__list-sections",
8
8
+
"Bash(pkill:*)",
9
9
+
"Bash(timeout 8 pnpm dev:*)",
10
10
+
"Bash(git checkout:*)",
11
11
+
"Bash(npx svelte-kit:*)",
12
12
+
"Bash(ls:*)",
13
13
+
"Bash(pnpm format:*)",
14
14
+
"Bash(pnpm add:*)",
15
15
+
"WebSearch",
16
16
+
"WebFetch(domain:github.com)",
17
17
+
"WebFetch(domain:flipclockjs.com)",
18
18
+
"WebFetch(domain:codepen.io)",
19
19
+
"WebFetch(domain:flo-bit.dev)",
20
20
+
"Bash(pnpm install)",
21
21
+
"Bash(pnpm install:*)",
22
22
+
"Bash(pnpm config:*)",
23
23
+
"Bash(lsof:*)",
24
24
+
"Bash(pnpm dev)",
25
25
+
"Bash(pnpm exec svelte-kit:*)",
26
26
+
"Bash(pnpm build:*)",
27
27
+
"Bash(pnpm remove:*)",
28
28
+
"Bash(grep:*)",
29
29
+
"Bash(find:*)",
30
30
+
"Bash(npx prettier:*)",
31
31
+
"Bash(node -e:*)"
32
32
+
]
33
33
+
}
34
34
}
+37
-5
src/lib/cards/core/MapCard/Map.svelte
···
24
24
pitchWithRotate={false}
25
25
touchPitch={false}
26
26
>
27
27
-
<Projection type={'globe'} />
27
27
+
<Projection type="globe" />
28
28
29
29
<Marker bind:lnglat={center}>
30
30
{#snippet content()}
···
36
36
</MapLibre>
37
37
38
38
{#snippet infoIcon()}
39
39
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill-rule="evenodd" viewBox="0 0 20 20">
40
40
-
<path d="M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0" />
39
39
+
<svg
40
40
+
xmlns="http://www.w3.org/2000/svg"
41
41
+
width="24"
42
42
+
height="24"
43
43
+
fill-rule="evenodd"
44
44
+
viewBox="0 0 20 20"
45
45
+
>
46
46
+
<path
47
47
+
d="M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0"
48
48
+
/>
41
49
</svg>
42
50
{/snippet}
43
51
44
52
{#snippet attributionText()}
45
45
-
<a href="https://openfreemap.org" target="_blank" rel="noopener noreferrer" class="text-black/75 no-underline hover:underline" onclick={(e) => e.stopPropagation()}>OpenFreeMap</a> <a href="https://openmaptiles.org" target="_blank" rel="noopener noreferrer" class="text-black/75 no-underline hover:underline" onclick={(e) => e.stopPropagation()}>© OpenMapTiles</a> Data from <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer" class="text-black/75 no-underline hover:underline" onclick={(e) => e.stopPropagation()}>OpenStreetMap</a>
53
53
+
<a
54
54
+
href="https://openfreemap.org"
55
55
+
target="_blank"
56
56
+
rel="noopener noreferrer"
57
57
+
class="text-black/75 no-underline hover:underline"
58
58
+
onclick={(e) => e.stopPropagation()}>OpenFreeMap</a
59
59
+
>
60
60
+
<a
61
61
+
href="https://openmaptiles.org"
62
62
+
target="_blank"
63
63
+
rel="noopener noreferrer"
64
64
+
class="text-black/75 no-underline hover:underline"
65
65
+
onclick={(e) => e.stopPropagation()}>© OpenMapTiles</a
66
66
+
>
67
67
+
Data from
68
68
+
<a
69
69
+
href="https://www.openstreetmap.org/copyright"
70
70
+
target="_blank"
71
71
+
rel="noopener noreferrer"
72
72
+
class="text-black/75 no-underline hover:underline"
73
73
+
onclick={(e) => e.stopPropagation()}>OpenStreetMap</a
74
74
+
>
46
75
{/snippet}
47
76
48
77
{#if showAttribution}
49
49
-
<div class="absolute right-2.5 bottom-2.5 z-10 rounded-xl bg-white text-black" style="width: calc(100% - 20px); max-width: 12rem;">
78
78
+
<div
79
79
+
class="absolute right-2.5 bottom-2.5 z-10 rounded-xl bg-white text-black"
80
80
+
style="width: calc(100% - 20px); max-width: 12rem;"
81
81
+
>
50
82
<button
51
83
class="float-right flex size-6 cursor-pointer items-center justify-center rounded-full shadow-[0_0_6px_rgba(59,130,246,0.6)]"
52
84
onclick={() => (showAttribution = false)}
+1
-1
src/lib/cards/core/SectionCard/EditingSectionCard.svelte
···
9
9
10
10
<div
11
11
class={[
12
12
-
'line-clamp-1 inline-flex h-full w-full rounded-md py-2 px-4 font-semibold',
12
12
+
'line-clamp-1 inline-flex h-full w-full rounded-md px-4 py-2 font-semibold',
13
13
textAlignClasses[item.cardData.textAlign as string],
14
14
verticalAlignClasses[item.cardData.verticalAlign ?? ('center' as string)],
15
15
textSizeClasses[(item.cardData.textSize ?? 1) as number]
+1
-1
src/lib/cards/core/SectionCard/SectionCard.svelte
···
12
12
13
13
<div
14
14
class={[
15
15
-
'line-clamp-1 inline-flex h-full w-full rounded-md py-2 px-4 font-semibold',
15
15
+
'line-clamp-1 inline-flex h-full w-full rounded-md px-4 py-2 font-semibold',
16
16
textAlignClasses[item.cardData.textAlign as string],
17
17
verticalAlignClasses[item.cardData.verticalAlign ?? ('center' as string)],
18
18
textSizeClasses[(item.cardData.textSize ?? 1) as number]