Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cynicaloptimist/improved-initiative
/ functions
Functions
602 in github.com/cynicaloptimist/improved-initiative
⨍
Functions
602
◇
Types & classes
251
↓ 49 callers
Function
addCombatantFromStatBlock
( encounter: Encounter, statBlock: Record<string, unknown> = StatBlock.Default(), hideOnAdd = false, v
client/test/addCombatant.ts:6
↓ 47 callers
Method
TrackEvent
( name: string, eventData: Record<string, any> = {} )
client/Utility/Metrics.ts:34
↓ 43 callers
Function
useSubscription
(observable: KnockoutObservable<T>)
client/Combatant/linkComponentToObservables.tsx:21
↓ 33 callers
Function
probablyUniqueString
()
common/Toolbox.ts:9
↓ 26 callers
Method
Add
(items: any[])
server/library.ts:66
↓ 21 callers
Function
InitializeTestSettings
(overrides?: DeepPartial<Settings>)
client/test/InitializeTestSettings.ts:10
↓ 21 callers
Function
buildEncounter
()
client/test/buildEncounter.ts:4
↓ 18 callers
Function
getDefaultSettings
()
common/Settings.ts:64
↓ 16 callers
Method
getString
(selector)
client/Importers/Importer.ts:6
↓ 14 callers
Method
GetWithTemplate
(template: T)
client/Library/Listing.ts:34
↓ 12 callers
Method
ApplyDamage
(damage: number)
client/Combatant/Combatant.ts:200
↓ 12 callers
Method
GetStatBlock
()
client/Importers/StatBlockImporter.ts:62
↓ 12 callers
Function
GetTimerReadout
(elapsedSeconds: number)
client/Widgets/GetTimerReadout.ts:3
↓ 12 callers
Function
simulate
( selector: string, event: string, data?: Record<string, unknown> )
client/StatBlockEditor/StatBlockEditor.test.tsx:54
↓ 11 callers
Method
AddCombatantFromPersistentCharacter
( persistentCharacter: PersistentCharacter, updatePersistentCharacter: UpdatePersistentCharacter,
client/Encounter/Encounter.ts:223
↓ 10 callers
Method
getCommaSeparatedStrings
(selector: string)
client/Importers/Importer.ts:30
↓ 9 callers
Function
InitializeCombatantFromStatBlock
( statBlock: StatBlock, combatantId: string, rolledHP?: number )
client/Reducers/InitializeCombatantFromStatBlock.tsx:4
↓ 8 callers
Function
getLocation
(element: HTMLElement)
client/Tutorial/TutorialSteps.ts:15
↓ 8 callers
Function
submitEditor
()
client/StatBlockEditor/StatBlockEditor.test.tsx:65
↓ 7 callers
Method
EditStatBlock
(props: Omit<StatBlockEditorProps, "onClose">)
client/TrackerViewModel.tsx:154
↓ 7 callers
Method
GetAsyncWithUpdatedId
(callback: (item: any) => any)
client/Library/Listing.ts:42
↓ 7 callers
Function
commaSeparatedStrings
(input: string | undefined)
client/Importers/Open5eImporter.ts:89
↓ 7 callers
Function
fakeListing
( id: string, name: string, listingOrigin: ListingOrigin )
client/Account/AccountClient.test.ts:6
↓ 7 callers
Method
getInt
(selector)
client/Importers/Importer.ts:10
↓ 7 callers
Function
getUnsyncedItemsFromListings
( items: Listing<Listable>[] )
client/Account/AccountClient.ts:192
↓ 7 callers
Function
joinEncounter
(id: string)
server/sockets.ts:46
↓ 7 callers
Function
linkComponentToObservables
(component: React.Component)
client/Combatant/linkComponentToObservables.tsx:5
↓ 7 callers
Function
verifyStorage
( req: Express.Request )
server/storageroutes.ts:14
↓ 6 callers
Function
EncounterReducer
( state: EncounterState<CombatantState>, action: Action )
client/Reducers/EncounterReducer.tsx:10
↓ 6 callers
Method
MakeId
(name: string, path?: string)
client/Account/AccountClient.ts:154
↓ 6 callers
Method
UpdateEncounter
(id: string, newState: any)
server/playerviewmanager.ts:10
↓ 6 callers
Function
castToNumberOrZero
(value?: any)
client/StatBlockEditor/ConvertStringsToNumbersWhereNeeded.tsx:16
↓ 6 callers
Method
getLabelAndColorBlock
( label: string, style: keyof PlayerViewCustomStyles )
client/Settings/components/StylesChooser.tsx:64
↓ 6 callers
Method
getPowers
(selector: string)
client/Importers/Importer.ts:53
↓ 6 callers
Function
nameAndDescArrays
(entries: any)
client/Importers/Open5eImporter.ts:143
↓ 6 callers
Function
nameAndDescArraysV2
(entries: any)
client/Importers/Open5eImporter.ts:297
↓ 6 callers
Function
saveEntity
(entity: T, entityType: string)
client/Account/AccountClient.ts:167
↓ 5 callers
Method
Calculate
( enemyChallengeRatings: string[], playerLevels: string[] )
client/Widgets/DifficultyCalculator.ts:176
↓ 5 callers
Function
GetOrRollMaximumHP
( statBlock: StatBlock, variant: VariantMaximumHP )
client/Combatant/GetOrRollMaximumHP.ts:11
↓ 5 callers
Function
ParseJSONOrDefault
(json: string, defaultValue: T)
common/Toolbox.ts:32
↓ 5 callers
Function
deleteEntity
(entityId: string, entityType: string)
client/Account/AccountClient.ts:270
↓ 5 callers
Function
parenthesizeOrEmpty
(input: string | undefined)
client/Importers/Open5eImporter.ts:82
↓ 5 callers
Method
render
()
client/Components/Overlay.tsx:23
↓ 5 callers
Method
renderPlayerView
(newState: PlayerViewState)
client/PlayerView/ReactPlayerView.tsx:81
↓ 5 callers
Function
rollD20
()
client/Rules/Rules.ts:70
↓ 5 callers
Function
useLibraries
( settings: Settings, accountClient: AccountClient, allPersistentCharactersLoaded: () => void )
client/Library/Libraries.ts:84
↓ 5 callers
Function
useLibrary
( storeName: string, accountRoute: string, callbacks: { createEmptyListing: () => T; accountSave
client/Library/useLibrary.ts:29
↓ 4 callers
Method
EditSpell
(props: Omit<SpellEditorProps, "onClose">)
client/TrackerViewModel.tsx:161
↓ 4 callers
Function
GetDailyCounters
(statBlockEntries: NameAndContent[])
client/Encounter/AutoPopulatedNotes.ts:54
↓ 4 callers
Function
GetRechargeCounters
(statBlockEntries: NameAndContent[])
client/Encounter/AutoPopulatedNotes.ts:61
↓ 4 callers
Method
IdAvailable
(id: string)
server/playerviewmanager.ts:8
↓ 4 callers
Method
InitializeNew
()
server/playerviewmanager.ts:14
↓ 4 callers
Function
InitializeSettings
()
client/Settings/Settings.ts:53
↓ 4 callers
Function
MakeCommand
()
client/Commands/Command.test.ts:5
↓ 4 callers
Function
MockAccountClient
()
client/MockAccountClient.tsx:4
↓ 4 callers
Method
applyReplacer
( replacer: any, children: React.ReactNode | React.ReactNode[] )
client/TextEnricher/TextEnricher.tsx:94
↓ 4 callers
Function
configureEntityRoute
( app: express.Application, route: DB.EntityPath )
server/storageroutes.ts:102
↓ 4 callers
Function
dummyLibrary
()
client/Library/Libraries.ts:66
↓ 4 callers
Method
getCounts
(items: Listing<T>[])
client/Settings/components/AccountSyncSettings.tsx:195
↓ 4 callers
Function
handleCurrentUser
( req: Req, res: Res, apiResponse: Record<string, any> )
server/patreon.ts:112
↓ 4 callers
Function
importList
(listName: string, importSource: any)
client/Utility/LegacySynchronousLocalStore.ts:126
↓ 4 callers
Function
importList
(listName: string, importSource: any)
client/Utility/Store.ts:117
↓ 4 callers
Function
save
(key: string, value: any)
client/Utility/LegacySynchronousLocalStore.ts:168
↓ 4 callers
Function
saveEntitySet
( entitySet: Listable[], entityType: string, batchSize: number, messageCallback: (message: string) =>
client/Account/AccountClient.ts:247
↓ 4 callers
Function
useSelection
()
client/Library/Manager/useSelection.ts:13
↓ 3 callers
Function
BuildActiveEncounter
()
client/Reducers/EncounterReducer.test.tsx:75
↓ 3 callers
Function
BuildListingTree
( buildListingComponent: ( listing: Listing<T>, index: number, array: Listing<T>[] ) => JSX.El
client/Library/Components/BuildListingTree.tsx:22
↓ 3 callers
Method
CleanInitiativeGroups
()
client/Encounter/Encounter.ts:347
↓ 3 callers
Function
CombatantsReducer
(state: CombatantState[], action: Action)
client/Reducers/CombatantsReducer.tsx:6
↓ 3 callers
Function
ConvertStringsToNumbersWhereNeeded
(statBlock: StatBlock)
client/StatBlockEditor/ConvertStringsToNumbersWhereNeeded.tsx:3
↓ 3 callers
Method
Get
(id: string)
server/playerviewmanager.ts:6
↓ 3 callers
Function
GetAlphaSortableLevelString
(level: string)
client/Utility/GetAlphaSortableLevelString.ts:3
↓ 3 callers
Method
MoveCombatant
(combatant: Combatant, index: number)
client/Encounter/Encounter.ts:319
↓ 3 callers
Method
SanitizeForId
(str: string)
client/Account/AccountClient.ts:150
↓ 3 callers
Function
Save
( listName: string, key: string, value: T )
client/Utility/Store.ts:25
↓ 3 callers
Function
ToPlayerViewCombatantState
( combatant: Combatant )
client/Combatant/ToPlayerViewCombatantState.ts:6
↓ 3 callers
Function
UpdateLegacySavedEncounter
( savedEncounter: any )
client/Encounter/UpdateLegacySavedEncounter.ts:49
↓ 3 callers
Method
UpdateSettings
(id: string, newSettings: any)
server/playerviewmanager.ts:12
↓ 3 callers
Function
ValidateEncounterId
(id: string)
common/ValidateEncounterId.ts:3
↓ 3 callers
Function
buildEncounterState
()
client/Commands/EncounterCommander.test.ts:180
↓ 3 callers
Function
computeInitiativeBonus
(statBlock: StatBlock)
client/Reducers/GetCombatantsSorted.tsx:52
↓ 3 callers
Function
concatenatedStringRegex
(strings: string[])
common/Toolbox.ts:22
↓ 3 callers
Method
createOrGet
(id: string)
server/InMemoryPlayerViewManager.ts:42
↓ 3 callers
Function
emptyPromise
()
client/Account/AccountClient.ts:163
↓ 3 callers
Function
getClientOptions
(session: Express.Session)
server/routes.ts:39
↓ 3 callers
Function
getTestSpell
()
client/TextEnricher/TextEnricher.test.tsx:10
↓ 3 callers
Function
normalizeChallengeRating
(challengeRating: number)
common/Toolbox.ts:40
↓ 3 callers
Function
renderToolbarWithSingleCommand
( id, description, width: "narrow" | "wide" = "narrow" )
client/Commands/Toolbar.test.tsx:9
↓ 3 callers
Function
runEncounter
client/Encounter/AutoRerollInitiativeOption.test.ts:12
↓ 3 callers
Function
toModifierString
(number: number)
common/Toolbox.ts:2
↓ 3 callers
Function
updateSessionAccountFeatures
( session: Express.Session, standing: AccountStatus )
server/patreon.ts:196
↓ 3 callers
Function
useFocusIfEmpty
()
client/StatBlockEditor/components/useFocus.ts:3
↓ 3 callers
Function
useVerticalResizerDrop
()
client/Layout/VerticalResizer.tsx:33
↓ 2 callers
Function
ActiveLibrary
( libraries: Libraries, libraryType: LibraryType )
client/Library/Manager/ActiveLibrary.tsx:5
↓ 2 callers
Method
ApplyInitiative
(initiative: number)
client/Combatant/CombatantViewModel.ts:78
↓ 2 callers
Method
AttachToPersistentCharacterLibrary
( updatePersistentCharacter: UpdatePersistentCharacter )
client/Combatant/Combatant.ts:105
↓ 2 callers
Function
CombatantStateWithName
(name: string)
client/AutosavedEncounterTest.test.tsx:15
↓ 2 callers
Method
EditInitiative
()
client/Combatant/CombatantViewModel.ts:83
↓ 2 callers
Method
EditPersistentCharacterStatBlock
( persistentCharacterId: string )
client/Commands/LibrariesCommander.ts:195
↓ 2 callers
Method
FromFile
( filename: string, route: string, getSearchHint: (item: I) => string, getMetadata: (item: I)
server/library.ts:44
next →
1–100 of 602, ranked by callers