From 3a5b10157f5a812ed1c49f7a175bf927cda6a1a1 Mon Sep 17 00:00:00 2001 From: jingrow Date: Tue, 22 Apr 2025 11:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=99=E7=82=B9=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E5=BA=94=E7=94=A8=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src2/objects/common/apps.ts | 23 ----------------------- jcloud/api/site.py | 2 +- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/dashboard/src2/objects/common/apps.ts b/dashboard/src2/objects/common/apps.ts index cbe94e5..ae3f57b 100644 --- a/dashboard/src2/objects/common/apps.ts +++ b/dashboard/src2/objects/common/apps.ts @@ -101,12 +101,6 @@ function getAppsTabColumns(forSite: boolean) { else return '免费'; } }, - { - label: '仓库', - fieldname: 'repository_url', - format: value => String(value).split('/').slice(-2).join('/'), - link: value => String(value) - }, { label: '分支', fieldname: 'branch', @@ -115,23 +109,6 @@ function getAppsTabColumns(forSite: boolean) { link: (value, row) => { return `${row.repository_url}/tree/${value}`; } - }, - { - label: '提交', - fieldname: 'hash', - type: 'Badge', - width: 1, - link: (value, row) => { - return `${row.repository_url}/commit/${value}`; - }, - format(value) { - return String(value).slice(0, 7); - } - }, - { - label: '提交信息', - fieldname: 'commit_message', - width: '30rem' } ]; diff --git a/jcloud/api/site.py b/jcloud/api/site.py index e7fde8d..da88a71 100644 --- a/jcloud/api/site.py +++ b/jcloud/api/site.py @@ -1375,7 +1375,7 @@ def get_installed_apps(site, query_filters: dict | None = None): app_source.plan_info = jingrow.db.get_value( "Marketplace App Plan", subscription.plan, - ["price_usd", "price_cny", "name", "plan"], + ["price_usd", "price_cny", "name", "title"], as_dict=True, )