Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danja/dogalog
/ functions
Functions
334 in github.com/danja/dogalog
⨍
Functions
334
◇
Types & classes
58
↓ 89 callers
Method
createElement
()
src/ui/aiChat.js:18
↓ 48 callers
Function
evalNumber
(term, env)
src/prolog/builtins/utils.js:10
↓ 46 callers
Function
parseProgram
(src)
src/prolog/parser.js:8
↓ 40 callers
Function
peek
()
src/prolog/parser.js:12
↓ 33 callers
Method
incrementCycle
* Increment cycle counter and return current value * @param {string} key - Cycle identifier * @param {number} listLength - Length of the cycling
src/scheduler/stateManager.js:26
↓ 32 callers
Method
getCycleIndex
* Get current cycle index for a given key * @param {string} key - Cycle identifier (serialized list) * @returns {number} Current index (0 if not
src/scheduler/stateManager.js:16
↓ 23 callers
Function
getFriendlyURL
dev-dist/workbox-ca84f546.js:660
↓ 20 callers
Method
setProgram
(clauses)
src/scheduler/scheduler.js:25
↓ 19 callers
Function
eat
(type, value)
src/prolog/parser.js:13
↓ 19 callers
Method
onCodeChange
* Handle code change from editor * @param {string} text - Current editor text
src/livecoding/liveEvaluator.js:29
↓ 17 callers
Function
unify
(a, b, env)
src/prolog/unify.js:3
↓ 16 callers
Method
evaluate
* Evaluate code immediately * @param {string} text - Code to evaluate
src/livecoding/liveEvaluator.js:40
↓ 16 callers
Method
getLastTrigger
* Get last trigger time for cooldown tracking * @param {string} key - Cooldown identifier * @returns {number|undefined} Last trigger time (undef
src/scheduler/stateManager.js:38
↓ 14 callers
Method
stop
()
src/scheduler/scheduler.js:39
↓ 13 callers
Function
createAppTemplate
({ examples })
src/ui/template.js:12
↓ 13 callers
Function
createControls
({ onStart, onStop, onBpmChange, onSwingChange, onLookaheadChange, links = {}, scheduler })
src/ui/controls.js:22
↓ 13 callers
Method
start
()
src/scheduler/scheduler.js:33
↓ 12 callers
Method
match
({ url })
dev-dist/workbox-ca84f546.js:625
↓ 11 callers
Function
createButton
({ label, id, variant, onClick })
src/ui/components/button.js:14
↓ 11 callers
Method
on
* Register event listener * @param {string} event - Event name ('validated' or 'error') * @param {Function} callback - Callback function
src/livecoding/liveEvaluator.js:66
↓ 11 callers
Function
substTerm
(term, env)
src/prolog/terms.js:5
↓ 9 callers
Function
createSlider
({ label, inputId, valueId, min, max, value, step, onChange, formatValue })
src/ui/components/slider.js:19
↓ 9 callers
Method
iterateCallbacks
* Accepts a callback and returns an iterable of matching plugin callbacks, * where each callback is wrapped with the current handler state (i.e
dev-dist/workbox-ca84f546.js:2822
↓ 9 callers
Method
scheduleTransition
* Schedule a program transition at the next quantized boundary * @param {Array} newProgram - New program clauses
src/scheduler/transitionManager.js:24
↓ 9 callers
Function
wrap
(value)
dev-dist/workbox-ca84f546.js:1440
↓ 8 callers
Function
createBuiltins
()
src/prolog/builtins/index.js:14
↓ 8 callers
Method
delete
* Removes the IndexedDB object store used to keep track of cache expiration * metadata.
dev-dist/workbox-ca84f546.js:1879
↓ 8 callers
Method
setLastTrigger
* Set last trigger time for cooldown tracking * @param {string} key - Cooldown identifier * @param {number} time - Current time in seconds
src/scheduler/stateManager.js:47
↓ 8 callers
Function
validatePrologCode
(text)
src/livecoding/codeValidator.js:8
↓ 7 callers
Method
emit
* Emit event * @param {string} event - Event name * @param {*} data - Event data
src/tutorial/tutorialManager.js:164
↓ 7 callers
Method
navigateHistory
(direction)
src/ui/repl.js:81
↓ 7 callers
Function
parseExpression
()
src/prolog/parser.js:85
↓ 6 callers
Method
extractVariables
(goals)
src/ui/repl.js:204
↓ 6 callers
Method
recordTrigger
* Record a trigger event (alias for setLastTrigger) * @param {string} key - Cooldown identifier * @param {number} time - Current time in seconds
src/scheduler/stateManager.js:56
↓ 6 callers
Method
resetState
()
src/scheduler/scheduler.js:27
↓ 6 callers
Method
saveProgress
* Save progress to localStorage
src/tutorial/tutorialManager.js:35
↓ 6 callers
Method
waitUntil
* Adds a promise to the * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}
dev-dist/workbox-ca84f546.js:2851
↓ 5 callers
Function
evalList
(term, env)
src/prolog/builtins/utils.js:24
↓ 5 callers
Function
evalTerm
(term, env)
src/prolog/builtins/utils.js:36
↓ 5 callers
Method
getElement
()
src/ui/repl.js:263
↓ 5 callers
Method
hasPending
* Check if a transition is pending * @returns {boolean}
src/scheduler/transitionManager.js:68
↓ 5 callers
Method
hide
* Hide overlay
src/tutorial/tutorialOverlay.js:210
↓ 5 callers
Method
reset
* Reset all state (for explicit user action only)
src/scheduler/stateManager.js:76
↓ 4 callers
Method
clear
()
src/ui/repl.js:253
↓ 4 callers
Function
convertComparison
(node)
src/prolog/parser.js:188
↓ 4 callers
Method
destroy
* Stops running the strategy and immediately resolves any pending * `waitUntil()` promises.
dev-dist/workbox-ca84f546.js:2879
↓ 4 callers
Method
executeQuery
()
src/ui/repl.js:104
↓ 4 callers
Method
handle
* Perform a request strategy and returns a `Promise` that will resolve with * a `Response`, invoking all relevant plugin callbacks. *
dev-dist/workbox-ca84f546.js:3014
↓ 4 callers
Function
normalizeHandler
dev-dist/workbox-ca84f546.js:500
↓ 4 callers
Function
resolveGoals
(goals, env, program, ctx, builtins)
src/prolog/resolution.js:4
↓ 4 callers
Method
runCallbacks
* Runs all plugin callbacks matching the given name, in order, passing the * given param object (merged ith the current plugin state) as the on
dev-dist/workbox-ca84f546.js:2806
↓ 4 callers
Function
setCode
(text)
src/app.js:85
↓ 4 callers
Method
showError
(text)
src/ui/repl.js:232
↓ 4 callers
Method
showResult
(text)
src/ui/repl.js:225
↓ 4 callers
Function
toRequest
(input)
dev-dist/workbox-ca84f546.js:2433
↓ 4 callers
Function
unlisten
()
dev-dist/workbox-ca84f546.js:1318
↓ 4 callers
Method
updateOfflineState
(isError = false)
src/ui/aiChat.js:95
↓ 3 callers
Function
_createCacheName
dev-dist/workbox-ca84f546.js:1199
↓ 3 callers
Method
cachePut
* Puts a request/response pair in the cache (and invokes any applicable * plugin callback methods) using the `cacheName` and `plugins` defined
dev-dist/workbox-ca84f546.js:2677
↓ 3 callers
Method
canTrigger
* Check if enough time has passed since last trigger * @param {string} key - Cooldown identifier * @param {number} now - Current time in seconds
src/scheduler/stateManager.js:67
↓ 3 callers
Function
evalExpression
(term, env)
src/prolog/builtins/utils.js:46
↓ 3 callers
Method
expireEntries
* Expires entries for the given cache and given criteria.
dev-dist/workbox-ca84f546.js:1803
↓ 3 callers
Method
fetch
* Fetches a given request (and invokes any applicable plugin callback * methods) using the `fetchOptions` (for non-navigation requests) and
dev-dist/workbox-ca84f546.js:2536
↓ 3 callers
Method
getCacheKey
* Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and * executes any of those callbacks found in sequence. The final `Request
dev-dist/workbox-ca84f546.js:2758
↓ 3 callers
Method
getCacheKeyForURL
* Returns the cache key used for storing a given URL. If that URL is * unversioned, like `/index.html', then the cache key will be the original
dev-dist/workbox-ca84f546.js:4045
↓ 3 callers
Function
getCode
()
src/app.js:81
↓ 3 callers
Method
getCurrentStep
* Get current step index * @returns {number}
src/tutorial/tutorialManager.js:112
↓ 3 callers
Method
getDb
* Returns an open connection to the database. * * @private
dev-dist/workbox-ca84f546.js:1722
↓ 3 callers
Function
getOrCreatePrecacheController
()
dev-dist/workbox-ca84f546.js:4121
↓ 3 callers
Function
log
(msg)
src/app.js:74
↓ 3 callers
Function
nodeToTerm
(node)
src/prolog/parser.js:209
↓ 3 callers
Function
normalizeTerm
(term, env)
src/prolog/builtins/logic.js:56
↓ 3 callers
Method
noteToFreq
(midi)
src/audio/audioEngine.js:23
↓ 3 callers
Method
on
* Register event listener * @param {string} event - Event name * @param {Function} callback - Callback function
src/tutorial/tutorialManager.js:137
↓ 3 callers
Function
placeSliderRow
(components, row)
src/ui/controls.js:37
↓ 3 callers
Method
registerRoute
* Registers a route with the router. * * @param {workbox-routing.Route} route The route to register.
dev-dist/workbox-ca84f546.js:1022
↓ 3 callers
Method
setState
* Update the validation state * @param {string} state - State: 'valid', 'invalid', or 'evaluating' * @param {string} errorMessage - Optional err
src/ui/validationIndicator.js:39
↓ 3 callers
Method
show
* Show overlay
src/tutorial/tutorialOverlay.js:201
↓ 3 callers
Function
tokenize
(src)
src/prolog/tokenizer.js:5
↓ 3 callers
Function
unwrap
dev-dist/workbox-ca84f546.js:1456
↓ 2 callers
Method
_getCacheExpiration
* A simple helper method to return a CacheExpiration instance for a given * cache name. * * @param {string} cacheName * @r
dev-dist/workbox-ca84f546.js:2051
↓ 2 callers
Method
_getId
* Takes a URL and returns an ID that will be unique in the object store. * * @param {string} url * @return {string} *
dev-dist/workbox-ca84f546.js:1711
↓ 2 callers
Function
_nestedGroup
* @param {string} groupTitle * @param {Array<string>} urls * * @private
dev-dist/workbox-ca84f546.js:3490
↓ 2 callers
Method
_useDefaultCacheabilityPluginIfNeeded
* This method is complex, as there a number of things to account for: * * The `plugins` array can be set at construction, and/or it migh
dev-dist/workbox-ca84f546.js:3776
↓ 2 callers
Method
appendMessage
(text, codeApplied = false)
src/ui/aiChat.js:137
↓ 2 callers
Method
cacheMatch
* Matches a request from the cache (and invokes any applicable plugin * callback methods) using the `cacheName`, `matchOptions`, and `plugins`
dev-dist/workbox-ca84f546.js:2632
↓ 2 callers
Method
cancelPending
* Cancel any pending transition
src/scheduler/transitionManager.js:56
↓ 2 callers
Method
complete
* Complete the tutorial
src/tutorial/tutorialManager.js:92
↓ 2 callers
Method
createHandlerBoundToURL
* Returns a function that looks up `url` in the precache (taking into * account revision information), and returns the corresponding `Response`
dev-dist/workbox-ca84f546.js:4092
↓ 2 callers
Function
dontWaitFor
* A helper function that prevents a promise from being flagged as unused. * * @private
dev-dist/workbox-ca84f546.js:1243
↓ 2 callers
Method
emit
* Emit event to all registered listeners * @param {string} event - Event name * @param {*} data - Event data
src/livecoding/liveEvaluator.js:77
↓ 2 callers
Method
escapeHtml
(text)
src/ui/repl.js:257
↓ 2 callers
Method
executeQueryFromText
(queryText)
src/ui/repl.js:98
↓ 2 callers
Method
getLastValidCode
* Get the last successfully validated code * @returns {string}
src/livecoding/liveEvaluator.js:87
↓ 2 callers
Function
getMethod
(target, prop)
dev-dist/workbox-ca84f546.js:1510
↓ 2 callers
Method
handleAll
* Similar to {@link workbox-strategies.Strategy~handle}, but * instead of just returning a `Promise` that resolves to a `Response` it *
dev-dist/workbox-ca84f546.js:3040
↓ 2 callers
Method
handleNext
* Handle next button click
src/tutorial/tutorialOverlay.js:171
↓ 2 callers
Method
handleRequest
* Apply the routing rules to a FetchEvent object to get a Response from an * appropriate Route's handler. * * @param {Object} opt
dev-dist/workbox-ca84f546.js:794
↓ 2 callers
Method
hasCallback
* Returns true if the strategy has at least one plugin with the given * callback. * * @param {string} name The name of the callba
dev-dist/workbox-ca84f546.js:2782
↓ 2 callers
Method
init
()
src/audio/audioEngine.js:7
next →
1–100 of 334, ranked by callers