chore: Update translations
This commit is contained in:
parent
64f5fc290f
commit
bae19e0f53
@ -83,7 +83,12 @@ export default function VideoGridSorted({
|
||||
<GridSection header={`#${t.tag}`} items={t.live} />
|
||||
))}
|
||||
{showPopular && <PopularCategories items={evs} />}
|
||||
{showVideos && <GridSection header={<FormattedMessage defaultMessage="Videos" />} items={evs.filter(a => a.kind === VIDEO_KIND)} />}
|
||||
{showVideos && (
|
||||
<GridSection
|
||||
header={<FormattedMessage defaultMessage="Videos" />}
|
||||
items={evs.filter(a => a.kind === VIDEO_KIND)}
|
||||
/>
|
||||
)}
|
||||
{showRecentClips && <RecentClips />}
|
||||
{hasFollowingLive && liveNow.length > 0 && (
|
||||
<GridSection header={<FormattedMessage defaultMessage="Live" id="Dn82AL" />} items={liveNow} />
|
||||
|
@ -91,7 +91,7 @@ const router = createBrowserRouter([
|
||||
children: [
|
||||
{
|
||||
path: "/debug",
|
||||
element: <DebugPage />
|
||||
element: <DebugPage />,
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
|
@ -91,8 +91,9 @@ export function DashboardForLink({ link }: { link: NostrLink }) {
|
||||
</h3>
|
||||
<div className="uppercase font-semibold flex items-center gap-2">
|
||||
<div
|
||||
className={`w-3 h-3 rounded-full ${status === StreamState.Live ? "animate-pulse bg-green-500" : "bg-red-500"
|
||||
}`}></div>
|
||||
className={`w-3 h-3 rounded-full ${
|
||||
status === StreamState.Live ? "animate-pulse bg-green-500" : "bg-red-500"
|
||||
}`}></div>
|
||||
{status === StreamState.Live ? (
|
||||
<FormattedMessage defaultMessage="Started" />
|
||||
) : (
|
||||
@ -215,9 +216,14 @@ export function DashboardForLink({ link }: { link: NostrLink }) {
|
||||
<>
|
||||
<DashboardZapColumn ev={streamEvent!} link={streamLink} feed={feed} />
|
||||
<div className="border border-layer-2 rounded-xl px-4 py-3 flex flex-col min-h-0">
|
||||
<Layer1Button onClick={() => {
|
||||
window.open(`${window.location.protocol}//${window.location.host}/chat/${link.encode()}?chat=true`, "", "popup=true,width=400,height=800")
|
||||
}}>
|
||||
<Layer1Button
|
||||
onClick={() => {
|
||||
window.open(
|
||||
`${window.location.protocol}//${window.location.host}/chat/${link.encode()}?chat=true`,
|
||||
"",
|
||||
"popup=true,width=400,height=800",
|
||||
);
|
||||
}}>
|
||||
<Icon name="link" size={24} />
|
||||
<FormattedMessage defaultMessage="Chat Popout" />
|
||||
</Layer1Button>
|
||||
|
@ -39,9 +39,7 @@ export function DebugPage() {
|
||||
<h3>Cache Query</h3>
|
||||
<textarea value={filter} onChange={e => setFilter(e.target.value)} placeholder="nostr filter" />
|
||||
<Layer1Button onClick={() => search()}>Query</Layer1Button>
|
||||
<WarningButton onClick={() => removeEvents()} >
|
||||
Delete
|
||||
</WarningButton>
|
||||
<WarningButton onClick={() => removeEvents()}>Delete</WarningButton>
|
||||
|
||||
<h3>Manual Insert</h3>
|
||||
<textarea value={event} onChange={e => setEvent(e.target.value)} placeholder="nostr event" />
|
||||
|
@ -7,11 +7,7 @@ import { useMemo, useState } from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
import { useNavigate, useParams } from "react-router-dom";
|
||||
|
||||
export const SearchRelays = [
|
||||
"wss://relay.nostr.band",
|
||||
"wss://search.nos.today",
|
||||
"wss://relay.noswhere.com",
|
||||
];
|
||||
export const SearchRelays = ["wss://relay.nostr.band", "wss://search.nos.today", "wss://relay.noswhere.com"];
|
||||
|
||||
export default function SearchPage() {
|
||||
const { term } = useParams();
|
||||
@ -23,13 +19,9 @@ export default function SearchPage() {
|
||||
if (!term) return;
|
||||
const rb = new RequestBuilder(`search:${term}`);
|
||||
rb.withOptions({
|
||||
skipDiff: true
|
||||
skipDiff: true,
|
||||
});
|
||||
rb.withFilter()
|
||||
.relay(SearchRelays)
|
||||
.kinds([EventKind.LiveEvent, VIDEO_KIND])
|
||||
.search(term)
|
||||
.limit(50);
|
||||
rb.withFilter().relay(SearchRelays).kinds([EventKind.LiveEvent, VIDEO_KIND]).search(term).limit(50);
|
||||
return rb;
|
||||
}, [term]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user