///////////////////////////////////////////////////////////// // // pgAdmin 4 - PostgreSQL Tools // // Copyright (C) 2013 - 2024, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // ////////////////////////////////////////////////////////////// import gettext from 'sources/gettext'; import url_for from 'sources/url_for'; import React, { useEffect, useState, useRef } from 'react'; import { Box, Grid, InputLabel } from '@mui/material'; import { InputSQL } from '../../../static/js/components/FormComponents'; import getApiInstance from '../../../static/js/api_instance'; import { usePgAdmin } from '../../../static/js/BrowserComponent'; export default function AboutComponent() { const containerRef = useRef(); const [aboutData, setAboutData] = useState([]); const pgAdmin = usePgAdmin(); useEffect(() => { const about_url = url_for('about.index'); const api = getApiInstance(); api.get(about_url).then((res)=>{ setAboutData(res.data.data); }).catch((err)=>{ pgAdmin.Browser.notifier.error(err); }); }, []); return ( {gettext('Version')} {aboutData.version} {gettext('Application Mode')} {aboutData.app_mode} {gettext('Commit:')} {aboutData.commit_hash} {gettext('Current User')} {aboutData.current_user} { aboutData.electron && {gettext('Electron Version')} {aboutData.electron} } {gettext('Browser')} {aboutData.browser_details} { aboutData.os_details && {gettext('Operating System')} {aboutData.os_details} } { aboutData.config_db && {gettext('pgAdmin Database File')} {aboutData.config_db} } { aboutData.log_file && {gettext('Log File')} {aboutData.log_file} } { aboutData.settings && {gettext('pgAdmin Server Configuration')} } ); }