Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alshdavid-public/crayon
/ functions
Functions
141 in github.com/alshdavid-public/crayon
⨍
Functions
141
◇
Types & classes
56
↓ 60 callers
Method
path
(path: string, ...handlers: handlerFunc[])
src/crayon/src/platform/router/group.ts:11
↓ 32 callers
Method
load
()
src/crayon/src/platform/router/router.ts:71
↓ 23 callers
Method
navigate
(path: string)
src/crayon/src/platform/router/router.ts:49
↓ 22 callers
Method
use
(handler: handlerFunc)
src/crayon/src/platform/router/group.ts:15
↓ 21 callers
Method
mount
(..._args: any)
src/crayon/src/platform/router/context.ts:36
↓ 20 callers
Method
push
(path: string)
src/crayon/src/platform/history/history.ts:68
↓ 16 callers
Method
add
(path: string, ...handlers: handlerFunc[])
src/crayon/src/platform/route-map/route-map.ts:22
↓ 14 callers
Function
isArray
(value?: any)
src/kit/src/check-type/array.ts:1
↓ 12 callers
Method
destroy
()
src/crayon/src/platform/router/router.ts:27
↓ 12 callers
Method
emitEvent
(type: RouterEventType, data?: any)
src/crayon/src/platform/router/router.ts:92
↓ 11 callers
Function
addClassNames
( el: HTMLElement, classNames: string[] )
src/kit/src/element/element.ts:77
↓ 11 callers
Method
findWithPathname
(pathname: string)
src/crayon/src/platform/route-map/route-map.ts:32
↓ 10 callers
Function
navigate
(router: Router, path: string)
src/crayon/src/lib/index.spec.ts:8
↓ 10 callers
Method
subscribe
(cb: callback<T>)
src/kit/src/event-stream/beacon.ts:12
↓ 9 callers
Function
deserializeQuery
(query: string = '')
src/kit/src/url/url.ts:71
↓ 9 callers
Method
next
(value: T)
src/kit/src/event-stream/beacon.ts:20
↓ 9 callers
Method
unsubscribe
()
src/kit/src/event-stream/beacon.ts:42
↓ 8 callers
Method
redirect
(path: string)
src/crayon/src/platform/router/context.ts:39
↓ 7 callers
Method
onLeave
(cb: LeaveAction)
src/crayon/src/platform/router/context.ts:25
↓ 6 callers
Method
calculate
(from: string, to: string)
src/animate/src/state.ts:43
↓ 5 callers
Method
first
(cb: (value: T) => boolean = () => true)
src/kit/src/event-stream/beacon.ts:26
↓ 5 callers
Function
loadComplete
(router: Router, id?: string)
src/crayon/src/lib/index.spec.ts:7
↓ 5 callers
Method
pop
()
src/crayon/src/platform/history/history.ts:77
↓ 5 callers
Method
putRoute
(newRoute: AnimationRoute)
src/animate/src/state.ts:18
↓ 5 callers
Function
removeClassNames
( el: HTMLElement, classNames: string[] )
src/kit/src/element/element.ts:86
↓ 4 callers
Method
back
()
src/crayon/src/platform/router/router.ts:60
↓ 4 callers
Function
middleware
(req, res)
src/crayon/src/platform/router/group.spec.ts:18
↓ 4 callers
Function
routes
( routes: AnimationRoute[] )
src/animate/src/routes.ts:5
↓ 4 callers
Function
setStyles
(element: HTMLElement, styles: CSSProperties)
src/kit/src/element/element.ts:59
↓ 4 callers
Function
waitForElements
(...e: HTMLElement[])
src/kit/src/element/element.ts:99
↓ 3 callers
Method
getLocation
()
src/crayon/src/platform/locator/locator.ts:10
↓ 3 callers
Function
normalise
(path?: string, lowerCase: boolean = true)
src/kit/src/url/url.ts:1
↓ 3 callers
Method
push
(instance: any)
src/vue/src/mounter.ts:13
↓ 3 callers
Method
shift
()
src/vue/src/mounter.ts:22
↓ 2 callers
Method
add
(subscription: Subscription)
src/kit/src/event-stream/beacon.ts:38
↓ 2 callers
Method
digest
()
src/crayon/src/platform/router/router.ts:121
↓ 2 callers
Function
getAnimationState
(state: Record<string, any>)
src/animate/src/state.ts:98
↓ 2 callers
Function
getRouteTargets
( selector: string )
src/crayon/src/platform/mount/get-route-targets.ts:8
↓ 2 callers
Function
hasRouter
()
src/crayon/src/lib/index.spec.ts:175
↓ 2 callers
Method
mergeContext
( ctx: Context, routePattern: string, params: Record<string, string>, )
src/crayon/src/platform/locator/locator.ts:14
↓ 2 callers
Method
runOnLeave
()
src/crayon/src/platform/router/context.ts:20
↓ 2 callers
Function
useAppContext
()
examples/react/typescript-webpack-simple/src/gui/context.ts:10
↓ 2 callers
Function
useAppContext
()
examples/react/typescript-webpack-animated/src/gui/context.ts:10
↓ 1 callers
Function
Context
(Component: () => h.JSX.Element)
src/preact/src/with-context.ts:7
↓ 1 callers
Method
addEventListener
(event: string, callback: () => void)
src/crayon/__tests__/mocks/window.ts:32
↓ 1 callers
Method
addMiddleware
(...handlers: handlerFunc[])
src/crayon/src/platform/route-map/route-map.ts:26
↓ 1 callers
Method
addRouter
(router: Router)
src/crayon/src/platform/shared-state/shared-state.ts:13
↓ 1 callers
Function
animatedMount
( states: ClassNameStates, Component: any, mounter: Mounter, name: string, duration: number )
src/crayon/src/platform/mount/mount-animated.ts:14
↓ 1 callers
Function
apply
(Component: any)
src/react/src/with-context.ts:5
↓ 1 callers
Function
clearClassList
( el: HTMLElement )
src/kit/src/element/element.ts:95
↓ 1 callers
Method
end
()
src/crayon/src/platform/router/context.ts:29
↓ 1 callers
Function
first
( beacon: Beacon<T>, cb: (value: T) => boolean = () => true )
src/kit/src/event-stream/beacon.ts:64
↓ 1 callers
Function
getSharedState
( _window: Window = window, )
src/crayon/src/platform/shared-state/shared-state.ts:28
↓ 1 callers
Function
handler
(req, res)
src/crayon/src/platform/router/group.spec.ts:11
↓ 1 callers
Function
hasAnimation
( noAnimation: string, name?: string, duration?: number )
src/crayon/src/platform/mount/has-animation.ts:1
↓ 1 callers
Function
hasTrailingSlash
(path: string)
src/kit/src/url/url.ts:25
↓ 1 callers
Function
isFunction
(value: any)
src/vue/src/mounter.ts:4
↓ 1 callers
Function
matchPath
( pattern: string, pathname: string )
src/kit/src/url/url.ts:39
↓ 1 callers
Function
nthEvent
( beacon: Beacon<T>, n: number )
src/kit/src/event-stream/beacon.ts:48
↓ 1 callers
Function
ofType
(id: string, type: crayon.RouterEventType)
src/crayon/src/lib/index.spec.ts:6
↓ 1 callers
Method
onRequestUpdate
( ctx: Context, key: string )
src/crayon/src/platform/router/router.ts:165
↓ 1 callers
Function
onRouterDestroy
( router: Router, sharedState: SharedState, )
src/crayon/src/lib/create.ts:47
↓ 1 callers
Method
putRoutes
(routes: AnimationRoute[])
src/animate/src/state.ts:37
↓ 1 callers
Method
removeEventListener
(event: string, callback: () => void)
src/crayon/__tests__/mocks/window.ts:39
↓ 1 callers
Method
removeRouter
(router: Router)
src/crayon/src/platform/shared-state/shared-state.ts:18
↓ 1 callers
Function
removeTrailingSlash
(path: string)
src/kit/src/url/url.ts:18
↓ 1 callers
Method
renderUsingReactDOM
( Component: () => JSX.Element, target: HTMLElement )
src/react/src/mounter.ts:29
↓ 1 callers
Function
root
(selector: string)
src/transition/src/body.ts:1
↓ 1 callers
Function
router
( target: HTMLElement = document.body, className: string = 'router-view' )
src/react/src/react.ts:4
↓ 1 callers
Function
router
( target?: HTMLElement, className?: string )
src/preact/src/preact.ts:4
↓ 1 callers
Method
runHandlers
(handlers: handlerFunc[], ctx: Context)
src/crayon/src/platform/router/router.ts:103
↓ 1 callers
Function
setEvents
(element: HTMLElement, events: DOMEventMap)
src/kit/src/element/element.ts:68
↓ 1 callers
Function
setSharedState
( sharedState: SharedState, _window: Window = window, )
src/crayon/src/platform/shared-state/shared-state.ts:37
↓ 1 callers
Function
staticMount
( states: ClassNameStates, incoming: any, mounter: Mounter, name: string, )
src/crayon/src/platform/mount/mount-static.ts:6
↓ 1 callers
Method
unmount
()
src/preact/src/mounter.ts:11
↓ 1 callers
Method
unmount
(..._args: any)
src/crayon/src/platform/router/context.ts:33
↓ 1 callers
Method
useGroup
(group: Group)
src/crayon/src/platform/router/router.ts:81
Function
EmbeddedRouter
({ children = () => {}, name = genString.ofLength(5), className = '', }: EmbeddedRouterProps)
src/react/src/embedded-router.ts:12
Function
EmbeddedRouter
({ children = () => {}, name = genString.ofLength(5), className = '', }: EmbeddedRouterProps)
src/preact/src/embedded-router.ts:13
Function
More
()
examples/react/typescript-webpack-simple/src/gui/pages/more.tsx:4
Function
More
()
examples/react/typescript-webpack-animated/src/gui/pages/more.tsx:4
Function
Route
()
examples/react/typescript-webpack-simple/src/gui/pages/route.tsx:4
Function
Route
()
examples/react/typescript-webpack-animated/src/gui/pages/route.tsx:4
Function
action
()
src/crayon/src/platform/router/context.spec.ts:5
Function
authMiddleware
src/crayon/src/lib/index.spec.ts:37
Method
constructor
( public target: HTMLElement, public className: string )
src/react/src/state.ts:6
Method
constructor
( public target: HTMLElement, public selector: string, )
src/react/src/mounter.ts:7
Method
constructor
( public name = 'no-animation', public duration = 0, public overrideDuration = false,
src/animate/src/state.ts:7
Method
constructor
( from: string = '', to: string = '' )
src/animate/src/mocks/mocks.ts:10
Method
constructor
( public routePattern: string = '' )
src/animate/src/mocks/mocks.ts:20
Method
constructor
( public target = document.body, public selector = 'router-view' )
src/preact/src/mounter.ts:6
Method
constructor
( public base: string = 'crayon' )
src/crayon/src/platform/mount/make-class-names.ts:10
Method
constructor
( private window: Window = window )
src/crayon/src/platform/locator/locator.ts:6
Method
constructor
( public id: string, public location: Location, public routeMap: RouteMap, public history: His
src/crayon/src/platform/router/router.ts:17
Method
constructor
( public base: string )
src/crayon/src/platform/router/group.ts:7
Method
constructor
( public history: History, )
src/crayon/src/platform/shared-state/shared-state.ts:9
Method
constructor
( private window: Window = window, )
src/crayon/src/platform/history/history.ts:56
Method
constructor
( path: string = '' )
src/crayon/__tests__/mocks/window.ts:43
Method
constructor
( public target = document.body, public selector = 'router-view', public instances: an
src/svelte/src/mounter.ts:5
Method
constructor
( public target = document.body, public selector = 'router-view', public instances: an
src/vue/src/mounter.ts:7
next →
1–100 of 141, ranked by callers