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