Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/api/interface/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export namespace App {
required?: boolean;
multiple?: boolean;
label: Locale;
showPassword: boolean;
}

export interface AppConfig {
Expand Down
47 changes: 44 additions & 3 deletions frontend/src/views/app-store/installed/detail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,33 @@
</el-button>
</span>
</el-descriptions-item>
<el-descriptions-item v-for="(param, key) in params" :label="getLabel(param)" :key="key">
<span class="break-all whitespace-normal">
<el-descriptions-item
label-class-name="system-label"
v-for="(param, key) in params"
:label="getLabel(param)"
:key="key"
>
<span v-if="param.type === 'password' && !param.showPassword">********</span>
<span v-else class="break-all whitespace-normal">
{{ param.showValue && param.showValue != '' ? param.showValue : param.value }}
</span>
<CopyButton v-if="showCopyButton(param.key)" :content="param.value" />
<template v-if="param.type === 'password'">
<el-button
v-if="!param.showPassword"
link
@click="param.showPassword = true"
icon="View"
class="-mt-1 ml-3"
></el-button>
<el-button
v-if="param.showPassword"
link
@click="param.showPassword = false"
icon="Hide"
class="-mt-1 ml-3"
></el-button>
</template>
<CopyButton class="-mt-1" v-if="showCopyButton(param.key)" :content="param.value" />
</el-descriptions-item>
</el-descriptions>
</div>
Expand All @@ -47,6 +69,19 @@
v-model.number="paramModel.params[p.key]"
:disabled="!p.edit"
></el-input>
<el-input
v-else-if="p.type == 'password'"
:type="p.showPassword ? 'text' : 'password'"
v-model="paramModel.params[p.key]"
:disabled="!p.edit"
>
<template #append>
<el-button
:icon="p.showPassword ? 'Hide' : 'View'"
@click="p.showPassword = !p.showPassword"
/>
</template>
</el-input>
<el-select
v-model="paramModel.params[p.key]"
v-else-if="p.type == 'select'"
Expand Down Expand Up @@ -258,6 +293,7 @@ const acceptParams = async (props: ParamProps) => {
await get();
open.value = true;
openConfig.value = false;
console.log('params', params.value);
};

const handleClose = () => {
Expand Down Expand Up @@ -304,6 +340,7 @@ const get = async () => {
multiple: d.multiple,
label: d.label,
required: d.required,
showPassword: false,
});
if (d.required) {
rules.params[d.key] = [Rules.requiredInput];
Expand Down Expand Up @@ -437,4 +474,8 @@ defineExpose({ acceptParams });
.change-button {
margin-top: 5px;
}
.system-label {
width: 40% !important;
white-space: nowrap !important;
}
</style>
2 changes: 1 addition & 1 deletion frontend/src/views/cronjob/cronjob/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@
<el-row :gutter="20">
<LayoutCol v-if="isBackup() && !isDatabase()">
<el-form-item :label="$t('setting.compressPassword')" prop="secret">
<el-input v-model="form.secret" />
<el-input type="password" show-password v-model="form.secret" />
</el-form-item>
</LayoutCol>
<LayoutCol>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/xpack-ee
Submodule xpack-ee added at 329f2b
Loading