Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
20
frontend/node_modules/es-toolkit/dist/compat/function/defer.mjs
generated
vendored
Normal file
20
frontend/node_modules/es-toolkit/dist/compat/function/defer.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//#region src/compat/function/defer.ts
|
||||
/**
|
||||
* Defers invoking the `func` until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.
|
||||
*
|
||||
* @param func The function to defer.
|
||||
* @param args The arguments to invoke `func` with.
|
||||
* @returns Returns the timer id.
|
||||
*
|
||||
* @example
|
||||
* defer((text) => {
|
||||
* console.log(text);
|
||||
* }, 'deferred');
|
||||
* // => Logs 'deferred' after the current call stack has cleared.
|
||||
*/
|
||||
function defer(func, ...args) {
|
||||
if (typeof func !== "function") throw new TypeError("Expected a function");
|
||||
return setTimeout(func, 1, ...args);
|
||||
}
|
||||
//#endregion
|
||||
export { defer };
|
||||
Loading…
Add table
Add a link
Reference in a new issue