diff --git a/.dumi/theme/builtins/AppDetail.tsx b/.dumi/theme/builtins/AppDetail.tsx index db500ed..e7a4809 100644 --- a/.dumi/theme/builtins/AppDetail.tsx +++ b/.dumi/theme/builtins/AppDetail.tsx @@ -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
{text}
; }, @@ -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
{text}
; }, diff --git a/.dumi/theme/builtins/CaskAndFormula.tsx b/.dumi/theme/builtins/CaskAndFormula.tsx index 206a7e5..6a6df43 100644 --- a/.dumi/theme/builtins/CaskAndFormula.tsx +++ b/.dumi/theme/builtins/CaskAndFormula.tsx @@ -70,9 +70,6 @@ const CaskAndFormula = ({}) => { if (result && result.data) { result.data.forEach(item => { - if (item.versions) { - item.versions = JSON.parse(item.versions) - } }) } diff --git a/.dumi/theme/builtins/CaskAndFormula/app-detail.less b/.dumi/theme/builtins/CaskAndFormula/app-detail.less index 9d6cd2c..c2b8471 100644 --- a/.dumi/theme/builtins/CaskAndFormula/app-detail.less +++ b/.dumi/theme/builtins/CaskAndFormula/app-detail.less @@ -25,6 +25,7 @@ &-title { font-size: 24px; font-weight: 400; + margin-top: 10px; margin-bottom: 10px; } diff --git a/docs/app-detail.md b/docs/app-detail.md index 00640cc..a84ae67 100644 --- a/docs/app-detail.md +++ b/docs/app-detail.md @@ -3,6 +3,7 @@ nav: hide: true toc: false sidemenu: false +filePath: --- diff --git a/docs/homebrew.md b/docs/homebrew.md index 1c2cce0..916163f 100644 --- a/docs/homebrew.md +++ b/docs/homebrew.md @@ -3,10 +3,11 @@ nav: title: 应用 toc: false sidemenu: false +filePath: --- # Cask && Formula -如果我的工作帮助到你,您可以考虑请我喝杯咖啡。 +Homebrew应用列表。