mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 22:44:26 +01:00
refactor: move directory
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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())}
|
||||
|
||||
Reference in New Issue
Block a user