Skip to content

Commit

Permalink
Merge pull request #23 from GDG-on-Campus-KNU/develop
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
toothlessdev authored Oct 5, 2024
2 parents e04ffe6 + 1c2672b commit 757fd0e
Show file tree
Hide file tree
Showing 152 changed files with 8,949 additions and 555 deletions.
Binary file added .DS_Store
Binary file not shown.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "\bBUG REPORT"
about: 버그 발생 보고서
title: "[BUG] "
labels: ''
assignees: ''

---

## **📝 설명**


## **❎ 재현 단계**

1.
2.
3.
4.

## **✅ 예상 결과**
정상 작동시 나타나야할 결과를 적어주세요

## **🔗 첨부파일**
스크린샷과 같은 첨부파일이 있다면 첨부 해 주세요

## **🏔️ 실행환경**

(특정 브라우저 또는 기기에서 발생시 선택적으로 작성해주세요)
### **데스크톱 : **
- OS: [e.g. iOS] (
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

### **모바일 : **
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: FEATURE REQUEST
about: 기능 추가 보고서
title: "[FEATURE] "
labels: ''
assignees: ''

---

## **✅ 추가/누락된 기능**

## **📷 스크린샷**
44 changes: 44 additions & 0 deletions .github/workflows/deploy-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deply Client Page to AWS

on:
pull_request:
branches: ["release"]
types: ["closed"]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install Yarn
run: npm i -g yarn

- name: Install Dependencies
run: yarn client install

- name: Build
run: yarn client build:prerender

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{secrets.AWS_ACCESS_KEY_ID}}
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: ap-northeast-2

- name: Upload to S3 Bucket
env:
BUCKET_NAME: ${{secrets.CLIENT_BUCKET_NAME}}
run: aws s3 sync packages/client/dist s3://$BUCKET_NAME --delete

- name: Invalidate Cloudfront Cache
run: aws cloudfront create-invalidation --distribution-id ${{secrets.CLIENT_CLOUDFRONT_ID}} --paths /*
36 changes: 36 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
arrowParens: "always",
bracketSpacing: true,

jsxBracketSameLine: false,
jsxSingleQuote: false,
singleQuote: false,

quoteProps: "as-needed",

printWidth: 120,
tabWidth: 4,

plugins: ["@trivago/prettier-plugin-sort-imports"],
importOrder: [
"^react",
"<THIRD_PARTY_MODULES>",

"^(@/common)(.*)$",
"^(@/components)(.*)$",
"^(@/pages)(.*)$",

"^(@/hooks)(.*)$",
"^(@/services)(.*)$",

"^(@/assets)(.*)$",
"^(@/constants)(.*)$",
"^(@/config)(.*)$",
"^(@/utils)(.*)$",
"^(@/styles)(.*)$",

"^(.*)/(.*)$",
],
importOrderSeparation: true,
importOrderSortSpecifiers: false,
};
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,23 @@
],
"scripts": {
"client": "yarn workspace client",
"admin": "yarn workspace admin"
"admin": "yarn workspace admin",
"prettier": "prettier --write '**/*.{ts,tsx}'"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
"description": "",
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"prettier": "^3.3.3"
},
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@tanstack/react-query": "^5.56.2",
"axios": "^1.7.7",
"react-router-dom": "^6.26.2",
"zustand": "^5.0.0-rc.2"
}
}
Binary file added packages/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions packages/admin/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vite.config.ts
jest.config.ts
25 changes: 25 additions & 0 deletions packages/admin/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
...require("../../.prettierrc.cjs"),
plugins: ["@trivago/prettier-plugin-sort-imports"],
importOrder: [
"^react",
"<THIRD_PARTY_MODULES>",

"^(@/common)(.*)$",
"^(@/components)(.*)$",
"^(@/pages)(.*)$",

"^(@/hooks)(.*)$",
"^(@/services)(.*)$",

"^(@/assets)(.*)$",
"^(@/constants)(.*)$",
"^(@/config)(.*)$",
"^(@/utils)(.*)$",
"^(@/styles)(.*)$",

"^(.*)/(.*)$",
],
importOrderSeparation: true,
importOrderSortSpecifiers: false,
};
20 changes: 20 additions & 0 deletions packages/admin/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
94 changes: 69 additions & 25 deletions packages/admin/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,72 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import importPlugin from "eslint-plugin-import";
import a11y from "eslint-plugin-jsx-a11y";
import prettier from "eslint-plugin-prettier";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import globals from "globals";
import tseslint from "typescript-eslint";

import js from "@eslint/js";

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
{ ignores: ["dist"] },
{
extends: [
js.configs.recommended,
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
...tseslint.configs.recommended,
],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2021,
globals: globals.browser,
sourceType: "module",
project: "./tsconfig.json",
createDefaultProgram: true,
},
plugins: {
"@typescript-eslint": tseslint,
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
prettier: prettier,
"jsx-a11y": a11y,
import: importPlugin,
react: "eslint-plugin-react",
},
settings: {
"import/resolver": {
typescript: {
alwaysTryTypes: true,
},
},
react: {
version: "detect",
},
},
rules: {
"no-param-reassign": ["error", { props: false }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-floating-promises": "off",
"react/prop-types": "off",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
},
},
},
)
);
46 changes: 35 additions & 11 deletions packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,45 @@
"lint": "eslint .",
"preview": "vite preview"
},
"homepage": "/admin",
"dependencies": {
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@yudiel/react-qr-scanner": "^2.0.8",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.446.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react-dom": "^18.3.1",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"@types/node": "^20.12.7",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/react-modal": "^3.16.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"postcss": "^8.4.47",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.13",
"ts-node": "10.9.2",
"typescript": "^5.2.2",
"vite": "^5.4.1"
}
}
6 changes: 6 additions & 0 deletions packages/admin/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
Loading

0 comments on commit 757fd0e

Please sign in to comment.