You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celeborn.apache.org by ni...@apache.org on 2024/03/19 10:04:38 UTC
(incubator-celeborn) branch main updated: [CELEBORN-1305][FOLLOWUP] Unify application module naming
This is an automated email from the ASF dual-hosted git repository.
nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 2246b3372 [CELEBORN-1305][FOLLOWUP] Unify application module naming
2246b3372 is described below
commit 2246b33728432a0b470d8a393b05c63fe3355955
Author: MiyueSC <91...@qq.com>
AuthorDate: Tue Mar 19 18:04:28 2024 +0800
[CELEBORN-1305][FOLLOWUP] Unify application module naming
### What changes were proposed in this pull request?
Unify application module naming.
### Why are the changes needed?
Keep the file name style of each module unified.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Local test.
Closes #2403 from miyuesc/CELEBORN-1305-followup.
Authored-by: MiyueSC <91...@qq.com>
Signed-off-by: SteNicholas <pr...@163.com>
---
.../{ApplicationSearchForm.vue => ApplicationForm.vue} | 2 +-
.../components/{ApplicationList.vue => ApplicationTable.vue} | 2 +-
web/src/views/application/components/index.ts | 6 +++---
web/src/views/application/index.vue | 9 +++------
web/src/views/worker/components/WorkerDetailContent.vue | 4 ++--
5 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/web/src/views/application/components/ApplicationSearchForm.vue b/web/src/views/application/components/ApplicationForm.vue
similarity index 98%
rename from web/src/views/application/components/ApplicationSearchForm.vue
rename to web/src/views/application/components/ApplicationForm.vue
index 7f13d2a70..ee737b26b 100644
--- a/web/src/views/application/components/ApplicationSearchForm.vue
+++ b/web/src/views/application/components/ApplicationForm.vue
@@ -20,7 +20,7 @@
import { useFormEvent } from '@/composables'
export default defineComponent({
- name: 'ApplicationSearchForm',
+ name: 'ApplicationForm',
setup(_, ctx) {
const searchForm = reactive({
appId: '',
diff --git a/web/src/views/application/components/ApplicationList.vue b/web/src/views/application/components/ApplicationTable.vue
similarity index 98%
rename from web/src/views/application/components/ApplicationList.vue
rename to web/src/views/application/components/ApplicationTable.vue
index e5b526106..f6d2e4e69 100644
--- a/web/src/views/application/components/ApplicationList.vue
+++ b/web/src/views/application/components/ApplicationTable.vue
@@ -22,7 +22,7 @@ import type { DataTableColumns, PaginationProps } from 'naive-ui'
import type { PropType } from 'vue'
defineOptions({
- name: 'ApplicationDataTable'
+ name: 'ApplicationTable'
})
defineProps({
diff --git a/web/src/views/application/components/index.ts b/web/src/views/application/components/index.ts
index 45fef16a7..c772b612b 100644
--- a/web/src/views/application/components/index.ts
+++ b/web/src/views/application/components/index.ts
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-import ApplicationListService from './ApplicationList.vue'
-import ApplicationSearchFormService from './ApplicationSearchForm.vue'
+import ApplicationTableService from './ApplicationTable.vue'
+import ApplicationFormService from './ApplicationForm.vue'
-export { ApplicationListService, ApplicationSearchFormService }
+export { ApplicationTableService, ApplicationFormService }
diff --git a/web/src/views/application/index.vue b/web/src/views/application/index.vue
index 3e24d2996..ba56d79c7 100644
--- a/web/src/views/application/index.vue
+++ b/web/src/views/application/index.vue
@@ -20,10 +20,7 @@
import { getApplicationList, getApplicationOverview } from '@/api'
import type { Application } from '@/api/models/application/types'
import { usePagination } from '@/composables'
-import {
- ApplicationListService,
- ApplicationSearchFormService
-} from '@/views/application/components'
+import { ApplicationTableService, ApplicationFormService } from '@/views/application/components'
import { ApplicationOverviewService } from '@/views/overview/components'
import { useHasLoading } from '@varlet/axle/use'
@@ -51,8 +48,8 @@ const applicationList = computed<Application[]>(() => appResponse.value?.applica
<n-spin :show="loading">
<n-flex :style="{ gap: '24px' }" vertical>
<ApplicationOverviewService :data="appOverview" />
- <ApplicationSearchFormService @reset="resetSearch" @search="doSearch" />
- <ApplicationListService :data="applicationList" :pagination="pagination" />
+ <ApplicationFormService @reset="resetSearch" @search="doSearch" />
+ <ApplicationTableService :data="applicationList" :pagination="pagination" />
</n-flex>
</n-spin>
</template>
diff --git a/web/src/views/worker/components/WorkerDetailContent.vue b/web/src/views/worker/components/WorkerDetailContent.vue
index f8e888721..8e1109143 100644
--- a/web/src/views/worker/components/WorkerDetailContent.vue
+++ b/web/src/views/worker/components/WorkerDetailContent.vue
@@ -18,7 +18,7 @@
<script setup lang="ts">
import type { ApplicationTab, WorkerDetail } from '@/api'
-import { ApplicationListService } from '@/views/application/components'
+import { ApplicationTableService } from '@/views/application/components'
import type { PropType } from 'vue'
import { WorkerDetailMemoryService, WorkerDetailStorageService } from '.'
@@ -43,7 +43,7 @@ defineProps({
<WorkerDetailMemoryService :data="data.memoryInfo" />
</n-tab-pane>
<n-tab-pane name="Application" tab="Application">
- <ApplicationListService :="application" />
+ <ApplicationTableService :="application" />
</n-tab-pane>
<n-tab-pane name="Configuration" tab="Configuration">
<ConfigurationService :dynamic="data.dynamicConfigs" :static="data.staticConfigs" />