Skip to content

Commit 007d95a

Browse files
authored
React v16 to v18 (#44)
- React v16 to v18 - Gulp (Webpack) to Vite - Vanilla Js to TypeScript - Material UI to shadcn/ui with Tailwind CSS - Add State Management - Many other changes have been made with recent trends.
1 parent 633e845 commit 007d95a

File tree

119 files changed

+11104
-8439
lines changed

Some content is hidden

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

119 files changed

+11104
-8439
lines changed

.babelrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.devcontainer/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
UID=1000
2+
GID=1000

.devcontainer/compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
workspace:
3+
image: mcr.microsoft.com/vscode/devcontainers/javascript-node:20-bullseye
4+
init: true
5+
command: /bin/sh -c "chown -R $UID:$GID /home/node/workspace/node_modules; while sleep 1000; do :; done"
6+
extra_hosts:
7+
- "host.docker.internal:host-gateway"
8+
volumes:
9+
- ..:/home/node/workspace:cached
10+
- ~/.ssh:/home/node/.ssh
11+
- node-modules:/home/node/workspace/node_modules
12+
working_dir: /home/node/workspace
13+
14+
volumes:
15+
node-modules:

.devcontainer/devcontainer.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// https://aka.ms/devcontainer.json
2+
{
3+
"name": "sample-ui-react",
4+
"dockerComposeFile": ["./compose.yml"],
5+
"service": "workspace",
6+
"shutdownAction": "stopCompose",
7+
"customizations": {
8+
"vscode": {
9+
"settings": {
10+
"editor.defaultFormatter": "esbenp.prettier-vscode",
11+
"editor.formatOnSave": true,
12+
"editor.formatOnPaste": true,
13+
"editor.formatOnType": true,
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll.eslint": "explicit",
16+
"source.organizeImports": "explicit"
17+
}
18+
},
19+
"extensions": [
20+
"mhutchie.git-graph",
21+
"mikestead.dotenv",
22+
"EditorConfig.EditorConfig",
23+
"dbaeumer.vscode-eslint",
24+
"esbenp.prettier-vscode",
25+
"xabikos.javascriptsnippets",
26+
"dsznajder.es7-react-js-snippets",
27+
"bradlc.vscode-tailwindcss"
28+
]
29+
}
30+
},
31+
"workspaceFolder": "/home/node/workspace",
32+
"postCreateCommand": "npm install",
33+
"forwardPorts": [3000],
34+
"remoteUser": "node"
35+
}

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[*.{js,jsx,ts,tsx}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true
6+
7+
[*.html]
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.json]
14+
indent_style = space
15+
indent_size = 2
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
[*.yml]
20+
indent_style = space
21+
indent_size = 2
22+
trim_trailing_whitespace = true
23+
insert_final_newline = true
24+

.env

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# environment for devcontainer
2+
COMPOSE_PROJECT_NAME=sample-ui-react
3+
4+
# environment for productuion
5+
6+
## API base path to Application Server
7+
VITE_APP_API_ROOT=/api
8+
9+
## Application Log Level
10+
VITE_APP_LOG_LEVEL=INFO

.env.development

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# environment for development
2+
3+
## API base path to Application Server
4+
VITE_APP_API_ROOT=http://localhost:8080/api
5+
6+
## Application Log Level
7+
VITE_APP_LOG_LEVEL=DEBUG

.eslintrc.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/* eslint-env node */
2+
3+
module.exports = {
4+
root: true,
5+
env: { browser: true, es2020: true },
6+
extends: [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
10+
"plugin:react-hooks/recommended",
11+
],
12+
parser: "@typescript-eslint/parser",
13+
parserOptions: {
14+
ecmaVersion: "latest",
15+
sourceType: "module",
16+
project: true,
17+
tsconfigRootDir: __dirname,
18+
},
19+
plugins: ["react-refresh"],
20+
rules: {
21+
"react-refresh/only-export-components": [
22+
"warn",
23+
{ allowConstantExport: true },
24+
],
25+
"@typescript-eslint/no-non-null-assertion": "off",
26+
"react-hooks/rules-of-hooks": "error",
27+
"react-hooks/exhaustive-deps": [
28+
"warn",
29+
{
30+
additionalHooks: "(useRecoilCallback|useRecoilTransaction_UNSTABLE)",
31+
},
32+
],
33+
"react-hooks/exhaustive-deps": "warn",
34+
},
35+
};

.gitignore

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +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+
110
node_modules
2-
bower_components
3-
public
4-
npm-debug.log
5-
/.vscode
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?

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2019 jkazama
3+
Copyright (c) 2024 jkazama
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

0 commit comments

Comments
 (0)