move to pkg

This commit is contained in:
2023-06-08 12:45:23 +02:00
parent 2b80109e3b
commit 81ccb95d82
256 changed files with 4856 additions and 529 deletions

View File

@ -1,5 +1,5 @@
import { useSyncExternalStore } from "react";
import { HexKey, u256 } from "System";
import { HexKey, u256 } from "@snort/system";
import { InteractionCache } from "Cache/EventInteractionCache";
import { EventInteraction } from "Db";

View File

@ -1,4 +1,4 @@
import { HexKey } from "System";
import { HexKey } from "@snort/system";
import useEventPublisher from "Feed/EventPublisher";
import useLogin from "Hooks/useLogin";
import { setBlocked, setMuted } from "Login";

View File

@ -1,7 +1,13 @@
import { useMemo } from "react";
import { HexKey, Lists, EventKind } from "System";
import {
HexKey,
Lists,
EventKind,
FlatNoteStore,
ParameterizedReplaceableNoteStore,
RequestBuilder,
} from "@snort/system";
import { FlatNoteStore, ParameterizedReplaceableNoteStore, RequestBuilder } from "System";
import useRequestBuilder from "Hooks/useRequestBuilder";
import useLogin from "Hooks/useLogin";

View File

@ -1,6 +1,5 @@
import { useSyncExternalStore } from "react";
import { RequestBuilder } from "System";
import { EmptySnapshot, NoteStore, StoreSnapshot } from "System/NoteCollection";
import { RequestBuilder, EmptySnapshot, NoteStore, StoreSnapshot } from "@snort/system";
import { unwrap } from "SnortUtils";
import { System } from "index";

View File

@ -1,5 +1,5 @@
import { useSyncExternalStore } from "react";
import { SystemSnapshot } from "System";
import { SystemSnapshot } from "@snort/system";
import { System } from "index";
export default function useSystemState() {

View File

@ -1,7 +1,6 @@
import { useEffect, useSyncExternalStore } from "react";
import { HexKey } from "System";
import { MetadataCache } from "Cache";
import { HexKey, MetadataCache } from "@snort/system";
import { UserCache } from "Cache/UserCache";
import { ProfileLoader } from "index";