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:
王冕
2026-06-30 16:36:38 +08:00
parent af29b26fe8
commit d71ebc5727
338 changed files with 259967 additions and 1 deletions

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