2 |
3 |
4 | {{currentUser.id}}
5 | {{currentUser.username}}
6 | {{currentUser.phone}}
7 | {{currentUser.email}}
8 | {{currentUser.realName}}
9 | {{currentUser.authCardId}}
10 | {{currentUser.createTime}}
11 |
12 |
13 |
14 |
15 |
48 |
49 |
54 |
55 |
--------------------------------------------------------------------------------
/runtime-record-core/src/main/java/com/aio/runtime/environment/controller/AioEnvironmentController.java:
--------------------------------------------------------------------------------
1 | package com.aio.runtime.environment.controller;
2 |
3 | import com.aio.runtime.environment.domain.QueryEnvironmentParams;
4 | import com.aio.runtime.environment.service.IAioEnvironmentService;
5 | import cn.aio1024.framework.basic.domain.amis.AmisResult;
6 | import cn.aio1024.framework.basic.domain.page.KgoPage;
7 | import cn.aio1024.framework.basic.domain.page.PageResult;
8 | import lombok.extern.slf4j.Slf4j;
9 | import org.springframework.beans.factory.annotation.Autowired;
10 | import org.springframework.boot.actuate.env.EnvironmentEndpoint;
11 | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
12 | import org.springframework.web.bind.annotation.GetMapping;
13 | import org.springframework.web.bind.annotation.ModelAttribute;
14 | import org.springframework.web.bind.annotation.RequestMapping;
15 | import org.springframework.web.bind.annotation.RestController;
16 |
17 | /**
18 | * @author lzm
19 | * @desc 环境信息查询接口
20 | * @date 2024/07/26
21 | */
22 | @RestController
23 | @Slf4j
24 | @RequestMapping("/runtime/aio/environment")
25 | @ConditionalOnClass(EnvironmentEndpoint.class)
26 | public class AioEnvironmentController {
27 | @Autowired
28 | private IAioEnvironmentService iAioEnvironmentService;
29 | @GetMapping("page")
30 | public AmisResult getEnvironmentItemPage(@ModelAttribute QueryEnvironmentParams params , @ModelAttribute KgoPage page){
31 | PageResult pageResult = iAioEnvironmentService.getPage(params,page);
32 | return AmisResult.success(pageResult);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/console/mock/index.js:
--------------------------------------------------------------------------------
1 | const Mock = require('mockjs')
2 | const { param2Obj } = require('./utils')
3 |
4 | const user = require('./user')
5 | const table = require('./table')
6 |
7 | const mocks = [
8 | ...user,
9 | ...table
10 | ]
11 |
12 | // for front mock
13 | // please use it cautiously, it will redefine XMLHttpRequest,
14 | // which will cause many of your third-party libraries to be invalidated(like progress event).
15 | function mockXHR() {
16 | // mock patch
17 | // https://github.com/nuysoft/Mock/issues/300
18 | Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
19 | Mock.XHR.prototype.send = function() {
20 | if (this.custom.xhr) {
21 | this.custom.xhr.withCredentials = this.withCredentials || false
22 |
23 | if (this.responseType) {
24 | this.custom.xhr.responseType = this.responseType
25 | }
26 | }
27 | this.proxy_send(...arguments)
28 | }
29 |
30 | function XHR2ExpressReqWrap(respond) {
31 | return function(options) {
32 | let result = null
33 | if (respond instanceof Function) {
34 | const { body, type, url } = options
35 | // https://expressjs.com/en/4x/api.html#req
36 | result = respond({
37 | method: type,
38 | body: JSON.parse(body),
39 | query: param2Obj(url)
40 | })
41 | } else {
42 | result = respond
43 | }
44 | return Mock.mock(result)
45 | }
46 | }
47 |
48 | for (const i of mocks) {
49 | Mock.mock(new RegExp(i.url), i.type || 'get', XHR2ExpressReqWrap(i.response))
50 | }
51 | }
52 |
53 | module.exports = {
54 | mocks,
55 | mockXHR
56 | }
57 |
58 |
--------------------------------------------------------------------------------
/runtime-record-core/src/main/resources/chart/MemoryChartLine.json:
--------------------------------------------------------------------------------
1 | {
2 | "xAxis": {
3 | "data": [],
4 | "boundaryGap": false,
5 | "axisTick": {
6 | "show": false
7 | }
8 | },
9 | "grid": {
10 | "left": 10,
11 | "right": 10,
12 | "bottom": 20,
13 | "top": 30,
14 | "containLabel": true
15 | },
16 | "tooltip": {
17 | "trigger": "axis",
18 | "axisPointer": {
19 | "type": "cross"
20 | },
21 | "padding": [
22 | 5,
23 | 10
24 | ]
25 | },
26 | "yAxis": {
27 | "axisTick": {
28 | "show": false
29 | }
30 | },
31 | "legend": {
32 | "data": [
33 | "已使用内存",
34 | "已分配内存"
35 | ]
36 | },
37 | "series": [
38 | {
39 | "name": "已使用内存",
40 | "itemStyle": {
41 | "normal": {
42 | "color": "#FF005A",
43 | "lineStyle": {
44 | "color": "#FF005A",
45 | "width": 2
46 | }
47 | }
48 | },
49 | "smooth": true,
50 | "type": "line",
51 | "data": [],
52 | "animationDuration": 2800,
53 | "animationEasing": "cubicInOut"
54 | },
55 | {
56 | "name": "已分配内存",
57 | "smooth": true,
58 | "type": "line",
59 | "itemStyle": {
60 | "normal": {
61 | "color": "#3888fa",
62 | "lineStyle": {
63 | "color": "#3888fa",
64 | "width": 2
65 | },
66 | "areaStyle": {
67 | "color": "#f3f8ff"
68 | }
69 | }
70 | },
71 | "data": [],
72 | "animationDuration": 2800,
73 | "animationEasing": "quadraticOut"
74 | }
75 | ]
76 | }
77 |
--------------------------------------------------------------------------------
/runtime-record-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json:
--------------------------------------------------------------------------------
1 | {
2 |
3 | "groups": [
4 | {
5 | "name": "aio.runtime.security",
6 | "type": "com.aio.runtime.security.domain.RuntimeSecurityProperties",
7 | "sourceType": "com.aio.runtime.security.domain.RuntimeSecurityProperties"
8 | },
9 | {
10 | "name": "aio.runtime.log",
11 | "type": "com.aio.runtime.log.domain.AioLogAppendProperties",
12 | "sourceType": "com.aio.runtime.log.domain.AioLogAppendProperties"
13 | }
14 | ],
15 | "properties": [
16 | {
17 | "name": "aio.runtime.security.enable",
18 | "type": "java.lang.Boolean",
19 | "description": "是否启动运行时默认的安全配置",
20 | "defaultValue": false
21 | },
22 | {
23 | "name": "aio.runtime.security.username",
24 | "type": "java.lang.String",
25 | "description": "用户名",
26 | "defaultValue": "admin"
27 | },
28 | {
29 | "name": "aio.runtime.security.password",
30 | "type": "java.lang.String",
31 | "description": "用户密码"
32 | },
33 | {
34 | "name": "aio.runtime.log.enable",
35 | "type": "java.lang.Boolean",
36 | "description": "是否启动日志模块",
37 | "defaultValue": true
38 | },
39 | {
40 | "name": "aio.runtime.log.past-day",
41 | "type": "java.lang.Integer",
42 | "description": "日志保存的时间(单位 天 )默认90天",
43 | "defaultValue": 90
44 | },
45 | {
46 | "name": "aio.runtime.log.index-period",
47 | "type": "java.lang.String",
48 | "description": "索引周期 默认小时 hour , 可选 day ",
49 | "defaultValue": "hour"
50 | }
51 | ]
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/console/src/components/md/MdEdit.vue:
--------------------------------------------------------------------------------
1 |