mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
chore: 增加流水线,授权等文档
This commit is contained in:
@@ -782,7 +782,7 @@ export default {
|
||||
oauthOnlyHelper: "是否仅使用第三方登录,关闭密码登录(注意:请务必在测试第三方登录功能正常后再开启,否则会导致无法登录)\n 如果无法登录,请访问 http://你的certd地址/#/login?oauthOnly=false 来临时关闭此模式",
|
||||
enablePasskey: "启用Passkey登录",
|
||||
passkeyHostnameNotSame: "当前域名与主绑定域名不同",
|
||||
passkeyEnabledHelper: "1、站点必须启用https \n2、域名不要变,否则会导致已注册的passkey失效 \n3、域名以主绑定域名为准,当前主域名:{0}",
|
||||
passkeyEnabledHelper: "1、站点必须启用https \n2、passkey的rpId以主绑定域名为准,当前主域名:{0} \n3、站点域名不能变,否则会导致已注册的passkey失效。",
|
||||
email: {
|
||||
templates: "邮件模板",
|
||||
templateType: "模板类型",
|
||||
|
||||
@@ -21,8 +21,10 @@ div#app {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
pre.pre {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
pre{
|
||||
&.pre,&.helper{
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
|
||||
}
|
||||
}
|
||||
|
||||
h1,
|
||||
|
||||
@@ -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