+
+
diff --git a/demos/nginx-1.14.0/conf/conf.d/demo01.conf b/examples/nginx-1.14.0/conf/conf.d/demo01.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/conf.d/demo01.conf
rename to examples/nginx-1.14.0/conf/conf.d/demo01.conf
diff --git a/demos/nginx-1.14.0/conf/conf.d/demo02.conf b/examples/nginx-1.14.0/conf/conf.d/demo02.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/conf.d/demo02.conf
rename to examples/nginx-1.14.0/conf/conf.d/demo02.conf
diff --git a/demos/nginx-1.14.0/conf/conf.d/demo03.conf b/examples/nginx-1.14.0/conf/conf.d/demo03.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/conf.d/demo03.conf
rename to examples/nginx-1.14.0/conf/conf.d/demo03.conf
diff --git a/demos/nginx-1.14.0/conf/conf.d/demo04.conf b/examples/nginx-1.14.0/conf/conf.d/demo04.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/conf.d/demo04.conf
rename to examples/nginx-1.14.0/conf/conf.d/demo04.conf
diff --git a/demos/nginx-1.14.0/conf/conf.d/demo05.conf b/examples/nginx-1.14.0/conf/conf.d/demo05.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/conf.d/demo05.conf
rename to examples/nginx-1.14.0/conf/conf.d/demo05.conf
diff --git a/demos/nginx-1.14.0/conf/conf.d/demo06.conf b/examples/nginx-1.14.0/conf/conf.d/demo06.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/conf.d/demo06.conf
rename to examples/nginx-1.14.0/conf/conf.d/demo06.conf
diff --git a/demos/nginx-1.14.0/conf/fastcgi.conf b/examples/nginx-1.14.0/conf/fastcgi.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/fastcgi.conf
rename to examples/nginx-1.14.0/conf/fastcgi.conf
diff --git a/demos/nginx-1.14.0/conf/fastcgi_params b/examples/nginx-1.14.0/conf/fastcgi_params
similarity index 100%
rename from demos/nginx-1.14.0/conf/fastcgi_params
rename to examples/nginx-1.14.0/conf/fastcgi_params
diff --git a/demos/nginx-1.14.0/conf/koi-utf b/examples/nginx-1.14.0/conf/koi-utf
similarity index 100%
rename from demos/nginx-1.14.0/conf/koi-utf
rename to examples/nginx-1.14.0/conf/koi-utf
diff --git a/demos/nginx-1.14.0/conf/koi-win b/examples/nginx-1.14.0/conf/koi-win
similarity index 100%
rename from demos/nginx-1.14.0/conf/koi-win
rename to examples/nginx-1.14.0/conf/koi-win
diff --git a/demos/nginx-1.14.0/conf/mime.types b/examples/nginx-1.14.0/conf/mime.types
similarity index 100%
rename from demos/nginx-1.14.0/conf/mime.types
rename to examples/nginx-1.14.0/conf/mime.types
diff --git a/demos/nginx-1.14.0/conf/nginx.conf b/examples/nginx-1.14.0/conf/nginx.conf
similarity index 100%
rename from demos/nginx-1.14.0/conf/nginx.conf
rename to examples/nginx-1.14.0/conf/nginx.conf
diff --git a/demos/nginx-1.14.0/conf/scgi_params b/examples/nginx-1.14.0/conf/scgi_params
similarity index 100%
rename from demos/nginx-1.14.0/conf/scgi_params
rename to examples/nginx-1.14.0/conf/scgi_params
diff --git a/demos/nginx-1.14.0/conf/uwsgi_params b/examples/nginx-1.14.0/conf/uwsgi_params
similarity index 100%
rename from demos/nginx-1.14.0/conf/uwsgi_params
rename to examples/nginx-1.14.0/conf/uwsgi_params
diff --git a/demos/nginx-1.14.0/conf/win-utf b/examples/nginx-1.14.0/conf/win-utf
similarity index 100%
rename from demos/nginx-1.14.0/conf/win-utf
rename to examples/nginx-1.14.0/conf/win-utf
diff --git a/demos/nginx-1.14.0/contrib/README b/examples/nginx-1.14.0/contrib/README
similarity index 100%
rename from demos/nginx-1.14.0/contrib/README
rename to examples/nginx-1.14.0/contrib/README
diff --git a/demos/nginx-1.14.0/contrib/geo2nginx.pl b/examples/nginx-1.14.0/contrib/geo2nginx.pl
similarity index 100%
rename from demos/nginx-1.14.0/contrib/geo2nginx.pl
rename to examples/nginx-1.14.0/contrib/geo2nginx.pl
diff --git a/demos/nginx-1.14.0/contrib/unicode2nginx/koi-utf b/examples/nginx-1.14.0/contrib/unicode2nginx/koi-utf
similarity index 100%
rename from demos/nginx-1.14.0/contrib/unicode2nginx/koi-utf
rename to examples/nginx-1.14.0/contrib/unicode2nginx/koi-utf
diff --git a/demos/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl b/examples/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl
similarity index 100%
rename from demos/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl
rename to examples/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl
diff --git a/demos/nginx-1.14.0/contrib/unicode2nginx/win-utf b/examples/nginx-1.14.0/contrib/unicode2nginx/win-utf
similarity index 100%
rename from demos/nginx-1.14.0/contrib/unicode2nginx/win-utf
rename to examples/nginx-1.14.0/contrib/unicode2nginx/win-utf
diff --git a/demos/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim b/examples/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim
similarity index 100%
rename from demos/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim
rename to examples/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim
diff --git a/demos/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim b/examples/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim
similarity index 100%
rename from demos/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim
rename to examples/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim
diff --git a/demos/nginx-1.14.0/contrib/vim/indent/nginx.vim b/examples/nginx-1.14.0/contrib/vim/indent/nginx.vim
similarity index 100%
rename from demos/nginx-1.14.0/contrib/vim/indent/nginx.vim
rename to examples/nginx-1.14.0/contrib/vim/indent/nginx.vim
diff --git a/demos/nginx-1.14.0/contrib/vim/syntax/nginx.vim b/examples/nginx-1.14.0/contrib/vim/syntax/nginx.vim
similarity index 100%
rename from demos/nginx-1.14.0/contrib/vim/syntax/nginx.vim
rename to examples/nginx-1.14.0/contrib/vim/syntax/nginx.vim
diff --git a/demos/nginx-1.14.0/docs/CHANGES b/examples/nginx-1.14.0/docs/CHANGES
similarity index 100%
rename from demos/nginx-1.14.0/docs/CHANGES
rename to examples/nginx-1.14.0/docs/CHANGES
diff --git a/demos/nginx-1.14.0/docs/CHANGES.ru b/examples/nginx-1.14.0/docs/CHANGES.ru
similarity index 100%
rename from demos/nginx-1.14.0/docs/CHANGES.ru
rename to examples/nginx-1.14.0/docs/CHANGES.ru
diff --git a/demos/nginx-1.14.0/docs/LICENSE b/examples/nginx-1.14.0/docs/LICENSE
similarity index 100%
rename from demos/nginx-1.14.0/docs/LICENSE
rename to examples/nginx-1.14.0/docs/LICENSE
diff --git a/demos/nginx-1.14.0/docs/OpenSSL.LICENSE b/examples/nginx-1.14.0/docs/OpenSSL.LICENSE
similarity index 100%
rename from demos/nginx-1.14.0/docs/OpenSSL.LICENSE
rename to examples/nginx-1.14.0/docs/OpenSSL.LICENSE
diff --git a/demos/nginx-1.14.0/docs/PCRE.LICENCE b/examples/nginx-1.14.0/docs/PCRE.LICENCE
similarity index 100%
rename from demos/nginx-1.14.0/docs/PCRE.LICENCE
rename to examples/nginx-1.14.0/docs/PCRE.LICENCE
diff --git a/demos/nginx-1.14.0/docs/README b/examples/nginx-1.14.0/docs/README
similarity index 100%
rename from demos/nginx-1.14.0/docs/README
rename to examples/nginx-1.14.0/docs/README
diff --git a/demos/nginx-1.14.0/docs/zlib.LICENSE b/examples/nginx-1.14.0/docs/zlib.LICENSE
similarity index 100%
rename from demos/nginx-1.14.0/docs/zlib.LICENSE
rename to examples/nginx-1.14.0/docs/zlib.LICENSE
diff --git a/demos/nginx-1.14.0/html/50x.html b/examples/nginx-1.14.0/html/50x.html
similarity index 51%
rename from demos/nginx-1.14.0/html/50x.html
rename to examples/nginx-1.14.0/html/50x.html
index 1afb814..dee1723 100644
--- a/demos/nginx-1.14.0/html/50x.html
+++ b/examples/nginx-1.14.0/html/50x.html
@@ -1,21 +1,21 @@
- Error
-
+ Error
+
An error occurred.
Sorry, the page you are looking for is currently unavailable.
- Please try again later.
+ Please try again later.
If you are the system administrator of this resource then you should check
- the error log for details.
diff --git a/examples/nginx-1.14.0/html/index.html b/examples/nginx-1.14.0/html/index.html
new file mode 100644
index 0000000..ca2fcfc
--- /dev/null
+++ b/examples/nginx-1.14.0/html/index.html
@@ -0,0 +1,25 @@
+
+
+
+ Welcome to nginx!
+
+
+
+
Welcome to nginx!
+
If you see this page, the nginx web server is successfully installed and
+ working. Further configuration is required.
+
+
For online documentation and support please refer to
+ nginx.org.
+ Commercial support is available at
+ nginx.com.
+
+
Thank you for using nginx.
+
+
diff --git a/demos/nginx-1.14.0/nginx-start.bat b/examples/nginx-1.14.0/nginx-start.bat
similarity index 100%
rename from demos/nginx-1.14.0/nginx-start.bat
rename to examples/nginx-1.14.0/nginx-start.bat
diff --git a/demos/nginx-1.14.0/nginx-stop.bat b/examples/nginx-1.14.0/nginx-stop.bat
similarity index 100%
rename from demos/nginx-1.14.0/nginx-stop.bat
rename to examples/nginx-1.14.0/nginx-stop.bat
diff --git a/demos/nginx-1.14.0/nginx.exe b/examples/nginx-1.14.0/nginx.exe
similarity index 100%
rename from demos/nginx-1.14.0/nginx.exe
rename to examples/nginx-1.14.0/nginx.exe
diff --git a/demos/nginx.conf b/examples/nginx.conf
similarity index 100%
rename from demos/nginx.conf
rename to examples/nginx.conf
diff --git a/demos/reactadmin/.gitignore b/examples/reactadmin/.gitignore
similarity index 100%
rename from demos/reactadmin/.gitignore
rename to examples/reactadmin/.gitignore
diff --git a/demos/reactadmin/README.md b/examples/reactadmin/README.md
similarity index 100%
rename from demos/reactadmin/README.md
rename to examples/reactadmin/README.md
diff --git a/demos/reactadmin/package-lock.json b/examples/reactadmin/package-lock.json
similarity index 100%
rename from demos/reactadmin/package-lock.json
rename to examples/reactadmin/package-lock.json
diff --git a/examples/reactadmin/package.json b/examples/reactadmin/package.json
new file mode 100644
index 0000000..f59a43d
--- /dev/null
+++ b/examples/reactadmin/package.json
@@ -0,0 +1,25 @@
+{
+ "name": "react-admin",
+ "version": "0.1.0",
+ "private": true,
+ "dependencies": {
+ "react": "^16.7.0",
+ "react-dom": "^16.7.0",
+ "react-scripts": "2.1.3"
+ },
+ "scripts": {
+ "start": "react-scripts start",
+ "build": "react-scripts build",
+ "test": "react-scripts test",
+ "eject": "react-scripts eject"
+ },
+ "eslintConfig": {
+ "extends": "react-app"
+ },
+ "browserslist": [
+ ">0.2%",
+ "not dead",
+ "not ie <= 11",
+ "not op_mini all"
+ ]
+}
diff --git a/demos/reactadmin/public/favicon.ico b/examples/reactadmin/public/favicon.ico
similarity index 100%
rename from demos/reactadmin/public/favicon.ico
rename to examples/reactadmin/public/favicon.ico
diff --git a/examples/reactadmin/public/index.html b/examples/reactadmin/public/index.html
new file mode 100644
index 0000000..b934aa5
--- /dev/null
+++ b/examples/reactadmin/public/index.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ React App
+
+
+
+
+
+
+
diff --git a/examples/reactadmin/public/manifest.json b/examples/reactadmin/public/manifest.json
new file mode 100644
index 0000000..952449d
--- /dev/null
+++ b/examples/reactadmin/public/manifest.json
@@ -0,0 +1,15 @@
+{
+ "short_name": "React App",
+ "name": "Create React App Sample",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "64x64 32x32 24x24 16x16",
+ "type": "image/x-icon"
+ }
+ ],
+ "start_url": ".",
+ "display": "standalone",
+ "theme_color": "#000000",
+ "background_color": "#ffffff"
+}
diff --git a/examples/reactadmin/src/App.css b/examples/reactadmin/src/App.css
new file mode 100644
index 0000000..9fb43a1
--- /dev/null
+++ b/examples/reactadmin/src/App.css
@@ -0,0 +1,32 @@
+.App {
+ text-align: center;
+}
+
+.App-logo {
+ animation: App-logo-spin infinite 20s linear;
+ height: 40vmin;
+}
+
+.App-header {
+ background-color: #282C34;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: calc(10px + 2vmin);
+ color: white;
+}
+
+.App-link {
+ color: #61DAFB;
+}
+
+@keyframes App-logo-spin {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
diff --git a/examples/reactadmin/src/App.js b/examples/reactadmin/src/App.js
new file mode 100644
index 0000000..4d3cb2b
--- /dev/null
+++ b/examples/reactadmin/src/App.js
@@ -0,0 +1,35 @@
+import React, { Component } from 'react'
+import logo from './logo.svg'
+import './App.css'
+
+class App extends Component {
+ render() {
+ return (
+ < div
+ className = 'App' >
+ < header
+ className = 'App-header' >
+ < img
+ src = { logo }
+ className = 'App-logo'
+ alt = 'logo' / >
+ < p >
+ Edit < code > src / App.js < /code> and save to reload.
+ < /p>
+ < a
+ className = 'App-link'
+ href = 'https://reactjs.org'
+ target = '_blank'
+ rel = 'noopener noreferrer'
+ >
+ Learn
+ React
+ < /a>
+ < /header>
+ < /div>
+ )
+
+ }
+}
+
+export default App
diff --git a/examples/reactadmin/src/App.test.js b/examples/reactadmin/src/App.test.js
new file mode 100644
index 0000000..9d442bf
--- /dev/null
+++ b/examples/reactadmin/src/App.test.js
@@ -0,0 +1,10 @@
+import ReactDOM from 'react-dom'
+import App from './App'
+
+it('renders without crashing', () => {
+ const div = document.createElement('div')
+ ReactDOM.render( < App / >, div
+)
+
+ ReactDOM.unmountComponentAtNode(div)
+})
diff --git a/examples/reactadmin/src/index.css b/examples/reactadmin/src/index.css
new file mode 100644
index 0000000..9c1dfbf
--- /dev/null
+++ b/examples/reactadmin/src/index.css
@@ -0,0 +1,14 @@
+body {
+ margin: 0;
+ padding: 0;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
+ sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+code {
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
+ monospace;
+}
diff --git a/demos/reactadmin/src/index.js b/examples/reactadmin/src/index.js
similarity index 100%
rename from demos/reactadmin/src/index.js
rename to examples/reactadmin/src/index.js
diff --git a/examples/reactadmin/src/logo.svg b/examples/reactadmin/src/logo.svg
new file mode 100644
index 0000000..1b92809
--- /dev/null
+++ b/examples/reactadmin/src/logo.svg
@@ -0,0 +1,8 @@
+
diff --git a/examples/reactadmin/src/serviceWorker.js b/examples/reactadmin/src/serviceWorker.js
new file mode 100644
index 0000000..59cba35
--- /dev/null
+++ b/examples/reactadmin/src/serviceWorker.js
@@ -0,0 +1,135 @@
+// This optional code is used to register a service worker.
+// register() is not called by default.
+
+// This lets the app load faster on subsequent visits in production, and gives
+// it offline capabilities. However, it also means that developers (and users)
+// will only see deployed updates on subsequent visits to a page, after all the
+// existing tabs open on the page have been closed, since previously cached
+// resources are updated in the background.
+
+// To learn more about the benefits of this model and instructions on how to
+// opt-in, read http://bit.ly/CRA-PWA
+
+const isLocalhost = Boolean(
+ window.location.hostname === 'localhost' ||
+ // [::1] is the IPv6 localhost address.
+ window.location.hostname === '[::1]' ||
+ // 127.0.0.1/8 is considered localhost for IPv4.
+ window.location.hostname.match(
+ /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
+ )
+)
+
+export function register(config) {
+ if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
+ // The URL constructor is available in all browsers that support SW.
+ const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href)
+ if (publicUrl.origin !== window.location.origin) {
+ // Our service worker won't work if PUBLIC_URL is on a different origin
+ // from what our page is served on. This might happen if a CDN is used to
+ // serve assets; see https://github.com/facebook/create-react-app/issues/2374
+ return
+ }
+
+ window.addEventListener('load', () => {
+ const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`
+
+ if (isLocalhost) {
+ // This is running on localhost. Let's check if a service worker still exists or not.
+ checkValidServiceWorker(swUrl, config)
+
+ // Add some additional logging to localhost, pointing developers to the
+ // service worker/PWA documentation.
+ navigator.serviceWorker.ready.then(() => {
+ console.log(
+ 'This web app is being served cache-first by a service ' +
+ 'worker. To learn more, visit http://bit.ly/CRA-PWA'
+ )
+ })
+ } else {
+ // Is not localhost. Just register service worker
+ registerValidSW(swUrl, config)
+ }
+ })
+ }
+}
+
+function registerValidSW(swUrl, config) {
+ navigator.serviceWorker
+ .register(swUrl)
+ .then(registration => {
+ registration.onupdatefound = () => {
+ const installingWorker = registration.installing
+ if (installingWorker == null) {
+ return
+ }
+ installingWorker.onstatechange = () => {
+ if (installingWorker.state === 'installed') {
+ if (navigator.serviceWorker.controller) {
+ // At this point, the updated precached content has been fetched,
+ // but the previous service worker will still serve the older
+ // content until all client tabs are closed.
+ console.log(
+ 'New content is available and will be used when all ' +
+ 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'
+ )
+
+ // Execute callback
+ if (config && config.onUpdate) {
+ config.onUpdate(registration)
+ }
+ } else {
+ // At this point, everything has been precached.
+ // It's the perfect time to display a
+ // "Content is cached for offline use." message.
+ console.log('Content is cached for offline use.')
+
+ // Execute callback
+ if (config && config.onSuccess) {
+ config.onSuccess(registration)
+ }
+ }
+ }
+ }
+ }
+ })
+ .catch(error => {
+ console.error('Error during service worker registration:', error)
+ })
+}
+
+function checkValidServiceWorker(swUrl, config) {
+ // Check if the service worker can be found. If it can't reload the page.
+ fetch(swUrl)
+ .then(response => {
+ // Ensure service worker exists, and that we really are getting a JS file.
+ const contentType = response.headers.get('content-type')
+ if (
+ response.status === 404 ||
+ (contentType != null && contentType.indexOf('javascript') === -1)
+ ) {
+ // No service worker found. Probably a different app. Reload the page.
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister().then(() => {
+ window.location.reload()
+ })
+ })
+ } else {
+ // Service worker found. Proceed as normal.
+ registerValidSW(swUrl, config)
+ }
+ })
+ .catch(() => {
+ console.log(
+ 'No internet connection found. App is running in offline mode.'
+ )
+ })
+}
+
+export function unregister() {
+ if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister()
+ })
+ }
+}
diff --git a/demos/reactadmin/yarn.lock b/examples/reactadmin/yarn.lock
similarity index 100%
rename from demos/reactadmin/yarn.lock
rename to examples/reactadmin/yarn.lock
diff --git a/demos/reactapp/.babelrc b/examples/reactapp/.babelrc
similarity index 100%
rename from demos/reactapp/.babelrc
rename to examples/reactapp/.babelrc
diff --git a/demos/reactapp/.editorconfig b/examples/reactapp/.editorconfig
similarity index 100%
rename from demos/reactapp/.editorconfig
rename to examples/reactapp/.editorconfig
diff --git a/demos/reactapp/.eslintrc b/examples/reactapp/.eslintrc
similarity index 100%
rename from demos/reactapp/.eslintrc
rename to examples/reactapp/.eslintrc
diff --git a/demos/reactapp/.gitattributes b/examples/reactapp/.gitattributes
similarity index 100%
rename from demos/reactapp/.gitattributes
rename to examples/reactapp/.gitattributes
diff --git a/demos/reactapp/.gitignore b/examples/reactapp/.gitignore
similarity index 100%
rename from demos/reactapp/.gitignore
rename to examples/reactapp/.gitignore
diff --git a/demos/reactapp/config/app.config.js b/examples/reactapp/config/app.config.js
similarity index 100%
rename from demos/reactapp/config/app.config.js
rename to examples/reactapp/config/app.config.js
diff --git a/demos/reactapp/config/webpack.config.base.js b/examples/reactapp/config/webpack.config.base.js
similarity index 100%
rename from demos/reactapp/config/webpack.config.base.js
rename to examples/reactapp/config/webpack.config.base.js
diff --git a/demos/reactapp/config/webpack.config.dev.js b/examples/reactapp/config/webpack.config.dev.js
similarity index 100%
rename from demos/reactapp/config/webpack.config.dev.js
rename to examples/reactapp/config/webpack.config.dev.js
diff --git a/demos/reactapp/config/webpack.config.prod.js b/examples/reactapp/config/webpack.config.prod.js
similarity index 100%
rename from demos/reactapp/config/webpack.config.prod.js
rename to examples/reactapp/config/webpack.config.prod.js
diff --git a/demos/reactapp/package.json b/examples/reactapp/package.json
similarity index 100%
rename from demos/reactapp/package.json
rename to examples/reactapp/package.json
diff --git a/demos/reactapp/public/favicon.ico b/examples/reactapp/public/favicon.ico
similarity index 100%
rename from demos/reactapp/public/favicon.ico
rename to examples/reactapp/public/favicon.ico
diff --git a/demos/reactapp/public/index.html b/examples/reactapp/public/index.html
similarity index 100%
rename from demos/reactapp/public/index.html
rename to examples/reactapp/public/index.html
diff --git a/demos/reactapp/scripts/build.sh b/examples/reactapp/scripts/build.sh
similarity index 100%
rename from demos/reactapp/scripts/build.sh
rename to examples/reactapp/scripts/build.sh
diff --git a/demos/reactapp/src/common/apiutils/ajaxCommon.js b/examples/reactapp/src/common/apiutils/ajaxCommon.js
similarity index 99%
rename from demos/reactapp/src/common/apiutils/ajaxCommon.js
rename to examples/reactapp/src/common/apiutils/ajaxCommon.js
index c388f24..8842903 100644
--- a/demos/reactapp/src/common/apiutils/ajaxCommon.js
+++ b/examples/reactapp/src/common/apiutils/ajaxCommon.js
@@ -92,7 +92,7 @@ function _showAuthError() {
{ /* 否则在 当前页登陆 。 */ }
< /p>),
})
-
+
}
/**
diff --git a/demos/reactapp/src/common/apiutils/apiCreator.js b/examples/reactapp/src/common/apiutils/apiCreator.js
similarity index 100%
rename from demos/reactapp/src/common/apiutils/apiCreator.js
rename to examples/reactapp/src/common/apiutils/apiCreator.js
diff --git a/demos/reactapp/src/common/apiutils/errorUtils.js b/examples/reactapp/src/common/apiutils/errorUtils.js
similarity index 100%
rename from demos/reactapp/src/common/apiutils/errorUtils.js
rename to examples/reactapp/src/common/apiutils/errorUtils.js
diff --git a/demos/reactapp/src/common/apiutils/fetchAJAX.js b/examples/reactapp/src/common/apiutils/fetchAJAX.js
similarity index 100%
rename from demos/reactapp/src/common/apiutils/fetchAJAX.js
rename to examples/reactapp/src/common/apiutils/fetchAJAX.js
diff --git a/demos/reactapp/src/common/apiutils/index.js b/examples/reactapp/src/common/apiutils/index.js
similarity index 100%
rename from demos/reactapp/src/common/apiutils/index.js
rename to examples/reactapp/src/common/apiutils/index.js
diff --git a/demos/reactapp/src/common/apiutils/reqwestAJAX.js b/examples/reactapp/src/common/apiutils/reqwestAJAX.js
similarity index 100%
rename from demos/reactapp/src/common/apiutils/reqwestAJAX.js
rename to examples/reactapp/src/common/apiutils/reqwestAJAX.js
diff --git a/demos/reactapp/src/components/index.js b/examples/reactapp/src/components/index.js
similarity index 100%
rename from demos/reactapp/src/components/index.js
rename to examples/reactapp/src/components/index.js
diff --git a/demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx b/examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx
similarity index 100%
rename from demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx
rename to examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx
diff --git a/demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less b/examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less
similarity index 100%
rename from demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less
rename to examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less
diff --git a/demos/reactapp/src/components/layout/Content/Content.jsx b/examples/reactapp/src/components/layout/Content/Content.jsx
similarity index 100%
rename from demos/reactapp/src/components/layout/Content/Content.jsx
rename to examples/reactapp/src/components/layout/Content/Content.jsx
diff --git a/demos/reactapp/src/components/layout/Content/Content.less b/examples/reactapp/src/components/layout/Content/Content.less
similarity index 100%
rename from demos/reactapp/src/components/layout/Content/Content.less
rename to examples/reactapp/src/components/layout/Content/Content.less
diff --git a/demos/reactapp/src/components/layout/Footer/Footer.jsx b/examples/reactapp/src/components/layout/Footer/Footer.jsx
similarity index 100%
rename from demos/reactapp/src/components/layout/Footer/Footer.jsx
rename to examples/reactapp/src/components/layout/Footer/Footer.jsx
diff --git a/demos/reactapp/src/components/layout/Footer/index.less b/examples/reactapp/src/components/layout/Footer/index.less
similarity index 100%
rename from demos/reactapp/src/components/layout/Footer/index.less
rename to examples/reactapp/src/components/layout/Footer/index.less
diff --git a/demos/reactapp/src/components/layout/Header/Header.jsx b/examples/reactapp/src/components/layout/Header/Header.jsx
similarity index 100%
rename from demos/reactapp/src/components/layout/Header/Header.jsx
rename to examples/reactapp/src/components/layout/Header/Header.jsx
diff --git a/demos/reactapp/src/components/layout/Header/Header.less b/examples/reactapp/src/components/layout/Header/Header.less
similarity index 100%
rename from demos/reactapp/src/components/layout/Header/Header.less
rename to examples/reactapp/src/components/layout/Header/Header.less
diff --git a/demos/reactapp/src/components/layout/Sidebar/Sidebar.jsx b/examples/reactapp/src/components/layout/Sidebar/Sidebar.jsx
similarity index 100%
rename from demos/reactapp/src/components/layout/Sidebar/Sidebar.jsx
rename to examples/reactapp/src/components/layout/Sidebar/Sidebar.jsx
diff --git a/demos/reactapp/src/components/layout/Sidebar/Sidebar.less b/examples/reactapp/src/components/layout/Sidebar/Sidebar.less
similarity index 100%
rename from demos/reactapp/src/components/layout/Sidebar/Sidebar.less
rename to examples/reactapp/src/components/layout/Sidebar/Sidebar.less
diff --git a/demos/reactapp/src/components/layout/Sidebar/antd.svg b/examples/reactapp/src/components/layout/Sidebar/antd.svg
similarity index 100%
rename from demos/reactapp/src/components/layout/Sidebar/antd.svg
rename to examples/reactapp/src/components/layout/Sidebar/antd.svg
diff --git a/demos/reactapp/src/containers/Core/CoreContainer.jsx b/examples/reactapp/src/containers/Core/CoreContainer.jsx
similarity index 100%
rename from demos/reactapp/src/containers/Core/CoreContainer.jsx
rename to examples/reactapp/src/containers/Core/CoreContainer.jsx
diff --git a/demos/reactapp/src/containers/Core/CoreContainer.less b/examples/reactapp/src/containers/Core/CoreContainer.less
similarity index 100%
rename from demos/reactapp/src/containers/Core/CoreContainer.less
rename to examples/reactapp/src/containers/Core/CoreContainer.less
diff --git a/demos/reactapp/src/containers/Core/package.json b/examples/reactapp/src/containers/Core/package.json
similarity index 100%
rename from demos/reactapp/src/containers/Core/package.json
rename to examples/reactapp/src/containers/Core/package.json
diff --git a/demos/reactapp/src/containers/Root/ReduxDevTools.jsx b/examples/reactapp/src/containers/Root/ReduxDevTools.jsx
similarity index 100%
rename from demos/reactapp/src/containers/Root/ReduxDevTools.jsx
rename to examples/reactapp/src/containers/Root/ReduxDevTools.jsx
diff --git a/demos/reactapp/src/containers/Root/RootContainer.dev.jsx b/examples/reactapp/src/containers/Root/RootContainer.dev.jsx
similarity index 100%
rename from demos/reactapp/src/containers/Root/RootContainer.dev.jsx
rename to examples/reactapp/src/containers/Root/RootContainer.dev.jsx
diff --git a/demos/reactapp/src/containers/Root/RootContainer.jsx b/examples/reactapp/src/containers/Root/RootContainer.jsx
similarity index 100%
rename from demos/reactapp/src/containers/Root/RootContainer.jsx
rename to examples/reactapp/src/containers/Root/RootContainer.jsx
diff --git a/demos/reactapp/src/containers/Root/RootContainer.prod.jsx b/examples/reactapp/src/containers/Root/RootContainer.prod.jsx
similarity index 100%
rename from demos/reactapp/src/containers/Root/RootContainer.prod.jsx
rename to examples/reactapp/src/containers/Root/RootContainer.prod.jsx
diff --git a/demos/reactapp/src/index.jsx b/examples/reactapp/src/index.jsx
similarity index 100%
rename from demos/reactapp/src/index.jsx
rename to examples/reactapp/src/index.jsx
diff --git a/demos/reactapp/src/redux/actions/auth.js b/examples/reactapp/src/redux/actions/auth.js
similarity index 100%
rename from demos/reactapp/src/redux/actions/auth.js
rename to examples/reactapp/src/redux/actions/auth.js
diff --git a/demos/reactapp/src/redux/actions/menu.js b/examples/reactapp/src/redux/actions/menu.js
similarity index 100%
rename from demos/reactapp/src/redux/actions/menu.js
rename to examples/reactapp/src/redux/actions/menu.js
diff --git a/demos/reactapp/src/redux/constants/authActionType.js b/examples/reactapp/src/redux/constants/authActionType.js
similarity index 100%
rename from demos/reactapp/src/redux/constants/authActionType.js
rename to examples/reactapp/src/redux/constants/authActionType.js
diff --git a/demos/reactapp/src/redux/constants/commonActionTypes.js b/examples/reactapp/src/redux/constants/commonActionTypes.js
similarity index 100%
rename from demos/reactapp/src/redux/constants/commonActionTypes.js
rename to examples/reactapp/src/redux/constants/commonActionTypes.js
diff --git a/demos/reactapp/src/redux/constants/menuActionType.js b/examples/reactapp/src/redux/constants/menuActionType.js
similarity index 100%
rename from demos/reactapp/src/redux/constants/menuActionType.js
rename to examples/reactapp/src/redux/constants/menuActionType.js
diff --git a/demos/reactapp/src/redux/middlewares/promiseMiddleware.js b/examples/reactapp/src/redux/middlewares/promiseMiddleware.js
similarity index 100%
rename from demos/reactapp/src/redux/middlewares/promiseMiddleware.js
rename to examples/reactapp/src/redux/middlewares/promiseMiddleware.js
diff --git a/demos/reactapp/src/redux/reducers/auth.js b/examples/reactapp/src/redux/reducers/auth.js
similarity index 100%
rename from demos/reactapp/src/redux/reducers/auth.js
rename to examples/reactapp/src/redux/reducers/auth.js
diff --git a/demos/reactapp/src/redux/reducers/index.js b/examples/reactapp/src/redux/reducers/index.js
similarity index 100%
rename from demos/reactapp/src/redux/reducers/index.js
rename to examples/reactapp/src/redux/reducers/index.js
diff --git a/demos/reactapp/src/redux/reducers/menu.js b/examples/reactapp/src/redux/reducers/menu.js
similarity index 100%
rename from demos/reactapp/src/redux/reducers/menu.js
rename to examples/reactapp/src/redux/reducers/menu.js
diff --git a/demos/reactapp/src/redux/store/configureStore.dev.js b/examples/reactapp/src/redux/store/configureStore.dev.js
similarity index 100%
rename from demos/reactapp/src/redux/store/configureStore.dev.js
rename to examples/reactapp/src/redux/store/configureStore.dev.js
diff --git a/demos/reactapp/src/redux/store/configureStore.js b/examples/reactapp/src/redux/store/configureStore.js
similarity index 100%
rename from demos/reactapp/src/redux/store/configureStore.js
rename to examples/reactapp/src/redux/store/configureStore.js
diff --git a/demos/reactapp/src/redux/store/configureStore.prod.js b/examples/reactapp/src/redux/store/configureStore.prod.js
similarity index 100%
rename from demos/reactapp/src/redux/store/configureStore.prod.js
rename to examples/reactapp/src/redux/store/configureStore.prod.js
diff --git a/demos/reactapp/src/routes/index.jsx b/examples/reactapp/src/routes/index.jsx
similarity index 100%
rename from demos/reactapp/src/routes/index.jsx
rename to examples/reactapp/src/routes/index.jsx
diff --git a/demos/reactapp/src/utils/asyncLoadHOC.js b/examples/reactapp/src/utils/asyncLoadHOC.js
similarity index 100%
rename from demos/reactapp/src/utils/asyncLoadHOC.js
rename to examples/reactapp/src/utils/asyncLoadHOC.js
diff --git a/demos/reactapp/src/utils/authHOC.jsx b/examples/reactapp/src/utils/authHOC.jsx
similarity index 100%
rename from demos/reactapp/src/utils/authHOC.jsx
rename to examples/reactapp/src/utils/authHOC.jsx
diff --git a/demos/reactapp/src/utils/http.js b/examples/reactapp/src/utils/http.js
similarity index 100%
rename from demos/reactapp/src/utils/http.js
rename to examples/reactapp/src/utils/http.js
diff --git a/demos/reactapp/src/utils/index.jsx b/examples/reactapp/src/utils/index.jsx
similarity index 100%
rename from demos/reactapp/src/utils/index.jsx
rename to examples/reactapp/src/utils/index.jsx
diff --git a/demos/reactapp/src/views/pages/home/Home.jsx b/examples/reactapp/src/views/pages/home/Home.jsx
similarity index 100%
rename from demos/reactapp/src/views/pages/home/Home.jsx
rename to examples/reactapp/src/views/pages/home/Home.jsx
diff --git a/demos/reactapp/src/views/pages/home/Home.less b/examples/reactapp/src/views/pages/home/Home.less
similarity index 100%
rename from demos/reactapp/src/views/pages/home/Home.less
rename to examples/reactapp/src/views/pages/home/Home.less
diff --git a/demos/reactadmin/src/logo.svg b/examples/reactapp/src/views/pages/home/logo.svg
similarity index 100%
rename from demos/reactadmin/src/logo.svg
rename to examples/reactapp/src/views/pages/home/logo.svg
diff --git a/demos/reactapp/src/views/pages/login/Login.jsx b/examples/reactapp/src/views/pages/login/Login.jsx
similarity index 100%
rename from demos/reactapp/src/views/pages/login/Login.jsx
rename to examples/reactapp/src/views/pages/login/Login.jsx
diff --git a/demos/reactapp/src/views/pages/login/Login.less b/examples/reactapp/src/views/pages/login/Login.less
similarity index 100%
rename from demos/reactapp/src/views/pages/login/Login.less
rename to examples/reactapp/src/views/pages/login/Login.less
diff --git a/demos/reactapp/src/views/pages/login/bg.jpg b/examples/reactapp/src/views/pages/login/bg.jpg
similarity index 100%
rename from demos/reactapp/src/views/pages/login/bg.jpg
rename to examples/reactapp/src/views/pages/login/bg.jpg
diff --git a/demos/reactapp/src/views/pages/login/login-logo.png b/examples/reactapp/src/views/pages/login/login-logo.png
similarity index 100%
rename from demos/reactapp/src/views/pages/login/login-logo.png
rename to examples/reactapp/src/views/pages/login/login-logo.png
diff --git a/demos/reactapp/src/views/pages/mail/Mailbox.jsx b/examples/reactapp/src/views/pages/mail/Mailbox.jsx
similarity index 100%
rename from demos/reactapp/src/views/pages/mail/Mailbox.jsx
rename to examples/reactapp/src/views/pages/mail/Mailbox.jsx
diff --git a/demos/reactapp/src/views/pages/user/User.jsx b/examples/reactapp/src/views/pages/user/User.jsx
similarity index 100%
rename from demos/reactapp/src/views/pages/user/User.jsx
rename to examples/reactapp/src/views/pages/user/User.jsx
diff --git a/demos/reactapp/src/views/pages/user/User.less b/examples/reactapp/src/views/pages/user/User.less
similarity index 100%
rename from demos/reactapp/src/views/pages/user/User.less
rename to examples/reactapp/src/views/pages/user/User.less
diff --git a/demos/reactapp/src/webapi/mock/index.js b/examples/reactapp/src/webapi/mock/index.js
similarity index 100%
rename from demos/reactapp/src/webapi/mock/index.js
rename to examples/reactapp/src/webapi/mock/index.js
diff --git a/demos/reactapp/src/webapi/mock/menu.js b/examples/reactapp/src/webapi/mock/menu.js
similarity index 100%
rename from demos/reactapp/src/webapi/mock/menu.js
rename to examples/reactapp/src/webapi/mock/menu.js
diff --git a/demos/reactapp/src/webapi/mock/user.js b/examples/reactapp/src/webapi/mock/user.js
similarity index 100%
rename from demos/reactapp/src/webapi/mock/user.js
rename to examples/reactapp/src/webapi/mock/user.js
diff --git a/demos/reactapp/src/webapi/package.json b/examples/reactapp/src/webapi/package.json
similarity index 100%
rename from demos/reactapp/src/webapi/package.json
rename to examples/reactapp/src/webapi/package.json
diff --git a/demos/reactapp/src/webapi/webapi.js b/examples/reactapp/src/webapi/webapi.js
similarity index 100%
rename from demos/reactapp/src/webapi/webapi.js
rename to examples/reactapp/src/webapi/webapi.js
diff --git a/demos/scripts/build-javaapp.bat b/examples/scripts/build-javaapp.bat
similarity index 100%
rename from demos/scripts/build-javaapp.bat
rename to examples/scripts/build-javaapp.bat
diff --git a/demos/scripts/build-reactadmin.bat b/examples/scripts/build-reactadmin.bat
similarity index 100%
rename from demos/scripts/build-reactadmin.bat
rename to examples/scripts/build-reactadmin.bat
diff --git a/demos/scripts/build-reactapp.bat b/examples/scripts/build-reactapp.bat
similarity index 100%
rename from demos/scripts/build-reactapp.bat
rename to examples/scripts/build-reactapp.bat
diff --git a/demos/scripts/demo01-start.bat b/examples/scripts/demo01-start.bat
similarity index 100%
rename from demos/scripts/demo01-start.bat
rename to examples/scripts/demo01-start.bat
diff --git a/demos/scripts/demo02-start.bat b/examples/scripts/demo02-start.bat
similarity index 100%
rename from demos/scripts/demo02-start.bat
rename to examples/scripts/demo02-start.bat
diff --git a/demos/scripts/demo03-start.bat b/examples/scripts/demo03-start.bat
similarity index 100%
rename from demos/scripts/demo03-start.bat
rename to examples/scripts/demo03-start.bat
diff --git a/demos/scripts/demo04-start.bat b/examples/scripts/demo04-start.bat
similarity index 100%
rename from demos/scripts/demo04-start.bat
rename to examples/scripts/demo04-start.bat
diff --git a/demos/scripts/demo05-start.bat b/examples/scripts/demo05-start.bat
similarity index 100%
rename from demos/scripts/demo05-start.bat
rename to examples/scripts/demo05-start.bat
diff --git a/demos/scripts/demo06-start.bat b/examples/scripts/demo06-start.bat
similarity index 100%
rename from demos/scripts/demo06-start.bat
rename to examples/scripts/demo06-start.bat
diff --git a/demos/scripts/startup.sh b/examples/scripts/startup.sh
similarity index 100%
rename from demos/scripts/startup.sh
rename to examples/scripts/startup.sh