mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
chore: 增加流水线,授权等文档
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
<template #icon><fs-icon icon="ion:add-circle-outline" /></template>
|
||||
注册新的Passkey
|
||||
</a-button>
|
||||
<pre class="helper">{{ t("authentication.passkeyRegisterHelper") }}</pre>
|
||||
<pre class="helper pre">{{ t("authentication.passkeyRegisterHelper") }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -50,4 +50,12 @@ export const openkeyApi = {
|
||||
data: { id },
|
||||
});
|
||||
},
|
||||
|
||||
async GetSecret(id: number) {
|
||||
return await request({
|
||||
url: apiPrefix + "/getSecret",
|
||||
method: "post",
|
||||
data: { id },
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
@@ -145,6 +145,23 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
column: {
|
||||
width: 580,
|
||||
sorter: true,
|
||||
cellRender: ({ row, value }) => {
|
||||
async function getSecret(id: number) {
|
||||
row.keySecret = await api.GetSecret(id);
|
||||
}
|
||||
if (value.includes("*")) {
|
||||
return (
|
||||
<div class="flex items-center flex-between">
|
||||
{value}
|
||||
<a-button type="primary" size="small" onClick={() => getSecret(row.id)}>
|
||||
查看密钥
|
||||
</a-button>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
return <fs-copyable model-value={value}></fs-copyable>;
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
scope: {
|
||||
|
||||
@@ -122,7 +122,7 @@ const editableKeys = ref([
|
||||
},
|
||||
defaultRender(item: any) {
|
||||
return () => {
|
||||
return <pre class={"helper"}>{item["helper"]}</pre>;
|
||||
return <pre class={"helper pre"}>{item["helper"]}</pre>;
|
||||
};
|
||||
},
|
||||
editRender(item: any) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<a-switch v-model:checked="formState.public.passkeyEnabled" :disabled="!settingsStore.isPlus" :title="t('certd.plusFeature')" />
|
||||
<vip-button class="ml-5" mode="button"></vip-button>
|
||||
</div>
|
||||
<pre class="helper">{{ t("certd.sys.setting.passkeyEnabledHelper", [bindDomain]) }}</pre>
|
||||
<pre class="helper pre">{{ t("certd.sys.setting.passkeyEnabledHelper", [bindDomain]) }}</pre>
|
||||
<div v-if="!bindDomainIsSame" class="text-red-500 text-sm mt-2">
|
||||
{{ t("certd.sys.setting.passkeyHostnameNotSame") }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user