@wener/console
Version:
Base console UI toolkit
33 lines (32 loc) • 1.91 kB
JavaScript
import React from "react";
import { GrSystem } from "react-icons/gr";
import { HiCheck } from "react-icons/hi";
import { ImLab } from "react-icons/im";
import { dayjs } from "@wener/common/dayjs";
import { SystemAboutPageSection } from "./SystemAboutPageSection.js";
export var SystemAboutPageBuildInfo = function (param) {
var logo = param.logo, title = param.title, info = param.info;
return /*#__PURE__*/ React.createElement(SystemAboutPageSection, {
icon: logo || /*#__PURE__*/ React.createElement(GrSystem, {
className: "h-6 w-6"
}),
title: title,
className: "p-0"
}, /*#__PURE__*/ React.createElement("ul", {
className: "divide-color flex flex-col divide-y [&>li]:flex [&>li]:items-center [&>li]:gap-2 [&>li]:p-3"
}, /*#__PURE__*/ React.createElement("li", null, /*#__PURE__*/ React.createElement("div", {
className: "flex h-8 w-8 items-center justify-center"
}, /*#__PURE__*/ React.createElement(HiCheck, {
className: "text-info h-4 w-4"
})), /*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement("div", {
className: "flex items-center gap-2"
}, "\u5F53\u524D\u7248\u672C: ", info.version, info.isDev && /*#__PURE__*/ React.createElement("span", {
className: "badge badge-warning"
}, /*#__PURE__*/ React.createElement(ImLab, null), " \u6D4B\u8BD5\u7248\u672C")), /*#__PURE__*/ React.createElement("div", {
className: "flex gap-2"
}, /*#__PURE__*/ React.createElement("small", {
className: "text-gray-600"
}, "\u6784\u5EFA\u4E8E ", dayjs(info.date).format("YYYY.MM.DD HH.mm")), info.commit.shortSha && /*#__PURE__*/ React.createElement("small", {
className: "text-gray-300"
}, info.commit.shortSha, info.commit.timestamp && /*#__PURE__*/ React.createElement("span", null, "@", dayjs(info.commit.timestamp).format())))))));
};