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
31
frontend/node_modules/es-toolkit/dist/compat/object/create.js
generated
vendored
Normal file
31
frontend/node_modules/es-toolkit/dist/compat/object/create.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
const require_isObject = require("../predicate/isObject.js");
|
||||
const require_assignValue = require("../_internal/assignValue.js");
|
||||
const require_keys = require("./keys.js");
|
||||
//#region src/compat/object/create.ts
|
||||
/**
|
||||
* Creates an object that inherits from the prototype object.
|
||||
*
|
||||
* If `properties` are provided, they will be added to the new object.
|
||||
* Only string-keyed enumerable properties directly owned by the `properties` object are copied.
|
||||
* Inherited properties or those with `Symbol` keys are not copied.
|
||||
*
|
||||
* @template T - The prototype object type.
|
||||
* @template U - The properties object type.
|
||||
* @param prototype - The object to inherit from.
|
||||
* @param properties - The properties to assign to the created object.
|
||||
* @returns The new object.
|
||||
*/
|
||||
function create(prototype, properties) {
|
||||
const proto = require_isObject.isObject(prototype) ? Object.create(prototype) : {};
|
||||
if (properties != null) {
|
||||
const propsKeys = require_keys.keys(properties);
|
||||
for (let i = 0; i < propsKeys.length; i++) {
|
||||
const key = propsKeys[i];
|
||||
const propsValue = properties[key];
|
||||
require_assignValue.assignValue(proto, key, propsValue);
|
||||
}
|
||||
}
|
||||
return proto;
|
||||
}
|
||||
//#endregion
|
||||
exports.create = create;
|
||||
Loading…
Add table
Add a link
Reference in a new issue