From dc81b4d182c9949dad946bdf4232df047ff5d646 Mon Sep 17 00:00:00 2001 From: Zisu Zhang Date: Sat, 20 Apr 2024 18:57:39 +0800 Subject: [PATCH] chore: support runner ip display (#97) --- .yarn/versions/61c36991.yml | 4 ++++ .../solution/SolutionDetailsRenderer.vue | 20 +++++++++++-------- apps/frontend/src/locales/en.yaml | 1 + apps/frontend/src/locales/zh-Hans.yml | 1 + .../src/pages/org/[orgId]/admin/runner.vue | 5 ++++- apps/frontend/src/utils/org/runner.ts | 4 ++-- apps/server/src/db/runner.ts | 1 + apps/server/src/routes/org/admin/runner.ts | 2 ++ apps/server/src/routes/runner/index.ts | 16 ++++++++++++--- libs/common/src/schemas/solution.ts | 10 +++++----- 10 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 .yarn/versions/61c36991.yml diff --git a/.yarn/versions/61c36991.yml b/.yarn/versions/61c36991.yml new file mode 100644 index 00000000..294016bd --- /dev/null +++ b/.yarn/versions/61c36991.yml @@ -0,0 +1,4 @@ +releases: + "@aoi-js/common": minor + "@aoi-js/frontend": patch + "@aoi-js/server": patch diff --git a/apps/frontend/src/components/solution/SolutionDetailsRenderer.vue b/apps/frontend/src/components/solution/SolutionDetailsRenderer.vue index a3c834b3..684480d8 100644 --- a/apps/frontend/src/components/solution/SolutionDetailsRenderer.vue +++ b/apps/frontend/src/components/solution/SolutionDetailsRenderer.vue @@ -2,7 +2,7 @@ {{ t('term.jobs') }} - + @@ -21,7 +21,7 @@ {{ t('term.tests') }} - + @@ -40,20 +40,24 @@ - + - - {{ t('term.summary') }} - + - {{ t('term.summary') }} - + diff --git a/apps/frontend/src/locales/en.yaml b/apps/frontend/src/locales/en.yaml index e76bf3d8..f1f526c9 100644 --- a/apps/frontend/src/locales/en.yaml +++ b/apps/frontend/src/locales/en.yaml @@ -125,6 +125,7 @@ term: filter: Filter access-level: Access Level rules: Rules + ip: IP common: created-at: Created at diff --git a/apps/frontend/src/locales/zh-Hans.yml b/apps/frontend/src/locales/zh-Hans.yml index 7a1a99cd..8efb4864 100644 --- a/apps/frontend/src/locales/zh-Hans.yml +++ b/apps/frontend/src/locales/zh-Hans.yml @@ -125,6 +125,7 @@ term: filter: 过滤 access-level: 访问等级 rules: 规则 + ip: IP 地址 common: created-at: 创建于 diff --git a/apps/frontend/src/pages/org/[orgId]/admin/runner.vue b/apps/frontend/src/pages/org/[orgId]/admin/runner.vue index f71f5459..af1224fe 100644 --- a/apps/frontend/src/pages/org/[orgId]/admin/runner.vue +++ b/apps/frontend/src/pages/org/[orgId]/admin/runner.vue @@ -38,7 +38,7 @@ {{ item._id }}