Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 删除不需要的文件
gaoSir7f108ae983f0
diff --git a/.idea/workspace.xml b/.idea/workspace.xmlindex 61cd878a..d5762304 100644--- a/.idea/workspace.xml+++ b/.idea/workspace.xml@@ -4,14 +4,11 @@<option name="autoReloadType" value="SELECTIVE" /></component><component name="ChangeListManager">- <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="fix(日历): 解决一个诡异的bug,日历,拖动发布记录时,拖到比当前时间小的日历正常显示,拖到比当前时间大的日历时间会盖住发布记录。">+ <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="fix: 快手授权修改完成,改为任务"><change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/api/bilibili.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/bilibili.ts" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/api/plat/kwai.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/plat/kwai.ts" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/api/plat/types/kwai.types.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/plat/types/kwai.types.ts" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/RecordCore.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/RecordCore.tsx" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/plat/kwaiLogin.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/plat/kwaiLogin.ts" afterDir="false" />+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/add/accountAdd.module.scss" beforeDir="false" />+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/add/page.tsx" beforeDir="false" />+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/AddAccountModal/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/AddAccountModal/index.tsx" afterDir="false" /></list><option name="SHOW_DIALOG" value="false" /><option name="HIGHLIGHT_CONFLICTS" value="true" />@@ -95,7 +92,7 @@<workItem from="1751981060502" duration="18325000" /><workItem from="1752112076161" duration="3845000" /><workItem from="1752118620733" duration="566000" />- <workItem from="1752130881346" duration="8000000" />+ <workItem from="1752130881346" duration="8746000" /></task><task id="LOCAL-00001" summary="feat(CalendarTiming): 优化发布记录列表展示 - 调整日历记录项的样式和布局 - 优化 RecordCore组件,添加平台图标和时间显示 - 修改 CalendarTimingItem 组件,移除不必要的 Fragment -调整 index.tsx 中的日期格式化逻辑"><option name="closed" value="true" />@@ -161,7 +158,15 @@<option name="project" value="LOCAL" /><updated>1752137830379</updated></task>- <option name="localTasksCounter" value="9" />+ <task id="LOCAL-00009" summary="fix: 快手授权修改完成,改为任务">+ <option name="closed" value="true" />+ <created>1752145461148</created>+ <option name="number" value="00009" />+ <option name="presentableId" value="LOCAL-00009" />+ <option name="project" value="LOCAL" />+ <updated>1752145461148</updated>+ </task>+ <option name="localTasksCounter" value="10" /><servers /></component><component name="TypeScriptGeneratedFilesManager">@@ -189,6 +194,7 @@<MESSAGE value="feat(发布弹框): 发布API接入完成" /><MESSAGE value="fix: 修复ts报错问题" /><MESSAGE value="fix(日历): 解决一个诡异的bug,日历,拖动发布记录时,拖到比当前时间小的日历正常显示,拖到比当前时间大的日历时间会盖住发布记录。" />- <option name="LAST_COMMIT_MESSAGE" value="fix(日历): 解决一个诡异的bug,日历,拖动发布记录时,拖到比当前时间小的日历正常显示,拖到比当前时间大的日历时间会盖住发布记录。" />+ <MESSAGE value="fix: 快手授权修改完成,改为任务" />+ <option name="LAST_COMMIT_MESSAGE" value="fix: 快手授权修改完成,改为任务" /></component></project>\ No newline at end of filediff --git a/src/app/[lng]/accounts/add/accountAdd.module.scss b/src/app/[lng]/accounts/add/accountAdd.module.scssdeleted file mode 100644index 190b9d3f..00000000--- a/src/app/[lng]/accounts/add/accountAdd.module.scss+++ /dev/null@@ -1,27 +0,0 @@-.accountAdd {- @include height_100vh;- width: 100%;- display: flex;- align-items: center;- justify-content: center;-- :global {- .accountAdd-success, .accountAdd-fail {- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- color: var(--success-color);- .anticon {- font-size: 60px;- margin-bottom: 10px;- }- &-text {- font-size: var(--fs-lg);- }- }- .accountAdd-fail {- color: var(--error-color);- }- }-}\ No newline at end of filediff --git a/src/app/[lng]/accounts/add/page.tsx b/src/app/[lng]/accounts/add/page.tsxdeleted file mode 100644index 49c5b7e1..00000000--- a/src/app/[lng]/accounts/add/page.tsx+++ /dev/null@@ -1,78 +0,0 @@-"use client";--import { useEffect, useState } from "react";-import styles from "./accountAdd.module.scss";-import { useRouter, useSearchParams } from "next/navigation";-import { PlatType } from "@/app/config/platConfig";-import { kwaiLogin } from "@/app/[lng]/accounts/plat/kwaiLogin";-import { Spin } from "antd";-import { CheckCircleOutlined, CloseCircleOutlined } from "@ant-design/icons";--enum LoginStatusEnum {- // 加载中- Loading = 0,- // 失败- Fail = 1,- // 成功- Success = 2,-}--export default function Page() {- const searchParams = useSearchParams();- const router = useRouter();- const [status, setStatus] = useState(LoginStatusEnum.Loading);-- useEffect(() => {- login();- }, []);-- const login = async () => {- let isSuccess = true;-- switch (searchParams.get("platType") as PlatType) {- case PlatType.KWAI:- const res = await kwaiLogin(searchParams.get("code") as string).catch(- () => (isSuccess = false),- );- if (!res) isSuccess = false;- break;- default:- console.error("没有 search 参数:platType");- router.replace("/accounts");- return;- }-- if (isSuccess) {- setStatus(LoginStatusEnum.Success);- setTimeout(() => {- router.replace("/accounts");- }, 500);- } else {- setStatus(LoginStatusEnum.Fail);- }- };-- return (- <Spin- wrapperClassName={styles.accountAdd}- spinning={status === LoginStatusEnum.Loading}- tip={status === LoginStatusEnum.Loading ? "正在添加账户..." : ""}- >- {" "}- {status === LoginStatusEnum.Success && (- <div className="accountAdd-success">- <CheckCircleOutlined />- <div className="accountAdd-success-text">账号添加成功</div>- </div>- )}- {status === LoginStatusEnum.Fail && (- <div className="accountAdd-fail">- <CloseCircleOutlined />- <div className="accountAdd-success-text">- 账号添加失败,请稍后重试- </div>- </div>- )}- </Spin>- );-}diff --git a/src/app/[lng]/accounts/components/AddAccountModal/index.tsx b/src/app/[lng]/accounts/components/AddAccountModal/index.tsxindex 83aae6bb..a27686f2 100644--- a/src/app/[lng]/accounts/components/AddAccountModal/index.tsx+++ b/src/app/[lng]/accounts/components/AddAccountModal/index.tsx@@ -10,7 +10,6 @@ import { twitterSkip } from "../../plat/TwtterLogin";import { tiktokSkip } from "../../plat/TiktokLogin";import { facebookSkip } from "../../plat/FacebookLogin";-export interface IAddAccountModalRef {}export interface IAddAccountModalProps {@@ -67,10 +66,10 @@ const AddAccountModal = memo(await twitterSkip(key);break;case PlatType.Tiktok:- await tiktokSkip(key);+ await tiktokSkip(key);break;case PlatType.Facebook:- await facebookSkip(key);+ await facebookSkip(key);break;}}}