Skip to content

Let's use AI to Earn!

feat: 类型错误修复

gaoSir28157b58b9dc
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 097d1430..a9d8980f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,13 @@
<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="fix: 日历调整">
<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$/@types/resources.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/@types/resources.d.ts" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/demo/demoMaterial.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/demo/demoMaterial.tsx" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/youtube/page.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/youtube/page.tsx" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/i18n/locales/en/youtube.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/i18n/locales/en/youtube.json" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/i18n/locales/zh-CN/youtube.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/i18n/locales/zh-CN/youtube.json" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -25,6 +28,9 @@
<option name="PUSH_AUTO_UPDATE" value="true" />
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
+ <component name="ProblemsViewState">
+ <option name="selectedTabId" value="ProjectErrors" />
+ </component>
<component name="ProjectColorInfo">{
&quot;customColor&quot;: &quot;&quot;,
&quot;associatedIndex&quot;: 0
@@ -37,23 +43,24 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
- <component name="PropertiesComponent">{
- &quot;keyToString&quot;: {
- &quot;ASKED_SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
- &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
- &quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
- &quot;git-widget-placeholder&quot;: &quot;master&quot;,
- &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
- &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
- &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
- &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
- &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
- &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
- &quot;settings.editor.selected.configurable&quot;: &quot;project.propVCSSupport.CommitDialog&quot;,
- &quot;ts.external.directory.path&quot;: &quot;E:\\project-dev\\web\\艺咖\\aitoearn-web\\node_modules\\typescript\\lib&quot;,
- &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
+ <component name="PropertiesComponent"><![CDATA[{
+ "keyToString": {
+ "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "git-widget-placeholder": "master",
+ "ignore.virus.scanning.warn.message": "true",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "run.code.analysis.last.selected.profile": "pProject Default",
+ "settings.editor.selected.configurable": "project.propVCSSupport.CommitDialog",
+ "ts.external.directory.path": "E:\\project-dev\\web\\艺咖\\aitoearn-web\\node_modules\\typescript\\lib",
+ "vue.rearranger.settings.migration": "true"
}
-}</component>
+}]]></component>
<component name="ReactDesignerToolWindowState">
<option name="myId2Visible">
<map>
@@ -78,7 +85,7 @@
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1750677868216</updated>
- <workItem from="1750677869133" duration="5461000" />
+ <workItem from="1750677869133" duration="5869000" />
</task>
<task id="LOCAL-00001" summary="feat: 日历完善">
<option name="closed" value="true" />
@@ -96,7 +103,15 @@
<option name="project" value="LOCAL" />
<updated>1750682966962</updated>
</task>
- <option name="localTasksCounter" value="3" />
+ <task id="LOCAL-00003" summary="fix: 日历调整">
+ <option name="closed" value="true" />
+ <created>1750683522810</created>
+ <option name="number" value="00003" />
+ <option name="presentableId" value="LOCAL-00003" />
+ <option name="project" value="LOCAL" />
+ <updated>1750683522810</updated>
+ </task>
+ <option name="localTasksCounter" value="4" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@@ -117,6 +132,7 @@
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_NEW_TODO" value="false" />
<MESSAGE value="feat: 日历完善" />
- <option name="LAST_COMMIT_MESSAGE" value="feat: 日历完善" />
+ <MESSAGE value="fix: 日历调整" />
+ <option name="LAST_COMMIT_MESSAGE" value="fix: 日历调整" />
</component>
</project>
\ No newline at end of file
diff --git a/@types/resources.d.ts b/@types/resources.d.ts
index 3525ce97..505a2c88 100644
--- a/@types/resources.d.ts
+++ b/@types/resources.d.ts
@@ -95,7 +95,13 @@ interface Resources {
"invalidEmail": "请输入有效的邮箱地址",
"authFailed": "授权失败,请稍后重试",
"checkAuth": "检查授权",
- "notAuthorized": "未授权"
+ "notAuthorized": "未授权",
+ "uploadVideo": "上传视频",
+ "needAuthFirst": "首先需要授权",
+ "uploadFailed": "上传失败",
+ "uploadSuccess": "上传成功",
+ "checkFailed": "检查失败",
+ "alreadyAuthorized": "已授权"
}
}
diff --git a/src/app/[lng]/demo/demoMaterial.tsx b/src/app/[lng]/demo/demoMaterial.tsx
index 4ac0e537..e3938d32 100644
--- a/src/app/[lng]/demo/demoMaterial.tsx
+++ b/src/app/[lng]/demo/demoMaterial.tsx
@@ -4,7 +4,6 @@ import { useEffect, useState } from "react";
import { getMediaGroupList } from "@/api/media";
import {
apiCreateMaterialGroup,
- apiCreateMaterialList,
apiGetMaterialGroupList,
MaterialType,
} from "@/api/material";
diff --git a/src/app/[lng]/youtube/page.tsx b/src/app/[lng]/youtube/page.tsx
index a8bd0bdf..4dff4eed 100644
--- a/src/app/[lng]/youtube/page.tsx
+++ b/src/app/[lng]/youtube/page.tsx
@@ -97,6 +97,7 @@ const YouTubeAuth: React.FC = () => {
try {
const response = await getYouTubeAuthUrlApi(email);
if (response?.data) {
+ // @ts-ignore
window.open(response.data?.url, "_blank", "noopener,noreferrer");
}
} catch (error) {
diff --git a/src/app/i18n/locales/en/youtube.json b/src/app/i18n/locales/en/youtube.json
index 675919b5..bbe9fea9 100644
--- a/src/app/i18n/locales/en/youtube.json
+++ b/src/app/i18n/locales/en/youtube.json
@@ -7,5 +7,11 @@
"pleaseEnterEmail": "Please enter your email address",
"invalidEmail": "Please enter a valid email address",
"authFailed": "Authorization failed, please try again later",
- "checkAuth": "checkAuth"
-}
\ No newline at end of file
+ "checkAuth": "checkAuth",
+ "uploadVideo": "Upload Video",
+ "needAuthFirst": "Need Auth First",
+ "uploadFailed": "Upload Failed",
+ "uploadSuccess": "Upload Success",
+ "checkFailed": "Check Failed",
+ "alreadyAuthorized": "Already Authorized"
+}
\ No newline at end of file
diff --git a/src/app/i18n/locales/zh-CN/youtube.json b/src/app/i18n/locales/zh-CN/youtube.json
index 27727283..adaf4801 100644
--- a/src/app/i18n/locales/zh-CN/youtube.json
+++ b/src/app/i18n/locales/zh-CN/youtube.json
@@ -8,5 +8,11 @@
"invalidEmail": "请输入有效的邮箱地址",
"authFailed": "授权失败,请稍后重试",
"checkAuth": "检查授权",
- "notAuthorized": "未授权"
-}
\ No newline at end of file
+ "notAuthorized": "未授权",
+ "uploadVideo": "上传视频",
+ "needAuthFirst": "首先需要授权",
+ "uploadFailed": "上传失败",
+ "uploadSuccess": "上传成功",
+ "checkFailed": "检查失败",
+ "alreadyAuthorized": "已授权"
+}
\ No newline at end of file