refactor: move directory

This commit is contained in:
Shusui MOYATANI
2023-03-08 13:33:55 +09:00
parent 3228f401ae
commit adbee3e174
24 changed files with 137 additions and 43 deletions

View File

@@ -3,9 +3,9 @@ import { Show, Switch, Match, type Component } from 'solid-js';
import { Event as NostrEvent } from 'nostr-tools';
import ArrowPathRoundedSquare from 'heroicons/24/outline/arrow-path-rounded-square.svg';
import useConfig from '@/clients/useConfig';
import useEvent from '@/clients/useEvent';
import useProfile from '@/clients/useProfile';
import useConfig from '@/nostr/useConfig';
import useEvent from '@/nostr/useEvent';
import useProfile from '@/nostr/useProfile';
import UserDisplayName from '@/components/UserDisplayName';
import TextNote from '@/components/TextNote';

View File

@@ -4,9 +4,9 @@ import PencilSquare from 'heroicons/24/solid/pencil-square.svg';
import NotePostForm from '@/components/NotePostForm';
import useConfig from '@/clients/useConfig';
import useCommands from '@/clients/useCommands';
import usePubkey from '@/clients/usePubkey';
import useConfig from '@/nostr/useConfig';
import useCommands from '@/nostr/useCommands';
import usePubkey from '@/nostr/usePubkey';
import { useHandleCommand } from '@/hooks/useCommandBus';
import ensureNonNull from '@/utils/ensureNonNull';

View File

@@ -8,12 +8,12 @@ import ArrowPathRoundedSquare from 'heroicons/24/outline/arrow-path-rounded-squa
import ChatBubbleLeft from 'heroicons/24/outline/chat-bubble-left.svg';
import EllipsisHorizontal from 'heroicons/24/outline/ellipsis-horizontal.svg';
import useProfile from '@/clients/useProfile';
import useConfig from '@/clients/useConfig';
import usePubkey from '@/clients/usePubkey';
import useCommands from '@/clients/useCommands';
import useReactions from '@/clients/useReactions';
import useDeprecatedReposts from '@/clients/useDeprecatedReposts';
import useProfile from '@/nostr/useProfile';
import useConfig from '@/nostr/useConfig';
import usePubkey from '@/nostr/usePubkey';
import useCommands from '@/nostr/useCommands';
import useReactions from '@/nostr/useReactions';
import useDeprecatedReposts from '@/nostr/useDeprecatedReposts';
import useDatePulser from '@/hooks/useDatePulser';
import { formatRelative } from '@/utils/formatDate';
import ColumnItem from '@/components/ColumnItem';

View File

@@ -1,7 +1,7 @@
import { Component, Switch, Match } from 'solid-js';
import useConfig from '@/clients/useConfig';
import useProfile, { type Profile } from '@/clients/useProfile';
import useConfig from '@/nostr/useConfig';
import useProfile, { type Profile } from '@/nostr/useProfile';
type UserNameDisplayProps = {
pubkey: string;

View File

@@ -5,9 +5,9 @@ import HeartSolid from 'heroicons/24/solid/heart.svg';
import UserDisplayName from '@/components/UserDisplayName';
import TextNote from '@/components/TextNote';
import useConfig from '@/clients/useConfig';
import useProfile from '@/clients/useProfile';
import useEvent from '@/clients/useEvent';
import useConfig from '@/nostr/useConfig';
import useProfile from '@/nostr/useProfile';
import useEvent from '@/nostr/useEvent';
type ReactionProps = {
event: NostrEvent;

View File

@@ -1,6 +1,6 @@
import type { MentionedUser } from '@/core/parseTextNote';
import useProfile from '@/clients/useProfile';
import useConfig from '@/clients/useConfig';
import useProfile from '@/nostr/useProfile';
import useConfig from '@/nostr/useConfig';
import { Show } from 'solid-js';
export type GeneralUserMentionDisplayProps = {

View File

@@ -23,7 +23,7 @@ const ImageDisplay: Component<ImageDisplayProps> = (props) => {
const url = () => new URL(props.url);
return (
<a href={props.url} target="_blank" rel="noopener noreferrer">
<a class="my-2 inline-block" href={props.url} target="_blank" rel="noopener noreferrer">
<img
class="inline-block max-h-64 max-w-full rounded object-contain shadow"
src={fixUrl(url())}