Skip to content

Commit

Permalink
fix(style): 一些样式的统一
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu committed Jun 15, 2022
1 parent 1d43a78 commit 2285034
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion web/dashboard/src/i18n/lang/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const message = {
last_month: "A month ago",
last_three_month: "3 months ago",
metric_server_tip: "Since the Metrics-Server service is not started, there is no data in the Cpu (Cores) and Memory (bytes) ",
pod_file: "File Manager",
pod_file: "File Browser",
permission: "Permission",
last_update: "Last Update Time",
create_folder: "Create Folder",
Expand Down
2 changes: 1 addition & 1 deletion web/dashboard/src/i18n/lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const message = {
last_month: "最近一月",
last_three_month: "最近三月",
metric_server_tip: "由于 Metrics-Server 服务异常(可能是未启动),所以暂无数据",
pod_file: "文件管理",
pod_file: "文件浏览器",
permission: "权限",
last_update: "最后修改时间",
create_folder: "创建文件夹",
Expand Down
3 changes: 0 additions & 3 deletions web/kubepi/src/business/cluster-management/detail/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<layout-content :header="$t('business.cluster.cluster_detail')" :back-to="{ name: 'Clusters' }">
<!-- <el-menu class="menuClass" router :default-active="activeRoute()" mode="horizontal" background-color="#222629">-->
<!-- </el-menu>-->

<el-menu class="menuClass" router :default-active="activeRoute()" mode="horizontal" background-color="#222629">
<el-menu-item :index="membersPath">{{ $t('business.cluster.member') }}</el-menu-item>
<el-menu-item :index="rolesPath">{{ $t('business.cluster.role') }}</el-menu-item>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<layout-content>
<div style="float: left; margin-bottom: 20px">
<el-button type="primary" size="small" @click="onCreate">{{ $t("commons.button.add") }}</el-button>
<el-button type="primary" size="small" @click="onCreate">{{ $t("commons.button.create") }}</el-button>
<el-button :disabled="selects.length===0" type="primary" size="small" @click="onDelete()">{{ $t("commons.button.delete") }}</el-button>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<layout-content>
<div style="float: left; margin-bottom: 20px">
<el-button type="primary" size="small" @click="onCreate">{{ $t("commons.button.add") }}</el-button>
<el-button type="primary" size="small" @click="onCreate">{{ $t("commons.button.create") }}</el-button>
<el-button :disabled="selects.length===0" type="primary" size="small" @click="onDelete()">{{ $t("commons.button.delete") }}</el-button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion web/kubepi/src/business/cluster-management/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<layout-content :header="$t('business.cluster.list')">
<div style="float: left">
<el-button v-has-permissions="{resource:'clusters',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.add") }}</el-button>
<el-button v-has-permissions="{resource:'clusters',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.import") }}</el-button>
<el-button v-has-permissions="{resource:'clusters',verb:'delete'}" :disabled="selects.length===0" type="primary" size="small" @click="onDelete()">{{ $t("commons.button.delete") }}</el-button>
</div>
<complex-table v-loading="loading" :search-config="searchConfig" :selects.sync="selects" :data="data"
Expand Down
2 changes: 1 addition & 1 deletion web/kubepi/src/business/imagerepo-management/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<layout-content :header="$t('business.image_repos.list')">
<div style="float: left; margin-bottom: 20px">
<el-button v-has-permissions="{resource:'imagerepos',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.add") }}</el-button>
<el-button v-has-permissions="{resource:'imagerepos',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.create") }}</el-button>
<el-button v-has-permissions="{resource:'imagerepos',verb:'delete'}" :disabled="selects.length===0" type="primary" size="small" @click="onDelete()">{{ $t("commons.button.delete") }}</el-button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion web/kubepi/src/business/user-management/role/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<layout-content :header="$t('business.user.role_list')">
<div style="float: left; margin-bottom: 20px">
<el-button v-has-permissions="{resource:'roles',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.add") }}</el-button>
<el-button v-has-permissions="{resource:'roles',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.create") }}</el-button>
<el-button v-has-permissions="{resource:'roles',verb:'delete'}" :disabled="selects.length===0" type="primary" size="small" @click="onDelete()">{{ $t("commons.button.delete") }}</el-button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion web/kubepi/src/business/user-management/user/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<layout-content :header="$t('business.user.user_list')">
<div style="float: left">
<el-button v-has-permissions="{resource:'users',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.add") }}</el-button>
<el-button v-has-permissions="{resource:'users',verb:'create'}" type="primary" size="small" @click="onCreate">{{ $t("commons.button.create") }}</el-button>
<el-button v-has-permissions="{resource:'users',verb:'delete'}" :disabled="selects.length===0" type="primary" size="small" @click="onDelete()">{{ $t("commons.button.delete") }}</el-button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion web/kubepi/src/i18n/lang/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const message = {
false: "Disable"
},
search: {
quickSearch: "quick search"
quickSearch: "Search"
},
form: {
select_placeholder: "please select"
Expand Down

0 comments on commit 2285034

Please sign in to comment.