-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 #6544 from marmelab/simple-example-ie11
Ensure simple demo runs on ie11
- Loading branch information
Showing
5 changed files
with
84 additions
and
67 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 |
---|---|---|
@@ -1,30 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>React Admin</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<!-- This script adds the Roboto font to our project. For more detail go to this site: http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500 --> | ||
<script> | ||
var WebFontConfig = { | ||
google: { families: ['Roboto:300,400,500,700:latin'] } | ||
}; | ||
(function () { | ||
var wf = document.createElement('script'); | ||
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | ||
wf.type = 'text/javascript'; | ||
wf.async = 'true'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(wf, s); | ||
})(); | ||
</script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>React Admin</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
} | ||
</style> | ||
<script> | ||
const modernBrowser = 'fetch' in window && 'assign' in Object; | ||
if (!modernBrowser) { | ||
const scriptElement = document.createElement('script'); | ||
scriptElement.async = false; | ||
scriptElement.src = '/polyfills.bundle.js'; | ||
document.head.appendChild(scriptElement); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<!-- This script adds the Roboto font to our project. For more detail go to this site: http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500 --> | ||
<script> | ||
var WebFontConfig = { | ||
google: { families: ['Roboto:300,400,500,700:latin'] }, | ||
}; | ||
(function () { | ||
var wf = document.createElement('script'); | ||
wf.src = | ||
'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | ||
wf.type = 'text/javascript'; | ||
wf.async = 'true'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(wf, s); | ||
})(); | ||
</script> | ||
<script src="/index.bundle.js"></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 |
---|---|---|
@@ -1,36 +1,37 @@ | ||
{ | ||
"name": "simple", | ||
"version": "3.0.0", | ||
"scripts": { | ||
"dev": "./node_modules/.bin/webpack-dev-server --progress --color --hot --watch --mode development", | ||
"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.3", | ||
"ra-i18n-polyglot": "^3.12.4", | ||
"ra-input-rich-text": "^3.12.0", | ||
"ra-language-english": "^3.12.4", | ||
"ra-language-french": "^3.12.4", | ||
"react": "^17.0.0", | ||
"react-admin": "^3.12.4", | ||
"react-dom": "^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.12.10", | ||
"@vitejs/plugin-react-refresh": "^1.3.3", | ||
"ts-loader": "^8.0.14", | ||
"html-loader": "~1.3.0", | ||
"html-webpack-plugin": "~4.3.0", | ||
"ignore-not-found-export-plugin": "^1.0.1", | ||
"style-loader": "~1.2.1", | ||
"typescript": "^4.1.3", | ||
"vite": "^2.2.3", | ||
"webpack": "~4.5.0", | ||
"webpack-cli": "~2.0.13", | ||
"webpack-dev-server": "~3.1.11" | ||
} | ||
"name": "simple", | ||
"version": "3.0.0", | ||
"scripts": { | ||
"dev": "./node_modules/.bin/webpack-dev-server --progress --color --hot --watch --mode development", | ||
"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.3", | ||
"ra-i18n-polyglot": "^3.12.4", | ||
"ra-input-rich-text": "^3.12.0", | ||
"ra-language-english": "^3.12.4", | ||
"ra-language-french": "^3.12.4", | ||
"react": "^17.0.0", | ||
"react-admin": "^3.12.4", | ||
"react-dom": "^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.12.10", | ||
"@vitejs/plugin-react-refresh": "^1.3.3", | ||
"ts-loader": "^8.0.14", | ||
"html-loader": "~1.3.0", | ||
"html-webpack-plugin": "~4.3.0", | ||
"ignore-not-found-export-plugin": "^1.0.1", | ||
"react-app-polyfill": "^1.0.4", | ||
"style-loader": "~1.2.1", | ||
"typescript": "^4.1.3", | ||
"vite": "^2.2.3", | ||
"webpack": "~4.5.0", | ||
"webpack-cli": "~2.0.13", | ||
"webpack-dev-server": "~3.1.11" | ||
} | ||
} |
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 @@ | ||
import 'react-app-polyfill/ie11'; | ||
import 'react-app-polyfill/stable'; | ||
import 'proxy-polyfill/proxy.min.js'; |
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