Initial commit: OneOS prototype workspace baseline.

Include weekly report and other prototype sources with project tooling config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
王冕
2026-06-26 15:36:52 +08:00
commit 7ef8852919
1310 changed files with 282074 additions and 0 deletions

24
src/common/react-dom-shim.js vendored Normal file
View File

@@ -0,0 +1,24 @@
// react-dom-shim.js
const RD = window.ReactDOM;
export default RD;
// ReactDOM 18+ (createRoot / hydrateRoot)
export const {
createRoot,
hydrateRoot,
// ReactDOM 17 兼容 API一些环境仍然可能需要
render,
hydrate,
unmountComponentAtNode,
findDOMNode,
// Server side features (如果 CDN 提供)
createPortal,
// React 18 Transition API可能存在
flushSync,
unstable_batchedUpdates,
unstable_renderSubtreeIntoContainer,
} = RD;