MCPcopy Create free account

hub / github.com/Levofron/NotionLingo / functions

Functions375 in github.com/Levofron/NotionLingo

↓ 56 callersFunctionfunctionImportTest
(func: Function)
client/shared/functions/function-import-test/function-import-test.function.ts:3
↓ 33 callersFunctiongetRestApi
(axiosInstance: AxiosInstance)
client/api/rest/rest.api.ts:8
↓ 30 callersFunctionuseRouter
()
client/shared/hooks/use-router/use-router.hook.ts:7
↓ 20 callersFunctionvalidateRequestMethodMiddleware
(expectedValue: string)
server/utils/validate-request-method-middleware/validate-request-method-middleware.function.ts:4
↓ 20 callersFunctionwithMiddleware
(handler: (req: AxiomAPIRequest, res: NextApiResponse) => THandlerResponse)
server/utils/with-middleware/with-middleware.function.ts:21
↓ 19 callersFunctionuseAxios
(callback: Callback<TParam, TResponse>)
client/shared/hooks/use-axios/use-axios.hook.ts:9
↓ 18 callersFunctioncleanUpString
(string: unknown, options: Options = defaultOptions)
client/shared/functions/clean-up-string/clean-up-string.function.ts:11
↓ 18 callersFunctiongetRestRepository
(restApi: RestApi)
client/repository/rest/rest.repository.ts:17
↓ 14 callersFunctiongetUserFromRequest
(req: NextApiRequest)
server/utils/get-user-from-request/get-user-from-request.function.ts:5
↓ 12 callersFunctionisString
(value: unknown)
client/shared/guards/is-string/is-string.function.ts:1
↓ 11 callersFunctionuseToast
()
client/shared/hooks/use-toast/use-toast.hook.ts:6
↓ 10 callersFunctionisBoolean
(value: unknown)
client/shared/guards/is-boolean/is-boolean.function.ts:1
↓ 10 callersFunctionisFunction
(functionToCheck: unknown)
client/shared/guards/is-function/is-function.function.ts:1
↓ 10 callersFunctionuseUser
()
client/shared/hooks/use-user/use-user.hook.ts:5
↓ 10 callersFunctionvalidateIfParametersExistsMiddleware
(parametersDestination: 'body' | 'query', requiredParameters: string[])
server/utils/validate-if-parameters-exists-middleware/validate-if-parameters-exists-middleware.function.ts:4
↓ 8 callersFunctiongetLocalStorageApi
()
client/api/local-storage/local-storage.api.ts:3
↓ 8 callersFunctiongetNotionApiKeyFromProfile
(profileData: unknown)
server/utils/get-notion-api-key-from-profile/get-notion-api-key-from-profile.function.ts:5
↓ 8 callersFunctiongetSupabaseApi
(supabaseInstance: SupabaseClient)
client/api/supabase/supabase.api.ts:5
↓ 8 callersFunctiongetSupabaseRepository
(supabaseApi: SupabaseApi)
client/repository/supabase/supabase.repository.ts:5
↓ 8 callersFunctiongetTextFromPagePropertyInstance
(pageProperties: PageObjectResponse['properties'])
server/utils/get-text-from-page-property-instance/get-text-from-page-property-instance.function.ts:4
↓ 8 callersFunctionsetSpeechSynthesisValueToLocalStorage
({ defaultValue, key, localStorageApi, max, min, newValue, }: SetSpeechSynthesisValueToLocalStorag
client/repository/speech-synthesis/operations/set-speech-synthesis-value-to-local-storage/set-speech-synthesis-value-to-local-storage.function.ts:3
↓ 7 callersFunctiongetInitialFormValuesFromTableColumns
( tableColumns: NotionTableColumn[], queryParams?: Record<string, string>, )
client/domain/rest/operations/get-initial-form-values-from-table-columns/get-initial-form-values-from-table-columns.function.ts:27
↓ 7 callersFunctiongetSpeechSynthesisApi
()
client/api/speech-synthesis/speech-synthesis.api.ts:3
↓ 7 callersFunctiongetSpeechSynthesisRepository
( speechSynthesisApi: SpeechSynthesisApi, localStorageApi: LocalStorageApi, )
client/repository/speech-synthesis/speech-synthesis.repository.ts:21
↓ 7 callersFunctiongetSpeechSynthesisValueFromLocalStorage
({ defaultValue, key, localStorageApi, max, min, }: GetSpeechSynthesisValueFromLocalStorageParams)
client/repository/speech-synthesis/operations/get-speech-synthesis-value-from-local-storage/get-speech-synthesis-value-from-local-storage.function.ts:3
↓ 6 callersFunctioncreateNotionClient
(token: string)
server/utils/create-notion-client/create-notion-client.function.ts:3
↓ 6 callersFunctiondebounce
(callback: (...params: TParams[]) => void, delay: number)
client/shared/functions/debounce/debounce.function.ts:1
↓ 6 callersFunctiondecrypt
(hash: Hash)
server/utils/decrypt/decrypt.function.ts:7
↓ 6 callersFunctiongenerateMemoryCacheKey
( userId: string, notionDatabaseId: string, notionApiKey: string, )
server/utils/generate-memory-cache-key/generate-memory-cache-key.function.ts:1
↓ 6 callersFunctiongetLocalStorageRepository
( localStorageApi: LocalStorageApi, )
client/repository/local-storage/local-storage.repository.ts:5
↓ 6 callersFunctiongetProfileDataWithNotionDataCheck
(userId: string)
server/utils/get-profile-data-with-notion-data-check/get-profile-data-with-notion-data-check.function.ts:7
↓ 6 callersFunctiongetRandomNumber
(min: number = 0, max: number = 1)
server/utils/get-random-number/get-random-number.function.ts:1
↓ 6 callersFunctionhandleSpeak
(phrase: string)
client/presentation/organisms/notion-word-card-front/notion-word-card-front.component.tsx:21
↓ 6 callersFunctionuseCountdown
(seconds: number)
client/shared/hooks/use-countdown/use-countdown.hook.ts:3
↓ 6 callersFunctionuseEventListener
( eventName: K, handler: (this: Window, ev: WindowEventMap[K]) => void, options?: Options | boolean, )
client/shared/hooks/use-event-listener/use-event-listener.hook.ts:7
↓ 5 callersFunctioncreateDevToolsClient
()
client/presentation/app/utils/create-dev-tools-client/create-dev-tools-client.function.ts:8
↓ 5 callersFunctiongetProfileById
(userId: string)
server/utils/get-profile-by-id/get-profile-by-id.function.ts:3
↓ 5 callersFunctionhasOwnProperty
( object: TObject, property: TProperty, )
client/shared/guards/has-own-property/has-own-property.function.ts:3
↓ 5 callersFunctionisObject
(object: unknown)
client/shared/guards/is-object/is-object.function.ts:1
↓ 5 callersFunctionobjectKeys
(object: TObject | null)
client/shared/guards/object-keys/object-keys.function.ts:3
↓ 5 callersFunctionscrollToTop
(element: HTMLElement | null, behavior: 'auto' | 'smooth' = 'auto')
client/shared/functions/scroll-to-top/scroll-to-top.function.ts:1
↓ 5 callersFunctionuseCopyToClipboard
()
client/shared/hooks/use-copy-to-clipboard/use-copy-to-clipboard.hook.ts:3
↓ 5 callersFunctionwithCheckIfUserLogged
( WrappedComponent: ComponentType, { currentPageUrl, redirectUrlOnError, shouldHaveNotionData }: WithCheck
client/presentation/hoc/with-check-if-user-logged/with-check-if-user-logged.component.tsx:9
↓ 4 callersFunctiondictionaryResponseToMeaningAndExampleArray
({ additionalExamples, meaningAndExamples, word, }: DictionaryResponse)
server/utils/dictionary-response-to-meaning-and-example-array/dictionary-response-to-meaning-and-example-array.function.ts:3
↓ 4 callersFunctionfindNotionWordIndexById
(notionWords: NotionWord[], notionWordId: string)
client/domain/rest/operations/find-notion-word-index-by-id/find-notion-word-index-by-id.function.ts:3
↓ 4 callersFunctionisError
(exception: unknown)
client/shared/guards/is-error/is-error.function.ts:1
↓ 4 callersFunctionisIsoDate
(string: string)
server/utils/is-iso-date/is-iso-date.function.ts:1
↓ 4 callersFunctionremoveNotionWordFromArray
( notionWords: NotionWord[], notionWordToRemove: NotionWord, )
client/domain/rest/operations/remove-notion-word-from-array/remove-notion-word-from-array.function.ts:5
↓ 4 callersFunctionuseKeyPressMapper
( keyMappers: [AvailableKey | AvailableKey[], () => void][], isBlocked?: boolean, )
client/shared/hooks/use-key-press-mapper/use-key-press-mapper.hook.ts:6
↓ 3 callersFunctioncapitalizeFirstLetter
(string: string)
client/shared/functions/capitalize-first-letter/capitalize-first-letter.function.ts:1
↓ 3 callersFunctionfindNotionWordById
(notionWords: NotionWord[], notionWordId: string)
client/domain/rest/operations/find-notion-word-by-id/find-notion-word-by-id.function.ts:3
↓ 3 callersFunctiongetAvailableNotionDatabases
(notionApiKey: string)
server/utils/get-available-notion-databases/get-available-notion-databases.function.ts:5
↓ 3 callersFunctiongetNotionTableColumns
(notionApiKey: string, notionDatabaseId: string)
server/utils/get-notion-table-columns/get-notion-table-columns.function.ts:62
↓ 3 callersFunctionisValidNotionDatabaseSchema
( databaseProperties: Record<string, DatabaseProperties>, )
server/utils/is-valid-notion-database-schema/is-valid-notion-database-schema.function.ts:27
↓ 3 callersFunctionmapColumnNamesToComponents
(strings: string[])
client/presentation/organisms/onboarding-step-one/utils/map-column-names-to-components/map-column-names-to-components.function.tsx:5
↓ 3 callersFunctionsetNotionData
(hasNotionData: boolean)
client/presentation/providers/user-provider/user-provider.component.tsx:58
↓ 3 callersFunctionshuffleArray
(array: T[])
server/utils/shuffle-array/shuffle-array.function.ts:3
↓ 3 callersFunctionsingleWordToIpa
(word: string | null)
server/utils/text-to-ipa/text-to-ipa.function.ts:16
↓ 3 callersFunctiontextToIpa
(word: string | null)
server/utils/text-to-ipa/text-to-ipa.function.ts:37
↓ 3 callersFunctionupdateRecordInNotionWordArray
( words: NotionWord[], wordId: string, updatedNotionWord: UpdatedNotionWord, )
client/repository/rest/operations/update-record-in-notion-word-array/update-record-in-notion-word-array.function.ts:4
↓ 3 callersFunctionuseIsFirstRender
()
client/shared/hooks/use-is-first-render/use-is-first-render.hook.ts:3
↓ 3 callersFunctionuseWindowSize
()
client/shared/hooks/use-window-size/use-window-size.hook.ts:5
↓ 2 callersFunctionaddImageUrlForEachNotionWordTransformator
( randomNotionWords: NotionWordResponseRecord[], )
client/repository/rest/operations/add-image-url-for-each-notion-word-transformator/add-image-url-for-each-notion-word-transformator.function.ts:7
↓ 2 callersFunctionassignRequestTokenToSupabaseSessionMiddleware
(req: NextApiRequest)
server/utils/assign-request-token-to-supabase-session-middleware/assign-request-token-to-supabase-session-middleware.function.ts:8
↓ 2 callersFunctioncopyToClipboard
(text: string)
client/shared/hooks/use-copy-to-clipboard/use-copy-to-clipboard.hook.ts:6
↓ 2 callersFunctionencrypt
(text: string)
server/utils/encrypt/encrypt.function.ts:5
↓ 2 callersFunctionexecuteCallbackPromiseWrapper
(...params: TParam[])
client/shared/hooks/use-axios/use-axios.hook.ts:14
↓ 2 callersFunctionfetchWebsiteContent
(url: string)
pages/api/dictionary/find.ts:30
↓ 2 callersFunctionformatDictionarySuggestions
({ suggestions, word, }: DictionarySuggestions)
client/repository/rest/operations/format-dictionary-suggestions/format-dictionary-suggestions.function.ts:5
↓ 2 callersFunctionformatRandomNotionWordsTransformator
( randomNotionWords: NotionWordResponseRecord[], )
client/repository/rest/operations/format-random-notion-words-transformator/format-random-notion-words-transformator.function.ts:10
↓ 2 callersFunctiongetPages
({ notionClient, notionDatabaseId, startCursor, }: GetPagesParams)
pages/api/notion/random-words.ts:91
↓ 2 callersFunctiongetPath
(destination)
scripts/node/convert-pages-directory-to-routes-enum.mjs:4
↓ 2 callersFunctiongetProfileAndUserMetadataById
(userId: string)
pages/api/profile/get.ts:24
↓ 2 callersFunctiongetSupabaseService
()
config/supabase.instance.ts:7
↓ 2 callersFunctiongetTitleOrRichTextProperty
(columnName: string, type: string, newValue: string)
pages/api/notion/update.ts:28
↓ 2 callersFunctiongetWordDetailsFromDictionary
(string: string)
pages/api/dictionary/find.ts:131
↓ 2 callersFunctionhasResponse
(response: string)
pages/api/dictionary/find.ts:129
↓ 2 callersFunctionhasSuggestion
(original: string, suggestion?: string)
client/presentation/organisms/notion-word-card-front/notion-word-card-front.component.tsx:18
↓ 2 callersFunctionisSupportedUseCase
( localStorageRepository: LocalStorageRepository, )
client/domain/local-storage/local-storage.use-cases.ts:8
↓ 2 callersFunctionvalidateRouteSecretMiddleware
(req: NextApiRequest, res: NextApiResponse)
server/utils/validate-route-secret-middleware/validate-route-secret-middleware.function.ts:5
↓ 2 callersFunctionwebscrapCambridgeDictionary
(html: string)
pages/api/dictionary/find.ts:63
↓ 2 callersFunctionwebscrapMerriamWebster
(html: string)
pages/api/dictionary/find.ts:103
↓ 1 callersFunctioncancelUseCase
( speechSynthesisRepository: SpeechSynthesisRepository, )
client/domain/speech-synthesis/speech-synthesis.use-cases.ts:37
↓ 1 callersFunctionconvertNamesToEnumBody
(names)
scripts/node/convert-pages-directory-to-routes-enum.mjs:39
↓ 1 callersFunctioncreateNotionWordUseCase
( restRepository: RestRepository, )
client/domain/rest/rest.use-cases.ts:176
↓ 1 callersFunctiondelay
(time: number)
client/repository/rest/rest.repository.ts:12
↓ 1 callersFunctiondeleteProfileUseCase
( restRepository: RestRepository, supabaseRepository: SupabaseRepository, )
client/domain/rest/rest.use-cases.ts:124
↓ 1 callersFunctionfetchCambridgeDictionaryContent
(word: string)
pages/api/dictionary/find.ts:57
↓ 1 callersFunctionfetchMerriamWebsterContent
(word: string)
pages/api/dictionary/find.ts:60
↓ 1 callersFunctionfillUpMissedLocalStorageFields
()
client/presentation/app/utils/fill-up-missed-local-storage-fields/fill-up-missed-local-storage-fields.function.ts:6
↓ 1 callersFunctionfilterOutFilesWithFloorAtBeginning
(filenames)
scripts/node/convert-pages-directory-to-routes-enum.mjs:31
↓ 1 callersFunctiongenerateSitemap
()
scripts/node/generate-sitemap.mjs:11
↓ 1 callersFunctiongetAddWordFormValidationSchema
(tableColumns: NotionTableColumn[])
client/presentation/templates/add-word/add-word.defaults.ts:5
↓ 1 callersFunctiongetAvailableNotionDatabasesUseCase
( restRepository: RestRepository, )
client/domain/rest/rest.use-cases.ts:65
↓ 1 callersFunctiongetBubbleDistance
()
client/presentation/atoms/particles-background/particles-background.component.tsx:21
↓ 1 callersFunctiongetBubbleNumber
()
client/presentation/atoms/particles-background/particles-background.component.tsx:9
↓ 1 callersFunctiongetBubbleRepulseDistance
()
client/presentation/atoms/particles-background/particles-background.component.tsx:29
↓ 1 callersFunctiongetCurrentPath
()
client/presentation/providers/router-provider/router-provider.component.tsx:14
↓ 1 callersFunctiongetDatabasePages
(databaseId: string, hashAsString: string)
pages/api/notion/set-database-id.ts:30
↓ 1 callersFunctiongetDictionarySuggestionsUseCase
( restRepository: RestRepository, )
client/domain/rest/rest.use-cases.ts:141
next →1–100 of 375, ranked by callers