Skip to content

Commit

Permalink
Merge pull request #3 from MiRolls:feat-router
Browse files Browse the repository at this point in the history
feat: router is a branch to create react router file and add a good Navbar and build a nice sider control
  • Loading branch information
liangmiQwQ authored Jan 20, 2024
2 parents 71f6b5a + 250cba0 commit 24fe4ff
Show file tree
Hide file tree
Showing 38 changed files with 3,214 additions and 350 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ module.exports = {
],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-no-target-blank": "off"
"react/jsx-no-target-blank": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "off",
}
}
23 changes: 12 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
<html lang="">
<head>
<meta charset="UTF-8"/>
<link rel="icon" href="" id="icon"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title id="title"></title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<noscript><h1>This site can't run without JavaScript.</h1></noscript>
</body>
</html>
22 changes: 20 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,44 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite & node server/mirolls.js",
"mock": "node server/mirolls.js",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@eslint/create-config": "0.4.6",
"@radix-ui/themes": "^2.0.3",
"axios": "^1.6.5",
"classnames": "^2.5.1",
"framer-motion": "^10.18.0",
"i18next": "^23.7.16",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-i18next": "^14.0.0",
"react-icons": "^5.0.1",
"react-router-dom": "^6.21.1",
"usehooks-ts": "^2.9.5",
"zustand": "^4.4.7"
},
"devDependencies": {
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"@typescript-eslint/parser": "^6.18.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"express": "^4.18.2",
"postcss": "^8.4.33",
"radix-ui-themes-with-tailwind": "^1.2.6",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8"
}
Expand Down
Loading

0 comments on commit 24fe4ff

Please sign in to comment.