This commit is contained in:
Shusui MOYATANI
2023-04-24 12:37:33 +09:00
parent d293e41d59
commit 7c47df5267
6 changed files with 11 additions and 4 deletions

View File

@@ -6,12 +6,12 @@
<meta name="theme-color" content="#000000" />
<meta name="twitter:card" content="summary" />
<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:url" content="https://syusui-s.github.io/rabbit/" />
<meta property="og:title" content="🐰rabbit" />
<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" />
<link rel="manifest" href="manifest.json" />
<link rel="shortcut icon" type="image/png" href="./images/rabbit_dark_256.png" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -10,5 +10,9 @@
"src": "images/rabbit_app_256.png",
"sizes": "256x256",
"type": "image/png"
}, {
"src": "images/rabbit_app_1280.png",
"sizes": "1280x1280",
"type": "image/png"
}]
}

View File

@@ -58,7 +58,7 @@ export type MentionedUser = {
};
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)
// nrelay and naddr is not supported by nostr-tools
const mentionRegex = /(?:nostr:)?(?<mention>(npub|note|nprofile|nevent)1[ac-hj-np-z02-9]+)/gi;

View File

@@ -48,7 +48,7 @@ const Hello: Component = () => {
return (
<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">
<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>
<div>Rabbit is a Web client for Nostr.</div>
<p class="text-center">

View File

@@ -122,6 +122,9 @@ const Home: Component = () => {
since: epoch() - 12 * 60 * 60,
},
],
clientEventFilter: (ev) => {
return /[\p{scx=Hiragana}\p{scx=Katakana}\p{sc=Han}]/u.test(ev.content);
},
}));
onMount(() => {