Skip to content

Let's use AI to Earn!

fix: 文件更名,报错处理

gaoSir5180e439d7d3
diff --git a/src/app/[lng]/publish/components/ChooseAccountModule/ChooseAccountModule.tsx b/src/app/[lng]/publish/components/ChooseAccountModule/ChooseAccountModule.tsx
index 70115c3a..76ee7161 100644
--- a/src/app/[lng]/publish/components/ChooseAccountModule/ChooseAccountModule.tsx
+++ b/src/app/[lng]/publish/components/ChooseAccountModule/ChooseAccountModule.tsx
@@ -8,7 +8,7 @@ import {
useState,
} from "react";
import { Modal, Tabs } from "antd";
-import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage";
+import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage.type";
import PlatChoose, {
IPlatChooseProps,
IPlatChooseRef,
diff --git a/src/app/[lng]/publish/components/ChooseAccountModule/components/PlatChoose.tsx b/src/app/[lng]/publish/components/ChooseAccountModule/components/PlatChoose.tsx
index b7989794..06e4b838 100644
--- a/src/app/[lng]/publish/components/ChooseAccountModule/components/PlatChoose.tsx
+++ b/src/app/[lng]/publish/components/ChooseAccountModule/components/PlatChoose.tsx
@@ -24,7 +24,7 @@ import useCssVariables from "@/app/hooks/useCssVariables";
import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";
import { PubType } from "@/app/config/publishConfig";
import { useAccountStore } from "@/store/account";
-import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage";
+import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage.type";
import Link from "next/link";
export interface IPlatChooseRef {
diff --git a/src/app/[lng]/publish/components/CommonComponents/CommonComponents.tsx b/src/app/[lng]/publish/components/CommonComponents/CommonComponents.tsx
index 690ef141..1d139727 100644
--- a/src/app/[lng]/publish/components/CommonComponents/CommonComponents.tsx
+++ b/src/app/[lng]/publish/components/CommonComponents/CommonComponents.tsx
@@ -3,7 +3,7 @@ import styles from "./commonComponents.module.scss";
import React, { ReactNode, useEffect, useState } from "react";
import { PlusOutlined, UserAddOutlined } from "@ant-design/icons";
import { AccountStatus } from "@/app/config/accountConfig";
-import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage";
+import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage.type";
import { VisibleTypeEnum } from "@/app/config/publishConfig";
import { IMixItem } from "@/app/plat/plat.type";
diff --git a/src/app/[lng]/publish/components/CommonComponents/CommonLocationSelect.tsx b/src/app/[lng]/publish/components/CommonComponents/CommonLocationSelect.tsx
index e4b19831..d40d44b9 100644
--- a/src/app/[lng]/publish/components/CommonComponents/CommonLocationSelect.tsx
+++ b/src/app/[lng]/publish/components/CommonComponents/CommonLocationSelect.tsx
@@ -5,7 +5,7 @@ import useDebounceFetcher from "@/app/[lng]/publish/videoPage/components/VideoPu
import {
AccountInfo,
ILocationDataItem,
-} from "@/app/[lng]/publish/videoPage/videoPage";
+} from "@/app/[lng]/publish/videoPage/videoPage.type";
interface CommonLocationSelectProps<ValueType = any>
extends Omit<SelectProps<ValueType | ValueType[]>, "options" | "children"> {
diff --git a/src/app/[lng]/publish/components/CommonComponents/CommonTopicSelect.tsx b/src/app/[lng]/publish/components/CommonComponents/CommonTopicSelect.tsx
index 4425dfbc..0708d8fc 100644
--- a/src/app/[lng]/publish/components/CommonComponents/CommonTopicSelect.tsx
+++ b/src/app/[lng]/publish/components/CommonComponents/CommonTopicSelect.tsx
@@ -3,7 +3,7 @@ import { SelectProps } from "antd";
import { Select, Spin } from "antd";
import styles from "./commonComponents.module.scss";
import useDebounceFetcher from "@/app/[lng]/publish/videoPage/components/VideoPubSetModal/components/useDebounceFetcher";
-import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage";
+import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage.type";
export interface CommonTopicSelectProps<ValueType = any>
extends Omit<SelectProps<ValueType | ValueType[]>, "options" | "children"> {
diff --git a/src/app/[lng]/publish/components/CommonComponents/CommonUserSelect.tsx b/src/app/[lng]/publish/components/CommonComponents/CommonUserSelect.tsx
index d9115096..29a058e1 100644
--- a/src/app/[lng]/publish/components/CommonComponents/CommonUserSelect.tsx
+++ b/src/app/[lng]/publish/components/CommonComponents/CommonUserSelect.tsx
@@ -4,7 +4,7 @@ import styles from "./commonComponents.module.scss";
import { describeNumber } from "@/utils";
import { IUsersItem } from "@/app/plat/plat.type";
import useDebounceFetcher from "@/app/[lng]/publish/videoPage/components/VideoPubSetModal/components/useDebounceFetcher";
-import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage";
+import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage.type";
export interface CommonUserSelectProps<ValueType = any>
extends Omit<SelectProps<ValueType | ValueType[]>, "options" | "children"> {
diff --git a/src/app/[lng]/publish/components/CommonComponents/DouyinCommonComponents.tsx b/src/app/[lng]/publish/components/CommonComponents/DouyinCommonComponents.tsx
index a08711ad..ee56ed25 100644
--- a/src/app/[lng]/publish/components/CommonComponents/DouyinCommonComponents.tsx
+++ b/src/app/[lng]/publish/components/CommonComponents/DouyinCommonComponents.tsx
@@ -24,7 +24,7 @@ import { describeNumber } from "@/utils";
import {
AccountInfo,
ILableValue,
-} from "@/app/[lng]/publish/videoPage/videoPage";
+} from "@/app/[lng]/publish/videoPage/videoPage.type";
import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";
interface DouyinCommonComponentsProps
diff --git a/src/app/[lng]/publish/components/PubAccountDetModule/PubAccountDetModule.tsx b/src/app/[lng]/publish/components/PubAccountDetModule/PubAccountDetModule.tsx
index 4a8b552a..6ff3c33d 100644
--- a/src/app/[lng]/publish/components/PubAccountDetModule/PubAccountDetModule.tsx
+++ b/src/app/[lng]/publish/components/PubAccountDetModule/PubAccountDetModule.tsx
@@ -13,7 +13,7 @@ import { LoadingOutlined } from "@ant-design/icons";
import { AvatarPlat } from "../PubProgressModule/PubProgressModule";
import { useAccountStore } from "@/store/account";
import { useShallow } from "zustand/react/shallow";
-import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage";
+import { AccountInfo } from "@/app/[lng]/publish/videoPage/videoPage.type";
import { AccountGroupItem } from "@/api/types/account.type";
export interface IPubAccountDetModuleRef {
diff --git a/src/app/[lng]/publish/components/PublishSidebar.tsx b/src/app/[lng]/publish/components/PublishSidebar.tsx
index 7edf6aad..18618afd 100644
--- a/src/app/[lng]/publish/components/PublishSidebar.tsx
+++ b/src/app/[lng]/publish/components/PublishSidebar.tsx
@@ -31,7 +31,7 @@ const PublishSidebar = memo(
options={[
{
label: "视频发布",
- value: "imagePage",
+ value: "videoPage",
icon: <VideoCameraOutlined />,
},
// { label: '文章发布', value: '/publish/text', icon: <FileOutlined /> },
diff --git a/src/app/[lng]/publish/hooks/usePubParamsVerify.tsx b/src/app/[lng]/publish/hooks/usePubParamsVerify.tsx
index 9d132686..8ae59c48 100644
--- a/src/app/[lng]/publish/hooks/usePubParamsVerify.tsx
+++ b/src/app/[lng]/publish/hooks/usePubParamsVerify.tsx
@@ -5,7 +5,7 @@ import { InfoCircleOutlined } from "@ant-design/icons";
import {
AccountInfo,
IPubParams,
-} from "@/app/[lng]/publish/videoPage/videoPage";
+} from "@/app/[lng]/publish/videoPage/videoPage.type";
import {
AccountPlatInfoMap,
IAccountPlatInfo,
diff --git a/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx b/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx
index 84111f24..b5720c67 100644
--- a/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx
+++ b/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx
@@ -6,7 +6,7 @@ import { useImagePlatParams } from "./children/hooks/useImagePlatParams";
import { QuestionCircleOutlined } from "@ant-design/icons";
import dayjs from "dayjs";
import { VideoPubRestartLogin } from "../../../../videoPage/components/VideoPubSetModal/components/VideoPubSetModalCommon";
-import { ILocationDataItem } from "@/app/[lng]/publish/videoPage/videoPage";
+import { ILocationDataItem } from "@/app/[lng]/publish/videoPage/videoPage.type";
import { IMixItem, IUsersItem } from "@/app/plat/plat.type";
import CommonLocationSelect from "@/app/[lng]/publish/components/CommonComponents/CommonLocationSelect";
import CommonTopicSelect, {
diff --git a/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx b/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx
index ebacec4f..33f73d14 100644
--- a/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx
+++ b/src/app/[lng]/publish/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx
@@ -19,7 +19,7 @@ import {
CommonHotspotSelect,
} from "@/app/[lng]/publish/components/CommonComponents/DouyinCommonComponents";
import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";
-import { ILableValue } from "@/app/[lng]/publish/videoPage/videoPage";
+import { ILableValue } from "@/app/[lng]/publish/videoPage/videoPage.type";
const HotspotSelect = () => {
const { imageAccountItem } = useImagePlatParams();
diff --git a/src/app/[lng]/publish/imagePage/imagePage.type.ts b/src/app/[lng]/publish/imagePage/imagePage.type.ts
index 48fdc04e..3cb9b5f0 100644
--- a/src/app/[lng]/publish/imagePage/imagePage.type.ts
+++ b/src/app/[lng]/publish/imagePage/imagePage.type.ts
@@ -1,4 +1,4 @@
-import { IPubParams } from "../videoPage/videoPage";
+import { IPubParams } from "../videoPage/videoPage.type";
import { SocialAccount } from "@/api/types/account.type";
export interface IImageAccountItem {
diff --git a/src/app/[lng]/publish/imagePage/useImagePageStore.ts b/src/app/[lng]/publish/imagePage/useImagePageStore.ts
index dc912ac1..a4da1ede 100644
--- a/src/app/[lng]/publish/imagePage/useImagePageStore.ts
+++ b/src/app/[lng]/publish/imagePage/useImagePageStore.ts
@@ -4,7 +4,7 @@ import { IImgFile } from "../components/Choose/ImgChoose";
import { IImageAccountItem } from "./imagePage.type";
import lodash from "lodash";
import { useVideoPageStore } from "../videoPage/useVideoPageStore";
-import { AccountInfo, IPubParams } from "../videoPage/videoPage";
+import { AccountInfo, IPubParams } from "../videoPage/videoPage.type";
import { message } from "antd";
import { PlatType } from "@/app/config/platConfig";
import { ErrPubParamsMapType } from "@/app/[lng]/publish/hooks/usePubParamsVerify";
diff --git a/src/app/[lng]/publish/page.tsx b/src/app/[lng]/publish/page.tsx
index 7d1e0b71..f4f4fde6 100644
--- a/src/app/[lng]/publish/page.tsx
+++ b/src/app/[lng]/publish/page.tsx
@@ -1,3 +1,5 @@
+import { redirect } from "next/navigation";
+
export default function Page() {
- return <></>;
+ redirect("/publish/videoPage");
}
diff --git a/src/app/[lng]/publish/publish.module.scss b/src/app/[lng]/publish/publish.module.scss
index 2abb36ea..70443bf8 100644
--- a/src/app/[lng]/publish/publish.module.scss
+++ b/src/app/[lng]/publish/publish.module.scss
@@ -1,7 +1,7 @@
.publish {
width: 100%;
- height: 100%;
display: flex;
+ @include height_100vh;
:global {
.ant-segmented {
diff --git a/src/app/[lng]/publish/videoPage/components/VideoChooseItem.tsx b/src/app/[lng]/publish/videoPage/components/VideoChooseItem.tsx
index 6c20610b..6f826edb 100644
--- a/src/app/[lng]/publish/videoPage/components/VideoChooseItem.tsx
+++ b/src/app/[lng]/publish/videoPage/components/VideoChooseItem.tsx
@@ -13,7 +13,7 @@ import { useVideoPageStore } from "@/app/[lng]/publish/videoPage/useVideoPageSto
import { useShallow } from "zustand/react/shallow";
import { formatSeconds } from "@/utils";
import { AccountChooseType } from "../page";
-import { IVideoChooseItem } from "@/app/[lng]/publish/videoPage/videoPage";
+import { IVideoChooseItem } from "@/app/[lng]/publish/videoPage/videoPage.type";
import { AccountStatus } from "@/app/config/accountConfig";
import VideoChoose from "@/app/[lng]/publish/components/Choose/VideoChoose";
import { AccountPlatInfoMap } from "@/app/config/platConfig";
diff --git a/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx b/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx
index ea39b74c..5719e30c 100644
--- a/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx
+++ b/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx
@@ -26,7 +26,7 @@ import {
import {
DeclarationDouyin,
ILableValue,
-} from "@/app/[lng]/publish/videoPage/videoPage";
+} from "@/app/[lng]/publish/videoPage/videoPage.type";
const HotspotSelect = ({}: IVideoPubSetModalChildProps) => {
const { setOnePubParams, currChooseAccount } = useVideoPageStore(
diff --git a/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/components/LocationSelect.tsx b/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/components/LocationSelect.tsx
index 4a9ea78f..ab718fe5 100644
--- a/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/components/LocationSelect.tsx
+++ b/src/app/[lng]/publish/videoPage/components/VideoPubSetModal/components/LocationSelect.tsx
@@ -4,7 +4,7 @@ import { useVideoPageStore } from "../../../useVideoPageStore";
import { useShallow } from "zustand/react/shallow";
import { VideoPubRestartLogin } from "./VideoPubSetModalCommon";
import useVideoPubSetModal from "../children/hooks/useVideoPubSetModal";
-import { ILocationDataItem } from "@/app/[lng]/publish/videoPage/videoPage";
+import { ILocationDataItem } from "@/app/[lng]/publish/videoPage/videoPage.type";
import CommonLocationSelect from "@/app/[lng]/publish/components/CommonComponents/CommonLocationSelect";
interface DebounceSelectProps<ValueType = any>
diff --git a/src/app/[lng]/publish/videoPage/page.tsx b/src/app/[lng]/publish/videoPage/page.tsx
index 91c4ac0f..19e281c9 100644
--- a/src/app/[lng]/publish/videoPage/page.tsx
+++ b/src/app/[lng]/publish/videoPage/page.tsx
@@ -14,7 +14,7 @@ import { PubType } from "@/app/config/publishConfig";
import VideoChooseItem from "@/app/[lng]/publish/videoPage/components/VideoChooseItem";
import CommonPubSetting from "@/app/[lng]/publish/videoPage/components/CommonPubSetting";
import VideoPubSetModal from "@/app/[lng]/publish/videoPage/components/VideoPubSetModal/VideoPubSetModal";
-import { IVideoChooseItem } from "@/app/[lng]/publish/videoPage/videoPage";
+import { IVideoChooseItem } from "@/app/[lng]/publish/videoPage/videoPage.type";
import { useEffect, useRef, useState } from "react";
export enum AccountChooseType {
diff --git a/src/app/[lng]/publish/videoPage/useVideoPageStore.ts b/src/app/[lng]/publish/videoPage/useVideoPageStore.ts
index b48d0716..d686f056 100644
--- a/src/app/[lng]/publish/videoPage/useVideoPageStore.ts
+++ b/src/app/[lng]/publish/videoPage/useVideoPageStore.ts
@@ -6,7 +6,7 @@ import { useAICreateTitleStore } from "../components/AICreateTitle/useAICreateTi
import {
IPubParams,
IVideoChooseItem,
-} from "@/app/[lng]/publish/videoPage/videoPage";
+} from "@/app/[lng]/publish/videoPage/videoPage.type";
import { SocialAccount } from "@/api/types/account.type";
import { PlatType } from "@/app/config/platConfig";
import { VisibleTypeEnum } from "@/app/config/publishConfig";
diff --git a/src/app/[lng]/publish/videoPage/videoPage.d.ts b/src/app/[lng]/publish/videoPage/videoPage.type.ts
similarity index 97%
rename from src/app/[lng]/publish/videoPage/videoPage.d.ts
rename to src/app/[lng]/publish/videoPage/videoPage.type.ts
index 9cc85436..6489d2b8 100644
--- a/src/app/[lng]/publish/videoPage/videoPage.d.ts
+++ b/src/app/[lng]/publish/videoPage/videoPage.type.ts
@@ -1,8 +1,8 @@
import { SocialAccount } from "@/api/types/account.type";
import { PlatType } from "@/app/config/platConfig";
-import { IImgFile } from "@/app/[lng]/publish/imagePage/imagePage.type";
import { VisibleTypeEnum } from "@/app/config/publishConfig";
import { IVideoFile } from "@/app/[lng]/publish/components/Choose/VideoChoose";
+import { IImgFile } from "@/app/[lng]/publish/components/Choose/ImgChoose";
// 微信视频号活动
export interface WxSphEvent {
diff --git a/src/app/var.css b/src/app/var.css
index 85ad3141..3a1404c1 100644
--- a/src/app/var.css
+++ b/src/app/var.css
@@ -71,7 +71,7 @@
/* 其它颜色 */
--text-color: #1f2937;
--border-color: #e5e7eb;
- --background-color: #f9fafb;
+ --background-color: #fff;
--card-background: #fff;
/* 错误颜色 */
--error-color: #ef4444;