this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

reorder: mobe out of components header files

Clément d55de0ff 8bbafcc1

+19 -13
+1 -1
app/prettier.config.js
··· 9 9 'prettier-plugin-tailwindcss', 10 10 '@trivago/prettier-plugin-sort-imports', 11 11 ], 12 - importOrder: ['^~/(.*)$', '^@/(.*)$', '^[./]'], 12 + importOrder: ['^~/(.*)$', '^\\$/(.*)$', '^@/(.*)$', '^[./]'], 13 13 importOrderSeparation: true, 14 14 importOrderSortSpecifiers: true, 15 15 };
app/src/auth/oauth-config.ts app/src/lib/auth/oauth-config.ts
+1 -1
app/src/auth/scope-flow.ts app/src/lib/auth/scope-flow.ts
··· 1 1 import type { Did, Handle } from '@atcute/lexicons/syntax'; 2 2 import { createAuthorizationUrl } from '@atcute/oauth-browser-client'; 3 3 4 - import '~/auth/oauth-config'; 4 + import './oauth-config'; 5 5 6 6 type UseOAuthScopeFlowOptions = { 7 7 onError?: (error: unknown) => void;
app/src/components/Avatar.tsx app/src/lib/components/Avatar.tsx
app/src/components/Button.tsx app/src/lib/components/Button.tsx
app/src/components/Dialog.tsx app/src/lib/components/Dialog.tsx
app/src/components/Dropdown.tsx app/src/lib/components/Dropdown.tsx
+2 -1
app/src/components/Header.tsx app/src/lib/header/Header.tsx
··· 4 4 5 5 import { useAuth } from '~/contexts/auth'; 6 6 7 - import { Avatar } from './Avatar'; 7 + import { Avatar } from '@/Avatar'; 8 + 8 9 import { SignInDialog } from './SignInDialog'; 9 10 10 11 export function Header() {
+3 -3
app/src/components/SignInDialog.tsx app/src/lib/header/SignInDialog.tsx
··· 4 4 import { Check } from 'lucide-solid'; 5 5 import { Show, createSignal } from 'solid-js'; 6 6 7 - import { useOAuthScopeFlow } from '~/auth/scope-flow'; 7 + import { useOAuthScopeFlow } from '$/auth/scope-flow'; 8 8 9 - import { Button } from './Button'; 10 - import { Dialog } from './Dialog'; 9 + import { Button } from '@/Button'; 10 + import { Dialog } from '@/Dialog'; 11 11 12 12 export function SignInDialog() { 13 13 const [authHost, setAuthHost] = createSignal('');
app/src/components/Toaster.tsx app/src/lib/components/Toaster.tsx
+2 -1
app/src/contexts/auth.tsx
··· 4 4 import { createContext, useContext } from 'solid-js'; 5 5 import type { JSX } from 'solid-js'; 6 6 7 - import { useAppSession } from '~/lib/session'; 8 7 import { prisma } from '~/server/db.server'; 8 + 9 + import { useAppSession } from '$/session'; 9 10 10 11 type AuthContextType = { 11 12 did: () => Did | null;
+3 -2
app/src/routes/__root.tsx
··· 8 8 import { Suspense } from 'solid-js'; 9 9 import { HydrationScript } from 'solid-js/web'; 10 10 11 - import { Toaster } from '~/components/Toaster'; 12 11 import { AuthProvider } from '~/contexts/auth'; 13 12 import styleCss from '~/styles.css?url'; 14 13 15 - import { Header } from '@/Header'; 14 + import { Header } from '$/header/Header'; 15 + 16 + import { Toaster } from '@/Toaster'; 16 17 17 18 export const Route = createRootRouteWithContext()({ 18 19 head: () => ({
+5 -3
app/src/routes/oauth/callback.tsx
··· 5 5 import crypto from 'node:crypto'; 6 6 import { onMount } from 'solid-js'; 7 7 8 - import '~/auth/oauth-config'; 9 - import { toaster } from '~/components/Toaster'; 10 8 import { useAuth } from '~/contexts/auth'; 11 - import { useAppSession } from '~/lib/session'; 12 9 import { encrypt } from '~/server/crypto.server'; 13 10 import { prisma } from '~/server/db.server'; 11 + 12 + import '$/auth/oauth-config'; 13 + import { useAppSession } from '$/session'; 14 + 15 + import { toaster } from '@/Toaster'; 14 16 15 17 export const Route = createFileRoute('/oauth/callback')({ 16 18 component: OAuthCallback,
+2 -1
app/tsconfig.json
··· 31 31 32 32 "paths": { 33 33 "~/*": ["./src/*"], 34 - "@/*": ["./src/components/*"], 34 + "$/*": ["./src/lib/*"], 35 + "@/*": ["./src/lib/components/*"], 35 36 }, 36 37 }, 37 38 }