Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Aniket762/playground
/ functions
Functions
104 in github.com/Aniket762/playground
⨍
Functions
104
◇
Types & classes
27
↓ 24 callers
Function
print
(method, args)
web/public/workbox-202dc43a.js:30
↓ 15 callers
Function
getFriendlyURL
web/public/workbox-202dc43a.js:710
↓ 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
web/public/workbox-202dc43a.js:1977
↓ 5 callers
Method
match
({ url })
web/public/workbox-202dc43a.js:669
↓ 5 callers
Method
waitUntil
* Adds a promise to the * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}
web/public/workbox-202dc43a.js:2010
↓ 4 callers
Function
normalizeHandler
web/public/workbox-202dc43a.js:532
↓ 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
web/public/workbox-202dc43a.js:1959
↓ 4 callers
Function
toRequest
(input)
web/public/workbox-202dc43a.js:1538
↓ 3 callers
Function
_createCacheName
web/public/workbox-202dc43a.js:1348
↓ 3 callers
Method
handle
* Perform a request strategy and returns a `Promise` that will resolve with * a `Response`, invoking all relevant plugin callbacks. *
web/public/workbox-202dc43a.js:2189
↓ 2 callers
Method
cacheMatch
* Matches a request from the cache (and invokes any applicable plugin * callback methods) using the `cacheName`, `matchOptions`, and `plugins`
web/public/workbox-202dc43a.js:1765
↓ 2 callers
Method
fetch
* Fetches a given request (and invokes any applicable plugin callback * methods) using the `fetchOptions` (for non-navigation requests) and
web/public/workbox-202dc43a.js:1653
↓ 2 callers
Method
getCacheKey
* Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and * executes any of those callbacks found in sequence. The final `Request
web/public/workbox-202dc43a.js:1904
↓ 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
web/public/workbox-202dc43a.js:856
↓ 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
web/public/workbox-202dc43a.js:1932
↓ 2 callers
Function
stripParams
(fullURL, ignoreParams)
web/public/workbox-202dc43a.js:1390
↓ 2 callers
Function
timeout
* Returns a promise that resolves and the passed number of milliseconds. * This utility is an async/await-friendly version of `setTimeout`.
web/public/workbox-202dc43a.js:1526
↓ 2 callers
Function
useTheme
()
web/components/themeProvider.tsx:59
↓ 1 callers
Method
_awaitComplete
(responseDone, handler, request, event)
web/public/workbox-202dc43a.js:2293
↓ 1 callers
Method
_ensureResponseSafeToCache
* This method will call cacheWillUpdate on the available plugins (or use * status === 200) to determine if the Response is safe and valid to ca
web/public/workbox-202dc43a.js:2055
↓ 1 callers
Method
_getNetworkPromise
* @param {Object} options * @param {number|undefined} options.timeoutId * @param {Request} options.request * @param {Array} optio
web/public/workbox-202dc43a.js:2552
↓ 1 callers
Method
_getResponse
(handler, request, event)
web/public/workbox-202dc43a.js:2243
↓ 1 callers
Method
_getTimeoutPromise
* @param {Object} options * @param {Request} options.request * @param {Array} options.logs A reference to the logs array * @param
web/public/workbox-202dc43a.js:2518
↓ 1 callers
Method
_handle
* @private * @param {Request|string} request A request to run this strategy for. * @param {module:workbox-strategies.StrategyHandler} ha
web/public/workbox-202dc43a.js:2644
↓ 1 callers
Method
addCacheListener
* Adds a message event listener for URLs to cache from the window. * This is useful to cache resources loaded on the page prior to when the
web/public/workbox-202dc43a.js:806
↓ 1 callers
Method
addFetchListener
* Adds a fetch event listener to respond to events when a route matches * the event's request.
web/public/workbox-202dc43a.js:766
↓ 1 callers
Function
cacheMatchIgnoreParams
* Matches an item in the cache, ignoring specific URL params. This is similar * to the `ignoreSearch` option, but it allows you to ignore just sp
web/public/workbox-202dc43a.js:1413
↓ 1 callers
Method
cachePut
* Puts a request/response pair in the cache (and invokes any applicable * plugin callback methods) using the `cacheName` and `plugins` defined
web/public/workbox-202dc43a.js:1815
↓ 1 callers
Function
createAPIKeyFile
()
utils/createAPIKeyFile.js:3
↓ 1 callers
Method
destroy
* Stops running the strategy and immediately resolves any pending * `waitUntil()` promises.
web/public/workbox-202dc43a.js:2040
↓ 1 callers
Function
detectText
utils/htr.js:4
↓ 1 callers
Method
doneWaiting
* Returns a promise that resolves once all promises passed to * [`waitUntil()`]{@link module:workbox-strategies.StrategyHandler~waitUntil}
web/public/workbox-202dc43a.js:2027
↓ 1 callers
Function
eachCacheNameDetail
web/public/workbox-202dc43a.js:1352
↓ 1 callers
Function
executeCpp
(filepath)
bin/executeCpp.js:12
↓ 1 callers
Function
executePy
(filepath)
bin/excecutePy.js:3
↓ 1 callers
Function
executeQuotaErrorCallbacks
* Runs all of the callback functions, one at a time sequentially, in the order * in which they were registered. * * @memberof module:wo
web/public/workbox-202dc43a.js:1493
↓ 1 callers
Method
fetchAndCachePut
* Calls `this.fetch()` and (in the background) runs `this.cachePut()` on * the response generated by `this.fetch()`. * * The call
web/public/workbox-202dc43a.js:1745
↓ 1 callers
Method
findMatchingRoute
* Checks a request and URL (and optionally an event) against the list of * registered routes, and if there's a match, returns the corresponding
web/public/workbox-202dc43a.js:1023
↓ 1 callers
Function
generateFile
(format, code)
utils/generateFile.js:12
↓ 1 callers
Function
getOrCreateDefaultRouter
()
web/public/workbox-202dc43a.js:1201
↓ 1 callers
Method
handleAll
* Similar to [`handle()`]{@link module:workbox-strategies.Strategy~handle}, but * instead of just returning a `Promise` that resolves to a `Res
web/public/workbox-202dc43a.js:2217
↓ 1 callers
Function
handleSubmit
(title: string, message: string)
web/pages/form.tsx:8
↓ 1 callers
Function
passCheck
()
web/components/allQuestions.jsx:6
↓ 1 callers
Method
registerRoute
* Registers a route with the router. * * @param {module:workbox-routing.Route} route The route to register.
web/public/workbox-202dc43a.js:1118
↓ 1 callers
Function
toApprove
(id)
web/components/allQuestions.jsx:14
↓ 1 callers
Function
valued
()
lib/server.js:34
Function
AwesomeEditor
({heading, description})
web/components/awesomeHeading.tsx:8
Function
Btn
({ children, handleClick, darkText })
web/components/button.tsx:9
Function
ConfirmedQuestions
()
web/components/confirmedQuestions.jsx:6
Function
Editor
()
web/components/editor.tsx:11
Function
EditorText
({props, code, setCode})
web/components/editorText.tsx:14
Function
Footer
()
web/components/footer.tsx:4
Function
Form
()
web/pages/form.tsx:24
Function
Header
()
web/components/header.tsx:5
Function
Home
()
web/pages/index.tsx:15
Function
MyApp
({ Component, pageProps }: AppProps)
web/pages/_app.tsx:4
Function
Navbar
()
web/components/navbar.tsx:7
Function
Question
()
web/components/question.tsx:4
Function
Questions
()
web/components/allQuestions.jsx:26
Function
ThemeProvider
({children}: Props)
web/components/themeProvider.tsx:17
Method
_handle
* @private * @param {Request|string} request A request to run this strategy for. * @param {module:workbox-strategies.StrategyHandler} ha
web/public/workbox-202dc43a.js:2441
Function
clientsClaim
* Claim any currently available clients once the service worker * becomes active. This is normally used in conjunction with `skipWaiting()`.
web/public/workbox-202dc43a.js:2715
Method
constructor
* * @param {string} errorCode The error code that * identifies this particular error. * @param {Object=} details Any relevant arg
web/public/workbox-202dc43a.js:400
Method
constructor
* Constructor for Route class. * * @param {module:workbox-routing~matchCallback} match * A callback function that determines whet
web/public/workbox-202dc43a.js:589
Method
constructor
* If the regular expression contains * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/
web/public/workbox-202dc43a.js:659
Method
constructor
* Initializes a new Router.
web/public/workbox-202dc43a.js:746
Method
constructor
* Creates a promise and exposes its resolve and reject functions as methods.
web/public/workbox-202dc43a.js:1457
Method
constructor
* Creates a new instance associated with the passed strategy and event * that's handling the request. * * The constructor also in
web/public/workbox-202dc43a.js:1570
Method
constructor
* Creates a new instance of the strategy and sets all documented option * properties as public instance properties. * * Note: if
web/public/workbox-202dc43a.js:2131
Method
constructor
* @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to cache names p
web/public/workbox-202dc43a.js:2411
Method
constructor
* @param {Object} [options] * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/u
web/public/workbox-202dc43a.js:2631
Function
fileFilter
(req, file, cb)
lib/server.js:84
Function
generatorFunction
(code, details = {})
web/public/workbox-202dc43a.js:362
Function
handleChange
()
web/components/navbar.tsx:10
Function
handleSubmit
()
web/components/editor.tsx:28
Function
handler
( req: NextApiRequest, res: NextApiResponse<Data> )
web/pages/api/hello.ts:8
Function
hasMethod
(object, expectedMethod, details)
web/public/workbox-202dc43a.js:429
Function
isArray
(value, details)
web/public/workbox-202dc43a.js:423
Function
isArrayOfClass
(value, // Need general type to do check later. expectedClass, // eslint-disable-line details)
web/public/workbox-202dc43a.js:461
Function
isInstance
(object, // Need the general type to do the check later. // eslint-disable-next-line @typescript-eslint/ba
web/public/workbox-202dc43a.js:445
Function
isOneOf
(value, validValues, details)
web/public/workbox-202dc43a.js:454
Function
isType
(object, expectedType, details)
web/public/workbox-202dc43a.js:438
Function
main
functions/input/ba1b4562-906b-4556-b14a-bf431d39dd67.cpp:3
Function
main
functions/input/902b73e2-9fc1-4174-9ac3-07b5219a0133.cpp:3
Function
main
functions/input/6f245e0a-dbbc-48f0-91db-1c952e90cc11.cpp:3
Function
main
functions/input/19dd3a3a-e775-4121-af87-1bb86f3ac5a5.cpp:3
Function
main
functions/input/83c99ce1-ab0e-405b-86a2-b334717ad8e8.cpp:4
Function
main
functions/input/58d800a4-369c-43ad-bfac-b43094ed5f6a.cpp:3
Function
matchCallback
({ url })
web/public/workbox-202dc43a.js:1265
Function
offline
()
web/pages/_offline.jsx:3
Function
onChange
(value: string)
web/components/editorText.tsx:23
Method
onNetworkTimeout
()
web/public/workbox-202dc43a.js:2525
Function
questionBank
()
web/pages/questionBank.tsx:8
Function
questionsPage
()
web/pages/questionsPage.tsx:8
Function
registerRoute
* Easily register a RegExp, string, or function with a caching * strategy to a singleton Router instance. * * This method will generate
web/public/workbox-202dc43a.js:1239
Method
render
()
web/components/photo.jsx:49
Method
render
()
web/pages/_document.jsx:4
Method
routes
* @return {Map<string, Array<module:workbox-routing.Route>>} routes A `Map` of HTTP * method name ('GET', etc.) to an array of all the correspo
web/public/workbox-202dc43a.js:757
Method
setCatchHandler
* * @param {module:workbox-routing-handlerCallback} handler A callback * function that returns a Promise resolving to a Response
web/public/workbox-202dc43a.js:618
Method
setCatchHandler
* If a Route throws an error while handling a request, this `handler` * will be called and given a chance to provide a response. *
web/public/workbox-202dc43a.js:1108
next →
1–100 of 104, ranked by callers