feat(frontend): 增加测试页面
This commit is contained in:
25
gringotts-frontend/pages/test/index.html
Normal file
25
gringotts-frontend/pages/test/index.html
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="zh">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||||
|
<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, #app {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script src="/assets/sdk/sdk.js"></script>
|
||||||
|
<script src="./main.js" type="module"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
124
gringotts-frontend/pages/test/main.js
Normal file
124
gringotts-frontend/pages/test/main.js
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
import {useAmis} from "../../components/constants.js";
|
||||||
|
|
||||||
|
useAmis((information) => {
|
||||||
|
return {
|
||||||
|
"type": "wrapper",
|
||||||
|
"size": "none",
|
||||||
|
"body": [
|
||||||
|
{
|
||||||
|
"type": "wrapper",
|
||||||
|
"body": [
|
||||||
|
{
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"label": "资源名称",
|
||||||
|
"span": 3,
|
||||||
|
"content": "文件资源"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"content": "FIle",
|
||||||
|
"span": 3,
|
||||||
|
"label": "资源描述"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "divider"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "资源类型定义",
|
||||||
|
"type": "property",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"span": 3,
|
||||||
|
"label": "资源类型",
|
||||||
|
"content": "文件"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"span": 3,
|
||||||
|
"content": {
|
||||||
|
"type": "flex",
|
||||||
|
"alignItems": "start",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"label": "arthas-bin.zip",
|
||||||
|
"api": {
|
||||||
|
"method": "get",
|
||||||
|
"url": "${base}/upload/download/3557040775256064",
|
||||||
|
"headers": {
|
||||||
|
"token": "${token|default:undefined}"
|
||||||
|
},
|
||||||
|
"responseType": "blob"
|
||||||
|
},
|
||||||
|
"actionType": "ajax",
|
||||||
|
"type": "action",
|
||||||
|
"level": "link"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"label": "文件"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '格式详情',
|
||||||
|
content: {
|
||||||
|
type: 'editor',
|
||||||
|
language: 'json',
|
||||||
|
value: {
|
||||||
|
"name": "arthas-bin.zip",
|
||||||
|
"size": 1024,
|
||||||
|
"type": "application/zip",
|
||||||
|
"lastModified": 1673920000000,
|
||||||
|
"lastModifiedDate": "2023-01-14T14:40:00.000Z",
|
||||||
|
"webkitRelativePath": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "divider"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"label": "格式类型",
|
||||||
|
"content": "Json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property",
|
||||||
|
"title": "资源格式定义"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"size": "none"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "divider"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"label": "创建人",
|
||||||
|
"span": 2,
|
||||||
|
"content": "administrator@eshore.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"content": "2025-01-14 14:41:56",
|
||||||
|
"label": "创建时间"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"span": 2,
|
||||||
|
"content": "administrator@eshore.com",
|
||||||
|
"label": "修改人"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"content": "2025-01-14 14:41:56",
|
||||||
|
"label": "修改时间"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user