Skip to content
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

feat: 메인페이지 개발 #109

Merged
merged 39 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
fc8c395
chore: typescript init
her0707 Aug 25, 2023
51dc9ae
chore: eslint, prettier 설정
her0707 Aug 26, 2023
602301c
chore: hook 사용을 위한 husky 추가
her0707 Aug 26, 2023
c2c2663
feat: astro 에서 사용할 react 환경설정
her0707 Aug 31, 2023
90aa59e
refactor: astro 폴더구조에 따라 src 하위 디렉토리 로 이동
her0707 Aug 31, 2023
f59fd0f
feat: review-assign-action.yml 깃헙 액션을 추가합니다.
InSeong-So Sep 2, 2023
2499f36
chore: astro v3 migration
her0707 Sep 4, 2023
2b80228
chore: lint, ts error 로 인한 코드 수정
her0707 Sep 4, 2023
8f5a6cd
chore: 상태 관리를 위한 nanostores 추가
her0707 Sep 5, 2023
52785bc
chore: import lint error off
her0707 Sep 5, 2023
901bac1
chore: react css 사용을 위한 ve 추가
her0707 Sep 5, 2023
6d52bda
feat: 레이아웃 헤더 구현
her0707 Sep 5, 2023
4d80c9f
Update review-assign-action.yml
InSeong-So Sep 7, 2023
e577cd8
Update review-assign-action.yml
InSeong-So Sep 7, 2023
4bedb3a
Update review-assign-action.yml
InSeong-So Sep 7, 2023
6ea21d9
Update review-assign-action.yml
InSeong-So Sep 7, 2023
daad074
Update review-assign-action.yml
InSeong-So Sep 7, 2023
0d46a8a
chore: vite vanilla extract 설정
her0707 Sep 9, 2023
b338b00
feat: article 컴포넌트 구현
her0707 Sep 9, 2023
00cb32c
feat: http client add
her0707 Sep 9, 2023
f014bee
refactor: template 원본파일 제거
her0707 Sep 9, 2023
8ce21e7
feat: pagination component add
her0707 Sep 9, 2023
d72f266
feat: skeleton ui 컴포넌트 추가
her0707 Sep 9, 2023
e22b0eb
refactor: 메인페이지 react 컴포넌트 리팩토링
her0707 Sep 9, 2023
013ca43
refactor: 메인페이지 레이아웃 Css 수정
her0707 Sep 9, 2023
2f65faa
refactor: 최초 마운트 시 articles 호출하지 않도록 변경
her0707 Sep 10, 2023
56a4664
feat: tab 컴포넌트 추가
her0707 Sep 10, 2023
be8d899
refactor: tab 스타일 수정
her0707 Sep 10, 2023
b9340ce
feat: tag 별 API 호출 구현
her0707 Sep 10, 2023
103c66d
refactor: pagination disabled 옵션 변경
her0707 Sep 10, 2023
3191006
refactor: header 반응형 css 수정
her0707 Sep 10, 2023
3378be2
refactor: 탭 컴포넌트 반응형 대응
her0707 Sep 13, 2023
a163bdd
refactor: tab 컴포넌트 스타일 수정
her0707 Sep 14, 2023
21cbe76
refactor: 레이아웃 스타일 수정
her0707 Sep 14, 2023
71416c7
Merge branch 'pagers-org:main' into main
her0707 Sep 14, 2023
ae5cb05
Merge remote-tracking branch 'upstream/team1/her0707'
her0707 Sep 14, 2023
38ac8fe
fix: 태그 클릭 시 페이지네이션 초기화
her0707 Sep 14, 2023
de51611
refactor: pagination 리팩토링
her0707 Sep 17, 2023
0040330
refactor: 탭 리팩토링
her0707 Sep 17, 2023
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
53 changes: 53 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"extraFileExtensions": [".astro"],
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:import/recommended", "prettier"],
"overrides": [
{
"files": ["*.mjs", "*.cjs"],
"extends": ["plugin:prettier/recommended"],
"rules": {
"import/no-extraneous-dependencies": "off" // mjs is only used by Astro for configuration, false positive
}
},
{
"files": ["*.astro"],
"parser": "astro-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".astro"]
},
"extends": ["plugin:astro/recommended"],
"rules": {
"astro/no-conflict-set-directives": "error",
"astro/no-unused-define-vars-in-style": "error"
}
},
{
"parser": "@typescript-eslint/parser",
"files": ["*.ts", "*.tsx"],
"plugins": ["@typescript-eslint", "react"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:import/typescript"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
],
"rules": {
"no-empty": "off",
"no-unused-vars": "off",
"import/no-unresolved": "off"
}
}
56 changes: 0 additions & 56 deletions .eslintrc.js

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/review-assign-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Review Assign

on:
pull_request:
types: [opened, ready_for_review]

jobs:
assign:
permissions:
actions: write
checks: write
contents: write
deployments: write
discussions: write
issues: write
id-token: read
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
runs-on: ubuntu-latest
steps:
- if: github.base_ref == 'main' # base branch name is 'master'
run: echo REVIEWERS=inseong-so >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team1')
run: echo REVIEWERS=headring, KimHunJin, hyjoong her0707 >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team2')
run: echo REVIEWERS=Bsfla, SeolJaeHyeok, choisy9619, kyung-jun >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team3')
run: echo REVIEWERS=sgsg9447, kingyong9169, 2dowon, jqkk >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team4')
run: echo REVIEWERS=kimseongchan-kr, cham0287, hyeon9782 >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team5')
run: echo REVIEWERS=2-NOW, hyew-kim, geeonie >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team6')
run: echo REVIEWERS=areumsheep, ludacirs, innocarpe >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team7')
run: echo REVIEWERS=endmoseung, steven-yn, ding-co, mandarin-sep >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team8')
run: echo REVIEWERS=HOJOON07, jiji-hoon96, 71summernight, seung-wan >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team9')
run: echo REVIEWERS=Siihyun, hhhminme, 0uizi0, brgndyy >> $GITHUB_ENV
- if: startsWith(github.base_ref, 'team10')
run: echo REVIEWERS=Leejha, steadily-worked >> $GITHUB_ENV
- uses: hkusu/review-assign-action@v1
with:
assignees: ${{ github.actor }}
reviewers: ${{ env.REVIEWERS }}
12 changes: 12 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";

export default defineConfig({
// your configuration options here...
// https://docs.astro.build/en/reference/configuration-reference/
integrations: [react()],
vite: {
plugins: [vanillaExtractPlugin()],
},
});
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@
},
"homepage": "https://github.com/her0707/react-world#readme",
"dependencies": {
"astro": "^2.10.14"
"@astrojs/react": "^3.0.0",
"@astrojs/ts-plugin": "^1.1.3",
"@vanilla-extract/css": "^1.13.0",
"@vanilla-extract/css-utils": "^0.1.3",
"astro": "^3.0.8",
"nanostores": "^0.9.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vanilla-extract/vite-plugin": "^3.9.0",
"concurrently": "^8.2.1",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
Loading