diff --git a/src/webapp/src/component/live-info/index.tsx b/src/webapp/src/component/live-info/index.tsx index b641ff76..8a1ab785 100644 --- a/src/webapp/src/component/live-info/index.tsx +++ b/src/webapp/src/component/live-info/index.tsx @@ -1,7 +1,10 @@ import React from "react"; import API from '../../utils/api'; -import { PageHeader } from 'antd'; -import { Descriptions } from 'antd'; +import { + PageHeader, + Descriptions, + Button +} from 'antd'; const api = new API(); @@ -52,6 +55,18 @@ class LiveInfo extends React.Component { }) } + getTextForCopy(): string { + return ` +App Name: ${this.state.appVersion} +App Version: ${this.state.appVersion} +Build Time: ${this.state.buildTime} +Pid: ${this.state.pid} +Platform: ${this.state.platform} +Go Version: ${this.state.goVersion} +Git Hash: ${this.state.gitHash} +`; + } + render() { return (
@@ -71,6 +86,27 @@ class LiveInfo extends React.Component { {this.state.goVersion} {this.state.gitHash} +
) }