Skip to content

Let's use AI to Earn!

feat: 创建数据统计页面

gaoSir7802b180925f
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0dcf577f..0436e10b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,13 +4,17 @@
<option name="autoReloadType" value="NONE" />
</component>
<component name="ChangeListManager">
- <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat: 选择代理">
+ <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="fix: 修复因为 @svgr/webpack 受到的影响">
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/dataStatistics/DataStatisticsCore.tsx" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/dataStatistics/page.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/next.config.mjs" beforeDir="false" afterPath="$PROJECT_DIR$/next.config.mjs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pnpm-lock.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/pnpm-lock.yaml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/src/app/[lng]/page.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/page.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$/public/robots.txt" beforeDir="false" afterPath="$PROJECT_DIR$/public/robots.txt" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/public/sitemap.xml" beforeDir="false" afterPath="$PROJECT_DIR$/public/sitemap.xml" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/i18n/locales/en/route.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/i18n/locales/en/route.json" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/i18n/locales/zh-CN/route.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/i18n/locales/zh-CN/route.json" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/layout/routerData.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/layout/routerData.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -95,8 +99,10 @@
&quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
&quot;last_opened_file_path&quot;: &quot;E:/project-dev/web/艺咖/aitoearn-web/src/components&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
+ &quot;node.js.detected.package.standard&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.standard&quot;: &quot;&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;preferences.pluginManager&quot;,
@@ -196,7 +202,11 @@
<workItem from="1756968825319" duration="59000" />
<workItem from="1757578930648" duration="1505000" />
<workItem from="1757588797084" duration="46000" />
- <workItem from="1757599699131" duration="2518000" />
+ <workItem from="1757599699131" duration="5402000" />
+ <workItem from="1757646069183" duration="322000" />
+ <workItem from="1757646405605" duration="66000" />
+ <workItem from="1757646484870" duration="466000" />
+ <workItem from="1757647784882" duration="1419000" />
</task>
<task id="LOCAL-00001" summary="feat(CalendarTiming): 优化发布记录列表展示&#10;- 调整日历记录项的样式和布局&#10;- 优化 RecordCore组件,添加平台图标和时间显示&#10;- 修改 CalendarTimingItem 组件,移除不必要的 Fragment&#10;-调整 index.tsx 中的日期格式化逻辑">
<option name="closed" value="true" />
@@ -542,7 +552,15 @@
<option name="project" value="LOCAL" />
<updated>1757600217030</updated>
</task>
- <option name="localTasksCounter" value="44" />
+ <task id="LOCAL-00044" summary="fix: 修复因为 @svgr/webpack 受到的影响">
+ <option name="closed" value="true" />
+ <created>1757603685024</created>
+ <option name="number" value="00044" />
+ <option name="presentableId" value="LOCAL-00044" />
+ <option name="project" value="LOCAL" />
+ <updated>1757603685024</updated>
+ </task>
+ <option name="localTasksCounter" value="45" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@@ -555,6 +573,17 @@
<component name="Vcs.Log.Tabs.Properties">
<option name="RECENT_FILTERS">
<map>
+ <entry key="Paths">
+ <value>
+ <list>
+ <RecentGroup>
+ <option name="FILTER_VALUES">
+ <option value="file:$PROJECT_DIR$/next.config.mjs" />
+ </option>
+ </RecentGroup>
+ </list>
+ </value>
+ </entry>
<entry key="User">
<value>
<list>
@@ -582,6 +611,13 @@
</list>
</value>
</entry>
+ <entry key="structure">
+ <value>
+ <list>
+ <option value="file:$PROJECT_DIR$/next.config.mjs" />
+ </list>
+ </value>
+ </entry>
</map>
</option>
</State>
@@ -594,7 +630,6 @@
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_NEW_TODO" value="false" />
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
- <MESSAGE value="feat(发布):b站添加标题参数" />
<MESSAGE value="feat(发布):发布记录添加账户筛选API" />
<MESSAGE value="feat(发布):1. b站添加是否转载、选择分区参数。 2. 发布记录展示时间修复,将后端返回的时间转为当前时区给用户展示。 3. b站添加强制拦截,分区、转载不选择会强制拦截用户。" />
<MESSAGE value="fix(日历):修复了单元格没有预期时间但是发布记录还是不会填满单元格的问题。" />
@@ -619,6 +654,7 @@
<MESSAGE value="fix: 校验修复" />
<MESSAGE value="Revert &quot;refactor: 删除旧热门内容&quot;&#10;&#10;This reverts commit 7a0af7fb" />
<MESSAGE value="feat: 选择代理" />
- <option name="LAST_COMMIT_MESSAGE" value="feat: 选择代理" />
+ <MESSAGE value="fix: 修复因为 @svgr/webpack 受到的影响" />
+ <option name="LAST_COMMIT_MESSAGE" value="fix: 修复因为 @svgr/webpack 受到的影响" />
</component>
</project>
\ No newline at end of file
diff --git a/package.json b/package.json
index df5d8e8c..9931a640 100644
--- a/package.json
+++ b/package.json
@@ -61,6 +61,7 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3",
+ "@next/eslint-plugin-next": "^15.5.3",
"@types/crypto-js": "^4.2.2",
"@types/lodash": "^4.17.17",
"@types/node": "^20",
@@ -75,6 +76,7 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.37.4",
+ "eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-unused-imports": "^4.1.4",
"file-loader": "^6.2.0",
"i18next-resources-for-ts": "1.5.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 84f6090d..704b56d2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -135,6 +135,9 @@ importers:
'@eslint/eslintrc':
specifier: ^3
version: 3.3.1
+ '@next/eslint-plugin-next':
+ specifier: ^15.5.3
+ version: 15.5.3
'@types/crypto-js':
specifier: ^4.2.2
version: 4.2.2
@@ -177,6 +180,9 @@ importers:
eslint-plugin-react:
specifier: ^7.37.4
version: 7.37.5([email protected])
+ eslint-plugin-react-hooks:
+ specifier: ^5.2.0
+ version: 5.2.0([email protected])
eslint-plugin-unused-imports:
specifier: ^4.1.4
@@ -957,6 +963,9 @@ packages:
resolution: {integrity: sha512-ijVRTXBgnHT33aWnDtmlG+LJD+5vhc9AKTJPquGG5NKXjpKNjc62woIhFtrAcWdBobt8kqjCoaJ0q6sDQoX7aQ==}
+ resolution: {integrity: sha512-SdhaKdko6dpsSr0DldkESItVrnPYB1NS2NpShCSX5lc7SSQmLZt5Mug6t2xbiuVWEVDLZSuIAoQyYVBYp0dR5g==}
+
resolution: {integrity: sha512-wWtrAaxCVMejxPHFb1SK/PVV1WDIrXGs9ki0C/kUM8ubKHQm+3hU9MouUywCw8Wbhj3pewfHT2wjunLEr/TaLA==}
engines: {node: '>= 10'}
@@ -4804,6 +4813,10 @@ snapshots:
dependencies:
fast-glob: 3.3.1
+ dependencies:
+ fast-glob: 3.3.1
+
optional: true
diff --git a/src/app/[lng]/dataStatistics/DataStatisticsCore.tsx b/src/app/[lng]/dataStatistics/DataStatisticsCore.tsx
new file mode 100644
index 00000000..4851acad
--- /dev/null
+++ b/src/app/[lng]/dataStatistics/DataStatisticsCore.tsx
@@ -0,0 +1,5 @@
+"use client";
+
+export const DataStatisticsCore = () => {
+ return <></>;
+};
diff --git a/src/app/[lng]/dataStatistics/page.tsx b/src/app/[lng]/dataStatistics/page.tsx
new file mode 100644
index 00000000..8ef1ba07
--- /dev/null
+++ b/src/app/[lng]/dataStatistics/page.tsx
@@ -0,0 +1,20 @@
+import { PageParams } from "@/app/globals";
+import { useTranslation } from "@/app/i18n";
+import { getMetadata } from "@/utils/general";
+import { DataStatisticsCore } from "@/app/[lng]/dataStatistics/DataStatisticsCore";
+
+export async function generateMetadata({ params }: PageParams) {
+ const { lng } = await params;
+ const { t } = await useTranslation(lng, "account");
+ return await getMetadata(
+ {
+ title: t("title"),
+ description: t("describe"),
+ },
+ lng,
+ );
+}
+
+export default function Page() {
+ return <DataStatisticsCore />;
+}
diff --git a/src/app/i18n/locales/en/route.json b/src/app/i18n/locales/en/route.json
index da856110..c8602deb 100644
--- a/src/app/i18n/locales/en/route.json
+++ b/src/app/i18n/locales/en/route.json
@@ -5,5 +5,6 @@
"hotContent": "Hot Content",
"hotContentNew": "Hot Content New",
"aiTools": "AI Tools",
- "navigation": "Navigation"
+ "navigation": "Navigation",
+ "dataStatistics": "Data Statistics"
}
\ No newline at end of file
diff --git a/src/app/i18n/locales/zh-CN/route.json b/src/app/i18n/locales/zh-CN/route.json
index 444a59ad..89f61ade 100644
--- a/src/app/i18n/locales/zh-CN/route.json
+++ b/src/app/i18n/locales/zh-CN/route.json
@@ -5,5 +5,6 @@
"hotContent": "热门内容",
"hotContentNew": "热门内容新",
"aiTools": "AI工具",
- "navigation": "导航"
-}
\ No newline at end of file
+ "navigation": "导航",
+ "dataStatistics": "数据统计"
+}
\ No newline at end of file
diff --git a/src/app/layout/routerData.ts b/src/app/layout/routerData.ts
index e8a75f73..81b953e4 100644
--- a/src/app/layout/routerData.ts
+++ b/src/app/layout/routerData.ts
@@ -42,6 +42,11 @@ export const routerData: IRouterDataItem[] = [
translationKey: "tasks",
path: "/tasks",
},
+ {
+ name: "数据统计",
+ translationKey: "dataStatistics",
+ path: "/dataStatistics",
+ },
];
const recursion = (