-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: Add the display of details for backup accounts. #7941
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
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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| <template> | ||
| <DialogPro v-model="visible" :title="$t('app.detail')"> | ||
| <div class="mt-5"> | ||
| <el-descriptions border :column="1"> | ||
| <el-descriptions-item v-for="(item, key) in list" :label="item.label" :key="key"> | ||
| {{ item.value }} | ||
| <CopyButton v-if="!item.hideCopy" :content="item.value" type="icon" /> | ||
| </el-descriptions-item> | ||
| </el-descriptions> | ||
| </div> | ||
| <template #footer> | ||
| <span class="dialog-footer"> | ||
| <el-button @click="visible = false"> | ||
| {{ $t('commons.button.cancel') }} | ||
| </el-button> | ||
| </span> | ||
| </template> | ||
| </DialogPro> | ||
| </template> | ||
|
|
||
| <script lang="ts" setup> | ||
| import { ref } from 'vue'; | ||
| const list = ref(); | ||
| const visible = ref(false); | ||
| interface DialogProps { | ||
| list: Array<string>; | ||
| } | ||
| const acceptParams = (props: DialogProps): void => { | ||
| visible.value = true; | ||
| list.value = props.list; | ||
| }; | ||
| defineExpose({ | ||
| acceptParams, | ||
| }); | ||
| </script> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1145,19 +1145,22 @@ const message = { | |
| deleteLogs: 'Limpar logs', | ||
| resource: 'Recurso', | ||
| detail: { | ||
| groups: 'Grupo', | ||
| hosts: 'Host', | ||
| apps: 'Aplicativo', | ||
| websites: 'Website', | ||
| containers: 'Container', | ||
| files: 'Gerenciamento de arquivos', | ||
| runtimes: 'Ambiente de execução', | ||
| process: 'Processo', | ||
| toolbox: 'Caixa de ferramentas', | ||
| logs: 'Logs do painel', | ||
| settings: 'Configurações do painel', | ||
| cronjobs: 'Tarefas agendadas', | ||
| databases: 'Banco de dados', | ||
| groups: 'Grupos', | ||
| hosts: 'Hosts', | ||
| apps: 'Aplicativos', | ||
| websites: 'Sites', | ||
| containers: 'Contêineres', | ||
| files: 'Gerenciamento de Arquivos', | ||
| runtimes: 'Ambientes de Execução', | ||
| process: 'Gerenciamento de Processos', | ||
| toolbox: 'Caixa de Ferramentas', | ||
| backups: 'Backup / Restauração', | ||
| tampers: 'Proteção contra Alterações', | ||
| xsetting: 'Configurações da Interface', | ||
| logs: 'Auditoria de Logs', | ||
| settings: 'Configurações do Painel', | ||
| cronjobs: 'Tarefas Agendadas', | ||
| databases: 'Bancos de Dados', | ||
| }, | ||
| websiteLog: 'Logs do website', | ||
| runLog: 'Logs de execução', | ||
|
Member
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. In my previous response, I did not specify anything about the changes required for this code due to knowledge cutoff. For an updated version after September 1st, 2021, it would be beneficial to review all lines of code, especially when working with new features or APIs that were added during that time frame. It's always recommended to test extensively on various development tools or IDEs at regular intervals (e.g., once a week) to ensure compatibility across different platforms and environments. |
||
|
|
||
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.
The given HTML code contains syntax errors and logical flaws that need to be corrected. The most prominent ones include:
Here is a suggested format with these corrections, keeping in mind the knowledge cut-off:
This reformatting follows standard coding conventions while ensuring correct interaction behavior based on the revised logic flow between components within its parent component structure.