This file contains 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 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 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 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 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 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 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 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; |
This file contains 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
# Sample workflow for building and deploying a Next.js site to GitHub Pages | |
# | |
# To get started with Next.js see: https://nextjs.org/docs/getting-started | |
# | |
name: Deploy Next.js site to Pages | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ['main'] |
NewerOlder