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
Showing
52 changed files
with
390 additions
and
3,823 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 @@ | ||
{ | ||
"presets": ["@babel/preset-react"] | ||
} |
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,5 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
*.local |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,49 +1,26 @@ | ||
{ | ||
"name": "simple", | ||
"private": true, | ||
"version": "3.0.0", | ||
"description": "", | ||
"main": "index.html", | ||
"scripts": { | ||
"dev": "./node_modules/.bin/webpack-dev-server --progress --color --hot --watch --mode development", | ||
"start": "USE_ALIAS=true ./node_modules/.bin/webpack-dev-server --progress --color --hot --watch --mode development", | ||
"serve": "./node_modules/.bin/serve --listen 8080 ./dist", | ||
"build": "./node_modules/.bin/webpack-cli --color --mode development --hide-modules true" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.4", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.11.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.8.3", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-react": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"babel-loader": "^8.0.4", | ||
"html-loader": "~1.3.0", | ||
"html-webpack-plugin": "~4.3.0", | ||
"ignore-not-found-export-plugin": "^1.0.1", | ||
"serve": "^10.1.2", | ||
"style-loader": "~1.2.1", | ||
"wait-on": "^3.2.0", | ||
"webpack": "~4.5.0", | ||
"webpack-bundle-analyzer": "^3.3.2", | ||
"webpack-cli": "~2.0.13", | ||
"webpack-dev-server": "~3.1.11" | ||
}, | ||
"dependencies": { | ||
"@babel/polyfill": "^7.10.4", | ||
"@material-ui/core": "^4.11.2", | ||
"@material-ui/icons": "^4.11.2", | ||
"ra-data-fakerest": "^3.9.0", | ||
"ra-i18n-polyglot": "^3.9.0", | ||
"ra-input-rich-text": "^3.9.0", | ||
"ra-language-english": "^3.9.0", | ||
"ra-language-french": "^3.9.0", | ||
"react": "^17.0.0", | ||
"react-admin": "^3.9.0", | ||
"react-dom": "^17.0.0" | ||
} | ||
"name": "simple-vite", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"start": "vite", | ||
"build": "vite build", | ||
"serve": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@material-ui/core": "^4.11.2", | ||
"@material-ui/icons": "^4.11.2", | ||
"ra-data-fakerest": "^3.9.0", | ||
"ra-i18n-polyglot": "^3.9.0", | ||
"ra-input-rich-text": "^3.9.0", | ||
"ra-language-english": "^3.9.0", | ||
"ra-language-french": "^3.9.0", | ||
"react": "^17.0.0", | ||
"react-admin": "^3.9.0", | ||
"react-dom": "^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.12.10", | ||
"@vitejs/plugin-react-refresh": "^1.2.2", | ||
"vite": "^2.0.0-beta.62" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
examples/simple/src/comments/CommentEdit.js → examples/simple/src/comments/CommentEdit.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...c/comments/PostQuickCreateCancelButton.js → .../comments/PostQuickCreateCancelButton.tsx
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
examples/simple/src/posts/PostList.js → examples/simple/src/posts/PostList.tsx
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
examples/simple/src/users/Aside.js → examples/simple/src/users/Aside.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,12 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "lib", | ||
"rootDir": "src", | ||
"declaration": true, | ||
"allowJs": false, | ||
}, | ||
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"], | ||
"include": ["src"] | ||
} |
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,35 @@ | ||
import reactRefresh from '@vitejs/plugin-react-refresh'; | ||
import path from 'path'; | ||
|
||
/** | ||
* https://vitejs.dev/config/ | ||
* @type { import('vite').UserConfig } | ||
*/ | ||
export default { | ||
plugins: [reactRefresh()], | ||
alias: [ | ||
{ | ||
find: /^react-admin$/, | ||
replacement: path.resolve( | ||
__dirname, | ||
'../../packages/react-admin/src' | ||
), | ||
}, | ||
{ | ||
find: /^ra-(.*)$/, | ||
replacement: path.resolve(__dirname, '../../packages/ra-$1/src'), | ||
}, | ||
{ | ||
find: /^@material-ui\/icons\/(.*)/, | ||
replacement: '@material-ui/icons/esm/$1', | ||
}, | ||
{ | ||
find: /^@material-ui\/core\/(.+)/, | ||
replacement: '@material-ui/core/es/$1', | ||
}, | ||
{ | ||
find: /^@material-ui\/core$/, | ||
replacement: '@material-ui/core/es', | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.