Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
chore: 更名
gaoSir8e6896752ab8
diff --git a/electron/db/models/account.ts b/electron/db/models/account.tsindex ef6cf318..e2ed0182 100644--- a/electron/db/models/account.ts+++ b/electron/db/models/account.ts@@ -7,7 +7,11 @@*/import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';import { TempModel } from './temp';-import {AccountStatus, PlatType, XhsAccountAbnormal} from '../../../commont/AccountEnum';+import {+ AccountStatus,+ PlatType,+ XhsAccountAbnormal,+} from '../../../commont/AccountEnum';@Entity({ name: 'account' })export class AccountModel extends TempModel {diff --git a/src/App.tsx b/src/App.tsxindex d515242c..3798234b 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -11,7 +11,7 @@ import router from '@/router/index';import { ConfigProvider, notification } from 'antd';import Inform from './components/Inform';import { useEffect } from 'react';-import { useAccountStore } from './store/commont';+import { useCommontStore } from './store/commont';const App = () => {const [api, contextHolder] = notification.useNotification({@@ -19,7 +19,7 @@ const App = () => {});useEffect(() => {- useAccountStore.getState().setNotification(api);+ useCommontStore.getState().setNotification(api);}, []);return (diff --git a/src/store/commont.ts b/src/store/commont.tsindex 69d59020..19351ab6 100644--- a/src/store/commont.ts+++ b/src/store/commont.ts@@ -12,7 +12,7 @@ const store: ICommontStore = {};// 项目中的通用的、全局的状态和方法-export const useAccountStore = create(+export const useCommontStore = create(combine({...store,diff --git a/src/store/pubStroe.ts b/src/store/pubStroe.tsindex 2029e67c..09aba5ee 100644--- a/src/store/pubStroe.ts+++ b/src/store/pubStroe.ts@@ -1,13 +1,13 @@import { createPersistStore } from '@/utils/createPersistStore';import { StoreKey } from '@/utils/StroeEnum';-import { IVideoPageStore } from '../views/publish/children/videoPage/useVideoPageStore';+import { IVideoPageStore } from '@/views/publish/children/videoPage/useVideoPageStore';import {IPubParams,IVideoChooseItem,-} from '../views/publish/children/videoPage/videoPage';-import { IImagePageStore } from '../views/publish/children/imagePage/useImagePageStore';-import { IImgFile } from '../components/Choose/ImgChoose';-import { IImageAccountItem } from '../views/publish/children/imagePage/imagePage.type';+} from '@/views/publish/children/videoPage/videoPage';+import { IImagePageStore } from '@/views/publish/children/imagePage/useImagePageStore';+import { IImgFile } from '@/components/Choose/ImgChoose';+import { IImageAccountItem } from '@/views/publish/children/imagePage/imagePage.type';export interface IPubStore {// 视频发布保存的数据diff --git a/src/views/publish/children/imagePage/page.tsx b/src/views/publish/children/imagePage/page.tsxindex 22b5d6ba..06760002 100644--- a/src/views/publish/children/imagePage/page.tsx+++ b/src/views/publish/children/imagePage/page.tsx@@ -20,7 +20,7 @@ import {icpPubImgText,} from '@/icp/publish';import { PubType } from '@@/publish/PublishEnum';-import { useAccountStore } from '@/store/commont';+import { useCommontStore } from '@/store/commont';import { useNavigate } from 'react-router-dom';import { usePubStroe } from '@/store/pubStroe';import { ExclamationCircleFilled } from '@ant-design/icons';@@ -166,7 +166,7 @@ export default function Page() {setPubProgressModuleOpen(false);usePubStroe.getState().clearImgTextPubSave();const successList = okRes.filter((v) => v.code === 1);- useAccountStore.getState().notification!.open({+ useCommontStore.getState().notification!.open({message: '发布结果',description: (<>diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/VideoPubSetModal.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/VideoPubSetModal.tsxindex 6dc6d295..19fd31ed 100644--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/VideoPubSetModal.tsx+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/VideoPubSetModal.tsx@@ -48,7 +48,7 @@ import usePubParamsVerify, {PubParamsErrStatusEnum,PubParamsVerifyInfo,} from '../../../../hooks/usePubParamsVerify';-import { useAccountStore } from '../../../../../../store/commont';+import { useCommontStore } from '../../../../../../store/commont';import { IVideoFile } from '../../../../../../components/Choose/VideoChoose';import {NoticeItem,@@ -274,7 +274,7 @@ const VideoPubSetModal = memo(addNotice(NoticeType.PubNotice, noticeList);setTimeout(() => {- useAccountStore.getState().notification!.open({+ useCommontStore.getState().notification!.open({message: '发布结果',description: (<>diff --git a/src/views/publish/children/videoPage/page.tsx b/src/views/publish/children/videoPage/page.tsxindex 01f2b67f..f9e6f368 100644--- a/src/views/publish/children/videoPage/page.tsx+++ b/src/views/publish/children/videoPage/page.tsx@@ -15,7 +15,7 @@ import { PubType } from '@@/publish/PublishEnum';import VideoChooseItem from '@/views/publish/children/videoPage/components/VideoChooseItem';import CommonPubSetting from '@/views/publish/children/videoPage/components/CommonPubSetting';import VideoPubSetModal from '@/views/publish/children/videoPage/components/VideoPubSetModal/VideoPubSetModal';-import { usePubStroe } from '../../../../store/pubStroe';+import { usePubStroe } from '@/store/pubStroe';import { IVideoChooseItem } from '@/views/publish/children/videoPage/videoPage';import { toolsApi } from '@/api/tools';import { sensitivityLoading } from '@/utils';diff --git a/src/views/task/articleTask.tsx b/src/views/task/articleTask.tsxindex acdbff46..76ea2376 100644--- a/src/views/task/articleTask.tsx+++ b/src/views/task/articleTask.tsx@@ -35,7 +35,7 @@ import { TaskInfoRef } from './components/popInfo';import ChooseAccountModule from '@/views/publish/components/ChooseAccountModule/ChooseAccountModule';import { PubType } from '@@/publish/PublishEnum';import { usePubStroe } from '@/store/pubStroe';-import { useAccountStore } from '@/store/commont';+import { useCommontStore } from '@/store/commont';import { useNavigate } from 'react-router-dom';import { message } from 'antd';import {@@ -281,7 +281,7 @@ export default function ArticleTask() {setPubProgressModuleOpen(false);usePubStroe.getState().clearImgTextPubSave();const successList = okRes.filter((v) => v.code === 1);- useAccountStore.getState().notification!.open({+ useCommontStore.getState().notification!.open({message: '发布结果',description: (<>diff --git a/src/views/task/task.tsx b/src/views/task/task.tsxindex 656fcf3c..e77086cc 100644--- a/src/views/task/task.tsx+++ b/src/views/task/task.tsx@@ -57,7 +57,7 @@ import {icpPubImgText,} from '@/icp/publish';import { usePubStroe } from '@/store/pubStroe';-import { useAccountStore } from '@/store/commont';+import { useCommontStore } from '@/store/commont';// 导入平台图标import KwaiIcon from '../../assets/svgs/account/ks.svg';@@ -558,7 +558,7 @@ export default function Task() {setModalVisible(false);usePubStroe.getState().clearImgTextPubSave();const successList = okRes.filter((v) => v.code === 1);- useAccountStore.getState().notification!.open({+ useCommontStore.getState().notification!.open({message: '发布结果',description: (<>