Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
/**
|
|
* Returns a timestamp in seconds since the UNIX epoch using the Date API.
|
|
*/
|
|
export declare const dateTimestampInSeconds: () => number;
|
|
/**
|
|
* Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the
|
|
* availability of the Performance API.
|
|
*
|
|
* See `usingPerformanceAPI` to test whether the Performance API is used.
|
|
*
|
|
* BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is
|
|
* asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The
|
|
* skew can grow to arbitrary amounts like days, weeks or months.
|
|
* See https://github.com/getsentry/sentry-javascript/issues/2590.
|
|
*/
|
|
export declare const timestampInSeconds: () => number;
|
|
export declare const timestampWithMs: () => number;
|
|
/**
|
|
* A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.
|
|
*/
|
|
export declare const usingPerformanceAPI: boolean;
|
|
/**
|
|
* Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.
|
|
*/
|
|
export declare let _browserPerformanceTimeOriginMode: string;
|
|
/**
|
|
* The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the
|
|
* performance API is available.
|
|
*/
|
|
export declare const browserPerformanceTimeOrigin: number | undefined;
|
|
//# sourceMappingURL=time.d.ts.map
|