-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/live markdown editor #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
import { v4 as uuidv4 } from 'uuid'; |
[Biome] reported by reviewdog 🐶
import { fileTypeFromBuffer, FileTypeResult } from 'file-type'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Line 42 in 1428693
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Line 53 in 1428693
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/session.server.ts
Lines 3 to 5 in 1428693
import { createCookieSessionStorage } from "@remix-run/node"; | |
import { env } from "./env.server"; | |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/session.server.ts
Lines 8 to 16 in 1428693
cookie: { | |
name: "auth_session", | |
sameSite: "lax", | |
path: "/", | |
httpOnly: true, | |
secrets: [env.SESSION_SECRET], | |
secure: process.env.NODE_ENV === "production", | |
maxAge: 60 * 60 * 24, | |
}, |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/_index.tsx
Lines 6 to 8 in 1428693
import { MemberCard } from '~/components/MemberCard'; | |
import { Navbar } from '~/components/navbar'; | |
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { LoaderFunctionArgs } from "@remix-run/node"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/api+/file-upload.ts
Lines 3 to 5 in 1428693
export async function loader({request}: LoaderFunctionArgs) { | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/auth+/callback.ts
Lines 1 to 2 in 1428693
import { LoaderFunctionArgs } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/auth+/callback.ts
Lines 4 to 8 in 1428693
export async function loader({request}: LoaderFunctionArgs) { | |
return authenticator.authenticate("oidc", request, { | |
successRedirect: "/", | |
}) |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { uploadHandler } from '~/lib/s3.server'; |
[Biome] reported by reviewdog 🐶
import { action as PreveiwAction } from '../preview'; |
[Biome] reported by reviewdog 🐶
const handlePaste: ClipboardEventHandler<HTMLTextAreaElement> = async (event) => { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog+/$articleId+/index.tsx
Lines 10 to 11 in 1428693
import { getSocialIcon } from '~/lib/utils'; | |
import { getBlogPost } from '../../../lib/blog.server'; |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Lines 15 to 18 in 1428693
import { uploadHandler } from '~/lib/s3.server'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreveiwAction } from './blog+/preview'; | |
import { IconPencil, IconPlayerPlay } from '@tabler/icons-react'; |
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Line 133 in 1428693
<input placeholder="Title" className='bg-transparent focus-within:outline-none text-2xl mb-4'></input> |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/file-upload.tsx
Lines 1 to 2 in 1428693
import { ActionFunctionArgs } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/file-upload.tsx
Lines 4 to 10 in 1428693
export async function action({request}: ActionFunctionArgs) { | |
const user = await authenticator.isAuthenticated(request, { | |
failureRedirect: "/login", | |
}); | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/login.ts
Lines 1 to 2 in 1428693
import { LoaderFunctionArgs } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/login.ts
Line 4 in 1428693
export async function loader({request}: LoaderFunctionArgs) { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/login.ts
Line 6 in 1428693
} |
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Lines 3 to 4 in 44f61a4
import { env } from './env.server'; | |
import { UploadHandler } from '@remix-run/node'; |
[Biome] reported by reviewdog 🐶
import { v4 as uuidv4 } from 'uuid'; |
[Biome] reported by reviewdog 🐶
import { fileTypeFromBuffer, FileTypeResult } from 'file-type'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Line 42 in 44f61a4
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Line 53 in 44f61a4
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Line 84 in 44f61a4
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/session.server.ts
Lines 3 to 5 in 44f61a4
import { createCookieSessionStorage } from "@remix-run/node"; | |
import { env } from "./env.server"; | |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/session.server.ts
Lines 8 to 16 in 44f61a4
cookie: { | |
name: "auth_session", | |
sameSite: "lax", | |
path: "/", | |
httpOnly: true, | |
secrets: [env.SESSION_SECRET], | |
secure: process.env.NODE_ENV === "production", | |
maxAge: 60 * 60 * 24, | |
}, |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/user.ts
Lines 1 to 3 in 44f61a4
import { useRouteLoaderData } from "@remix-run/react"; | |
import {loader as rootLoader} from "~/root" | |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/user.ts
Line 6 in 44f61a4
const data = useRouteLoaderData<typeof rootLoader>("root"); |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/user.ts
Lines 8 to 10 in 44f61a4
if (!data) { | |
return null; | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/user.ts
Lines 12 to 13 in 44f61a4
return data.user; | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/root.tsx
Line 13 in 44f61a4
LoaderFunctionArgs, |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/root.tsx
Line 15 in 44f61a4
type MetaFunction, |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/_index.tsx
Lines 6 to 8 in 44f61a4
import { MemberCard } from '~/components/MemberCard'; | |
import { Navbar } from '~/components/navbar'; | |
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { LoaderFunctionArgs } from "@remix-run/node"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/api+/file-upload.ts
Lines 3 to 5 in 44f61a4
export async function loader({request}: LoaderFunctionArgs) { | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/auth+/callback.ts
Lines 1 to 2 in 44f61a4
import { LoaderFunctionArgs } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/auth+/callback.ts
Lines 4 to 8 in 44f61a4
export async function loader({request}: LoaderFunctionArgs) { | |
return authenticator.authenticate("oidc", request, { | |
successRedirect: "/", | |
}) |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { uploadHandler } from '~/lib/s3.server'; |
[Biome] reported by reviewdog 🐶
import { action as PreveiwAction } from '../preview'; |
[Biome] reported by reviewdog 🐶
const handlePaste: ClipboardEventHandler<HTMLTextAreaElement> = async (event) => { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog+/$articleId+/index.tsx
Lines 10 to 11 in 44f61a4
import { getSocialIcon } from '~/lib/utils'; | |
import { getBlogPost } from '../../../lib/blog.server'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog.tsx
Line 7 in 44f61a4
const user = useUser() ?? undefined |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Lines 15 to 18 in 44f61a4
import { uploadHandler } from '~/lib/s3.server'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreveiwAction } from './blog+/preview'; | |
import { IconPencil, IconPlayerPlay } from '@tabler/icons-react'; |
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Line 133 in 44f61a4
<input placeholder="Title" className='bg-transparent focus-within:outline-none text-2xl mb-4'></input> |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/file-upload.tsx
Lines 1 to 2 in 44f61a4
import { ActionFunctionArgs } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/file-upload.tsx
Lines 4 to 10 in 44f61a4
export async function action({request}: ActionFunctionArgs) { | |
const user = await authenticator.isAuthenticated(request, { | |
failureRedirect: "/login", | |
}); | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/login.ts
Lines 1 to 2 in 44f61a4
import { LoaderFunctionArgs } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/login.ts
Line 4 in 44f61a4
export async function loader({request}: LoaderFunctionArgs) { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/login.ts
Line 6 in 44f61a4
} |
[Biome] reported by reviewdog 🐶
const user = useUser() ?? undefined |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/member.tsx
Line 10 in 44f61a4
<Navbar user={user}/> |
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/members.tsx
Line 22 in 44f61a4
const user = useUser() ?? undefined |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/members.tsx
Line 26 in 44f61a4
<Navbar user={user}/> |
[Biome] reported by reviewdog 🐶
const user = useUser() ?? undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog+/$articleId+/index.tsx
Lines 10 to 11 in 228a1df
import { getSocialIcon } from '~/lib/utils'; | |
import { getBlogPost } from '../../../lib/blog.server'; |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Lines 15 to 18 in 228a1df
import { uploadHandler } from '~/lib/s3.server'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreveiwAction } from './blog+/preview'; | |
import { IconPencil, IconPlayerPlay } from '@tabler/icons-react'; |
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/vite.config.ts
Lines 9 to 10 in 228a1df
import { devErrorBoundary } from '@metronome-sh/dev-error-boundary'; | |
import { flatRoutes } from 'remix-flat-routes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog+/$articleId+/index.tsx
Lines 10 to 11 in fc7c4ac
import { getSocialIcon } from '~/lib/utils'; | |
import { getBlogPost } from '../../../lib/blog.server'; |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Lines 15 to 18 in fc7c4ac
import { uploadHandler } from '~/lib/s3.server'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreveiwAction } from './blog+/preview'; | |
import { IconPencil, IconPlayerPlay } from '@tabler/icons-react'; |
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/vite.config.ts
Lines 9 to 10 in fc7c4ac
import { devErrorBoundary } from '@metronome-sh/dev-error-boundary'; | |
import { flatRoutes } from 'remix-flat-routes'; |
多分動くはず
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog+/$articleId+/index.tsx
Lines 10 to 11 in 4e58b77
import { getSocialIcon } from '~/lib/utils'; | |
import { getBlogPost } from '../../../lib/blog.server'; |
[Biome] reported by reviewdog 🐶
import { useFetcher } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
import { |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/blog_.new.tsx
Lines 15 to 18 in 4e58b77
import { uploadHandler } from '~/lib/s3.server'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreveiwAction } from './blog+/preview'; | |
import { IconPencil, IconPlayerPlay } from '@tabler/icons-react'; |
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/vite.config.ts
Lines 9 to 10 in 4e58b77
import { devErrorBoundary } from '@metronome-sh/dev-error-boundary'; | |
import { flatRoutes } from 'remix-flat-routes'; |
feat: mapでデータベース側の名前を変更
…akarinext.org into feat/live-markdown-editor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/components/ui/dropdown-menu.tsx
Lines 170 to 171 in 1460d7f
className, | |
...props |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/components/ui/dropdown-menu.tsx
Lines 173 to 180 in 1460d7f
return ( | |
<span | |
className={cn("ml-auto text-xs tracking-widest opacity-60", className)} | |
{...props} | |
/> | |
) | |
} | |
DropdownMenuShortcut.displayName = "DropdownMenuShortcut" |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/components/ui/dropdown-menu.tsx
Lines 183 to 198 in 1460d7f
DropdownMenu, | |
DropdownMenuTrigger, | |
DropdownMenuContent, | |
DropdownMenuItem, | |
DropdownMenuCheckboxItem, | |
DropdownMenuRadioItem, | |
DropdownMenuLabel, | |
DropdownMenuSeparator, | |
DropdownMenuShortcut, | |
DropdownMenuGroup, | |
DropdownMenuPortal, | |
DropdownMenuSub, | |
DropdownMenuSubContent, | |
DropdownMenuSubTrigger, | |
DropdownMenuRadioGroup, | |
} |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Line 1 in 1460d7f
import { useMemo, useEffect, useRef, useState } from 'react'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Lines 3 to 4 in 1460d7f
import { EditorView, keymap, ViewUpdate, placeholder } from '@codemirror/view'; | |
import { EditorState, StateEffect } from '@codemirror/state'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Line 7 in 1460d7f
import { syntaxHighlighting, HighlightStyle } from '@codemirror/language'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Line 10 in 1460d7f
import { action } from '~/routes/api+/upload.$tracker'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Line 12 in 1460d7f
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Lines 18 to 19 in 1460d7f
const [uploadingImages, setUploadingImages] = useState<{ [key: string]: { cursorPos: number | null } }>({}); | |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Lines 81 to 82 in 1460d7f
let files = Object.values(event.dataTransfer.items).map((item) => item.getAsFile()).filter((file) => file) as File[]; | |
imageUpload(files, cursorPos) |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Line 95 in 1460d7f
console.log(event.clipboardData, "ペースト"); |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/hooks/md.tsx
Line 102 in 1460d7f
[imageUpload] |
[Biome] reported by reviewdog 🐶
import { sessionStorage } from './session.server'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { S3Client } from '@aws-sdk/client-s3'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/lib/s3.server.ts
Lines 3 to 4 in 1460d7f
import { env } from './env.server'; | |
import { UploadHandler } from '@remix-run/node'; |
[Biome] reported by reviewdog 🐶
import { v4 as uuidv4 } from 'uuid'; |
[Biome] reported by reviewdog 🐶
import { fileTypeFromBuffer, FileTypeResult } from 'file-type'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/root.tsx
Line 13 in 1460d7f
LoaderFunctionArgs, |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/root.tsx
Line 15 in 1460d7f
type MetaFunction, |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/$user+/articles+/$articleId+/index.tsx
Lines 10 to 11 in 1460d7f
import { getSocialIcon } from '~/lib/utils'; | |
import { getBlogPost } from '../../../../lib/blog.server'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/_index.tsx
Lines 6 to 8 in 1460d7f
import { MemberCard } from '~/components/MemberCard'; | |
import { Navbar } from '~/components/navbar'; | |
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/api+/upload.$tracker.tsx
Lines 1 to 3 in 1460d7f
import { ActionFunctionArgs, unstable_parseMultipartFormData } from "@remix-run/node"; | |
import { authenticator } from "~/lib/auth.server"; | |
import { uploadHandler } from "~/lib/s3.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/api+/upload.$tracker.tsx
Lines 5 to 9 in 1460d7f
export async function action({ request, params }: ActionFunctionArgs) { | |
if (request.method !== 'POST') {return new Response(null, { status: 405 });} | |
const user = await authenticator.isAuthenticated(request, { | |
failureRedirect: '/login', |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/api+/upload.$tracker.tsx
Lines 13 to 14 in 1460d7f
const formData = await unstable_parseMultipartFormData( | |
request, |
[Biome] reported by reviewdog 🐶
return {urls, tacker: params.tracker}; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles+/a.tsx
Lines 1 to 3 in 1460d7f
import { useLoaderData } from "@remix-run/react"; | |
import { ArticleCardWithLink } from "~/components/ArticleCard"; | |
import { db } from "~/lib/db.server"; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles+/a.tsx
Lines 6 to 7 in 1460d7f
const posts = await db.post.findMany(); | |
return posts; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles+/a.tsx
Lines 11 to 31 in 1460d7f
const posts = useLoaderData<typeof loader>(); | |
return ( | |
<div> | |
<div className="text-2xl mb-16 text-center bg-white py-10"> | |
最新の記事 | |
</div> | |
<div className="grid gap-8 grid-cols-3 akari-container"> | |
{posts.map((post) => ( | |
<ArticleCardWithLink | |
key={post.title} | |
title={post.title} | |
emoji={"💩"} | |
classes={{ root: 'h-full' }} | |
slug={"aaa"} | |
dateDisplay={""} | |
/> | |
))} | |
</div> | |
</div> | |
); | |
} |
[Biome] reported by reviewdog 🐶
import { getBlogPostListings } from '~/lib/blog.server'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { useFetcher, useLoaderData, useNavigation } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles_.$articleId.edit.tsx
Lines 5 to 7 in 1460d7f
import { useCallback, useEffect, useState } from 'react'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreveiwAction } from './article+/preview'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles_.$articleId.edit.tsx
Lines 17 to 23 in 1460d7f
import { useMarkdownEditor } from '~/hooks/md'; | |
import { cn } from '~/lib/utils'; | |
import { db } from '~/lib/db.server'; | |
import { z } from 'zod'; | |
import { parseWithZod } from '@conform-to/zod'; | |
import { Post } from '@prisma/client'; | |
import Loader from '~/components/Loader'; |
[Biome] reported by reviewdog 🐶
import { ClientOnly } from 'remix-utils/client-only'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/vite.config.ts
Lines 9 to 10 in 1460d7f
import { devErrorBoundary } from '@metronome-sh/dev-error-boundary'; | |
import { flatRoutes } from 'remix-flat-routes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
import { getBlogPostListings } from '~/lib/blog.server'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { useFetcher, useLoaderData } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles_.$articleId.edit.tsx
Lines 5 to 7 in f130446
import { useCallback, useEffect, useState } from 'react'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreviewAction } from './article+/preview'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles_.$articleId.edit.tsx
Lines 17 to 23 in f130446
import { useMarkdownEditor } from '~/hooks/md'; | |
import { cn } from '~/lib/utils'; | |
import { db } from '~/lib/db.server'; | |
import { z } from 'zod'; | |
import { parseWithZod } from '@conform-to/zod'; | |
import { Post } from '@prisma/client'; | |
import Loader from '~/components/Loader'; |
[Biome] reported by reviewdog 🐶
import { ClientOnly } from 'remix-utils/client-only'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/vite.config.ts
Lines 9 to 10 in f130446
import { devErrorBoundary } from '@metronome-sh/dev-error-boundary'; | |
import { flatRoutes } from 'remix-flat-routes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
Biome
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles+/a.tsx
Lines 6 to 7 in bbbcf74
const posts = await db.post.findMany(); | |
return posts; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles+/a.tsx
Lines 11 to 31 in bbbcf74
const posts = useLoaderData<typeof loader>(); | |
return ( | |
<div> | |
<div className="text-2xl mb-16 text-center bg-white py-10"> | |
最新の記事 | |
</div> | |
<div className="grid gap-8 grid-cols-3 akari-container"> | |
{posts.map((post) => ( | |
<ArticleCardWithLink | |
key={post.title} | |
title={post.title} | |
emoji={"💩"} | |
classes={{ root: 'h-full' }} | |
slug={"aaa"} | |
dateDisplay={""} | |
/> | |
))} | |
</div> | |
</div> | |
); | |
} |
[Biome] reported by reviewdog 🐶
import { getBlogPostListings } from '~/lib/blog.server'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { useFetcher, useLoaderData } from '@remix-run/react'; |
[Biome] reported by reviewdog 🐶
import '~/mdx.css'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles_.$articleId.edit.tsx
Lines 5 to 7 in bbbcf74
import { useCallback, useEffect, useState } from 'react'; | |
import { authenticator } from '~/lib/auth.server'; | |
import { action as PreviewAction } from './article+/preview'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/app/routes/articles_.$articleId.edit.tsx
Lines 17 to 23 in bbbcf74
import { useMarkdownEditor } from '~/hooks/md'; | |
import { cn } from '~/lib/utils'; | |
import { db } from '~/lib/db.server'; | |
import { z } from 'zod'; | |
import { parseWithZod } from '@conform-to/zod'; | |
import { Post } from '@prisma/client'; | |
import Loader from '~/components/Loader'; |
[Biome] reported by reviewdog 🐶
import { ClientOnly } from 'remix-utils/client-only'; |
[Biome] reported by reviewdog 🐶
[Biome] reported by reviewdog 🐶
import { Footer } from '~/components/footer'; |
[Biome] reported by reviewdog 🐶
import { Navbar } from '~/components/navbar'; |
[Biome] reported by reviewdog 🐶
www.akarinext.org/vite.config.ts
Lines 9 to 10 in bbbcf74
import { devErrorBoundary } from '@metronome-sh/dev-error-boundary'; | |
import { flatRoutes } from 'remix-flat-routes'; |
@@ -0,0 +1,14 @@ | |||
// cc: https://github.com/shadcn-ui/ui/discussions/1694#discussioncomment-8167582 | |||
|
|||
import { cn } from '~/lib/utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; |
|
||
import { cn } from '~/lib/utils'; | ||
import { Loader2 } from 'lucide-react'; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; | |
return ( | ||
<Loader2 | ||
className={cn('h-4 w-4 animate-spin', className)} | ||
/> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
return ( | |
<Loader2 | |
className={cn('h-4 w-4 animate-spin', className)} | |
/> | |
); | |
return <Loader2 className={cn('h-4 w-4 animate-spin', className)} />; |
import { cn } from '~/lib/utils'; | ||
import { Avatar } from './Avatar'; | ||
import { User } from '~/lib/auth.server'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { cn } from '~/lib/utils'; | |
import { Avatar } from './Avatar'; | |
import { User } from '~/lib/auth.server'; |
<IconPencil /> | ||
記事の管理 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
<IconPencil /> | |
記事の管理 | |
<IconPencil /> | |
記事の管理 |
import { db } from '~/lib/db.server'; | ||
|
||
export async function action() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
|
||
const foundPost = await db.post.findFirst({where: { | ||
id: key | ||
}}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
const foundPost = await db.post.findFirst({where: { | |
id: key | |
}}); | |
const foundPost = await db.post.findFirst({ | |
where: { | |
id: key, | |
}, | |
}); |
} | ||
|
||
return key; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
} | |
}; |
|
||
const postKey = await genKey(); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { useLoaderData } from "@remix-run/react"; | ||
import { ArticleCardWithLink } from "~/components/ArticleCard"; | ||
import { db } from "~/lib/db.server"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { useLoaderData } from "@remix-run/react"; | |
import { ArticleCardWithLink } from "~/components/ArticleCard"; | |
import { db } from "~/lib/db.server"; | |
import { useLoaderData } from '@remix-run/react'; | |
import { ArticleCardWithLink } from '~/components/ArticleCard'; | |
import { db } from '~/lib/db.server'; |
close #53