Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 添加b站icon
gaoSirf7653a542891
diff --git a/.idea/workspace.xml b/.idea/workspace.xmlindex a50b74f4..98bb7c26 100644--- a/.idea/workspace.xml+++ b/.idea/workspace.xml@@ -4,10 +4,10 @@<option name="autoReloadType" value="SELECTIVE" /></component><component name="ChangeListManager">- <list default="true" id="90ed3383-49aa-4e32-95a2-9f070c0da49b" name="更改" comment="feat: 发布弹框左右两侧显示隐藏过渡动画完成">+ <list default="true" id="90ed3383-49aa-4e32-95a2-9f070c0da49b" name="更改" comment="feat: 日历样式调整">+ <change afterPath="$PROJECT_DIR$/src/assets/svgs/plat/bilibili.svg" afterDir="false" /><change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.module.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.module.scss" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/index.tsx" afterDir="false" />+ <change beforePath="$PROJECT_DIR$/src/app/config/platConfig.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/config/platConfig.ts" afterDir="false" /><change beforePath="$PROJECT_DIR$/src/components/PublishDialog/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/index.tsx" afterDir="false" /><change beforePath="$PROJECT_DIR$/src/components/PublishDialog/publishDialog.module.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/publishDialog.module.scss" afterDir="false" /></list>@@ -74,6 +74,11 @@</map></option></component>+ <component name="RecentsManager">+ <key name="MoveFile.RECENT_KEYS">+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\assets\svgs\plat" />+ </key>+ </component><component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" /><component name="TaskManager"><task active="true" id="Default" summary="默认任务">@@ -90,7 +95,7 @@<workItem from="1750763285511" duration="48000" /><workItem from="1750763342070" duration="32000" /><workItem from="1750763376065" duration="41000" />- <workItem from="1750763426455" duration="967000" />+ <workItem from="1750763426455" duration="1460000" /></task><task id="LOCAL-00001" summary="feat: 日历完善"><option name="closed" value="true" />@@ -132,7 +137,15 @@<option name="project" value="LOCAL" /><updated>1750759876887</updated></task>- <option name="localTasksCounter" value="6" />+ <task id="LOCAL-00006" summary="feat: 日历样式调整">+ <option name="closed" value="true" />+ <created>1750764427509</created>+ <option name="number" value="00006" />+ <option name="presentableId" value="LOCAL-00006" />+ <option name="project" value="LOCAL" />+ <updated>1750764427509</updated>+ </task>+ <option name="localTasksCounter" value="7" /><servers /></component><component name="TypeScriptGeneratedFilesManager">@@ -157,6 +170,7 @@<MESSAGE value="fix: 日历调整" /><MESSAGE value="feat: 发布大改" /><MESSAGE value="feat: 发布弹框左右两侧显示隐藏过渡动画完成" />- <option name="LAST_COMMIT_MESSAGE" value="feat: 发布弹框左右两侧显示隐藏过渡动画完成" />+ <MESSAGE value="feat: 日历样式调整" />+ <option name="LAST_COMMIT_MESSAGE" value="feat: 日历样式调整" /></component></project>\ No newline at end of filediff --git a/src/app/config/platConfig.ts b/src/app/config/platConfig.tsindex 81e41793..99b9d4a9 100644--- a/src/app/config/platConfig.ts+++ b/src/app/config/platConfig.ts@@ -1,5 +1,6 @@import { PubType } from "@/app/config/publishConfig";import ksSvg from "@/assets/svgs/plat/ks.svg";+import bilibiliSvg from "@/assets/svgs/plat/bilibili.svg";import youtubeSvg from "@/assets/svgs/plat/youtube.svg";// 平台类型@@ -9,7 +10,7 @@ export enum PlatType {WxSph = "wxSph", // 微信视频号KWAI = "KWAI", // 快手YouTube = "youtube", // YouTube- BILIBILI = 'bilibili', // B站+ BILIBILI = "bilibili", // B站}export interface IAccountPlatInfo {@@ -74,7 +75,7 @@ export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([PlatType.BILIBILI,{name: "B站",- icon: ksSvg.src,+ icon: bilibiliSvg.src,url: "https://cp.kuaishou.com/profile",pubTypes: new Set([PubType.VIDEO]),commonPubParamsConfig: {@@ -86,69 +87,6 @@ export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([},},],- // [- // PlatType.Xhs,- // {- // name: "小红书",- // icon: xhsSvg.src,- // url: "https://creator.xiaohongshu.com/login?source=official",- // // url: 'https://www.xiaohongshu.com/explore',- // pubTypes: PubTypeAll,- // commonPubParamsConfig: {- // timingMax: {- // maxDate: 14,- // timeOffset: 60,- // },- // topicMax: 20,- // titleMax: 20,- // imgTextConfig: {- // imagesMax: 18,- // },- // },- // },- // ],- // [- // PlatType.Douyin,- // {- // name: "抖音",- // icon: douyinSvg.src,- // url: "https://creator.douyin.com/creator-micro/content/upload?enter_from=dou_web",- // pubTypes: PubTypeAll,- // commonPubParamsConfig: {- // timingMax: {- // maxDate: 14,- // timeOffset: 120,- // },- // titleMax: 30,- // topicMax: 5,- // imgTextConfig: {- // imagesMax: 35,- // },- // },- // // tips: {- // // account: '首次登录的抖音号可能会频繁掉线,通常将在重登2-3次后趋于稳定',- // // publish:- // // '首次登录的抖音账号请先在账户单独完成一次内容发布后再做一键发布',- // // },- // },- // ],- // [- // PlatType.WxSph,- // {- // name: "微信视频号",- // icon: wxSphSvg.src,- // url: "https://channels.weixin.qq.com/cgi-bin/mmfinderassistant-bin/helper/hepler_merlin_mmdata?_rid=67b30b55-6e3ea588",- // pubTypes: new Set([PubType.VIDEO]),- // commonPubParamsConfig: {- // timingMax: {- // maxDate: 30,- // timeOffset: 60,- // },- // titleMax: 16,- // topicMax: 10,- // },- // },- // ],[PlatType.YouTube,{diff --git a/src/assets/svgs/plat/bilibili.svg b/src/assets/svgs/plat/bilibili.svgnew file mode 100644index 00000000..2d4649a7--- /dev/null+++ b/src/assets/svgs/plat/bilibili.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><style>.a{fill:#f06198;}.b{fill:#fff;}</style></defs><g transform="translate(-1001.8 -1347)"><rect class="a" width="20" height="20" rx="4" transform="translate(1001.8 1347)"/><path class="b" d="M13.318,2.419a3.731,3.731,0,0,1,.414-.045,7.76,7.76,0,0,1,.139,1.177c-.041.008-.335.075-.335.075-.023-.154-.214-1.109-.218-1.207m.564-.109.154,1.222c.079,0,.4-.026.429-.03-.045-.462-.124-1.192-.124-1.192a1.177,1.177,0,0,0-.459,0m-.3,1.7a2.668,2.668,0,0,1,.948-.09c.128.462.361,3.057.384,3.162-.158.019-.677.064-.718.075-.034-.2-.613-3.023-.613-3.147m2.576-1.557a4.057,4.057,0,0,1,.414-.011,9.6,9.6,0,0,1,0,1.184l-.335.03c-.008-.15-.09-1.1-.083-1.2m.568-.03.03,1.207c.079,0,.395.019.429.015-.008-.462,0-1.192,0-1.192a2.077,2.077,0,0,0-.459-.03M16.235,4.04a2.713,2.713,0,0,1,.951.019c.053.541.045,3.064.053,3.17-.162,0-.677.008-.718.015-.008-.2-.3-3.079-.286-3.2M14.585.938c.41,2.091.722,5.662.733,5.892,0,0,.323.008.688.03-.214-2.252-.478-5.85-.474-5.967-.09-.1-.948.045-.948.045m-.9,4.944C13.6,5.3,11.505,4.63,10.325,4.844c0,0-.147-1.293-.2-2.545-.049-1.075-.008-2.121,0-2.294A8.907,8.907,0,0,0,8.738.524a54.272,54.272,0,0,1,.948,7.144,6.468,6.468,0,0,0,1.726-.143c1.09-.211,2.38-.869,2.271-1.643M11.118,6.938l-.184-1.327a9.61,9.61,0,0,1,1.3.474,12.094,12.094,0,0,1-1.113.854M4.58,2.419a3.731,3.731,0,0,1,.414-.045,7.76,7.76,0,0,1,.139,1.177c-.041.008-.335.075-.335.075-.023-.154-.214-1.109-.218-1.207m.564-.109L5.3,3.532c.079,0,.4-.026.429-.03C5.678,3.039,5.6,2.31,5.6,2.31a1.177,1.177,0,0,0-.459,0m-.3,1.7a2.668,2.668,0,0,1,.948-.09c.128.462.361,3.057.384,3.162-.158.019-.677.064-.718.075-.034-.2-.613-3.023-.613-3.147M7.415,2.449a4.057,4.057,0,0,1,.414-.011,9.6,9.6,0,0,1,0,1.184l-.335.03c-.008-.15-.086-1.1-.083-1.2m.568-.03.03,1.207c.079,0,.395.019.429.015-.008-.462,0-1.192,0-1.192a2.333,2.333,0,0,0-.459-.03M7.5,4.04a2.713,2.713,0,0,1,.951.019c.053.541.045,3.064.053,3.17-.162,0-.677.008-.718.015,0-.2-.3-3.079-.286-3.2M5.847.938c.41,2.091.722,5.662.733,5.892,0,0,.323.008.688.03C7.054,4.607,6.79,1.009,6.794.889c-.09-.1-.948.049-.948.049m-.9,4.944C4.865,5.3,2.767,4.63,1.587,4.844c0,0-.147-1.293-.2-2.545-.049-1.075-.008-2.121,0-2.294A9.326,9.326,0,0,0,0,.524,54.272,54.272,0,0,1,.948,7.668a6.468,6.468,0,0,0,1.726-.143c1.09-.211,2.38-.869,2.271-1.643M2.38,6.938,2.2,5.611a9.61,9.61,0,0,1,1.3.474,12.094,12.094,0,0,1-1.113.854" transform="translate(1003.324 1353.161)"/></g></svg>\ No newline at end of filediff --git a/src/components/PublishDialog/index.tsx b/src/components/PublishDialog/index.tsxindex 83214b17..16c8388c 100644--- a/src/components/PublishDialog/index.tsx+++ b/src/components/PublishDialog/index.tsx@@ -71,7 +71,16 @@ const PublishDialog = memo(<span className="publishDialog-con-head-title">发布作品</span></div><div className="publishDialog-con-acconts">-+ {accounts.map((account) => {+ return (+ <div+ className="publishDialog-con-acconts-item"+ key={account.id}+ >+ 1+ </div>+ );+ })}</div></div><div className="publishDialog-footer">diff --git a/src/components/PublishDialog/publishDialog.module.scss b/src/components/PublishDialog/publishDialog.module.scssindex 834970fd..4372f123 100644--- a/src/components/PublishDialog/publishDialog.module.scss+++ b/src/components/PublishDialog/publishDialog.module.scss@@ -25,12 +25,15 @@ $assistantWidth: 250px;display: flex;align-items: center;justify-content: space-between;- margin-bottom: 40px;+ margin-bottom: 30px;&-title {font-weight: 600;font-size: var(--fs-md);}}+ &-acconts {++ }}.publishDialog-footer {display: flex;