Add ONE-OS Web legacy prototypes and sidebar menu folder.
Import desktop web originals into dedicated prototypes with a shared legacy shell, sync script, and a new「ONE-OS Web 端」sidebar section for review alongside existing refactored pages. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
18
src/common/oneosWebLegacy/legacyGlobals.ts
Normal file
18
src/common/oneosWebLegacy/legacyGlobals.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as antd from 'antd';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
React: typeof React;
|
||||
ReactDOM: typeof ReactDOM;
|
||||
antd: typeof antd;
|
||||
}
|
||||
}
|
||||
|
||||
export function ensureOneosWebLegacyGlobals(): void {
|
||||
if (typeof window === 'undefined') return;
|
||||
window.React = React;
|
||||
window.ReactDOM = ReactDOM;
|
||||
window.antd = antd;
|
||||
}
|
||||
Reference in New Issue
Block a user