Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cuixiaorui/earthworm
/ functions
Functions
71 in github.com/cuixiaorui/earthworm
⨍
Functions
71
◇
Types & classes
8
↓ 10 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 5 callers
Function
dispatch
(action: Action)
components/ui/use-toast.ts:134
↓ 4 callers
Function
parse
(text)
scripts/parsePdf.js:39
↓ 3 callers
Function
isChinese
(str)
scripts/parsePdf.js:108
↓ 3 callers
Function
useToast
()
components/ui/use-toast.ts:172
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:59
↓ 2 callers
Function
fetchSaveUserProgress
({ courseId, statementIndex, userId, }: { courseId: number; statementIndex: number; userId: number
actions/userProgress.ts:5
↓ 2 callers
Function
run
()
scripts/parsePdf.js:69
↓ 2 callers
Function
setupCourse
(course: Course, statementIndex: number)
store/course.ts:39
↓ 2 callers
Function
toast
({ ...props }: Toast)
components/ui/use-toast.ts:143
↓ 2 callers
Function
usePlaySound
()
app/(main)/_hooks/playSound.ts:4
↓ 1 callers
Function
checkCorrect
(input: string)
store/course.ts:48
↓ 1 callers
Function
createStatement
(order, chinese, english, soundmark, courseId)
scripts/uploadCourseData.js:52
↓ 1 callers
Function
deleteComma
(chinese)
scripts/parsePdf.js:145
↓ 1 callers
Function
dismiss
()
components/ui/use-toast.ts:151
↓ 1 callers
Function
fetchActiveCourseId
(userId: number)
actions/userProgress.ts:72
↓ 1 callers
Function
fetchCourse
(id: Course["id"])
actions/course.ts:17
↓ 1 callers
Function
fetchCourseList
()
actions/course.ts:6
↓ 1 callers
Function
fetchNextCourseId
(courseId: Course["id"])
actions/course.ts:41
↓ 1 callers
Function
fetchResetUserProgress
({ courseId, userId, }: { courseId: number; userId: number; })
actions/userProgress.ts:41
↓ 1 callers
Function
fetchStatementIndex
( courseId: Course["id"], userId: number )
actions/userProgress.ts:80
↓ 1 callers
Function
genId
()
components/ui/use-toast.ts:28
↓ 1 callers
Function
getSession
()
app/(main)/page.tsx:17
↓ 1 callers
Function
handleToNextStatement
()
app/(main)/_components/Answer.tsx:14
↓ 1 callers
Function
main
(courseFileName)
scripts/parsePdf.js:22
↓ 1 callers
Function
parseChinese
(chinese)
scripts/parsePdf.js:144
↓ 1 callers
Function
parseEnglishAndSoundmark
(text)
scripts/parsePdf.js:113
↓ 1 callers
Function
prismaClientSingleton
()
lib/prisma.ts:3
↓ 1 callers
Function
reducer
(state: State, action: Action)
components/ui/use-toast.ts:75
↓ 1 callers
Function
resetProgress
(userId: number)
actions/userProgress.ts:91
↓ 1 callers
Function
toNextStatement
()
store/course.ts:57
Function
Answer
()
app/(main)/_components/Answer.tsx:8
Function
Component
(props: InputProps, ref: ForwardedRef<HTMLInputElement>)
components/ui/input.tsx:15
Function
Course
()
app/course/page.tsx:6
Function
CourseCard
({ course, }: { course: { id: Course["id"]; title: Course["title"] }; })
app/course/_components/CourseCard.tsx:3
Function
CourseProgress
()
app/(main)/_components/CourseProgress.tsx:4
Function
CourseStoreInitializer
({ course, statementIndex, }: { course: Course; statementIndex: number; })
store/course.ts:71
Function
DarkModeBtn
()
app/(main)/_components/DarkModeBtn.tsx:5
Function
Dialog
(props: DialogProps)
components/ui/dialog.tsx:13
Function
Footer
()
app/(main)/_components/Footer.tsx:1
Function
GET
(request: NextRequest)
app/api/session/route.ts:13
Function
Header
()
app/(main)/_components/Header.tsx:10
Function
Loading
()
app/course/loading.tsx:1
Function
Login
()
app/auth/login/page.tsx:23
Function
Main
()
app/(main)/_components/Main.tsx:10
Function
MainLayout
({ children, }: { children: React.ReactNode; })
app/(main)/layout.tsx:3
Function
POST
(request: NextRequest)
app/api/session/route.ts:27
Function
Page
({ searchParams }: Props)
app/(main)/page.tsx:21
Function
Question
({ onShowAnswer }: Props)
app/(main)/_components/Question.tsx:8
Function
Register
()
app/auth/register/page.tsx:33
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:17
Function
Summary
()
app/(main)/_components/Summary.tsx:6
Function
Tips
({ onShowAnswer }: Props)
app/(main)/_components/Tips.tsx:9
Function
TipsItem
({ text, description, keyboardKey, handler, }: { text: string; description: string; keyboardKey:
app/(main)/_components/Tips.tsx:35
Function
Toaster
()
components/ui/toaster.tsx:13
Function
UnderlineInput
({ lineNum, onCheckAnswer, }: { lineNum: number; onCheckAnswer: (userInput: string) => void; })
app/(main)/_components/UnderlineInput.tsx:4
Function
handleBlur
()
app/(main)/_components/UnderlineInput.tsx:39
Function
handleCheckAnswer
(input: string)
app/(main)/_components/Question.tsx:14
Function
handleInput
(event: ChangeEvent<HTMLInputElement>)
app/(main)/_components/UnderlineInput.tsx:22
Function
handleInputFocus
()
app/(main)/_components/UnderlineInput.tsx:35
Function
handleKeyDown
(event: KeyboardEvent)
app/(main)/_components/Tips.tsx:47
Function
handleKeyDown
(event: React.KeyboardEvent<HTMLInputElement>)
app/(main)/_components/UnderlineInput.tsx:28
Function
handleKeyDown
(event: KeyboardEvent)
app/(main)/_components/Answer.tsx:31
Function
handleLogin
(data: Schema)
app/auth/register/page.tsx:44
Function
handleLogin
(data: LoginSchema)
app/auth/login/page.tsx:34
Function
handleLogout
()
app/(main)/_components/Header.tsx:15
Function
handleResetProgress
()
app/(main)/_components/Header.tsx:20
Function
handleShowAnswer
()
app/(main)/_components/Main.tsx:32
Function
handleThemeChange
()
app/(main)/_components/DarkModeBtn.tsx:15
Function
handleToAnswer
()
app/(main)/_components/Tips.tsx:12
Function
update
(props: ToasterToast)
components/ui/use-toast.ts:146