Skip to content

Commit 9534df2

Browse files
authored
(24/05/10 - 1) 클로즈 베타 테스트 버전 배포합니다.
(24/05/10 - 1) 클로즈 베타 테스트 버전 배포합니다.
2 parents ad19b61 + fe72f14 commit 9534df2

File tree

106 files changed

+5760
-3443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5760
-3443
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"js-base64": "^3.7.6",
2222
"prop-types": "^15.8.1",
2323
"react": "^18.2.0",
24+
"react-datepicker": "^6.9.0",
2425
"react-dom": "^18.2.0",
2526
"react-error-boundary": "^4.0.13",
2627
"react-modal": "^3.16.1",
@@ -41,6 +42,7 @@
4142
},
4243
"scripts": {
4344
"start": "export PORT=3001 && react-scripts start",
45+
"devs": "set PORT=3001 && react-scripts start",
4446
"build": "react-scripts build",
4547
"test": "react-scripts test",
4648
"eject": "react-scripts eject"

src/App.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,23 @@ import AllRouter from '../src/router/allRouter.js';
99
import ErrorFallback from './hooks/errorBoundary.tsx';
1010
import { ErrorBoundary } from 'react-error-boundary';
1111
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
12+
import { alertCount } from './store/actions/alertActions.js';
1213

13-
const queryClient = new QueryClient();
14+
const queryClient = new QueryClient({
15+
defaultOptions: {
16+
queries: {
17+
onSuccess: (data) => {
18+
if (data.queryKey[0] === 'notifications') {
19+
const noReadElements = data.pages.reduce(
20+
(total, page) => total + (page.data.noReadElements || 0),
21+
0,
22+
);
23+
store.dispatch(alertCount(noReadElements));
24+
}
25+
},
26+
},
27+
},
28+
});
1429

1530
function App() {
1631
return (

src/asset/image/chat.svg

Lines changed: 3 additions & 5 deletions
Loading

src/asset/image/chat2.svg

Lines changed: 3 additions & 0 deletions
Loading

src/asset/image/dots-vertical.svg

Lines changed: 3 additions & 0 deletions
Loading

src/asset/image/graph_bar.svg

Lines changed: 14 additions & 0 deletions
Loading

src/asset/image/home.svg

Lines changed: 1 addition & 1 deletion
Loading

src/asset/image/hot.svg

Lines changed: 4 additions & 0 deletions
Loading

src/asset/image/justice.svg

Lines changed: 6 additions & 0 deletions
Loading

src/asset/image/leaf.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy