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
36
frontend/node_modules/recharts/lib/animation/AnimationControllerImpl.js
generated
vendored
Normal file
36
frontend/node_modules/recharts/lib/animation/AnimationControllerImpl.js
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.animationControllerImpl = void 0;
|
||||
/**
|
||||
* JavaScript animations require trigger and repaint as soon as possible,
|
||||
* so this class uses the timeoutController to trigger updates as quickly as the controller allows.
|
||||
*
|
||||
* JavaScript animation progress is represented as a stream of values. The exact type depends on the animationHandle type.
|
||||
* Each individual consumer is then responsible for mapping those values onto a React component.
|
||||
*/
|
||||
var animationControllerImpl = (timeoutController, animationHandle, listener) => {
|
||||
var cancellable;
|
||||
var nextUpdate = now => {
|
||||
var timeRemaining = animationHandle.tick(now);
|
||||
if (animationHandle.getState() === 'active') {
|
||||
listener(animationHandle.getInterpolated());
|
||||
if (animationHandle.getProgress() === 1) {
|
||||
animationHandle.complete();
|
||||
cancellable = undefined;
|
||||
return;
|
||||
}
|
||||
cancellable = timeoutController.setTimeout(nextUpdate, timeRemaining);
|
||||
return;
|
||||
}
|
||||
cancellable = timeoutController.setTimeout(nextUpdate, timeRemaining);
|
||||
};
|
||||
cancellable = timeoutController.setTimeout(nextUpdate, 0);
|
||||
return () => {
|
||||
var _cancellable;
|
||||
return (_cancellable = cancellable) === null || _cancellable === void 0 ? void 0 : _cancellable();
|
||||
};
|
||||
};
|
||||
exports.animationControllerImpl = animationControllerImpl;
|
||||
Loading…
Add table
Add a link
Reference in a new issue