Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"@ant-design/cssinjs": "^1.22.0",
"@ant-design/icons": "^4.7.0",
"@ant-design/pro-layout": "7.19.11",
"@monaco-editor/react": "^4.6.0",
"@fecommunity/reactpress-toolkit": "workspace:*",
"fs-extra": "^10.0.0",
"@monaco-editor/react": "^4.6.0",
"@vercel/analytics": "^2.0.1",
"antd": "^5.24.4",
"array-move": "^3.0.1",
"axios": "^0.23.0",
Expand All @@ -35,6 +35,9 @@
"date-fns": "^2.17.0",
"deep-equal": "^2.0.5",
"dotenv": "^17.2.3",
"echarts": "^5.6.0",
"echarts-for-react": "^3.0.2",
"fs-extra": "^10.0.0",
"highlight.js": "^9.18.5",
"less": "^4.1.2",
"less-vars-to-js": "^1.3.0",
Expand Down Expand Up @@ -63,9 +66,7 @@
"react-visibility-sensor": "^5.1.1",
"showdown": "^1.9.1",
"viewerjs": "^1.5.0",
"xml": "^1.0.1",
"echarts-for-react": "^3.0.2",
"echarts": "^5.6.0"
"xml": "^1.0.1"
},
"devDependencies": {
"@types/node": "17.0.22",
Expand Down
7 changes: 4 additions & 3 deletions client/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import 'highlight.js/styles/atom-one-dark.css';
import 'viewerjs/dist/viewer.css';

import { NProgress } from '@components/NProgress';
import { Analytics as VercelAnalytics } from '@vercel/analytics/react';
import { ConfigProvider, theme } from 'antd';
import { IntlMessages, NextIntlProvider } from 'next-intl';
import App from 'next/app';
import { default as Router } from 'next/router';
import { IntlMessages, NextIntlProvider } from 'next-intl';

import { Analytics } from '@/components/Analytics';
import { FixAntdStyleTransition } from '@/components/FixAntdStyleTransition';
Expand Down Expand Up @@ -83,7 +84,6 @@ class MyApp extends App<IGlobalContext, unknown> {
this.setState({ theme });
};


getSetting = () => {
SettingProvider.getSetting().then((res) => {
this.setState({ setting: res });
Expand All @@ -93,7 +93,7 @@ class MyApp extends App<IGlobalContext, unknown> {
isAdminPage = () => {
const isAdminPage = this.props?.router?.route?.startsWith('/admin');
return isAdminPage;
}
};

getUserFromStorage = () => {
const str = localStorage.getItem('user');
Expand Down Expand Up @@ -154,6 +154,7 @@ class MyApp extends App<IGlobalContext, unknown> {
<FixAntdStyleTransition />
<ViewStatistics />
<Analytics />
<VercelAnalytics />
<ConfigProvider
locale={{
locale,
Expand Down
Loading
Loading