feat: 初版

This commit is contained in:
neo 2024-12-07 21:55:33 +08:00
parent 5f112390b5
commit 27cc7c4d21
5 changed files with 8 additions and 6 deletions

View File

@ -236,7 +236,7 @@ const AppDetail = ({}) => {
};
const renderVersionedFormulae = versionedFormulae => {
if (!versionedFormulae) return;
if (!versionedFormulae || !versionedFormulae.length) return;
return (
<>
@ -245,6 +245,7 @@ const AppDetail = ({}) => {
columns={[
{
dataIndex: 'name',
width: 200,
render: (text, row) => {
return <div>{text}</div>;
},
@ -266,7 +267,7 @@ const AppDetail = ({}) => {
};
const renderDep = (deps, title) => {
if (!deps) return;
if (!deps || !deps.length) return;
return (
<>
@ -275,6 +276,7 @@ const AppDetail = ({}) => {
columns={[
{
dataIndex: 'name',
width: 200,
render: (text, row) => {
return <div>{text}</div>;
},

View File

@ -70,9 +70,6 @@ const CaskAndFormula = ({}) => {
if (result && result.data) {
result.data.forEach(item => {
if (item.versions) {
item.versions = JSON.parse(item.versions)
}
})
}

View File

@ -25,6 +25,7 @@
&-title {
font-size: 24px;
font-weight: 400;
margin-top: 10px;
margin-bottom: 10px;
}

View File

@ -3,6 +3,7 @@ nav:
hide: true
toc: false
sidemenu: false
filePath:
---
<AppDetail></AppDetail>

View File

@ -3,10 +3,11 @@ nav:
title: 应用
toc: false
sidemenu: false
filePath:
---
# Cask && Formula
如果我的工作帮助到你,您可以考虑请我喝杯咖啡
Homebrew应用列表
<CaskAndFormula></CaskAndFormula>