tangled
alpha
login
or
join now
flo-bit.dev
/
blento
your personal website on atproto - mirror
blento.app
20
fork
atom
overview
issues
pulls
pipelines
small fixes
Florian
3 days ago
7ec0d345
a555b1a0
+26
-15
3 changed files
expand all
collapse all
unified
split
src
lib
cards
social
BigSocialCard
index.ts
special
UpdatedBlentos
index.ts
website
EditableWebsite.svelte
+22
-1
src/lib/cards/social/BigSocialCard/index.ts
···
167
168
tangled: /(?:tangled\.org)/i,
169
170
-
mail: /(?:mailto:)/i
0
0
171
};
172
173
export const platformsData: Record<string, SimpleIcon> = {
···
277
</g>
278
<defs>
279
<clipPath id="clip0_0_3">
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
280
<rect width="24" height="24" fill="white"/>
281
</clipPath>
282
</defs>
···
167
168
tangled: /(?:tangled\.org)/i,
169
170
+
mail: /(?:mailto:)/i,
171
+
172
+
npmx: /(?:npmx\.dev)/i
173
};
174
175
export const platformsData: Record<string, SimpleIcon> = {
···
279
</g>
280
<defs>
281
<clipPath id="clip0_0_3">
282
+
<rect width="24" height="24" fill="white"/>
283
+
</clipPath>
284
+
</defs>
285
+
</svg>`
286
+
},
287
+
288
+
npmx: {
289
+
slug: 'npmx',
290
+
path: '',
291
+
title: 'npmx',
292
+
source: '',
293
+
hex: '0A0A0A',
294
+
svg: `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
295
+
<g clip-path="url(#clip0_4_2)">
296
+
<path d="M6.12765 16.4049H2V20.5326H6.12765V16.4049Z" fill="#525252"/>
297
+
<path d="M10.9049 23.8485L19.6885 -1H22L13.2164 23.8485H10.9049Z" fill="#FAFAFA"/>
298
+
</g>
299
+
<defs>
300
+
<clipPath id="clip0_4_2">
301
<rect width="24" height="24" fill="white"/>
302
</clipPath>
303
</defs>
+4
-2
src/lib/cards/special/UpdatedBlentos/index.ts
···
46
47
let result = [...(await Promise.all(profiles)), ...existingUsersArray];
48
49
-
result = result.filter((v) => v && v.handle !== 'handle.invalid');
0
0
50
51
if (cache) {
52
await cache?.put('updatedBlentos', JSON.stringify(result));
53
}
54
-
return JSON.parse(JSON.stringify(result));
55
} catch (error) {
56
console.error('error fetching updated blentos', error);
57
return [];
···
46
47
let result = [...(await Promise.all(profiles)), ...existingUsersArray];
48
49
+
result = result.filter(
50
+
(v) => v && v.handle !== 'handle.invalid' && !v.handle.endsWith('.pds.rip')
51
+
);
52
53
if (cache) {
54
await cache?.put('updatedBlentos', JSON.stringify(result));
55
}
56
+
return JSON.parse(JSON.stringify(result.slice(0, 20)));
57
} catch (error) {
58
console.error('error fetching updated blentos', error);
59
return [];
-12
src/lib/website/EditableWebsite.svelte
···
961
class="bg-base-900/70 text-base-100 fixed top-2 right-2 z-50 flex items-center gap-2 rounded px-2 py-1 font-mono text-xs"
962
>
963
<span>editedOn: {editedOn}</span>
964
-
<button class="underline" onclick={addAllCardTypes}>+ all cards</button>
965
-
<input
966
-
bind:value={copyInput}
967
-
placeholder="handle/page"
968
-
class="bg-base-800 text-base-100 w-32 rounded px-1 py-0.5"
969
-
onkeydown={(e) => {
970
-
if (e.key === 'Enter') copyPageFrom();
971
-
}}
972
-
/>
973
-
<button class="underline" onclick={copyPageFrom} disabled={isCopying}>
974
-
{isCopying ? 'copying...' : 'copy'}
975
-
</button>
976
</div>
977
{/if}
978
</Context>
···
961
class="bg-base-900/70 text-base-100 fixed top-2 right-2 z-50 flex items-center gap-2 rounded px-2 py-1 font-mono text-xs"
962
>
963
<span>editedOn: {editedOn}</span>
0
0
0
0
0
0
0
0
0
0
0
0
964
</div>
965
{/if}
966
</Context>