-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ce0195c
Showing
918 changed files
with
144,752 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MEDUSA_BACKEND_URL=<MEDUSA_BACKEND_URL> | ||
ADMIN_PATH=<ADMIN_PATH> | ||
NODE_ENV="development" |
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,76 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features | ||
"sourceType": "module" // Allows for the use of imports | ||
}, | ||
"plugins": [ | ||
"eslint-plugin-prettier", | ||
"unused-imports", | ||
"react", | ||
"@typescript-eslint", | ||
"react-hooks" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"google", | ||
"eslint-config-prettier", | ||
"plugin:vitest-globals/recommended" | ||
], | ||
"globals": { | ||
"__MEDUSA_BACKEND_URL__": true | ||
}, | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"curly": [2, "all"], | ||
"new-cap": "off", | ||
"require-jsdoc": "off", | ||
"semi": "off", | ||
"valid-jsdoc": "off", | ||
"no-unused-expressions": "off", | ||
"camelcase": "off", | ||
"no-invalid-this": "off", | ||
"spaced-comment": ["error", "always", { "markers": ["/"] }], | ||
"react/prop-types": "off", // Disable prop-types as we use TypeScript for type checking | ||
"react-hooks/rules-of-hooks": 1, // Checks rules of Hooks | ||
"react-hooks/exhaustive-deps": 1, // Checks effect dependencies | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-implicit-any": 0, | ||
"@typescript-eslint/no-unused-vars": 0, | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"varsIgnorePattern": "^_", | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_" | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
"vitest-globals/env": true | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.js"], | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": 0, | ||
"react/jsx-uses-react": 1, | ||
"react/react-in-jsx-scope": 1 | ||
} | ||
} | ||
] | ||
} |
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,32 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
.env | ||
yarn.lock | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Gatsby compat. | ||
.cache/ | ||
public | ||
|
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 @@ | ||
.cache | ||
package.json | ||
package-lock.json | ||
public |
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,10 @@ | ||
{ | ||
"arrowParens": "always", | ||
"semi": false, | ||
"endOfLine": "auto", | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"tailwindConfig": "./tailwind.config.js", | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Medusajs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
# A fork of the Medusa Admin system that works with the latest version as a standalone app using Vite |
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,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, shrink-to-fit=no" | ||
/> | ||
<link rel="icon" type="image/svg+xml" sizes="any" href="/logo.svg"> | ||
<title>Medusa</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
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 @@ | ||
[template.environment] | ||
MEDUSA_BACKEND_URL="URL of your Medusa Server" | ||
ADMIN_PATH="URL of your Admin Server" | ||
|
||
[build] | ||
publish = "public/" |
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,182 @@ | ||
{ | ||
"name": "medusa-admin", | ||
"private": true, | ||
"description": "A fork of the Medusa Admin system that works with the latest version as a standalone app", | ||
"version": "1.0.0", | ||
"author": "@perseidesjs", | ||
"resolutions": { | ||
"devcert": "1.2.1", | ||
"postcss": "^8.4.5", | ||
"@types/react": "^18.0.21" | ||
}, | ||
"dependencies": { | ||
"@babel/parser": "7.22.5", | ||
"@babel/traverse": "7.22.5", | ||
"@hookform/error-message": "^2.0.1", | ||
"@hookform/resolvers": "^3.3.1", | ||
"@medusajs/icons": "^1.1.0", | ||
"@medusajs/ui": "^2.4.0", | ||
"@medusajs/ui-preset": "^1.1.1", | ||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", | ||
"@radix-ui/react-accordion": "^1.0.1", | ||
"@radix-ui/react-avatar": "^1.0.1", | ||
"@radix-ui/react-collapsible": "^1.0.1", | ||
"@radix-ui/react-dialog": "^1.0.4", | ||
"@radix-ui/react-dropdown-menu": "^2.0.2", | ||
"@radix-ui/react-popover": "^1.0.3", | ||
"@radix-ui/react-portal": "^1.0.2", | ||
"@radix-ui/react-radio-group": "^1.1.1", | ||
"@radix-ui/react-select": "^2.0.0", | ||
"@radix-ui/react-switch": "^1.0.1", | ||
"@radix-ui/react-tooltip": "^1.0.3", | ||
"@segment/analytics-next": "^1.51.1", | ||
"@svgr/webpack": "^8.0.1", | ||
"@swc/core": "^1.3.61", | ||
"@tailwindcss/forms": "^0.5.3", | ||
"@tanstack/react-query": "4.22.0", | ||
"@tanstack/react-table": "^8.7.9", | ||
"autoprefixer": "^10.4.13", | ||
"chokidar": "^3.5.3", | ||
"clsx": "^1.2.1", | ||
"copy-to-clipboard": "^3.3.1", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"css-loader": "^6.8.1", | ||
"emoji-picker-react": "^4.4.3", | ||
"framer-motion": "^9.1.6", | ||
"html-webpack-plugin": "^5.5.1", | ||
"i18next": "^22.5.0", | ||
"i18next-browser-languagedetector": "^7.0.1", | ||
"i18next-http-backend": "^2.2.1", | ||
"md5": "^2.3.0", | ||
"medusa-react": "^9.0.13", | ||
"mini-css-extract-plugin": "^2.7.6", | ||
"moment": "^2.29.4", | ||
"path-browserify": "^1.0.1", | ||
"pluralize": "^8.0.0", | ||
"postcss": "^8.4.21", | ||
"postcss-loader": "^7.3.2", | ||
"postcss-preset-env": "^8.4.1", | ||
"prism-react-renderer": "^2.0.4", | ||
"process": "^0.11.10", | ||
"query-string": "^8.1.0", | ||
"react": "^18.2.0", | ||
"react-collapsible": "^2.8.3", | ||
"react-country-flag": "^3.0.2", | ||
"react-currency-input-field": "^3.6.8", | ||
"react-datepicker": "^4.8.0", | ||
"react-dev-utils": "^12.0.1", | ||
"react-dnd": "^16.0.1", | ||
"react-dnd-html5-backend": "^16.0.1", | ||
"react-dom": "^18.2.0", | ||
"react-helmet-async": "^1.3.0", | ||
"react-highlight-words": "^0.18.0", | ||
"react-hook-form": "7.38.0", | ||
"react-hot-toast": "2.4.0", | ||
"react-hotkeys-hook": "^3.4.7", | ||
"react-i18next": "^12.3.1", | ||
"react-json-tree": "^0.17.0", | ||
"react-jwt": "^1.1.4", | ||
"react-nestable": "^2.0.0", | ||
"react-refresh": "^0.14.0", | ||
"react-router-dom": "6.8.0", | ||
"react-select": "^5.5.4", | ||
"react-table": "^7.7.0", | ||
"style-loader": "^3.3.3", | ||
"swc-loader": "^0.2.3", | ||
"swc-minify-webpack-plugin": "^2.1.1", | ||
"tailwindcss": "3.2.2", | ||
"tailwindcss-radix": "^2.7.0", | ||
"ts-dedent": "^2.2.0", | ||
"type-fest": "^3.6.0", | ||
"webpack": "^5.84.1", | ||
"webpack-dev-server": "4.15.0", | ||
"webpackbar": "^5.0.2", | ||
"zod": "^3.22.2", | ||
"@medusajs/medusa": "^1.7.7", | ||
"@tailwindcss/line-clamp": "^0.3.1", | ||
"axios": "^1.1.3", | ||
"confetti-js": "^0.0.18", | ||
"crypto-browserify": "^3.12.0", | ||
"immutability-helper": "^3.1.1", | ||
"iso8601-duration": "^1.3.0", | ||
"lodash": "^4.17.21", | ||
"randomatic": "^3.1.1", | ||
"react-helmet": "^6.0.0", | ||
"stream-browserify": "^3.0.0", | ||
"uuid": "^8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/types": "7.22.5", | ||
"@medusajs/medusa": "^1.20.2", | ||
"@medusajs/types": "^1.11.12", | ||
"@types/pluralize": "^0.0.29", | ||
"@types/react": "^18.2.0", | ||
"@types/react-datepicker": "^4.10.0", | ||
"@types/react-dom": "^18.2.0", | ||
"@types/react-table": "^7.7.9", | ||
"duplicate-dependencies-webpack-plugin": "^1.0.2", | ||
"i18next-parser": "^8.0.0", | ||
"jest": "25.5.4", | ||
"ts-jest": "25.5.1", | ||
"ts-node": "^10.9.1", | ||
"tsup": "6.7.0", | ||
"typescript": "^4.9.3", | ||
"webpack-bundle-analyzer": "^4.9.0", | ||
"webpack-cli": "^5.1.1", | ||
"@babel/core": "^7.10.2", | ||
"@storybook/addon-essentials": "^6.5.5", | ||
"@storybook/builder-vite": "^0.2.4", | ||
"@storybook/react": "^6.5.5", | ||
"@tailwindcss/forms": "^0.5.3", | ||
"@tailwindcss/line-clamp": "^0.3.1", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/randomatic": "^3.1.3", | ||
"@types/react-highlight-words": "^0.16.4", | ||
"@types/uuid": "^8.3.4", | ||
"@typescript-eslint/eslint-plugin": "^5.40.1", | ||
"@typescript-eslint/parser": "^5.40.1", | ||
"@vitejs/plugin-react": "^3.1.0", | ||
"autoprefixer": "^10.4.13", | ||
"babel-loader": "^8.1.0", | ||
"chromatic": "^6.4.0", | ||
"eslint": "^8.33.0", | ||
"eslint-config-google": "^0.14.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.31.10", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-unused-imports": "^2.0.0", | ||
"eslint-plugin-vitest-globals": "^1.2.0", | ||
"jsdom": "^21.1.0", | ||
"postcss": "^8.4.18", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-tailwindcss": "^0.2.2", | ||
"storybook-addon-state": "^1.0.3", | ||
"tailwindcss": "3.2.2", | ||
"tailwindcss-radix": "^2.6.1", | ||
"vite": "^4.1.1", | ||
"vitest": "^0.28.4" | ||
}, | ||
"scripts": { | ||
"dev": "vite --port 7000", | ||
"develop": "npm run dev", | ||
"check": "tsc", | ||
"build": "vite build", | ||
"preview": "vite preview --port 7000", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", | ||
"start": "npm run dev", | ||
"serve": "npm run preview", | ||
"test": "vitest", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/perseidesjs/admin" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/perseidesjs/admin/issues" | ||
} | ||
} |
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,11 @@ | ||
const path = require("path") | ||
|
||
module.exports = { | ||
plugins: [ | ||
require("tailwindcss/nesting"), | ||
require("tailwindcss")({ | ||
config: path.join(__dirname, "tailwind.config.js"), | ||
}), | ||
require("autoprefixer"), | ||
], | ||
} |
Oops, something went wrong.