-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style: change some column width #7385
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,14 +48,14 @@ | |
</el-text> | ||
</template> | ||
</el-table-column> | ||
<el-table-column :label="$t('container.from')" prop="createdBy" min-width="80" fix> | ||
<el-table-column :label="$t('container.from')" prop="createdBy" min-width="120" fix> | ||
<template #default="{ row }"> | ||
<span v-if="row.createdBy === ''">{{ $t('container.local') }}</span> | ||
<span v-if="row.createdBy === 'Apps'">{{ $t('container.apps') }}</span> | ||
<span v-if="row.createdBy === '1Panel'">1Panel</span> | ||
</template> | ||
</el-table-column> | ||
<el-table-column :label="$t('container.composeDirectory')" min-width="80" fix> | ||
<el-table-column :label="$t('container.composeDirectory')" min-width="100" fix> | ||
<template #default="{ row }"> | ||
<el-button type="primary" link @click="toComposeFolder(row)"> | ||
<el-icon> | ||
|
@@ -64,19 +64,20 @@ | |
</el-button> | ||
</template> | ||
</el-table-column> | ||
<el-table-column :label="$t('container.containerStatus')" min-width="80" fix> | ||
<el-table-column :label="$t('container.containerStatus')" min-width="200" fix> | ||
<template #default="scope"> | ||
<div> | ||
{{ getContainerStatus(scope.row.containers) }} | ||
</div> | ||
</template> | ||
</el-table-column> | ||
<el-table-column :label="$t('commons.table.createdAt')" prop="createdAt" min-width="80" fix /> | ||
<el-table-column :label="$t('commons.table.createdAt')" prop="createdAt" min-width="180" fix /> | ||
<fu-table-operations | ||
width="200px" | ||
:ellipsis="10" | ||
:buttons="buttons" | ||
:label="$t('commons.table.operate')" | ||
:fixed="mobile ? false : 'right'" | ||
fix | ||
/> | ||
</ComplexTable> | ||
|
@@ -90,7 +91,7 @@ | |
</template> | ||
|
||
<script lang="ts" setup> | ||
import { reactive, onMounted, ref } from 'vue'; | ||
import { reactive, onMounted, ref, computed } from 'vue'; | ||
import EditDialog from '@/views/container/compose/edit/index.vue'; | ||
import CreateDialog from '@/views/container/compose/create/index.vue'; | ||
import DeleteDialog from '@/views/container/compose/delete/index.vue'; | ||
|
@@ -99,6 +100,12 @@ import { loadContainerLog, loadDockerStatus, searchCompose } from '@/api/modules | |
import i18n from '@/lang'; | ||
import { Container } from '@/api/interface/container'; | ||
import router from '@/routers'; | ||
import { GlobalStore } from '@/store'; | ||
const globalStore = GlobalStore(); | ||
|
||
const mobile = computed(() => { | ||
return globalStore.isMobile(); | ||
}); | ||
|
||
const data = ref(); | ||
const selects = ref<any>([]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code does not contain significant irregularities or major issues but can be optimized and improved: Improvements
Potential Suggestions for Refactoring
These improvements help organize the code better, enhance readability, prevent common pitfalls such as missing functions or unclear functionalities, and suggest further optimizations depending on the context you work with. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,11 +54,17 @@ | |
<el-table-column | ||
:label="$t('process.memory')" | ||
fix | ||
min-width="120" | ||
prop="rssValue" | ||
:formatter="memFormatter" | ||
sortable | ||
></el-table-column> | ||
<el-table-column :label="$t('process.numConnections')" fix prop="numConnections"></el-table-column> | ||
<el-table-column | ||
:label="$t('process.numConnections')" | ||
fix | ||
prop="numConnections" | ||
min-width="120" | ||
></el-table-column> | ||
<el-table-column | ||
:label="$t('process.status')" | ||
fix | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no significant code differences in this snippet, but here are some minor suggestions:
Overall, the changes between lines 54 and 63 are minimal and do not introduce any potential issues. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review of Code Differences
Key Changes:
Permission and Password Strings:
permission
was changed from "Change permissions" to "Permissions".changePassword
was changed from "Change password" to "Password".Other Minor Updates:
Proximity Helper Messages:
Additional Error Details:
view details
) where appropriate.Renew Certificate Logic:
Potential Issues:
Recommendations:
Summary
The reviewed changes mainly aim at maintaining consistent language usage throughout the resources while correcting typos. These modifications should help enhance overall clarity and maintainability.