This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const supabaseAuthErrors = { | |
anonymous_provider_disabled: '匿名サインインが無効です。', | |
bad_code_verifier: | |
'提供されたコード検証値が正しいものと一致しません。クライアントライブラリの実装にバグがあります。', | |
bad_json: 'リクエストのHTTPボディが無効なJSONです。', | |
bad_jwt: 'Authorizationヘッダーに送信されたJWTが無効です。', | |
bad_oauth_callback: | |
'OAuthプロバイダーからAuthへのコールバックに必要な属性が不足しています。OAuthプロバイダーやクライアントライブラリの実装に問題があります。', | |
bad_oauth_state: | |
'OAuthプロバイダーからSupabase Authに戻されたOAuth状態が正しい形式ではありません。OAuthプロバイダーの統合に問題があります。', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"supabase:generate-types": "bunx supabase gen types typescript --local --schema public > types/database.ts", | |
"supabase:generate-migration": "bunx supabase db diff | bunx supabase migration new", | |
"supabase:generate-seed": "bunx supabase db dump --data-only -f supabase/seed.sql", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"supabase:start": "bunx supabase start", | |
"supabase:stop": "bunx supabase stop", | |
"supabase:status": "bunx supabase status", | |
"supabase:restart": "npm run supabase:stop && npm run supabase:start", | |
"supabase:reset": "bunx supabase reset", | |
"supabase:link": "bunx supabase link", | |
"supabase:generate-types": "bunx supabase gen types typescript --local --schema public > types/database.ts", | |
"supabase:generate-migration": "bunx supabase db diff | bunx supabase migration new", | |
"supabase:generate-seed": "bunx supabase db dump --local --data-only -f supabase/seed.sql", | |
"supabase:push": "bunx supabase db push", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { cn } from '@/app/lib/utils'; | |
import Link from 'next/link'; | |
import { usePathname } from 'next/navigation'; | |
import { ComponentProps, forwardRef } from 'react'; | |
const ActiveLink = forwardRef< | |
HTMLAnchorElement, | |
ComponentProps<typeof Link> & { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout --orphan temp_branch && git add -A && git commit -am "Initial commit" && git branch -D main && git branch -m main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { Controller, useFieldArray, useForm } from 'react-hook-form'; | |
export default function Job() { | |
const { control } = useForm({ | |
defaultValues: { | |
emails: [ | |
{ | |
value: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { Swiper, SwiperSlide } from 'swiper/react'; | |
import { | |
Autoplay, | |
Navigation, | |
Pagination, | |
A11y, | |
Keyboard, | |
} from 'swiper/modules'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import * as z from 'zod'; | |
import { zodResolver } from '@hookform/resolvers/zod'; | |
import { useForm } from 'react-hook-form'; | |
import { Button } from '@/app/components/ui/button'; | |
import { | |
Form, | |
FormControl, | |
FormField, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient } from '@prisma/client'; | |
declare global { | |
var prisma: PrismaClient | undefined; | |
} | |
const prisma = global.prisma || new PrismaClient(); | |
if (process.env.NODE_ENV === 'development') global.prisma = prisma; |
NewerOlder