mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
perf: icon选择器增加一套logo集
This commit is contained in:
@@ -48,7 +48,7 @@ async function handleOauthToken() {
|
|||||||
//登录成功
|
//登录成功
|
||||||
userStore.onLoginSuccess(res);
|
userStore.onLoginSuccess(res);
|
||||||
//跳转到首页
|
//跳转到首页
|
||||||
router.replace("/");
|
router.replace("/index");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.bindRequired) {
|
if (res.bindRequired) {
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
export const IconSets = [
|
||||||
|
"streamline-logos",
|
||||||
|
"logos",
|
||||||
|
"fa-brands",
|
||||||
|
"fa-solid",
|
||||||
|
"fa-regular",
|
||||||
|
"carbon",
|
||||||
|
"ion",
|
||||||
|
"ant-design",
|
||||||
|
"mdi",
|
||||||
|
"twemoji",
|
||||||
|
"svg-spinners"
|
||||||
|
]
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import { AddonInput, BaseAddon, IsAddon } from "@certd/lib-server";
|
import { AddonInput, BaseAddon, IsAddon } from "@certd/lib-server";
|
||||||
import { BuildLoginUrlReq, BuildLogoutUrlReq, IOauthProvider, OnCallbackReq } from "../api.js";
|
import { BuildLoginUrlReq, BuildLogoutUrlReq, IOauthProvider, OnCallbackReq } from "../api.js";
|
||||||
|
import { IconSets } from "../iconsets.js";
|
||||||
|
|
||||||
@IsAddon({
|
@IsAddon({
|
||||||
addonType: "oauth",
|
addonType: "oauth",
|
||||||
@@ -47,7 +48,8 @@ export class CloginOauthProvider extends BaseAddon implements IOauthProvider {
|
|||||||
title: "自定义图标",
|
title: "自定义图标",
|
||||||
component: {
|
component: {
|
||||||
name:"fs-icon-selector",
|
name:"fs-icon-selector",
|
||||||
vModel:"modelValue"
|
vModel:"modelValue",
|
||||||
|
iconSets: IconSets,
|
||||||
},
|
},
|
||||||
required: false,
|
required: false,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { AddonInput, BaseAddon, IsAddon } from "@certd/lib-server";
|
import { AddonInput, BaseAddon, IsAddon } from "@certd/lib-server";
|
||||||
import { BuildLoginUrlReq, BuildLogoutUrlReq, IOauthProvider, OnCallbackReq } from "../api.js";
|
import { BuildLoginUrlReq, BuildLogoutUrlReq, IOauthProvider, OnCallbackReq } from "../api.js";
|
||||||
|
import { IconSets } from "../iconsets.js";
|
||||||
|
|
||||||
@IsAddon({
|
@IsAddon({
|
||||||
addonType: "oauth",
|
addonType: "oauth",
|
||||||
@@ -15,7 +16,8 @@ export class OidcOauthProvider extends BaseAddon implements IOauthProvider {
|
|||||||
title: "自定义图标",
|
title: "自定义图标",
|
||||||
component: {
|
component: {
|
||||||
name:"fs-icon-selector",
|
name:"fs-icon-selector",
|
||||||
vModel:"modelValue"
|
vModel:"modelValue",
|
||||||
|
iconSets: IconSets,
|
||||||
},
|
},
|
||||||
required: false,
|
required: false,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user