Skip to content

Commit 62d66c4

Browse files
committed
finished gmail client clone UI and RTK setup
1 parent 6cf0ab0 commit 62d66c4

File tree

64 files changed

+9903
-0
lines changed

Some content is hidden

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

64 files changed

+9903
-0
lines changed

.eslintrc.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:react/jsx-runtime',
8+
'plugin:react-hooks/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12+
settings: { react: { version: '18.2' } },
13+
plugins: ['react-refresh'],
14+
rules: {
15+
'react-refresh/only-export-components': [
16+
'warn',
17+
{ allowConstantExport: true },
18+
],
19+
},
20+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.vite/deps_temp_d51b617b/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# React + Vite
2+
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4+
5+
Currently, two official plugins are available:
6+
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/index.jsx"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "code-inbox",
3+
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite --host 127.0.0.1 --port 3000",
8+
"build": "vite build",
9+
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
10+
"preview": "vite preview"
11+
},
12+
"dependencies": {
13+
"@emotion/react": "^11.11.1",
14+
"@emotion/styled": "^11.11.0",
15+
"@mui/icons-material": "^5.14.9",
16+
"@mui/material": "^5.14.10",
17+
"@nylas/nylas-react": "^0.1.0",
18+
"@reduxjs/toolkit": "^1.9.5",
19+
"axios": "^1.5.0",
20+
"emoji-picker-react": "^4.5.2",
21+
"moment": "^2.29.4",
22+
"prop-types": "^15.8.1",
23+
"query": "link:@reduxjs/toolkit/query",
24+
"react": "^18.2.0",
25+
"react-bottom-scroll-listener": "^5.1.0",
26+
"react-color": "^2.19.3",
27+
"react-dom": "^18.2.0",
28+
"react-dropzone": "^14.2.3",
29+
"react-perfect-scrollbar": "^1.5.8",
30+
"react-redux": "^8.1.2",
31+
"redux-persist": "^6.0.0",
32+
"redux-thunk": "^2.4.2"
33+
},
34+
"devDependencies": {
35+
"@types/react": "^18.2.15",
36+
"@types/react-dom": "^18.2.7",
37+
"@vitejs/plugin-react-swc": "^3.3.2",
38+
"eslint": "^8.45.0",
39+
"eslint-plugin-react": "^7.32.2",
40+
"eslint-plugin-react-hooks": "^4.6.0",
41+
"eslint-plugin-react-refresh": "^0.4.3",
42+
"vite": "^4.4.5"
43+
}
44+
}

0 commit comments

Comments
 (0)