chore: Update translations
This commit is contained in:
@ -4,7 +4,7 @@ import { EventKind, NostrEvent, NostrLink, TaggedNostrEvent, ToNostrEventTag, Un
|
|||||||
import useLogin from "@/Hooks/useLogin";
|
import useLogin from "@/Hooks/useLogin";
|
||||||
|
|
||||||
export class MutedWordTag implements ToNostrEventTag {
|
export class MutedWordTag implements ToNostrEventTag {
|
||||||
constructor(readonly word: string) { }
|
constructor(readonly word: string) {}
|
||||||
|
|
||||||
toEventTag(): string[] | undefined {
|
toEventTag(): string[] | undefined {
|
||||||
return ["word", this.word.toLowerCase()];
|
return ["word", this.word.toLowerCase()];
|
||||||
|
@ -48,10 +48,11 @@ export default function ModerationSettingsPage() {
|
|||||||
value={muteWord}
|
value={muteWord}
|
||||||
onChange={e => setMuteWord(e.target.value.toLowerCase())}
|
onChange={e => setMuteWord(e.target.value.toLowerCase())}
|
||||||
/>
|
/>
|
||||||
<AsyncButton onClick={async () => {
|
<AsyncButton
|
||||||
await addMutedWord(muteWord);
|
onClick={async () => {
|
||||||
setMuteWord("");
|
await addMutedWord(muteWord);
|
||||||
}}>
|
setMuteWord("");
|
||||||
|
}}>
|
||||||
<FormattedMessage defaultMessage="Add" id="2/2yg+" />
|
<FormattedMessage defaultMessage="Add" id="2/2yg+" />
|
||||||
</AsyncButton>
|
</AsyncButton>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@ export interface ToNostrEventTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class NostrHashtagLink implements ToNostrEventTag {
|
export class NostrHashtagLink implements ToNostrEventTag {
|
||||||
constructor(readonly tag: string) { }
|
constructor(readonly tag: string) {}
|
||||||
|
|
||||||
toEventTag() {
|
toEventTag() {
|
||||||
return ["t", this.tag];
|
return ["t", this.tag];
|
||||||
@ -28,7 +28,7 @@ export class NostrHashtagLink implements ToNostrEventTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class UnknownTag implements ToNostrEventTag {
|
export class UnknownTag implements ToNostrEventTag {
|
||||||
constructor(readonly value: Array<string>) { }
|
constructor(readonly value: Array<string>) {}
|
||||||
toEventTag(): string[] | undefined {
|
toEventTag(): string[] | undefined {
|
||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
@ -194,11 +194,7 @@ export class NostrLink implements ToNostrEventTag {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromTag(
|
static fromTag(tag: Array<string>, author?: string, kind?: number) {
|
||||||
tag: Array<string>,
|
|
||||||
author?: string,
|
|
||||||
kind?: number,
|
|
||||||
) {
|
|
||||||
const relays = tag.length > 2 ? [tag[2]] : undefined;
|
const relays = tag.length > 2 ? [tag[2]] : undefined;
|
||||||
switch (tag[0]) {
|
switch (tag[0]) {
|
||||||
case "e": {
|
case "e": {
|
||||||
|
Reference in New Issue
Block a user