20 |
React Sidebar
21 |
22 | 23 | کتابخانه نوار کناری را با منوهای کشویی و تعداد نامحدود زیر منوهای تو 24 | در تو واکنش نشان دهید 25 |
26 | 48 |├── .gitignore
├── README.md
├── package-lock.json
├── package.json
├── public
├── assets
│ ├── css
│ │ └── style.css
│ ├── fonts
│ │ ├── Vazir-Bold-FD.eot
│ │ ├── Vazir-Bold-FD.ttf
│ │ ├── Vazir-Bold-FD.woff
│ │ └── Vazir-Bold-FD.woff2
│ └── img
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ └── logo512.png
├── index.html
├── manifest.json
└── robots.txt
├── src
├── App.js
├── Aside.js
├── Layout.js
├── Main.js
├── assets
│ ├── bg1.jpg
│ └── logo.svg
├── index.js
└── styles
│ └── App.scss
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Preview
2 | [Demo](https://hamzehazizzadeh.ir/react-sidebar/)
3 |
4 | ## React Pro Sidebar
5 | This package is a Persian and straightforward example of the [react-pro-sidebar](https://github.com/azouaoui-med/react-pro-sidebar) package.
6 |
7 | ## Available Scripts
8 |
9 | In the project directory, you can run:
10 |
11 | ### `npm start`
12 |
13 | Runs the app in the development mode.
14 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
15 |
16 | The page will reload if you make edits.
17 | You will also see any lint errors in the console.
18 |
19 | ### `npm run build`
20 |
21 | Builds the app for production to the `build` folder.
22 | It correctly bundles React in production mode and optimizes the build for the best performance.
23 |
24 | The build is minified and the filenames include the hashes.
25 | Your app is ready to be deployed!
26 |
27 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
28 |
29 | ### `npm run eject`
30 |
31 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
32 |
33 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
34 |
35 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
36 |
37 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
38 |
39 | ## Learn More
40 |
41 | In this project, wherever the word Structure is used, you can change the name of your project
42 |
43 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
44 |
45 | To learn React, check out the [React documentation](https://reactjs.org/).
46 |
47 | ### Code Splitting
48 |
49 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
50 |
51 | ### Analyzing the Bundle Size
52 |
53 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
54 |
55 | ### Making a Progressive Web App
56 |
57 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
58 |
59 | ### Advanced Configuration
60 |
61 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
62 |
63 | ### Deployment
64 |
65 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
66 |
67 | ### `npm run build` fails to minify
68 |
69 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
70 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "basic",
3 | "version": "0.1.0",
4 | "homepage": "./",
5 | "private": true,
6 | "dependencies": {
7 | "@testing-library/jest-dom": "^4.2.4",
8 | "@testing-library/react": "^9.3.2",
9 | "@testing-library/user-event": "^7.1.2",
10 | "react": "^16.13.1",
11 | "react-dom": "^16.13.1",
12 | "react-icons": "^3.10.0",
13 | "react-pro-sidebar": "^0.4.4",
14 | "react-scripts": "3.4.1",
15 | "react-switch": "^5.0.1"
16 | },
17 | "scripts": {
18 | "start": "react-scripts start",
19 | "build": "react-scripts build",
20 | "test": "react-scripts test",
21 | "eject": "react-scripts eject"
22 | },
23 | "eslintConfig": {
24 | "extends": "react-app"
25 | },
26 | "browserslist": {
27 | "production": [
28 | ">0.2%",
29 | "not dead",
30 | "not op_mini all"
31 | ],
32 | "development": [
33 | "last 1 chrome version",
34 | "last 1 firefox version",
35 | "last 1 safari version"
36 | ]
37 | },
38 | "devDependencies": {
39 | "node-sass": "^4.14.1"
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/public/assets/css/style.css:
--------------------------------------------------------------------------------
1 | /*? Default Style */
2 |
3 | /*? Font Vazir */
4 | @font-face {
5 | font-family: "VazirB";
6 | src: url("../fonts/Vazir-Bold-FD.eot"); /*? IE9 Compat Modes */
7 | src: url("../fonts/Vazir-Bold-FD.eot") format("embedded-opentype"),
8 | /*? IE6-IE8 */ url("../fonts/Vazir-Bold-FD.woff2") format("woff2"),
9 | /*? Super Modern Browsers */ url("../fonts/Vazir-Bold-FD.woff")
10 | format("woff"),
11 | /*? Pretty Modern Browsers */ url("../fonts/Vazir-Bold-FD.woff")
12 | format("truetype"); /*? Safari, Android, iOS */
13 | /*url('webfont.svg#svgFontName') format('svg'); !* Legacy iOS *!*/
14 | }
15 |
16 | body {
17 | font-family: "VazirB" !important;
18 | }
19 |
--------------------------------------------------------------------------------
/public/assets/fonts/Vazir-Bold-FD.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/fonts/Vazir-Bold-FD.eot
--------------------------------------------------------------------------------
/public/assets/fonts/Vazir-Bold-FD.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/fonts/Vazir-Bold-FD.ttf
--------------------------------------------------------------------------------
/public/assets/fonts/Vazir-Bold-FD.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/fonts/Vazir-Bold-FD.woff
--------------------------------------------------------------------------------
/public/assets/fonts/Vazir-Bold-FD.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/fonts/Vazir-Bold-FD.woff2
--------------------------------------------------------------------------------
/public/assets/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/img/favicon.ico
--------------------------------------------------------------------------------
/public/assets/img/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/img/logo192.png
--------------------------------------------------------------------------------
/public/assets/img/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hamzehazizzadeh/react-sidebar/5b09cae32453ed3001520fe30b3009bff476d6a1/public/assets/img/logo512.png
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
23 | کتابخانه نوار کناری را با منوهای کشویی و تعداد نامحدود زیر منوهای تو 24 | در تو واکنش نشان دهید 25 |
26 | 48 |