Skip to content

Commit

Permalink
Merge pull request #73 from boostcampwm-2024/dev-front
Browse files Browse the repository at this point in the history
[FE] Main으로 Merge
  • Loading branch information
Hosung99 authored Nov 14, 2024
2 parents c6a5256 + d463026 commit 85216a1
Show file tree
Hide file tree
Showing 74 changed files with 7,836 additions and 0 deletions.
22 changes: 22 additions & 0 deletions front/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Created by https://www.toptal.com/developers/gitignore/api/react
# Edit at https://www.toptal.com/developers/gitignore?templates=react

### react ###
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

node_modules
bower_components

*.sublime*

psd
thumb
sketch
.env

# End of https://www.toptal.com/developers/gitignore/api/react
# Editor directories and files
14 changes: 14 additions & 0 deletions front/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"arrowParens": "always",
"bracketSameLine": true,
"bracketSpacing": true,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "none",
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"plugins": ["prettier-plugin-tailwindcss"]
}
18 changes: 18 additions & 0 deletions front/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## 프론트엔드

안녕하세요. 여긴 와치독스 프론트엔드 디렉토리입니다.

프론트엔드 환경은 다음과 같습니다.

Main : React + Typescript

build : vite

css : tailwindCSS

## 프로젝트 실행 방법

``` bash
npm run dev
```

Binary file added front/asset/image/CloudFlareDescription.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/GabiaDescription.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/ProjectActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/ProjectInactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/ProjectsActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/ProjectsInactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/RankingActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/asset/image/RankingInactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions front/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import pluginJs from '@eslint/js';
import tanstackQuery from '@tanstack/eslint-plugin-query';
import pluginImport from 'eslint-plugin-import';
import pluginReact from 'eslint-plugin-react';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default [
{
languageOptions: {
globals: {
...globals.browser
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
}
}
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
files: ['**/*.{js,ts,jsx,tsx}'],
plugins: {
'@typescript-eslint': tseslint.plugin,
import: pluginImport,
react: pluginReact,
'@tanstack/query': tanstackQuery
},
rules: {
'@tanstack/query/exhaustive-deps': 'warn',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
'react/function-component-definition': [
'error',
{
namedComponents: ['function-declaration', 'function-expression'],
unnamedComponents: 'function-expression'
}
],
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type'
],
'newlines-between': 'always',
pathGroups: [
{
pattern: '@/*',
group: 'internal',
position: 'after'
}
],
alphabetize: {
order: 'asc',
caseInsensitive: true
}
}
]
},
settings: {
react: {
version: '18.3.1'
}
}
}
];
28 changes: 28 additions & 0 deletions front/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link
href="
https://cdn.jsdelivr.net/npm/reset-css@5.0.2/reset.min.css
"
rel="stylesheet" />
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/ungveloper/web-fonts/GmarketSans/font-face.css" />
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/ungveloper/web-fonts/GmarketSans/font-family.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WatchDucks</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions front/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
command = "npm run build"
publish = "dist"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Loading

0 comments on commit 85216a1

Please sign in to comment.