From b050c15cec32c8a3a5e318dcdb400a87425c8f58 Mon Sep 17 00:00:00 2001 From: ROSHAN GARG Date: Fri, 13 Sep 2024 10:19:04 +0530 Subject: [PATCH] rd init --- .browserslistrc | 11 + .editorconfig | 14 + .eslintrc.js | 27 + .gitattributes | 2 + .github/CODE_OF_CONDUCT.md | 46 + .github/COMMIT_CONVENTION.md | 83 ++ .github/CONTRIBUTING.md | 178 ++++ .github/FUNDING.yml | 4 + .github/ISSUE_TEMPLATE/bug_report.md | 20 + .github/ISSUE_TEMPLATE/feature_request.md | 18 + .github/SUPPORT.md | 9 + .github/workflows/npm.yml | 34 + .github/workflows/stale.yml | 27 + .gitignore | 25 + .prettierignore | 1 + .prettierrc.js | 7 + LICENSE | 21 + index.html | 30 + package.json | 67 ++ public/favicon.ico | Bin 0 -> 1150 bytes public/manifest.json | 15 + src/App.js | 68 ++ src/_nav.js | 348 +++++++ src/assets/brand/logo.js | 18 + src/assets/brand/sygnet.js | 7 + src/assets/data/cardjson.json | 26 + src/assets/images/angular.jpg | Bin 0 -> 169234 bytes src/assets/images/avatars/1.jpg | Bin 0 -> 13887 bytes src/assets/images/avatars/2.jpg | Bin 0 -> 12870 bytes src/assets/images/avatars/3.jpg | Bin 0 -> 13528 bytes src/assets/images/avatars/4.jpg | Bin 0 -> 13725 bytes src/assets/images/avatars/5.jpg | Bin 0 -> 12666 bytes src/assets/images/avatars/6.jpg | Bin 0 -> 11918 bytes src/assets/images/avatars/7.jpg | Bin 0 -> 14285 bytes src/assets/images/avatars/8.jpg | Bin 0 -> 15146 bytes src/assets/images/avatars/9.jpg | Bin 0 -> 12451 bytes src/assets/images/react.jpg | Bin 0 -> 199537 bytes src/assets/images/vue.jpg | Bin 0 -> 170599 bytes src/assets/logo.jpg | Bin 0 -> 17470 bytes src/auth.js | 10 + src/axios.js | 11 + src/components/AppBreadcrumb.js | 51 + src/components/AppContent.js | 33 + src/components/AppFooter.js | 23 + src/components/AppHeader.js | 151 +++ src/components/AppSidebar.js | 65 ++ src/components/AppSidebarNav.js | 69 ++ src/components/DocsCallout.js | 38 + src/components/DocsExample.js | 43 + src/components/DocsLink.js | 31 + src/components/header/AppHeaderDropdown.js | 92 ++ src/components/header/index.js | 3 + src/components/index.js | 21 + src/index.css | 16 + src/index.js | 14 + src/layout/DefaultLayout.js | 19 + src/protectedRoute.js | 42 + src/redux-store/CartStore/ducs.js | 126 +++ src/routes.js | 37 + src/scss/_custom.scss | 1 + src/scss/_theme.scss | 64 ++ src/scss/_variables.scss | 5 + src/scss/examples.scss | 116 +++ src/scss/style.scss | 15 + src/scss/vendors/simplebar.scss | 5 + src/store.js | 24 + .../buttons/button-groups/ButtonGroups.js | 439 +++++++++ src/views/buttons/buttons/Buttons.js | 401 ++++++++ src/views/buttons/dropdowns/Dropdowns.js | 338 +++++++ src/views/buttons/index.js | 5 + src/views/dashboard/Dashboard.js | 86 ++ src/views/orders/Order.js | 158 +++ src/views/orders/OrderDetails.js | 233 +++++ src/views/pages/Kyc/MessageList.js | 46 + src/views/pages/Kyc/imgModal.js | 55 ++ src/views/pages/Kyc/kyc.js | 351 +++++++ src/views/pages/Kyc/kycDetails.js | 466 +++++++++ src/views/pages/cart/addressAndPayment.js | 167 ++++ src/views/pages/cart/cart.js | 251 +++++ src/views/pages/cart/orderConfirmation.js | 159 ++++ src/views/pages/cart/reviewOrder.js | 196 ++++ src/views/pages/cart/shopingCart.js | 191 ++++ src/views/pages/forgetPassword.js | 106 +++ src/views/pages/login/Login.js | 195 ++++ src/views/pages/page404/Page404.js | 41 + src/views/pages/page500/Page500.js | 41 + .../pages/productManual/productManual.js | 117 +++ .../pages/productManual/viewProductManual.js | 107 +++ src/views/pages/profile/ChangePassword.js | 212 +++++ src/views/pages/profile/MyProfile.js | 193 ++++ src/views/pages/register/Register.js | 71 ++ src/views/shops/Shop.js | 139 +++ src/views/shops/shopCard.js | 46 + src/views/theme/colors/Colors.js | 91 ++ src/views/theme/typography/Typography.js | 229 +++++ src/views/widgets/Widgets.js | 898 ++++++++++++++++++ src/views/widgets/WidgetsBrand.js | 182 ++++ src/views/widgets/WidgetsDropdown.js | 396 ++++++++ vite.config.mjs | 49 + 99 files changed, 8886 insertions(+) create mode 100644 .browserslistrc create mode 100644 .editorconfig create mode 100644 .eslintrc.js create mode 100644 .gitattributes create mode 100644 .github/CODE_OF_CONDUCT.md create mode 100644 .github/COMMIT_CONVENTION.md create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/FUNDING.yml create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/SUPPORT.md create mode 100644 .github/workflows/npm.yml create mode 100644 .github/workflows/stale.yml create mode 100644 .gitignore create mode 100644 .prettierignore create mode 100644 .prettierrc.js create mode 100644 LICENSE create mode 100644 index.html create mode 100644 package.json create mode 100644 public/favicon.ico create mode 100644 public/manifest.json create mode 100644 src/App.js create mode 100644 src/_nav.js create mode 100644 src/assets/brand/logo.js create mode 100644 src/assets/brand/sygnet.js create mode 100644 src/assets/data/cardjson.json create mode 100644 src/assets/images/angular.jpg create mode 100644 src/assets/images/avatars/1.jpg create mode 100644 src/assets/images/avatars/2.jpg create mode 100644 src/assets/images/avatars/3.jpg create mode 100644 src/assets/images/avatars/4.jpg create mode 100644 src/assets/images/avatars/5.jpg create mode 100644 src/assets/images/avatars/6.jpg create mode 100644 src/assets/images/avatars/7.jpg create mode 100644 src/assets/images/avatars/8.jpg create mode 100644 src/assets/images/avatars/9.jpg create mode 100644 src/assets/images/react.jpg create mode 100644 src/assets/images/vue.jpg create mode 100644 src/assets/logo.jpg create mode 100644 src/auth.js create mode 100644 src/axios.js create mode 100644 src/components/AppBreadcrumb.js create mode 100644 src/components/AppContent.js create mode 100644 src/components/AppFooter.js create mode 100644 src/components/AppHeader.js create mode 100644 src/components/AppSidebar.js create mode 100644 src/components/AppSidebarNav.js create mode 100644 src/components/DocsCallout.js create mode 100644 src/components/DocsExample.js create mode 100644 src/components/DocsLink.js create mode 100644 src/components/header/AppHeaderDropdown.js create mode 100644 src/components/header/index.js create mode 100644 src/components/index.js create mode 100644 src/index.css create mode 100644 src/index.js create mode 100644 src/layout/DefaultLayout.js create mode 100644 src/protectedRoute.js create mode 100644 src/redux-store/CartStore/ducs.js create mode 100644 src/routes.js create mode 100644 src/scss/_custom.scss create mode 100644 src/scss/_theme.scss create mode 100644 src/scss/_variables.scss create mode 100644 src/scss/examples.scss create mode 100644 src/scss/style.scss create mode 100644 src/scss/vendors/simplebar.scss create mode 100644 src/store.js create mode 100644 src/views/buttons/button-groups/ButtonGroups.js create mode 100644 src/views/buttons/buttons/Buttons.js create mode 100644 src/views/buttons/dropdowns/Dropdowns.js create mode 100644 src/views/buttons/index.js create mode 100644 src/views/dashboard/Dashboard.js create mode 100644 src/views/orders/Order.js create mode 100644 src/views/orders/OrderDetails.js create mode 100644 src/views/pages/Kyc/MessageList.js create mode 100644 src/views/pages/Kyc/imgModal.js create mode 100644 src/views/pages/Kyc/kyc.js create mode 100644 src/views/pages/Kyc/kycDetails.js create mode 100644 src/views/pages/cart/addressAndPayment.js create mode 100644 src/views/pages/cart/cart.js create mode 100644 src/views/pages/cart/orderConfirmation.js create mode 100644 src/views/pages/cart/reviewOrder.js create mode 100644 src/views/pages/cart/shopingCart.js create mode 100644 src/views/pages/forgetPassword.js create mode 100644 src/views/pages/login/Login.js create mode 100644 src/views/pages/page404/Page404.js create mode 100644 src/views/pages/page500/Page500.js create mode 100644 src/views/pages/productManual/productManual.js create mode 100644 src/views/pages/productManual/viewProductManual.js create mode 100644 src/views/pages/profile/ChangePassword.js create mode 100644 src/views/pages/profile/MyProfile.js create mode 100644 src/views/pages/register/Register.js create mode 100644 src/views/shops/Shop.js create mode 100644 src/views/shops/shopCard.js create mode 100644 src/views/theme/colors/Colors.js create mode 100644 src/views/theme/typography/Typography.js create mode 100644 src/views/widgets/Widgets.js create mode 100644 src/views/widgets/WidgetsBrand.js create mode 100644 src/views/widgets/WidgetsDropdown.js create mode 100644 vite.config.mjs diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..a8afcba --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,11 @@ +# https://github.com/browserslist/browserslist#readme + +[production] +>0.2% +not dead +not op_mini all + +[development] +last 1 chrome version +last 1 firefox version +last 1 safari version diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..54e4850 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# Editor configuration, see http://editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..3137169 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,27 @@ +module.exports = { + // parser: '@typescript-eslint/parser', // Specifies the ESLint parser + parserOptions: { + ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features + sourceType: 'module', // Allows for the use of imports + ecmaFeatures: { + jsx: true, // Allows for the parsing of JSX + }, + }, + settings: { + react: { + version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use + }, + }, + extends: [ + 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react + 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. + ], + plugins: ['react', 'react-hooks'], + rules: { + rules: { + 'react/react-in-jsx-scope': 'off', + }, + // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs + // e.g. "@typescript-eslint/explicit-function-return-type": "off", + }, +} diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..205021e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Enforce Unix newlines +* text=auto eol=lf diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..64da877 --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at . The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ \ No newline at end of file diff --git a/.github/COMMIT_CONVENTION.md b/.github/COMMIT_CONVENTION.md new file mode 100644 index 0000000..261c7ca --- /dev/null +++ b/.github/COMMIT_CONVENTION.md @@ -0,0 +1,83 @@ +## Git Commit Message Convention + +> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/convention.md). + +#### Examples + +Appears under "Features" header, `compiler` subheader: + +``` +feat(compiler): add 'comments' option +``` + +Appears under "Bug Fixes" header, `sidebar` subheader, with a link to issue #28: + +``` +fix(sidebar): handle events on blur + +close #28 +``` + +Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: + +``` +perf(core): improve vdom diffing by removing 'foo' option + +BREAKING CHANGE: The 'foo' option has been removed. +``` + +The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. + +``` +revert: feat(compiler): add 'comments' option + +This reverts commit 667ecc1654a317a13331b17617d973392f415f02. +``` + +### Full Message Format + +A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: + +``` +(): + + + +