waveterm/frontend/app/modals/about.tsx

68 lines
2.6 KiB
TypeScript
Raw Normal View History

// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
2024-08-20 00:49:40 +02:00
import Logo from "@/app/asset/logo.svg";
import { LinkButton } from "@/app/element/linkbutton";
import { modalsModel } from "@/app/store/modalmodel";
import { Modal } from "./modal";
import { isDev } from "@/util/isdev";
import { useState } from "react";
import { getApi } from "../store/global";
import "./about.scss";
2024-08-20 00:49:40 +02:00
interface AboutModalProps {}
const AboutModal = ({}: AboutModalProps) => {
const currentDate = new Date();
const [details] = useState(() => getApi().getAboutModalDetails());
const [updaterChannel] = useState(() => getApi().getUpdaterChannel());
2024-08-20 00:49:40 +02:00
return (
2024-08-23 09:18:49 +02:00
<Modal className="about-modal" onClose={() => modalsModel.popModal()}>
2024-08-20 00:49:40 +02:00
<div className="section-wrapper">
<div className="section logo-section">
<Logo />
<div className="app-name">Wave Terminal</div>
<div className="text-standard">
Open-Source AI-Native Terminal
<br />
Built for Seamless Workflows
</div>
</div>
<div className="section text-standard">
Client Version {details.version} ({isDev() ? "dev-" : ""}
{details.buildTime})
<br />
Update Channel: {updaterChannel}
</div>
<div className="section links">
2024-08-20 00:49:40 +02:00
<LinkButton
className="secondary solid"
href="https://github.com/wavetermdev/waveterm"
target="_blank"
>
2024-11-16 06:26:48 +01:00
<i className="fa-brands fa-github"></i>Github
2024-08-20 00:49:40 +02:00
</LinkButton>
2024-11-16 06:26:48 +01:00
<LinkButton className="secondary solid" href="https://www.waveterm.dev/" target="_blank">
<i className="fa-sharp fa-light fa-globe"></i>Website
2024-08-20 00:49:40 +02:00
</LinkButton>
<LinkButton
className="secondary solid"
href="https://github.com/wavetermdev/waveterm/blob/main/ACKNOWLEDGEMENTS.md"
2024-08-20 00:49:40 +02:00
target="_blank"
rel={"noopener"}
>
2024-11-16 06:26:48 +01:00
<i className="fa-sharp fa-light fa-heart"></i>Acknowledgements
2024-08-20 00:49:40 +02:00
</LinkButton>
</div>
<div className="section text-standard">&copy; {currentDate.getFullYear()} Command Line Inc.</div>
</div>
</Modal>
);
};
AboutModal.displayName = "AboutModal";
export { AboutModal };