This commit is contained in:
Shusui MOYATANI
2023-04-24 00:22:20 +09:00
parent e7432dad93
commit 7b27ed288f
51 changed files with 224 additions and 174 deletions

View File

@@ -1,4 +1,5 @@
import { createSignal, createEffect, onMount, type Signal } from 'solid-js';
import { createStore, SetStoreFunction, type Store, type StoreNode } from 'solid-js/store';
type GenericStorage<T> = {

View File

@@ -1,7 +1,5 @@
import useConfig from '@/nostr/useConfig';
import useDatePulser from '@/hooks/useDatePulser';
import useConfig from '@/nostr/useConfig';
import { formatRelative, formatAbsoluteLong, formatAbsoluteShort } from '@/utils/formatDate';
// 7 seconds is used here so that the last digit of relative time is changed.

View File

@@ -1,4 +1,5 @@
import { Accessor } from 'solid-js';
import {
createSignalWithStorage,
createStorageWithSerializer,

View File

@@ -1,5 +1,5 @@
import type { Accessor } from 'solid-js';
import { createSignal, createEffect } from 'solid-js';
import type { Accessor } from 'solid-js';
export type UseResizedImageProps = {
imageUrl: Accessor<string | undefined>;

View File

@@ -2,6 +2,7 @@
// type Commands = (typeof commands)[number];
import { onMount, onCleanup, type JSX } from 'solid-js';
import throttle from 'lodash/throttle';
import { useRequestCommand, type Command } from '@/hooks/useCommandBus';