mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
fix: use fixed react version
This commit is contained in:
parent
86a43618a7
commit
54bb39f6ab
7 changed files with 128 additions and 20 deletions
|
|
@ -8,6 +8,33 @@
|
|||
type="image/svg+xml"
|
||||
href="data:image/svg+xml,__FAVICON_DATA__"
|
||||
/>
|
||||
<script
|
||||
crossorigin
|
||||
src="https://unpkg.com/react@__REACT_UMD_VERSION__/umd/react.production.min.js"
|
||||
></script>
|
||||
<script
|
||||
crossorigin
|
||||
src="https://unpkg.com/react-dom@__REACT_DOM_UMD_VERSION__/umd/react-dom.production.min.js"
|
||||
></script>
|
||||
<script>
|
||||
const withKey = (props, key) =>
|
||||
key == null ? props : Object.assign({}, props, { key });
|
||||
const jsx = (type, props, key) => React.createElement(type, withKey(props, key));
|
||||
const jsxRuntime = {
|
||||
Fragment: React.Fragment,
|
||||
jsx,
|
||||
jsxs: jsx,
|
||||
jsxDEV: jsx,
|
||||
};
|
||||
window.ReactJSXRuntime = jsxRuntime;
|
||||
window['react/jsx-runtime'] = jsxRuntime;
|
||||
window['react/jsx-dev-runtime'] = jsxRuntime;
|
||||
</script>
|
||||
<script src="https://unpkg.com/@qwen-code/webui@__WEBUI_VERSION__/dist/index.umd.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://unpkg.com/@qwen-code/webui@__WEBUI_VERSION__/dist/styles.css"
|
||||
/>
|
||||
<title>Qwen Code Chat Export</title>
|
||||
<style>
|
||||
@font-face {
|
||||
|
|
@ -23,9 +50,7 @@
|
|||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<script id="chat-data" type="application/json">
|
||||
// DATA_PLACEHOLDER: Chat export data will be injected here
|
||||
</script>
|
||||
<script id="chat-data" type="application/json"></script>
|
||||
<script>
|
||||
__INLINE_SCRIPT__;
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue