-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from nuuxcode/dev
Merging stable version from dev to prod : adding admin panel, and delete user option
- Loading branch information
Showing
146 changed files
with
18,284 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,4 +134,3 @@ jobs: | |
echo "Done!" | ||
fi | ||
echo "--------" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# DEV | ||
# REACT_APP_API_URL=http://dev.bikehub.me/api/v1/ | ||
|
||
# PROD | ||
# REACT_APP_API_URL=http://dev.bikehub.me/api/v1 | ||
|
||
# LOCAL | ||
REACT_APP_API_URL=http://localhost:3300/api/v1/ | ||
PORT=3002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
package-lock.json | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# [Horizon UI TailwindCSS React Typescript ⚡️](https://horizon-ui.com/horizon-tailwind-react-ts) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=Check%20Horizon%20UI,%20the%20trendiest%20open-source%20admin%20template%20for%20%23tailwindcss%20and%20%23react!%0A%0Ahorizon-ui.com%20) | ||
|
||
![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg) | ||
![license](https://img.shields.io/badge/license-MIT-blue.svg) | ||
[![GitHub issues open](https://img.shields.io/github/issues/horizon-ui/horizon-tailwind-react-ts.svg?maxAge=2592000)](https://github.com/horizon-ui/horizon-tailwind-react-ts/issues?q=is%3Aopen+is%3Aissue) | ||
|
||
<p> </p> | ||
|
||
[<img alt="Horizon UI - Tailwind CSS React Admin dashboard template" src="https://i.ibb.co/1zhBQ2J/horizon-ui-tailwind-2.png" />](https://github.com/horizon-ui/horizon-tailwind-react-ts) | ||
|
||
<p> </p> | ||
|
||
|
||
Get started and build your dream web app with Horizon UI, the trendiest & innovative Open Source Admin Template for Tailwind CSS & React! | ||
|
||
--- | ||
|
||
### Introduction | ||
|
||
Designed for those who like modern UI elements and beautiful websites. Made of hundred of elements, designed blocks and fully coded pages, Horizon UI is ready to help you create stunning websites and webapps. | ||
|
||
Save hundreds of hours trying to create and develop a dashboard from scratch. | ||
The fastest, most responsive & trendiest dashboard for Tailwind CSS is here. Seriously. | ||
|
||
With Horizon UI you will find many examples for pages like NFTs Pages, | ||
Authentication Pages, Profile and so on. Just choose between a Basic Design or a cover and you are good to go! | ||
|
||
### 🎉 [NEW] Horizon UI Components | ||
All the main components from both versions, this will help you to see and interact with all & the latest added components of Horizon (also, new components are on the way, stay tuned)! ⚡️ | ||
<a href="https://horizon-ui.com/components/?ref=readme-horizon-tailwind-react-ts" target="_blank">See all components</a> | ||
|
||
|
||
### Documentation | ||
|
||
Each element is well presented in a very complex documentation. You can read more about the <a href="https://horizon-ui.com/docs-tailwind/docs/react/installation?ref=readme-horizon-tailwind-react-ts" target="_blank">documentation here.</a> | ||
|
||
### Quick Start | ||
|
||
Install Horizon UI by running either of the following: | ||
|
||
- Install NodeJS LTS from [NodeJs Official Page](https://nodejs.org/en/?ref=horizon-documentation) (NOTE: Product only works with LTS version). | ||
|
||
Clone the repository with the following command: | ||
|
||
```bash | ||
git clone https://github.com/horizon-ui/horizon-tailwind-react-ts.git | ||
``` | ||
|
||
Run in terminal this command: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
Then run this command to start your local server | ||
|
||
```bash | ||
npm start | ||
``` | ||
|
||
### Example Pages | ||
|
||
If you want to get inspiration or just show something directly to your clients, you can jump start your development with our pre-built example pages. You will be able to quickly set up the basic structure for your web project. | ||
|
||
View <a href="https://horizon-ui.com/horizon-tailwind-react-ts/?ref=readme-horizon-tailwind-react-ts" target="_blank">example pages here.</a> | ||
|
||
### Versions | ||
|
||
| Free Version | PRO Version | | ||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- | | ||
| [![Horizon UI Tailwind CSS React](https://i.ibb.co/1zhBQ2J/horizon-ui-tailwind-2.png)](https://www.horizon-ui.com/?ref=readme-horizon-tailwind-react-ts) | [![Horizon UI Tailwind CSS React PRO](https://i.ibb.co/d0cVzKB/horizon-ui-pro-tailwind.png)](https://www.horizon-ui.com/pro?ref=readme-horizon-tailwind-react-ts) | | ||
|
||
### Figma Version | ||
|
||
Horizon UI is available in Figma format as well! Check it out on Figma | ||
Community! 🎨 | ||
[See the Horizon UI Figma design files](https://bit.ly/horizon-figma) | ||
|
||
### Reporting Issues | ||
|
||
We use GitHub Issues as the official bug tracker for the Horizon UI. Here are | ||
some advices for our users that want to report an issue: | ||
|
||
1. Make sure that you are using the latest version of the Horizon UI Dashbaord. | ||
Check the CHANGELOG from your dashboard on our | ||
[CHANGE LOG File](https://github.com/horizon-ui/horizon-tailwind-react-ts/blob/main/CHANGELOG.md?ref=readme-horizon-tailwind-react-ts). | ||
2. Providing us reproducible steps for the issue will shorten the time it takes | ||
for it to be fixed. | ||
3. Some issues may be browser specific, so specifying in what browser you | ||
encountered the issue might help. | ||
|
||
--- | ||
|
||
### Community | ||
|
||
Connect with the community! Feel free to ask questions, report issues, and meet new people that already use Horizon UI! | ||
|
||
💬 [Join the #HorizonUI Discord Community!](https://discord.gg/f6tEKFBd4m) | ||
|
||
### Copyright and license | ||
|
||
⭐️ [Copyright 2023 Horizon UI ](https://www.horizon-ui.com/?ref=readme-horizon-tailwind-react-ts) | ||
|
||
📄 [Horizon UI License](https://www.simmmple.com/licenses?ref=readme-horizon-tailwind-react-ts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"name": "@bike/admin", | ||
"version": "0.0.1", | ||
"private": true, | ||
"dependencies": { | ||
"@chakra-ui/hooks": "^2.1.4", | ||
"@chakra-ui/modal": "^2.2.9", | ||
"@chakra-ui/popover": "^2.1.8", | ||
"@chakra-ui/portal": "^2.0.15", | ||
"@chakra-ui/react": "^2.8.2", | ||
"@chakra-ui/system": "^2.3.5", | ||
"@chakra-ui/tooltip": "^2.2.6", | ||
"@emotion/react": "^11.10.5", | ||
"@emotion/styled": "^11.10.5", | ||
"@tanstack/react-table": "^8.7.9", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.3.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^12.20.55", | ||
"@types/react": "^18.0.15", | ||
"@types/react-dom": "^18.0.6", | ||
"apexcharts": "^3.35.5", | ||
"axios": "^1.6.2", | ||
"dotenv": "^16.3.1", | ||
"framer-motion": "^7.10.2", | ||
"react": "^18.2.0", | ||
"react-apexcharts": "^1.4.0", | ||
"react-calendar": "^3.9.0", | ||
"react-dom": "^18.2.0", | ||
"react-icons": "^4.4.0", | ||
"react-router-dom": "^6.4.0", | ||
"react-scripts": "5.0.1", | ||
"react-table": "^7.8.0", | ||
"tailwindcss-rtl": "^0.9.0", | ||
"typescript": "^4.7.4", | ||
"web-vitals": "^2.1.4" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject", | ||
"pretty": "prettier --write \"./**/*.{js,jsx,json}\"" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", | ||
"@types/react-calendar": "^3.5.2", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@types/react-table": "^7.7.12", | ||
"autoprefixer": "^10.4.8", | ||
"postcss": "^8.4.16", | ||
"prettier": "^2.8.3", | ||
"prettier-plugin-tailwindcss": "^0.2.1", | ||
"tailwindcss": "^3.1.8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// prettier.config.js or .prettierrc.js | ||
module.exports = { | ||
plugins: [require("prettier-plugin-tailwindcss")], | ||
}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
_ _ ___ ____ ___ ________ _ _ _ _ ___ | ||
| | | |/ _ \| _ \|_ _|__ / _ \| \ | | | | | |_ _| | ||
| |_| | | | | |_) || | / / | | | \| | | | | || | | ||
| _ | |_| | _ < | | / /| |_| | |\ | | |_| || | | ||
|_| |_|\___/|_| \_\___/____\___/|_| \_| \___/|___| | ||
========================================================= | ||
* Horizon UI Tailwind React - v1.0.0 | ||
========================================================= | ||
* Product Page: https://www.horizon-ui.com/ | ||
* Copyright 2023 Horizon UI (https://www.horizon-ui.com/) | ||
* Designed and Coded by Simmmple | ||
========================================================= | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<link rel="icon" href="%PUBLIC_URL%/logoIcon.png"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta name="theme-color" content="#000000"/> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/> | ||
<title>BikeHub Admin</title> | ||
</head> | ||
<body class="font-dm bg-lightPrimary" > | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> | ||
|
||
<!-- | ||
___ | ||
.__( .)< | ||
\_____) | ||
~~~~~~~~~~~~~~~~ | ||
--> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"short_name": "BikeHub", | ||
"name": "BikeHub", | ||
"icons": [ | ||
{ | ||
"src": "logoIcon.png", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Routes, Route, Navigate } from "react-router-dom"; | ||
|
||
import RtlLayout from "layouts/rtl"; | ||
import AdminLayout from "layouts/admin"; | ||
import AuthLayout from "layouts/auth"; | ||
import useAuth from "utils/auth/AuthHook"; | ||
|
||
const App = () => { | ||
const { isAuthenticated } = useAuth(); | ||
|
||
return isAuthenticated ? ( | ||
<Routes> | ||
<Route path="auth/*" element={<AuthLayout />} /> | ||
<Route path="admin/*" element={<AdminLayout />} /> | ||
<Route path="rtl/*" element={<RtlLayout />} /> | ||
<Route path="/" element={<Navigate to="/admin" replace />} /> | ||
</Routes> | ||
) : ( | ||
<Routes> | ||
<Route path="/auth/*" element={<AuthLayout />} /> | ||
<Route path="*" element={<Navigate to="/auth/sign-in" replace />} /> | ||
</Routes> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap"); | ||
body { | ||
font-family: "DM Sans", sans-serif; | ||
} | ||
|
||
option { | ||
color: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
form { | ||
width: 100%; | ||
} |
Oops, something went wrong.