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
25
frontend/node_modules/recharts/lib/util/payload/getUniqPayload.js
generated
vendored
Normal file
25
frontend/node_modules/recharts/lib/util/payload/getUniqPayload.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getUniqPayload = getUniqPayload;
|
||||
var _uniqBy = _interopRequireDefault(require("es-toolkit/compat/uniqBy"));
|
||||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
||||
/**
|
||||
* This is configuration option that decides how to filter for unique values only:
|
||||
*
|
||||
* - `false` means "no filter"
|
||||
* - `true` means "use recharts default filter"
|
||||
* - function means "use return of this function as the default key"
|
||||
*/
|
||||
|
||||
function getUniqPayload(payload, option, defaultUniqBy) {
|
||||
if (option === true) {
|
||||
return (0, _uniqBy.default)(payload, defaultUniqBy);
|
||||
}
|
||||
if (typeof option === 'function') {
|
||||
return (0, _uniqBy.default)(payload, option);
|
||||
}
|
||||
return payload;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue