2018-02-22 03:00:00 +01:00
|
|
|
|
/*
|
2021-04-19 19:30:42 +02:00
|
|
|
|
* Copyright (c) 2015-2021 MinIO, Inc.
|
2018-02-22 03:00:00 +01:00
|
|
|
|
*
|
2021-04-19 19:30:42 +02:00
|
|
|
|
* This file is part of MinIO Object Storage stack
|
2018-02-22 03:00:00 +01:00
|
|
|
|
*
|
2021-04-19 19:30:42 +02:00
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
2018-02-22 03:00:00 +01:00
|
|
|
|
*
|
2021-04-19 19:30:42 +02:00
|
|
|
|
* This program is distributed in the hope that it will be useful
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2018-02-22 03:00:00 +01:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import React from "react"
|
|
|
|
|
import { Modal } from "react-bootstrap"
|
|
|
|
|
import logo from "../../img/logo.svg"
|
|
|
|
|
|
|
|
|
|
export const AboutModal = ({ serverInfo, hideAbout }) => {
|
2019-10-23 07:59:13 +02:00
|
|
|
|
const { version, platform, runtime } = serverInfo
|
2018-02-22 03:00:00 +01:00
|
|
|
|
return (
|
2018-03-26 21:49:12 +02:00
|
|
|
|
<Modal
|
|
|
|
|
className="modal-about modal-dark"
|
|
|
|
|
animation={false}
|
|
|
|
|
show={true}
|
|
|
|
|
onHide={hideAbout}
|
|
|
|
|
>
|
|
|
|
|
<button className="close" onClick={hideAbout}>
|
|
|
|
|
<span>×</span>
|
|
|
|
|
</button>
|
|
|
|
|
<div className="ma-inner">
|
|
|
|
|
<div className="mai-item hidden-xs">
|
2019-04-09 20:39:42 +02:00
|
|
|
|
<a href="https://min.io" target="_blank">
|
2018-03-26 21:49:12 +02:00
|
|
|
|
<img className="maii-logo" src={logo} alt="" />
|
|
|
|
|
</a>
|
2018-02-22 03:00:00 +01:00
|
|
|
|
</div>
|
2018-03-26 21:49:12 +02:00
|
|
|
|
<div className="mai-item">
|
|
|
|
|
<ul className="maii-list">
|
|
|
|
|
<li>
|
|
|
|
|
<div>Version</div>
|
|
|
|
|
<small>{version}</small>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<div>Platform</div>
|
|
|
|
|
<small>{platform}</small>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<div>Runtime</div>
|
|
|
|
|
<small>{runtime}</small>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2018-02-22 03:00:00 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default AboutModal
|