Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: 알림 목록 페이지 구현 (Notification Page) #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
parksinhae wants to merge 14 commits into callicoder:master
base: master
Choose a base branch
Loading
from eunhye-ahn:frontend/notification-page
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
74c13ef
db 연결
eunhye-ahn May 15, 2025
fb6753a
그룹 생성
eunhye-ahn May 15, 2025
591b045
내 그룹 목록 조회 api
eunhye-ahn May 19, 2025
44be651
입장코드로 그룹 참여 api
eunhye-ahn May 19, 2025
1d9dfc6
그룹 상세 조회 api
eunhye-ahn May 20, 2025
4841b43
그룹 내 투표 목록 조회 api
eunhye-ahn May 21, 2025
f51663d
그룹투표생성 + 목록 조회 api
eunhye-ahn May 21, 2025
fc15eff
그룹 투표 상세조회 api
eunhye-ahn May 21, 2025
264d1c4
Merge conflict resolved
eunhye-ahn May 21, 2025
b59c69c
Resolve merge conflicts in controller and service
eunhye-ahn May 21, 2025
ea0b292
투표참여 api
eunhye-ahn May 21, 2025
25835ef
댓글 생성+조회+삭제 api
eunhye-ahn May 21, 2025
a01b8b5
알림 전체 목록 페이지 추가
parksinhae May 24, 2025
9999d20
불필요한 캐시 파일 Git 추적 제거 및 .gitignore 추가
parksinhae May 24, 2025
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
83 changes: 76 additions & 7 deletions polling-app-client/package-lock.json
View file Open in desktop

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion polling-app-client/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"devDependencies": {
"babel-plugin-import": "^1.6.5",
"react-app-rewire-less": "^2.1.0",
"react-app-rewired": "^1.4.1"
"react-app-rewired": "^1.6.2"
}
}
7 changes: 3 additions & 4 deletions polling-app-client/src/app/App.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ import AppHeader from '../common/AppHeader';
import NotFound from '../common/NotFound';
import LoadingIndicator from '../common/LoadingIndicator';
import PrivateRoute from '../common/PrivateRoute';

import { Layout, notification } from 'antd';
const { Content } = Layout;
import NewGroupOage from '../frontend/new-group-page/NewGroupPage';

class App extends Component {
constructor(props) {
Expand Down Expand Up @@ -109,9 +107,10 @@ class App extends Component {
<Route path="/users/:username"
render={(props) => <Profile isAuthenticated={this.state.isAuthenticated} currentUser={this.state.currentUser} {...props} />}>
</Route>
<Route path="/groups/new" component={NewGroupPage} /
<PrivateRoute authenticated={this.state.isAuthenticated} path="/poll/new" component={NewPoll} handleLogout={this.handleLogout}></PrivateRoute>
<Route component={NotFound}></Route>
</Switch>
</Switch>
</div>
</Content>
</Layout>
Expand Down
43 changes: 43 additions & 0 deletions polling-app-client/src/notification/NotificationPage.jsx
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React, { useEffect, useState } from 'react';
import { List, Card, Spin, message } from 'antd';
import axios from 'axios';

const NotificationPage = () => {
const [notifications, setNotifications] = useState([]);
const [loading, setLoading] = useState(true);

useEffect(() => {
// �鿣�� �˸� API ȣ��
axios.get('/api/notifications')
// ���� API ��η� ���� �ʿ�
.then(response => {
setNotifications(response.data);
setLoading(false);
})
.catch(error => {
message.error('�˸��� �ҷ����� �� �����߽��Θ�.');
setLoading(false);
});
}, []);

if (loading) return <Spin tip="�ε� ��..." />;

return (
<div style={{ padding: 20 }}>
<h2>�˸� ���</h2>
<List
grid={{ gutter: 16, column: 1 }}
dataSource={notifications}
renderItem={item => (
<List.Item>
<Card title={item.title}>
{item.message}
</Card>
</List.Item>
)}
/>
</div>
);
};

export default NotificationPage;
Loading

AltStyle によって変換されたページ (->オリジナル) /