mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 14:04:21 +01:00
update
This commit is contained in:
@@ -6,12 +6,12 @@
|
|||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name="twitter:card" content="summary" />
|
||||||
<meta name="twitter:creator" content="@syusui-s" />
|
<meta name="twitter:creator" content="@syusui-s" />
|
||||||
<meta name="twitter:image" content="https://syusui-s.github.io/rabbit/images/rabbit_app_256.png" />
|
<meta name="twitter:image" content="https://syusui-s.github.io/rabbit/images/rabbit_app_1280.png" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://syusui-s.github.io/rabbit/" />
|
<meta property="og:url" content="https://syusui-s.github.io/rabbit/" />
|
||||||
<meta property="og:title" content="🐰rabbit" />
|
<meta property="og:title" content="🐰rabbit" />
|
||||||
<meta property="og:description" content="Nostr Client" />
|
<meta property="og:description" content="Nostr Client" />
|
||||||
<meta property="og:image" content="https://syusui-s.github.io/rabbit/images/rabbit_app_256.png" />
|
<meta property="og:image" content="https://syusui-s.github.io/rabbit/images/rabbit_app_1280.png" />
|
||||||
<meta property="og:locale" content="ja_JP" />
|
<meta property="og:locale" content="ja_JP" />
|
||||||
<link rel="manifest" href="manifest.json" />
|
<link rel="manifest" href="manifest.json" />
|
||||||
<link rel="shortcut icon" type="image/png" href="./images/rabbit_dark_256.png" />
|
<link rel="shortcut icon" type="image/png" href="./images/rabbit_dark_256.png" />
|
||||||
|
|||||||
BIN
public/images/rabbit_app_1280.png
Normal file
BIN
public/images/rabbit_app_1280.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
@@ -10,5 +10,9 @@
|
|||||||
"src": "images/rabbit_app_256.png",
|
"src": "images/rabbit_app_256.png",
|
||||||
"sizes": "256x256",
|
"sizes": "256x256",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
|
}, {
|
||||||
|
"src": "images/rabbit_app_1280.png",
|
||||||
|
"sizes": "1280x1280",
|
||||||
|
"type": "image/png"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export type MentionedUser = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const tagRefRegex = /(?:#\[(?<idx>\d+)\])/g;
|
const tagRefRegex = /(?:#\[(?<idx>\d+)\])/g;
|
||||||
const hashTagRegex = /#(?<hashtag>[^[-^`:-@!-/{-~\d\s][^[-^`:-@!-/{-~\s]+)/g;
|
const hashTagRegex = /#(?<hashtag>[\p{Letter}\p{Number}_]+)/gu;
|
||||||
// raw NIP-19 codes, NIP-21 links (NIP-27)
|
// raw NIP-19 codes, NIP-21 links (NIP-27)
|
||||||
// nrelay and naddr is not supported by nostr-tools
|
// nrelay and naddr is not supported by nostr-tools
|
||||||
const mentionRegex = /(?:nostr:)?(?<mention>(npub|note|nprofile|nevent)1[ac-hj-np-z02-9]+)/gi;
|
const mentionRegex = /(?:nostr:)?(?<mention>(npub|note|nprofile|nevent)1[ac-hj-np-z02-9]+)/gi;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const Hello: Component = () => {
|
|||||||
return (
|
return (
|
||||||
<div class="mx-auto flex max-w-[640px] flex-col items-center p-4 text-stone-600">
|
<div class="mx-auto flex max-w-[640px] flex-col items-center p-4 text-stone-600">
|
||||||
<div class="flex flex-col items-center gap-4 rounded bg-white p-4">
|
<div class="flex flex-col items-center gap-4 rounded bg-white p-4">
|
||||||
<img src="./images/rabbit_light_256.png" width="96" alt="logo" height="96" />
|
<img src="./images/rabbit_256.png" width="96" alt="logo" height="96" />
|
||||||
<h1 class="text-5xl font-black text-rose-300">Rabbit</h1>
|
<h1 class="text-5xl font-black text-rose-300">Rabbit</h1>
|
||||||
<div>Rabbit is a Web client for Nostr.</div>
|
<div>Rabbit is a Web client for Nostr.</div>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
|
|||||||
@@ -122,6 +122,9 @@ const Home: Component = () => {
|
|||||||
since: epoch() - 12 * 60 * 60,
|
since: epoch() - 12 * 60 * 60,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
clientEventFilter: (ev) => {
|
||||||
|
return /[\p{scx=Hiragana}\p{scx=Katakana}\p{sc=Han}]/u.test(ev.content);
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user