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
21
frontend/node_modules/es-toolkit/dist/_internal/compareValues.mjs
generated
vendored
Normal file
21
frontend/node_modules/es-toolkit/dist/_internal/compareValues.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
//#region src/_internal/compareValues.ts
|
||||
function nullishRank(value) {
|
||||
if (value === null) return 1;
|
||||
if (value === void 0) return 2;
|
||||
return 0;
|
||||
}
|
||||
function compareAscending(a, b) {
|
||||
const aRank = nullishRank(a);
|
||||
const bRank = nullishRank(b);
|
||||
if (aRank < bRank) return -1;
|
||||
if (aRank > bRank) return 1;
|
||||
if (aRank !== 0) return 0;
|
||||
if (a < b) return -1;
|
||||
if (a > b) return 1;
|
||||
return 0;
|
||||
}
|
||||
function compareValues(a, b, order) {
|
||||
return order === "asc" ? compareAscending(a, b) : compareAscending(b, a);
|
||||
}
|
||||
//#endregion
|
||||
export { compareValues };
|
||||
Loading…
Add table
Add a link
Reference in a new issue