Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HiDeoo/YaTA
/ functions
Functions
584 in github.com/HiDeoo/YaTA
⨍
Functions
584
◇
Types & classes
393
↓ 94 callers
Function
theme
(path: string)
src/styled/index.ts:64
↓ 67 callers
Function
createAction
(type: T, payload?: P)
src/utils/redux.ts:12
↓ 67 callers
Function
size
(pathAndUnit: string, mutation: number | 'double' = 0)
src/styled/index.ts:76
↓ 59 callers
Method
serialize
()
src/utils/typescript.ts:13
↓ 48 callers
Method
addLog
* Adds a log entry. * @param log - The log entry to add.
src/libs/Command.ts:246
↓ 44 callers
Function
ifProp
(needle: string | object, pass: Pass, fail: Fail)
src/styled/index.ts:99
↓ 33 callers
Method
manager
* Returns the manager instance. * @class
src/libs/Sound.ts:19
↓ 22 callers
Method
fetch
* Fetches an URL. * @param api - The Twitch API to use. * @param endpoint - The endpoint to fetch. * @param [searchParams={}] - Additional
src/libs/Twitch.ts:830
↓ 12 callers
Method
focus
* Focus the input field.
src/components/Input.tsx:295
↓ 12 callers
Method
getProviderId
()
src/libs/PreviewProvider.ts:7
↓ 12 callers
Method
getTwitchClient
* Returns the Twitch client instance if defined and connected. * @return The Twitch client or null.
src/containers/Channel.tsx:1053
↓ 11 callers
Method
addHandler
(type: PubSubEvent, handler: (...args: any) => void)
src/libs/PubSub.ts:94
↓ 11 callers
Method
callHandler
* Calls the handler associated to a specific event. * @param type - The event type. * @param args - The handler arguments.
src/libs/PubSub.ts:305
↓ 11 callers
Function
isMessage
(log: Log)
src/store/ducks/logs.ts:365
↓ 11 callers
Method
parse
(message: string)
src/libs/PreviewProvider.ts:8
↓ 11 callers
Method
validate
* Validates an action. * @param editing - Defines if we're editing or creating a new action. * @param type - The current type. * @param na
src/libs/Action.ts:44
↓ 8 callers
Method
createPotentialChatter
* Creates a potential chatter which represents a user with only its username known. * @param username - The chatter username. * @return The pote
src/libs/Chatter.ts:19
↓ 8 callers
Function
padTimeUnit
(timeUnit: string | number)
src/utils/time.ts:49
↓ 7 callers
Function
isNotification
(log: Log)
src/store/ducks/logs.ts:383
↓ 7 callers
Function
prop
(path: string)
src/styled/index.ts:54
↓ 7 callers
Method
timeout
* Timeouts a user. * @param duration - The duration of the timeout in seconds.
src/containers/ChatterDetails.tsx:687
↓ 6 callers
Method
getEmoteTagUrls
* Returns the URLs used by the HTML tag for an emote. * @param id - The emote id. * @return The emote tag URLs.
src/libs/EmotesProvider.ts:201
↓ 6 callers
Method
play
* Plays a specific sound. * @param soundId - The sound id. * @param [throttled] - Defines if the sound should be throttled or not.
src/libs/Sound.ts:82
↓ 6 callers
Method
toggleUI
* Toggles a UI and focus the chat input if closing it. * @param ui - The UI to toggle.
src/containers/Channel.tsx:763
↓ 5 callers
Method
getDescriptor
* Returns the descriptor of the command. * @return The descriptor.
src/libs/Command.ts:160
↓ 5 callers
Method
getStateMenuIcon
* Returns the menu icon for a specicic room state key. * @param key - The key. * @return The icon name.
src/components/ModerationMenuItems.tsx:102
↓ 5 callers
Method
say
* Sends a message. * @param message - The message to send. * @param ignoreHistory - Defines if the message should not be added to the history.
src/containers/Channel.tsx:1131
↓ 5 callers
Method
timeout
* Timeouts a user. * @param duration - The duration of the timeout in seconds.
src/components/Message.tsx:495
↓ 4 callers
Method
addToHistory
* Adds a message to the history. * @param message - The message to add.
src/libs/Command.ts:238
↓ 4 callers
Method
connect
* Connects to the Twitch PubSub. * @param channelId - The current channel ID.
src/libs/PubSub.ts:102
↓ 4 callers
Method
createRow
(type: RowType, name?: string)
src/components/Chatters.tsx:275
↓ 4 callers
Method
getChannelId
* Returns the channel ID if any. * @return The channel ID.
src/containers/Channel.tsx:425
↓ 4 callers
Method
getEmotesProvider
* Gets a specific emotes provider. * @param prefix - The provider prefix. * @return The emotes provider.
src/libs/Resources.ts:166
↓ 4 callers
Method
getRejectedMessageInternalId
* Returns the internal ID of a rejected message based on a message ID. * @param messageId - The message ID. * @return The rejected message ID.
src/libs/RejectedMessage.ts:12
↓ 4 callers
Method
getUrl
* Returns the URL for a request. * @param api - The Twitch API to use. * @param endpoint - The endpoint to fetch. * @param [searchParams]
src/libs/Twitch.ts:800
↓ 4 callers
Method
isConnected
* Returns if the PubSub is connected or in the process of connecting. * @return `true` when connected.
src/libs/PubSub.ts:74
↓ 4 callers
Method
markAsProcessing
* Marks the form as processing or not. * @param [type] - Type of processing or undefined to mark as not processing.
src/components/LogsExporter.tsx:324
↓ 4 callers
Method
say
* Sends a message. * @param message - The message to send. * @param ignoreHistory - Defines if the message should not be added to the * histo
src/libs/Command.ts:229
↓ 4 callers
Method
sendHelpNotice
* Sends a help notice about the command.
src/libs/Command.ts:272
↓ 4 callers
Method
sortBy
* Updates the sort order. * @param type - The new sort type.
src/containers/StreamList.tsx:334
↓ 4 callers
Method
toHex
* Converts a color to its hexadecimal string representation. * @param color - The color to convert. * @return The hexadecimal string representat
src/libs/ChatterColor.ts:30
↓ 3 callers
Method
addEmotesProvider
* Adds (or updates) an emotes provider. * @param provider - The emotes provider to add.
src/containers/Chat.tsx:1214
↓ 3 callers
Function
cloneDate
* Clones a date. * @param date - The date to clone. * @return A new instance of the date.
src/utils/date.ts:6
↓ 3 callers
Function
convertMessagesToString
(messages: SerializedMessage | SerializedMessage[])
src/utils/logs.ts:19
↓ 3 callers
Method
disconnect
* Disconnects from the Twitch PubSub.
src/libs/PubSub.ts:115
↓ 3 callers
Function
escape
(html: string | string[])
src/utils/html.ts:27
↓ 3 callers
Method
fetch
* Fetches an URL. * @param endpoint - The endpoint to fetch. * @param [searchParams={}] - Additional search parameters. * @param [method=R
src/libs/Ivr.ts:84
↓ 3 callers
Method
fetchRelationship
* Fetches the follow relationship between the current user and another user. * @param targetId - The target user id. * @return The follow relat
src/libs/Twitch.ts:650
↓ 3 callers
Method
fetchStream
* Fetches details about a stream. * @param channelId - The channel id. * @return The stream details.
src/libs/Twitch.ts:496
↓ 3 callers
Method
getContrast
* Returns the constrast between two colors.. * The contrast is a number between 1 & 21 (1 being not readable, 21 most readable). * @param [color
src/libs/ChatterColor.ts:153
↓ 3 callers
Method
getIntent
* Returns the intent for a specific action key. * @param key - The action key. * @return The intent.
src/containers/SettingsActions.tsx:237
↓ 3 callers
Method
getRowsToRender
* Returns the rows to render based on if we're filtering or not the results. * @return The rows to render.
src/components/CommandsHelp.tsx:185
↓ 3 callers
Method
getSizePath
* Returns the size path used by the provider. * @param size - The size. * @return The size path.
src/libs/EmotesProvider.ts:272
↓ 3 callers
Method
isBot
* Defines if a user is a known bot. * @param username - The username. * @return `true` if the user is a known bot.
src/libs/Resources.ts:211
↓ 3 callers
Method
isCommand
* Checks if a message is a command (starting by a `/` or a `.`). * @param message - A message potentially containing a command.
src/libs/Command.ts:29
↓ 3 callers
Method
isFfz
* Determines if the emote provider is the Ffz one. * @return `true` if Ffz.
src/libs/EmotesProvider.ts:254
↓ 3 callers
Method
isFiltering
* Defines if the emotes set is currently filtered or not. * @return `true` when filtering.
src/containers/EmotePicker.tsx:371
↓ 3 callers
Function
isMarker
(log: Log)
src/store/ducks/logs.ts:401
↓ 3 callers
Function
isNotice
(log: Log)
src/store/ducks/logs.ts:374
↓ 3 callers
Method
isSortingByViewers
* Checks if currently sorting by viewers. * @param sortOrder - The current sort order. * @return `true` when sorting by viewers.
src/containers/StreamList.tsx:161
↓ 3 callers
Method
isTwitchPrefix
* Defines if a prefix is the Twitch one. * @param prefix - The prefix. * @return `true` when the prefix is the Twitch one.
src/libs/EmotesProvider.ts:108
↓ 3 callers
Function
isWhisper
(log: Log)
src/store/ducks/logs.ts:392
↓ 3 callers
Method
setChannel
* Sets the current channel if necessary.
src/containers/Channel.tsx:413
↓ 3 callers
Method
togglePauseAutoScroll
* Pauses or un-pauses the auto scroll. * @param pause - `true` when pausing.
src/components/Logs.tsx:164
↓ 3 callers
Method
validateValue
* Validates an action value. * @param editing - Defines if we're editing or creating a new action. * @param value - The value to validate.
src/libs/Action.ts:77
↓ 2 callers
Method
create
* Creates and returns a new `Player` instance for the application.
src/components/Player.tsx:79
↓ 2 callers
Function
endWithWhiteSpace
(str: string)
src/utils/string.ts:53
↓ 2 callers
Method
equals
* Checks if two colors are equals. * @param color1 - The first color. * @param color2 - The second color. * @return `true` when the colors ar
src/libs/ChatterColor.ts:17
↓ 2 callers
Function
escapeArray
(html: string[])
src/utils/html.ts:8
↓ 2 callers
Method
fetch
* Fetches an URL. * @param endpoint - The endpoint to fetch. * @param [method=RequestMethod.Get] - The request method. * @param [body] - T
src/libs/StrawPoll.ts:68
↓ 2 callers
Method
fetch
* Fetches an URL. * @param url - The URL to fetch. * @return The response.
src/libs/Ffz.ts:69
↓ 2 callers
Method
fetch
* Fetches an URL. * @param url - The URL to fetch. * @param additionalHeaders - Additional headers to pass down to the query. * @return Th
src/libs/Bttv.ts:69
↓ 2 callers
Method
fetch
* Fetches an URL. * @param endpoint - The endpoint to fetch. * @return The response.
src/libs/Pronouns.ts:60
↓ 2 callers
Method
fetchChannelInformations
* Fetches informations about a channel. * @param channelId - The channel id. * @return The channel informations.
src/libs/Twitch.ts:350
↓ 2 callers
Method
fetchStreams
* Fetches streams for the current user which consist of online streams and its own online stream if streaming. * @return The streams.
src/libs/Twitch.ts:629
↓ 2 callers
Method
fetchUserByName
* Fetches details about a specific user using its name. * @param name - The user name. * @return The user details.
src/libs/Twitch.ts:333
↓ 2 callers
Method
findReadableColor
* Finds the lighter or darker readable color. * @param dark - Defines if we're searching for the darker or lighter color. * @return The readable
src/libs/ChatterColor.ts:91
↓ 2 callers
Method
focusFilterInput
* Focuses the filter input.
src/containers/StreamList.tsx:317
↓ 2 callers
Method
getAuthenticatedUserId
* Returns the ID of the current authenticated user. * @return The user ID.
src/libs/Twitch.ts:772
↓ 2 callers
Method
getEmotesProviders
* Gets all emotes provider. * @return The emotes providers.
src/libs/Resources.ts:157
↓ 2 callers
Method
getEmotesSet
* Returns the emotes set to display. * @return The emotes set.
src/containers/EmotePicker.tsx:361
↓ 2 callers
Method
getExportableLogs
* Returns the processed logs ready to be exported. * @return The exportable logs.
src/components/LogsExporter.tsx:296
↓ 2 callers
Method
getFfzEmote
* Returns a specific Ffz emote based on its ID. * @param id - The emote ID. * @return The emote if existing.
src/libs/EmotesProvider.ts:263
↓ 2 callers
Method
getFilteredEmotesSet
* Returns the filtered emotes set. * @param filter - The filter. * @return The emotes set.
src/containers/EmotePicker.tsx:380
↓ 2 callers
Method
getFilteredStreams
* Returns the filtered streams. * @param streams - The streams to filter. * @param filter- The filter to use. * @return The filtered stream
src/containers/StreamList.tsx:144
↓ 2 callers
Method
getMysteryGiftNotificationTitle
* Returns the notification title for mystery gifts. * @param tags - The notice tags. * @param anonymous - `true` when the gift is anonymous.
src/libs/Notification.ts:183
↓ 2 callers
Function
getNormalizedUTCDate
* Normalizes a date by removing the time and timezone informations. * @param date - The date to normalize. * @returns The normalized date.
src/utils/date.ts:76
↓ 2 callers
Method
getOptionsValues
* Returns the options values. * @param options - The options. * @return The options values.
src/components/PollEditor.tsx:406
↓ 2 callers
Method
getPaymentString
* Returns the string representation of a payment. * @param payment - The payment method. * @return The string representation.
src/containers/Chat.tsx:1198
↓ 2 callers
Method
getPreviewProviders
* Returns all the available preview providers. * @return The providers keyed by provider id.
src/libs/Resources.ts:219
↓ 2 callers
Method
getProvider
* Returns the current emote provider. * @return The provider.
src/containers/EmotePicker.tsx:328
↓ 2 callers
Method
getProviderIcon
* Returns the emote provider icon if possible. * @param prefix - The emote provider prefix. * @param [random=false] - Defines if the icon shou
src/containers/EmotePicker.tsx:338
↓ 2 callers
Function
getReportParameters
* Returns the report parameters to include in every reports. * @return The report parameters.
src/utils/bugs.ts:40
↓ 2 callers
Method
getRowsToRender
* Returns the rows to render based on if we're filtering or not the results. * @return The rows to render.
src/components/Chatters.tsx:235
↓ 2 callers
Method
getSortedStreams
* Returns the sorted streams. * @param streams - The streams to sort. * @param sortOrder- The sort order. * @param hideOffline - Defines i
src/containers/StreamList.tsx:121
↓ 2 callers
Function
getStartOfDay
* Returns the start of the day for a date. * @param date - The date. * @returns A new date at the start of the day.
src/utils/date.ts:64
↓ 2 callers
Method
getStreamTitle
* Returns the title of a stream depending on if it's a channel or a stream. * @param stream - The stream. * @return The title.
src/components/StreamOmnibar.tsx:130
↓ 2 callers
Method
getTwitchEmbedUrl
* Returns the URL to use to embed Twitch content. * @param url - The Twitch URL to embed. * @return The parent parameter.
src/libs/Twitch.ts:190
↓ 2 callers
Method
getTwitchTemplatedUrl
* Returns an URL based on a URL template returned by Twitch. * @param templateUrl - The URL template. * @param params - An object describing t
src/libs/Twitch.ts:200
↓ 2 callers
Method
getUsage
* Returns a command usage. * @param descriptor - The command descriptor. * @return The command usage.
src/libs/Command.ts:144
next →
1–100 of 584, ranked by callers