Skip to content

Commit

Permalink
feat: 新版挂件-发布0.9.0内测版
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jul 31, 2023
1 parent 5a715c4 commit 9b3cb7c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/components/set/publish/platform/dynamicConfig.spec.ts
Expand Up @@ -42,7 +42,7 @@ describe("test dynamicConfig", () => {

it("test getNewPlatformKey", () => {
const ptype = PlatformType.Common
const subtype = SubPlatformType.Custom_CSDN
const subtype = SubPlatformType.Common_Yuque
const result = getNewPlatformKey(ptype, subtype)
console.log("result=>", result)
expect(result).toMatch(/common_Zhihu-\w+/)
Expand Down
8 changes: 4 additions & 4 deletions src/components/set/publish/platform/dynamicConfig.ts
Expand Up @@ -174,10 +174,10 @@ export enum SubPlatformType {

// Custom
Custom_Zhihu = "Zhihu",
// Custom_CSDN = "Csdn",
Custom_CSDN = "Csdn",
Custom_Jianshu = "Jianshu",
Custom_Juejin = "Juejin",
// Custom_Wechat = "Wechat",
Custom_Wechat = "Wechat",

NONE = "none",
}
Expand Down Expand Up @@ -222,10 +222,10 @@ export function getSubtypeList(ptype: PlatformType): SubPlatformType[] {
break
case PlatformType.Custom:
subtypeList.push(SubPlatformType.Custom_Zhihu)
// subtypeList.push(SubPlatformType.Custom_CSDN)
subtypeList.push(SubPlatformType.Custom_CSDN)
subtypeList.push(SubPlatformType.Custom_Jianshu)
subtypeList.push(SubPlatformType.Custom_Juejin)
// subtypeList.push(SubPlatformType.Custom_Wechat)
subtypeList.push(SubPlatformType.Custom_Wechat)
break
default:
break
Expand Down
46 changes: 23 additions & 23 deletions src/utils/import/pre.ts
Expand Up @@ -99,18 +99,18 @@ export const pre = {
domain: "zhihu.com",
isEnabled: false,
},
// // CSDN 目前有CA验证
// {
// platformType: PlatformType.Custom,
// subPlatformType: SubPlatformType.Custom_CSDN,
// platformKey: "custom_Csdn",
// platformName: "CSDN",
// platformIcon: svgIcons.iconIFCSDN,
// authMode: AuthMode.WEBSITE,
// authUrl: "https://passport.csdn.net/login",
// domain: "csdn.net",
// isEnabled: false,
// },
// CSDN 目前有CA验证
{
platformType: PlatformType.Custom,
subPlatformType: SubPlatformType.Custom_CSDN,
platformKey: "custom_Csdn",
platformName: "CSDN",
platformIcon: svgIcons.iconIFCSDN,
authMode: AuthMode.WEBSITE,
authUrl: "https://passport.csdn.net/login",
domain: "csdn.net",
isEnabled: false,
},
{
platformType: PlatformType.Custom,
subPlatformType: SubPlatformType.Custom_Jianshu,
Expand All @@ -133,16 +133,16 @@ export const pre = {
domain: "juejin.cn",
isEnabled: false,
},
// {
// platformType: PlatformType.Custom,
// subPlatformType: SubPlatformType.Custom_Wechat,
// platformKey: "custom_Wechat",
// platformName: "微信公众号",
// platformIcon: svgIcons.iconIFWechat,
// authMode: AuthMode.WEBSITE,
// authUrl: "https://mp.weixin.qq.com/",
// domain: "qq.com",
// isEnabled: false,
// },
{
platformType: PlatformType.Custom,
subPlatformType: SubPlatformType.Custom_Wechat,
platformKey: "custom_Wechat",
platformName: "微信公众号",
platformIcon: svgIcons.iconIFWechat,
authMode: AuthMode.WEBSITE,
authUrl: "https://mp.weixin.qq.com/",
domain: "qq.com",
isEnabled: false,
},
],
}

0 comments on commit 9b3cb7c

Please sign in to comment.