Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/smapiot/piral
/ functions
Functions
2,787 in github.com/smapiot/piral
⨍
Functions
2,787
◇
Types & classes
880
↓ 374 callers
Function
resolve
(url)
src/framework/piral-base/src/loaders/v0/dependency.test.ts:29
↓ 292 callers
Function
log
(type: T, ...args: Parameters<Messages[T]>)
src/tooling/piral-cli/src/common/log.ts:87
↓ 196 callers
Method
map
* Maps a module id to a source. * @param id The module id. * @param source The source to map the module to.
src/converters/piral-aurelia/src/DefaultLoader.ts:15
↓ 179 callers
Function
describe
(name: string, value: string)
src/tooling/piral-cli/src/questionnaire.ts:60
↓ 168 callers
Method
push
* Pushes a new location onto the history stack.
src/framework/piral-core/src/types/navigation.ts:63
↓ 121 callers
Method
filter
* Allows filtering of the search providers to query. * @param query The query that should be run. * @param providerNames The names of the availa
src/plugins/piral-search/src/create.ts:68
↓ 118 callers
Function
render
(h)
src/converters/piral-vue/src/mount.ts:21
↓ 115 callers
Function
create
(options)
src/tooling/piral-cli-webpack5/src/webpack/piral.ts:94
↓ 108 callers
Function
require
(moduleId: string)
src/framework/piral-base/src/loaders/v0/dependency.ts:20
↓ 71 callers
Function
ensure
(name: string, value: any, expectedType: string | Array<string>)
src/tooling/piral-cli/src/common/validate.ts:3
↓ 70 callers
Method
dispatch
* Dispatches a state change. * @param update The update function creating a new state.
src/framework/piral-core/src/types/state.ts:346
↓ 68 callers
Method
replace
* Replaces the current location with another.
src/framework/piral-core/src/types/navigation.ts:67
↓ 62 callers
Function
progress
(message: string, ...args: Array<string | number | boolean>)
src/tooling/piral-cli/src/common/log.ts:64
↓ 56 callers
Function
fail
(type: T, ...args: Parameters<Messages[T]>)
src/tooling/piral-cli/src/common/log.ts:80
↓ 48 callers
Function
createElement
(moduleName: string, props: any)
src/converters/piral-blazor/src/interop.ts:174
↓ 46 callers
Function
select
(from: SelectCommands)
src/tooling/piral-cli/src/select.ts:18
↓ 39 callers
Function
satisfies
(v: string, r: string)
src/tooling/piral-cli/src/common/version.ts:122
↓ 37 callers
Method
error
(message: string)
src/tooling/piral-cli/src/types/common.ts:188
↓ 36 callers
Function
createListener
(state: any = {})
src/framework/piral-base/src/events.ts:15
↓ 35 callers
Function
readJson
(targetDir: string, fileName: string, defaultValue = {})
src/tooling/piral-cli/src/common/io.ts:370
↓ 33 callers
Method
defineActions
* Defines a set of actions for Piral. * @param actions The actions to define.
src/framework/piral-core/src/types/state.ts:254
↓ 30 callers
Method
on
(cb: (args: any) => void)
src/tooling/piral-cli/src/types/common.ts:122
↓ 30 callers
Method
setup
* Integrates the evaluated pilet into the application. * @param api The API to access the application.
src/framework/piral-base/src/types/runtime.ts:102
↓ 30 callers
Function
useGlobalState
(select?: (state: GlobalState) => R)
src/framework/piral-core/src/hooks/globalState.ts:28
↓ 28 callers
Function
checkExists
(target: string)
src/tooling/piral-cli/src/common/io.ts:105
↓ 28 callers
Method
toString
()
src/utilities/piral-debug-utils/src/stack.ts:58
↓ 26 callers
Method
getItem
* Gets the value of an item. * @param name The name of the item to look for.
src/framework/piral-core/src/types/utils.ts:19
↓ 25 callers
Method
get
(path: string)
src/framework/piral-base/src/loaders/mf/index.ts:21
↓ 25 callers
Function
setupOidcClient
(config: OidcConfig)
src/plugins/piral-oidc/src/setup.ts:26
↓ 25 callers
Function
update
(data)
src/plugins/piral-feeds/src/utils.ts:19
↓ 25 callers
Function
withKey
(obj: T, key: TKey, value: T[TKey])
src/framework/piral-core/src/utils/helpers.ts:75
↓ 24 callers
Method
emit
* Emits a new event with the given type. * @param type The type of the event to emit. * @param arg The payload of the event.
src/framework/piral-base/src/types/api.ts:56
↓ 22 callers
Function
determineNpmClient
(root: string, selected?: NpmClientType)
src/tooling/piral-cli/src/common/npm.ts:139
↓ 22 callers
Function
isfunc
(f: any)
src/framework/piral-base/src/utils/helpers.ts:1
↓ 22 callers
Function
logDone
(message: string, ...args: Array<string | number | boolean>)
src/tooling/piral-cli/src/common/log.ts:46
↓ 21 callers
Function
getPiralComponent
(name: TKey)
src/framework/piral-core/src/components/components.tsx:12
↓ 21 callers
Function
h
(e: string, attrs: Record<string, string> = {}, ...children: (string | Node)[])
src/utilities/piral-debug-utils/src/overlay.ts:4
↓ 20 callers
Function
createActions
(state: UseBoundStore<GlobalState>, events: EventEmitter)
src/framework/piral-core/src/state/createActions.ts:28
↓ 20 callers
Function
findFile
( topDir: string, fileName: string | Array<string>, stopDir = resolve(topDir, '/'), )
src/tooling/piral-cli/src/common/io.ts:144
↓ 20 callers
Function
isSame
(a: T, b: T)
src/framework/piral-core/src/utils/compare.ts:33
↓ 19 callers
Function
createActions
(state, listener)
src/plugins/piral-search/src/actions.test.ts:16
↓ 19 callers
Function
createListener
()
src/plugins/piral-search/src/actions.test.ts:8
↓ 19 callers
Function
defaultRender
(children: React.ReactNode, key?: string)
src/framework/piral-core/src/utils/react.tsx:3
↓ 19 callers
Function
update
(newProps)
src/framework/piral-core/src/modules/element.ts:306
↓ 18 callers
Function
cb
(ev: any)
src/framework/piral-base/src/events.ts:26
↓ 18 callers
Function
dispose
()
src/framework/piral-core/src/RootListener.tsx:26
↓ 18 callers
Function
setLogLevel
(value: LogLevels)
src/tooling/piral-cli/src/common/log.ts:16
↓ 18 callers
Function
withoutKey
(obj: T, key: TKey)
src/framework/piral-core/src/utils/helpers.ts:82
↓ 17 callers
Function
useEffect
()
src/plugins/piral-translate/src/hooks.test.ts:21
↓ 17 callers
Function
withApi
( context: GlobalStateContext, component: AnyComponent<TProps & BaseComponentProps>, piral: PiletApi,
src/framework/piral-core/src/state/withApi.tsx:48
↓ 16 callers
Function
buildName
(prefix: string, name: string | number)
src/framework/piral-core/src/utils/guid.ts:11
↓ 16 callers
Function
fetch
(path, options: any = {})
src/plugins/piral-fetch/src/create.ts:13
↓ 16 callers
Function
installNpmPackage
( client: NpmClient, packageRef: string, target = '.', ...flags: Array<string> )
src/tooling/piral-cli/src/common/npm.ts:225
↓ 15 callers
Function
validate
(version: string)
src/tooling/piral-cli/src/common/version.ts:118
↓ 14 callers
Function
isLocalPackage
(baseDir: string, fullName: string)
src/tooling/piral-cli/src/common/npm.ts:286
↓ 14 callers
Method
on
(cb: () => void)
src/tooling/piral-cli/src/common/watcher.ts:6
↓ 14 callers
Function
setupLocalizer
(config: LocaleConfig = {})
src/plugins/piral-translate/src/create.ts:50
↓ 14 callers
Function
useGlobalStateContext
()
src/framework/piral-core/src/hooks/globalState.ts:11
↓ 13 callers
Function
createInstance
(config: PiralInstanceOptions = {})
src/framework/piral-core/src/createInstance.tsx:29
↓ 13 callers
Function
createLocaleApi
(localizer: Localizable = setupLocalizer())
src/plugins/piral-translate/src/create.ts:70
↓ 13 callers
Function
createRouteMatcher
(path: string)
src/framework/piral-core/src/utils/routes.ts:133
↓ 13 callers
Function
logInfo
(message: string, ...args: Array<string | number | boolean>)
src/tooling/piral-cli/src/common/log.ts:20
↓ 13 callers
Method
setItem
* Sets the value of an item. * @param name The name of the item to set. * @param data The new value of the item. * @param expires Optional ex
src/framework/piral-core/src/types/utils.ts:14
↓ 13 callers
Function
useForm
( initialData: TFormData, navigation: NavigationApi, options: InputFormOptions<TFormData, any>, existi
src/plugins/piral-forms/src/useForm.ts:131
↓ 12 callers
Function
cb
(dispatch: StateDispatcher<any>)
src/plugins/piral-containers/src/create.ts:34
↓ 12 callers
Function
createFileIfNotExists
( targetDir: string, fileName: string, content: Buffer | string, forceOverwrite = ForceOverwrite.no, )
src/tooling/piral-cli/src/common/io.ts:316
↓ 12 callers
Function
getDefaultLoader
(config: DefaultLoaderConfig = {})
src/framework/piral-base/src/loader.ts:41
↓ 12 callers
Function
promisify
(value?: T | PromiseLike<T>)
src/framework/piral-base/src/utils/helpers.ts:9
↓ 12 callers
Function
readImportmap
( dir: string, packageDetails: PiralPackageData, versionBehavior: ImportmapVersions = 'exact', inherit
src/tooling/piral-cli/src/common/importmap.ts:368
↓ 12 callers
Method
readState
* Gets a snapshot of the current global state. * @param select The selection function to obtain the desired slice.
src/framework/siteless/src/index.ts:114
↓ 12 callers
Method
start
()
src/tooling/piral-cli/src/types/common.ts:120
↓ 12 callers
Method
translate
* Translates the given tag (using the optional variables) into a string using the current language. * The used template can contain placeholders in
src/plugins/piral-translate/src/types.ts:168
↓ 12 callers
Method
update
(props: any)
src/converters/piral-blazor/src/converter.ts:62
↓ 11 callers
Function
createApi
(container, apis = [])
src/framework/piral-core/src/modules/api.test.ts:33
↓ 11 callers
Function
deepMerge
(target: any, source: any)
src/tooling/piral-cli/src/common/merge.ts:64
↓ 11 callers
Function
dissectPackageName
( baseDir: string, fullName: string, client: NpmClient, )
src/tooling/piral-cli/src/common/npm.ts:376
↓ 11 callers
Method
listen
* Starts listening for location changes and calls the given * callback with an Update when it does. * @param listener The function being called
src/framework/piral-core/src/types/navigation.ts:87
↓ 11 callers
Method
registerPage
* Registers a route for predefined page component. * The route needs to be unique and can contain params. * Params are following the path-to-reg
src/framework/piral-core/src/types/api.ts:150
↓ 11 callers
Method
text
(selector: string, text: string, linkFiles = false)
src/utilities/piral-debug-utils/src/overlay.ts:283
↓ 11 callers
Method
triggerSearch
* Triggers the search explicitly. * @param input Optionally sets the query to look for. Otherwise the current input is taken. * @param immed
src/plugins/piral-search/src/types.ts:62
↓ 10 callers
Function
createApi
(container)
src/framework/piral-core/src/modules/core.test.ts:33
↓ 10 callers
Function
createDirectory
(targetDir: string)
src/tooling/piral-cli/src/common/io.ts:59
↓ 10 callers
Function
createMockContainer
()
src/framework/piral-core/src/modules/api.test.ts:18
↓ 10 callers
Function
createMockContainer
()
src/framework/piral-core/src/modules/core.test.ts:18
↓ 10 callers
Function
inspectPilet
(meta: PiletEntry)
src/framework/piral-base/src/inspect.ts:36
↓ 10 callers
Function
installNpmDependencies
(client: NpmClient, target = '.')
src/tooling/piral-cli/src/common/npm.ts:174
↓ 10 callers
Method
localizeGlobal
(key: string, variables?: T)
src/plugins/piral-translate/src/types.ts:122
↓ 10 callers
Function
matchFiles
(baseDir: string, pattern: string)
src/tooling/piral-cli/src/common/io.ts:296
↓ 10 callers
Method
renderHtmlExtension
* Renders an extension in a plain DOM component. * @param element The DOM element or shadow root as a container for rendering the extension. * @
src/framework/piral-core/src/types/api.ts:190
↓ 10 callers
Function
sendMessage
(content: any)
src/utilities/piral-debug-utils/src/debug.ts:125
↓ 10 callers
Method
setData
* Sets the data using a given name. The name needs to be used exclusively by the current pilet. * Using the name occupied by another pilet will res
src/framework/piral-core/src/types/api.ts:141
↓ 10 callers
Function
withAll
(...dispatchers: Array<(state: GlobalState) => GlobalState>)
src/framework/piral-core/src/utils/state.ts:11
↓ 9 callers
Function
cb
(err, updatedModules)
src/tooling/piral-cli-webpack5/src/webpack-hot-middleware/process-update.js:56
↓ 9 callers
Function
computeHash
(content: string | Buffer = '')
src/tooling/piral-cli/src/common/hash.ts:3
↓ 9 callers
Function
createGlobalState
(customState: NestedPartial<GlobalState> = {})
src/framework/piral-core/src/state/createGlobalState.ts:20
↓ 9 callers
Function
getUserLocale
(availableLocales: Array<string>, defaultLocale: string, fallbackLocale?: string)
src/plugins/piral-translate/src/current.ts:17
↓ 9 callers
Function
loadFrom
(meta: Omit<PiletMetadata, 'basePath'>, loadPilet: () => PiletApp | Promise<PiletApp>)
src/framework/piral-base/src/utils/load.ts:34
↓ 9 callers
Function
mockNavigatorLanguage
(value = '')
src/plugins/piral-translate/src/current.test.ts:8
↓ 9 callers
Function
navigate
(path, state)
src/framework/piral-core/src/tools/debugger.ts:38
↓ 9 callers
Function
normalizePublicUrl
(url: string)
src/tooling/piral-cli/src/common/url.ts:1
next →
1–100 of 2,787, ranked by callers