MCPcopy Create free account

hub / github.com/cuixiaorui/earthworm / functions

Functions71 in github.com/cuixiaorui/earthworm

↓ 10 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 5 callersFunctiondispatch
(action: Action)
components/ui/use-toast.ts:134
↓ 4 callersFunctionparse
(text)
scripts/parsePdf.js:39
↓ 3 callersFunctionisChinese
(str)
scripts/parsePdf.js:108
↓ 3 callersFunctionuseToast
()
components/ui/use-toast.ts:172
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:59
↓ 2 callersFunctionfetchSaveUserProgress
({ courseId, statementIndex, userId, }: { courseId: number; statementIndex: number; userId: number
actions/userProgress.ts:5
↓ 2 callersFunctionrun
()
scripts/parsePdf.js:69
↓ 2 callersFunctionsetupCourse
(course: Course, statementIndex: number)
store/course.ts:39
↓ 2 callersFunctiontoast
({ ...props }: Toast)
components/ui/use-toast.ts:143
↓ 2 callersFunctionusePlaySound
()
app/(main)/_hooks/playSound.ts:4
↓ 1 callersFunctioncheckCorrect
(input: string)
store/course.ts:48
↓ 1 callersFunctioncreateStatement
(order, chinese, english, soundmark, courseId)
scripts/uploadCourseData.js:52
↓ 1 callersFunctiondeleteComma
(chinese)
scripts/parsePdf.js:145
↓ 1 callersFunctiondismiss
()
components/ui/use-toast.ts:151
↓ 1 callersFunctionfetchActiveCourseId
(userId: number)
actions/userProgress.ts:72
↓ 1 callersFunctionfetchCourse
(id: Course["id"])
actions/course.ts:17
↓ 1 callersFunctionfetchCourseList
()
actions/course.ts:6
↓ 1 callersFunctionfetchNextCourseId
(courseId: Course["id"])
actions/course.ts:41
↓ 1 callersFunctionfetchResetUserProgress
({ courseId, userId, }: { courseId: number; userId: number; })
actions/userProgress.ts:41
↓ 1 callersFunctionfetchStatementIndex
( courseId: Course["id"], userId: number )
actions/userProgress.ts:80
↓ 1 callersFunctiongenId
()
components/ui/use-toast.ts:28
↓ 1 callersFunctiongetSession
()
app/(main)/page.tsx:17
↓ 1 callersFunctionhandleToNextStatement
()
app/(main)/_components/Answer.tsx:14
↓ 1 callersFunctionmain
(courseFileName)
scripts/parsePdf.js:22
↓ 1 callersFunctionparseChinese
(chinese)
scripts/parsePdf.js:144
↓ 1 callersFunctionparseEnglishAndSoundmark
(text)
scripts/parsePdf.js:113
↓ 1 callersFunctionprismaClientSingleton
()
lib/prisma.ts:3
↓ 1 callersFunctionreducer
(state: State, action: Action)
components/ui/use-toast.ts:75
↓ 1 callersFunctionresetProgress
(userId: number)
actions/userProgress.ts:91
↓ 1 callersFunctiontoNextStatement
()
store/course.ts:57
FunctionAnswer
()
app/(main)/_components/Answer.tsx:8
FunctionComponent
(props: InputProps, ref: ForwardedRef<HTMLInputElement>)
components/ui/input.tsx:15
FunctionCourse
()
app/course/page.tsx:6
FunctionCourseCard
({ course, }: { course: { id: Course["id"]; title: Course["title"] }; })
app/course/_components/CourseCard.tsx:3
FunctionCourseProgress
()
app/(main)/_components/CourseProgress.tsx:4
FunctionCourseStoreInitializer
({ course, statementIndex, }: { course: Course; statementIndex: number; })
store/course.ts:71
FunctionDarkModeBtn
()
app/(main)/_components/DarkModeBtn.tsx:5
FunctionDialog
(props: DialogProps)
components/ui/dialog.tsx:13
FunctionFooter
()
app/(main)/_components/Footer.tsx:1
FunctionGET
(request: NextRequest)
app/api/session/route.ts:13
FunctionHeader
()
app/(main)/_components/Header.tsx:10
FunctionLoading
()
app/course/loading.tsx:1
FunctionLogin
()
app/auth/login/page.tsx:23
FunctionMain
()
app/(main)/_components/Main.tsx:10
FunctionMainLayout
({ children, }: { children: React.ReactNode; })
app/(main)/layout.tsx:3
FunctionPOST
(request: NextRequest)
app/api/session/route.ts:27
FunctionPage
({ searchParams }: Props)
app/(main)/page.tsx:21
FunctionQuestion
({ onShowAnswer }: Props)
app/(main)/_components/Question.tsx:8
FunctionRegister
()
app/auth/register/page.tsx:33
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:17
FunctionSummary
()
app/(main)/_components/Summary.tsx:6
FunctionTips
({ onShowAnswer }: Props)
app/(main)/_components/Tips.tsx:9
FunctionTipsItem
({ text, description, keyboardKey, handler, }: { text: string; description: string; keyboardKey:
app/(main)/_components/Tips.tsx:35
FunctionToaster
()
components/ui/toaster.tsx:13
FunctionUnderlineInput
({ lineNum, onCheckAnswer, }: { lineNum: number; onCheckAnswer: (userInput: string) => void; })
app/(main)/_components/UnderlineInput.tsx:4
FunctionhandleBlur
()
app/(main)/_components/UnderlineInput.tsx:39
FunctionhandleCheckAnswer
(input: string)
app/(main)/_components/Question.tsx:14
FunctionhandleInput
(event: ChangeEvent<HTMLInputElement>)
app/(main)/_components/UnderlineInput.tsx:22
FunctionhandleInputFocus
()
app/(main)/_components/UnderlineInput.tsx:35
FunctionhandleKeyDown
(event: KeyboardEvent)
app/(main)/_components/Tips.tsx:47
FunctionhandleKeyDown
(event: React.KeyboardEvent<HTMLInputElement>)
app/(main)/_components/UnderlineInput.tsx:28
FunctionhandleKeyDown
(event: KeyboardEvent)
app/(main)/_components/Answer.tsx:31
FunctionhandleLogin
(data: Schema)
app/auth/register/page.tsx:44
FunctionhandleLogin
(data: LoginSchema)
app/auth/login/page.tsx:34
FunctionhandleLogout
()
app/(main)/_components/Header.tsx:15
FunctionhandleResetProgress
()
app/(main)/_components/Header.tsx:20
FunctionhandleShowAnswer
()
app/(main)/_components/Main.tsx:32
FunctionhandleThemeChange
()
app/(main)/_components/DarkModeBtn.tsx:15
FunctionhandleToAnswer
()
app/(main)/_components/Tips.tsx:12
Functionupdate
(props: ToasterToast)
components/ui/use-toast.ts:146