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:
jtricerolph 2026-07-20 14:37:36 +00:00
parent cae411eae7
commit 1c411e402e
19809 changed files with 1962608 additions and 97 deletions

View 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 };