From bafd96d46510184a6a96d0b4449f1ab8803ed7ec Mon Sep 17 00:00:00 2001 From: zjp Date: Tue, 19 Nov 2024 20:19:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(info):=20=E5=A2=9E=E5=8A=A0=20crates.io=20?= =?UTF-8?q?=E5=8F=91=E7=89=88=E6=AC=A1=E6=95=B0=E5=92=8C=20os-checker=20?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E7=BB=93=E6=9E=9C=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- os-checks/pages/info.vue | 21 ++++++++++++++++++++- os-checks/shared/info.ts | 2 ++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/os-checks/pages/info.vue b/os-checks/pages/info.vue index 6195975..1423925 100644 --- a/os-checks/pages/info.vue +++ b/os-checks/pages/info.vue @@ -52,6 +52,22 @@ + + + + + + + + @@ -256,7 +272,9 @@ const summaryTable = computed(() => { documentation: pkg.documentation, readme: pkg.readme, homepage: pkg.homepage, - latest_doc: docs.value?.[val.user]?.[val.repo]?.[name] ?? null + latest_doc: docs.value?.[val.user]?.[val.repo]?.[name] ?? null, + diag_total_count: pkg.diag_total_count, + release_count: pkg.release_count, } }) }).flat(); @@ -294,6 +312,7 @@ type SummaryTable = { tests: number | null; examples: number | null; benches: number | null; keywords: string[] | null; authors: string[] | null; description: string; categories: string[] | null; documentation: string | null; readme: string | null; homepage: string | null; latest_doc: string | null; + diag_total_count: number | null; release_count: number | null; }; const data = ref([]); watch(summaryTable, (val) => data.value = val); diff --git a/os-checks/shared/info.ts b/os-checks/shared/info.ts index fedd0a6..6f988d7 100644 --- a/os-checks/shared/info.ts +++ b/os-checks/shared/info.ts @@ -21,6 +21,8 @@ export type Pkg = { keywords: string[], categories: string[] os_categories: string[], + diag_total_count: number | null, + release_count: number | null, } export type TestCases = {