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
26
frontend/node_modules/es-toolkit/dist/predicate/isFile.js
generated
vendored
Normal file
26
frontend/node_modules/es-toolkit/dist/predicate/isFile.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
const require_isBlob = require("./isBlob.js");
|
||||
//#region src/predicate/isFile.ts
|
||||
/**
|
||||
* Checks if the given value is a File.
|
||||
*
|
||||
* This function tests whether the provided value is an instance of `File`.
|
||||
* It returns `true` if the value is an instance of `File`, and `false` otherwise.
|
||||
*
|
||||
* @param x - The value to test if it is a File.
|
||||
* @returns True if the value is a File, false otherwise.
|
||||
*
|
||||
* @example
|
||||
* const value1 = new File(["content"], "example.txt");
|
||||
* const value2 = {};
|
||||
* const value3 = new Blob(["content"], { type: "text/plain" });
|
||||
*
|
||||
* console.log(isFile(value1)); // true
|
||||
* console.log(isFile(value2)); // false
|
||||
* console.log(isFile(value3)); // false
|
||||
*/
|
||||
function isFile(x) {
|
||||
if (typeof File === "undefined") return false;
|
||||
return require_isBlob.isBlob(x) && x instanceof File;
|
||||
}
|
||||
//#endregion
|
||||
exports.isFile = isFile;
|
||||
Loading…
Add table
Add a link
Reference in a new issue