Skip to content

Commit eaad1c2

Browse files
authored
Merge pull request #24 from ovineio/feat-amisAi
feat: #20 添加 JSON 直接输出预览+编辑+支持 JS 代码
2 parents 0d486b0 + 7bf2756 commit eaad1c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+212402
-97
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link type="image/x-icon" rel="shortcut icon" href="/amis-logo.png">
77
<link rel="stylesheet" href="/node_modules/@fortawesome/fontawesome-free/css/all.css" />
8+
<!-- 将样式从 npm 包中抽离为独立文件,因为:chat msg框预览 amis 样式冲突,使用 shadowDom 了 -->
9+
<link rel="stylesheet" href="/amis/cxd.css" />
10+
<link rel="stylesheet" href="/amis/helper.css" />
11+
<link rel="stylesheet" href="/amis/iconfont.css" />
812
<link
913
rel="stylesheet"
1014
href="/node_modules/@fortawesome/fontawesome-free/css/v4-shims.css"
1115
/>
1216
<link rel="stylesheet" href="https://g.alicdn.com/code/npm/@ali/chatui-sdk/6.6.2/ChatSDK.css" />
1317
<title>Amis Playground</title>
1418
<script>
19+
// TODO:支持配置 enableAMISDebug
1520
window.enableAMISDebug = true;
1621
var _hmt = _hmt || [];
1722
(function() {
@@ -32,6 +37,6 @@
3237
<script type="module" src="/src/main.tsx"></script>
3338
<!--TODO: 将 react 从 chatSdk 剥离出来 使用 pure.js () -->
3439
<script src="https://g.alicdn.com/code/npm/@ali/chatui-sdk/6.6.2/ChatSDK.js"></script>
35-
<script src="https://g.alicdn.com/chatui/icons/2.0.2/index.js"></script>
40+
<script async src="https://g.alicdn.com/chatui/icons/2.0.2/index.js"></script>
3641
</body>
3742
</html>

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
"allotment": "^1.19.3",
5959
"amis": "6.11.0",
6060
"amis-core": "6.11.0",
61+
"amis-editor": "6.11.0",
6162
"amis-ui": "6.11.0",
63+
"amis-widget": "3.2.2",
6264
"axios": "1.7.9",
6365
"classnames": "^2.3.2",
6466
"copy-to-clipboard": "3.3.1",
@@ -123,6 +125,7 @@
123125
"stylis": "^4.1.1",
124126
"typescript": "^5.0.2",
125127
"vite": "^4.4.5",
128+
"vite-plugin-externals": "^0.6.2",
126129
"vite-plugin-monaco-editor": "^1.1.0",
127130
"vite-plugin-svgr": "^4.3.0"
128131
},

0 commit comments

Comments
 (0)