1
0

feat(all): 搭建基本框架和模块

This commit is contained in:
2024-11-15 15:35:08 +08:00
commit 1900265075
174 changed files with 87868 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>可信供给中心</title>
<link href="assets/sdk/antd.css" rel="stylesheet"/>
<link href="assets/sdk/helper.css" rel="stylesheet"/>
<link href="assets/sdk/iconfont.css" rel="stylesheet"/>
<style>
html, body, #root {
position: relative;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="root"></div>
</body>
<script src="assets/sdk/sdk.js"></script>
<script src="assets/component/constants.js"></script>
<script src="assets/component/common.js"></script>
<script>
(function () {
let amis = amisRequire('amis/embed')
let amisJSON = {
type: 'page',
title: information.title,
subTitle: '提供合法合规的数据要素可信供给工具',
body: {
debug: true,
type: 'service',
api: {
method: 'get',
url: '${base}/user/state',
headers: {
token: '${token}'
},
},
onEvent: {
fetchInited: {
actions: [
{
expression: '${!event.data.responseData.token}',
actionType: 'url',
args: {
url: '/login.html',
}
}
]
}
},
body: [
{
type: 'tpl',
tpl: '${username}'
}
]
}
}
let debug = false
amis.embed(
'#root',
amisJSON,
{
data: {
base: information.baseUrl
},
},
{
theme: 'antd',
enableAMISDebug: debug,
},
);
if (debug) {
console.log('Source', amisJSON)
}
})()
</script>
</html>