mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 06:24:25 +01:00
update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// NIP-18 (DEPRECATED)
|
||||
import { Show, Switch, Match, type Component } from 'solid-js';
|
||||
import { Event as NostrEvent } from 'nostr-tools/event';
|
||||
import { Event as NostrEvent } from 'nostr-tools';
|
||||
import ArrowPathRoundedSquare from 'heroicons/24/outline/arrow-path-rounded-square.svg';
|
||||
|
||||
import useConfig from '@/clients/useConfig';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { For, Switch, Match, type Component } from 'solid-js';
|
||||
import { Kind, type Event as NostrEvent } from 'nostr-tools/event';
|
||||
import { Kind, type Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
import TextNote from '@/components/TextNote';
|
||||
import Reaction from '@/components/notification/Reaction';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createSignal, createMemo, type Component, type JSX } from 'solid-js';
|
||||
import type { Event as NostrEvent } from 'nostr-tools/event';
|
||||
import type { Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
import PaperAirplane from 'heroicons/24/solid/paper-airplane.svg';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Show, For, createSignal, createMemo, type JSX, type Component } from 'solid-js';
|
||||
import type { Event as NostrEvent } from 'nostr-tools/event';
|
||||
import type { Event as NostrEvent } from 'nostr-tools';
|
||||
import uniq from 'lodash/uniq';
|
||||
|
||||
import HeartOutlined from 'heroicons/24/outline/heart.svg';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { For, Switch, Match, type Component } from 'solid-js';
|
||||
import { Kind, type Event as NostrEvent } from 'nostr-tools/event';
|
||||
import { Kind, type Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
import TextNote from '@/components/TextNote';
|
||||
import DeprecatedRepost from '@/components/DeprecatedRepost';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Switch, Match, type Component, Show } from 'solid-js';
|
||||
import { type Event as NostrEvent } from 'nostr-tools/event';
|
||||
import { type Event as NostrEvent } from 'nostr-tools';
|
||||
import HeartSolid from 'heroicons/24/solid/heart.svg';
|
||||
|
||||
import UserDisplayName from '@/components/UserDisplayName';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { For } from 'solid-js';
|
||||
import parseTextNote, { type ParsedTextNoteNode } from '@/core/parseTextNote';
|
||||
import type { Event as NostrEvent } from 'nostr-tools/event';
|
||||
import type { Event as NostrEvent } from 'nostr-tools';
|
||||
import PlainTextDisplay from '@/components/textNote/PlainTextDisplay';
|
||||
import MentionedUserDisplay from '@/components/textNote/MentionedUserDisplay';
|
||||
import MentionedEventDisplay from '@/components/textNote/MentionedEventDisplay';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Event as NostrEvent } from 'nostr-tools/event';
|
||||
import type { Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
export type EventMarker = 'reply' | 'root' | 'mention';
|
||||
export type TaggedEvent = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Event as NostrEvent } from 'nostr-tools/event';
|
||||
import type { Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
export type PlainText = {
|
||||
type: 'PlainText';
|
||||
|
||||
2
src/types/nostr.d.ts
vendored
2
src/types/nostr.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// The original code was published under the public domain license (CC0-1.0).
|
||||
// https://gist.github.com/syusui-s/cd5482ddfc83792b54a756759acbda55
|
||||
import { type Event as NostrEvent } from 'nostr-tools/event';
|
||||
import { type Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
type NostrAPI = {
|
||||
/** returns a public key as hex */
|
||||
|
||||
Reference in New Issue
Block a user