Skip to content

Commit 3abdb26

Browse files
authored
chore: develop to main (#295)
* feat: 유실물 게시글 생성하기 (#290) (#291) * feat: 유실물 게시글 생성하기 (#290) * fix: test 관련 코드 주석 해제 (#290) * feat: 유실물 게시글 수정 (#281) (#292) * chore: D-n 규칙에 따라 자동으로 Label 을 업데이트하는 Github Actions (#293) (#294)
1 parent c674d9e commit 3abdb26

Some content is hidden

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

55 files changed

+872
-244
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Update D-n Labels
2+
on:
3+
schedule:
4+
- cron: '0 15 * * *' # 매일 밤 12시에 실행 (KST 기준)
5+
6+
permissions:
7+
pull-requests: write
8+
issues: write
9+
10+
jobs:
11+
d-day-labeler:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Update D-n Labels
15+
uses: naver/d-day-labeler@latest
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}

services/ahhachul.com/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="theme-color" id="theme-color" content="#141517" />
6+
<meta name="theme-color" id="theme-color" content="#FFFFFF" />
77
<meta
88
name="viewport"
99
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"

services/ahhachul.com/src/apis/request/lostFound.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type {
88
LostFoundPostDetail,
99
CommentList,
1010
WithPostId,
11+
LostFoundEditForm,
1112
} from '@/types';
1213
import { appendFilesToFormData, createJsonBlob, extractFormData } from '@/utils';
1314

@@ -49,3 +50,31 @@ export const fetchLostFoundDetail = (id: number) =>
4950

5051
export const fetchLostFoundCommentList = (id: number) =>
5152
axiosInstance.get<ApiResponse<CommentList>>(`/lost-posts/${id}/comments`);
53+
54+
export const editLostFound = async (id: number, req: LostFoundEditForm) => {
55+
const formData = new FormData();
56+
const formDataWithoutImages = extractFormData(req, 'images');
57+
const jsonBlob = createJsonBlob(formDataWithoutImages);
58+
59+
formData.append('content', jsonBlob);
60+
61+
if (req.images?.length) {
62+
// fileData: images,
63+
appendFilesToFormData(
64+
formData,
65+
req.images.flatMap(image => (image.data !== null ? [image.data] : [])),
66+
);
67+
}
68+
69+
const response = await axiosInstance.post<ApiResponse<WithPostId>>(
70+
`/lost-posts/${id}`,
71+
formData,
72+
{
73+
headers: {
74+
'Content-Type': 'multipart/form-data',
75+
},
76+
},
77+
);
78+
79+
return response.data;
80+
};

services/ahhachul.com/src/apis/request/token.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ import axios from 'axios';
33
import type { ApiResponse, AuthTokens } from '@/types';
44

55
import { BASE_URL } from '../baseUrl';
6+
import { API_PREFIX } from '../endpointPrefix';
67

78
export const renewAccessToken = async (refreshToken: string) => {
8-
const { data } = await axios.get<ApiResponse<AuthTokens>>(`${BASE_URL.SERVER}/auth/tokens`, {
9-
params: {
10-
refreshToken,
9+
const { data } = await axios.get<ApiResponse<AuthTokens>>(
10+
`${BASE_URL.SERVER}${API_PREFIX}/auth/token/refresh`,
11+
{
12+
params: {
13+
refreshToken,
14+
},
1115
},
12-
});
16+
);
1317

1418
return data;
1519
};

services/ahhachul.com/src/assets/icons/system/ic_camera.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 11 additions & 6 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading

services/ahhachul.com/src/assets/icons/system/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ export { default as InfoIcon } from './ic_info.svg?react';
66
export { default as LogoIcon } from './ic_logo.svg?react';
77
export { default as HomeIcon } from './ic_home.svg?react';
88
export { default as PlusIcon } from './ic_plus.svg?react';
9+
export { default as ShareIcon } from './ic_share.svg?react';
910
export { default as CloseIcon } from './ic_close.svg?react';
1011
export { default as CheckIcon } from './ic_check.svg?react';
1112
export { default as SearchIcon } from './ic_search.svg?react';
12-
export { default as CameraIcon } from './ic_camera.svg?react';
13+
export { default as PictureIcon } from './ic_picture.svg?react';
1314
export { default as WarningIcon } from './ic_warning.svg?react';
1415
export { default as ProfileIcon } from './ic_profile.svg?react';
1516
export { default as CommentIcon } from './ic_comment.svg?react';
@@ -21,6 +22,7 @@ export { default as CommunityIcon } from './ic_community.svg?react';
2122
export { default as ComplaintIcon } from './ic_complaint.svg?react';
2223
export { default as LostFoundIcon } from './ic_lost_found.svg?react';
2324
export { default as CircleCloseIcon } from './ic_circle_close.svg?react';
25+
export { default as MoreVerticalIcon } from './ic_more_vertical.svg?react';
2426
export { default as ActivatedHomeIcon } from './ic_home_key_color.svg?react';
2527
export { default as ActivatedProfileIcon } from './ic_community_key_color.svg?react';
2628
export { default as ActivatedCommunityIcon } from './ic_community_key_color.svg?react';

0 commit comments

Comments
 (0)