2019-04-30 11:11:25 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh">
|
2021-01-22 11:29:04 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<title>amis - 低代码前端框架</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<link type="image/x-icon" rel="shortcut icon" href="./static/favicon.png" />
|
|
|
|
<meta
|
|
|
|
name="viewport"
|
|
|
|
content="width=device-width, initial-scale=1, maximum-scale=1"
|
|
|
|
/>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
|
|
|
<link rel="stylesheet" href="./static/iconfont.css" />
|
2021-04-19 11:30:35 +08:00
|
|
|
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" />
|
2021-04-19 13:33:23 +08:00
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="@fortawesome/fontawesome-free/css/v4-shims.css"
|
|
|
|
/>
|
2021-01-22 11:29:04 +08:00
|
|
|
<link rel="stylesheet" href="prismjs/themes/prism.css" />
|
|
|
|
<!--DEPENDENCIES_INJECT_PLACEHOLDER-->
|
|
|
|
<link rel="stylesheet" href="./doc.css" />
|
2021-01-10 11:40:26 +08:00
|
|
|
|
2021-01-22 11:29:04 +08:00
|
|
|
<link rel="stylesheet" href="./style.scss" />
|
|
|
|
<!--STYLE_PLACEHOLDER-->
|
|
|
|
<style>
|
|
|
|
.app-wrapper,
|
|
|
|
.schema-wrapper {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script type="text/x-jsx">
|
2022-02-21 16:58:01 +08:00
|
|
|
// gitee 最近特别慢
|
2022-03-16 23:44:42 +08:00
|
|
|
if (location.hostname === 'baidu.gitee.io') {
|
|
|
|
location.hostname = 'aisuda.bce.baidu.com';
|
|
|
|
}
|
2022-02-21 16:58:01 +08:00
|
|
|
|
2021-11-23 13:52:37 +08:00
|
|
|
let theme = localStorage.getItem('amis-theme') || 'cxd';
|
2021-08-18 16:21:35 +08:00
|
|
|
if (theme === 'default') {
|
|
|
|
theme = 'cxd';
|
|
|
|
}
|
2020-12-29 13:06:53 +08:00
|
|
|
|
|
|
|
// 非 IE 模式
|
|
|
|
if (window.navigator.userAgent.indexOf('Trident') === -1) {
|
|
|
|
document.write(
|
2021-08-18 16:21:35 +08:00
|
|
|
`<link rel="stylesheet" title="ang" ${
|
|
|
|
theme !== 'ang' ? 'disabled' : ''
|
|
|
|
} href="${__uri('../scss/themes/ang.scss')}" />`
|
2020-12-29 13:06:53 +08:00
|
|
|
);
|
|
|
|
document.write(
|
|
|
|
`<link rel="stylesheet" title="cxd" ${
|
|
|
|
theme !== 'cxd' ? 'disabled' : ''
|
|
|
|
} href="${__uri('../scss/themes/cxd.scss')}" />`
|
|
|
|
);
|
|
|
|
document.write(
|
|
|
|
`<link rel="stylesheet" title="dark" ${
|
|
|
|
theme !== 'dark' ? 'disabled' : ''
|
|
|
|
} href="${__uri('../scss/themes/dark.scss')}" />`
|
|
|
|
);
|
2021-01-22 11:29:04 +08:00
|
|
|
document.write(
|
|
|
|
`<link rel="stylesheet" title="antd" ${
|
|
|
|
theme !== 'antd' ? 'disabled' : ''
|
|
|
|
} href="${__uri('../scss/themes/antd.scss')}" />`
|
|
|
|
);
|
2020-12-29 13:06:53 +08:00
|
|
|
} else {
|
|
|
|
document.write(
|
2021-08-18 19:27:33 +08:00
|
|
|
`<link rel="stylesheet" title="ang" ${
|
|
|
|
theme !== 'ang' ? 'disabled' : ''
|
|
|
|
} href="${__uri('../scss/themes/ang-ie11.scss')}" />`
|
2020-12-29 13:06:53 +08:00
|
|
|
);
|
|
|
|
document.write(
|
|
|
|
`<link rel="stylesheet" title="cxd" ${
|
|
|
|
theme !== 'cxd' ? 'disabled' : ''
|
2020-12-29 14:28:49 +08:00
|
|
|
} href="${__uri('../scss/themes/cxd-ie11.scss')}" />`
|
2020-12-29 13:06:53 +08:00
|
|
|
);
|
|
|
|
document.write(
|
|
|
|
`<link rel="stylesheet" title="dark" ${
|
|
|
|
theme !== 'dark' ? 'disabled' : ''
|
2020-12-29 14:28:49 +08:00
|
|
|
} href="${__uri('../scss/themes/dark-ie11.scss')}" />`
|
2020-12-29 13:06:53 +08:00
|
|
|
);
|
2021-01-22 11:29:04 +08:00
|
|
|
document.write(
|
|
|
|
`<link rel="stylesheet" title="antd" ${
|
|
|
|
theme !== 'antd' ? 'disabled' : ''
|
|
|
|
} href="${__uri('../scss/themes/antd-ie11.scss')}" />`
|
|
|
|
);
|
2020-12-29 13:06:53 +08:00
|
|
|
}
|
|
|
|
</script>
|
2021-01-22 11:29:04 +08:00
|
|
|
<!--ignore-->
|
|
|
|
<link rel="stylesheet" href="../scss/helper.scss" />
|
|
|
|
<!--ignore-->
|
|
|
|
</head>
|
2019-09-09 00:53:39 +08:00
|
|
|
|
2021-01-22 11:29:04 +08:00
|
|
|
<body>
|
|
|
|
<div id="root" class="app-wrapper"></div>
|
|
|
|
<script src="./mod.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
if (location.hostname !== 'localhost') {
|
|
|
|
var _hmt = _hmt || [];
|
2020-11-27 21:21:20 +08:00
|
|
|
|
2021-01-22 11:29:04 +08:00
|
|
|
// 百度统计
|
|
|
|
(function () {
|
|
|
|
var hm = document.createElement('script');
|
|
|
|
hm.src =
|
2021-03-05 15:19:16 +08:00
|
|
|
'https://hm.baidu.com/hm.js?286766a21abb57abefedbd5257a26dc8';
|
2021-01-22 11:29:04 +08:00
|
|
|
var s = document.getElementsByTagName('script')[0];
|
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
|
})();
|
|
|
|
}
|
2021-01-10 11:40:26 +08:00
|
|
|
|
2022-01-12 13:04:05 +08:00
|
|
|
window.enableAMISDebug = true;
|
|
|
|
|
2021-01-22 11:29:04 +08:00
|
|
|
/* @require ./index.jsx 标记为同步依赖,提前加载 */
|
|
|
|
amis.require(['./index.jsx'], function (app) {
|
|
|
|
var initialState = {};
|
|
|
|
app.bootstrap(document.getElementById('root'), initialState);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|