diff --git a/demoReactPage/.gitignore b/demoReactPage/.gitignore deleted file mode 100644 index d30f40ef..00000000 --- a/demoReactPage/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -# See https://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -/node_modules - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/demoReactPage/package.json b/demoReactPage/package.json deleted file mode 100644 index 898be9cc..00000000 --- a/demoReactPage/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "homepage": "http://skat.github.io//dms-public//demoReactPage", - "name": "demoReactPage", - "version": "0.1.0", - "private": true, - "dependencies": { - "@testing-library/jest-dom": "^5.11.9", - "@testing-library/react": "^11.2.5", - "@testing-library/user-event": "^12.8.1", - "react": "^17.0.1", - "react-dom": "^17.0.1", - "react-scripts": "4.0.3", - "web-vitals": "^1.1.0" - }, - "scripts": { - "predeploy": "npm run build", - "deploy": "gh-pages -d build", - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, - "devDependencies": { - "gh-pages": "^3.1.0" - } -} diff --git a/demoReactPage/src/createServiceWorker.js b/demoReactPage/src/createServiceWorker.js deleted file mode 100644 index 5445ef54..00000000 --- a/demoReactPage/src/createServiceWorker.js +++ /dev/null @@ -1,52 +0,0 @@ -// In production, we register a service worker to serve assets from local cache. - -// 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 the "N+1" visit to a page, since previously -// cached resources are updated in the background. - -// To learn more about the benefits of this model, read https://goo.gl/KwvDNy. -// This link also includes instructions on opting out of this behavior. - -export default function register() { - if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { - window.addEventListener('load', () => { - const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; - navigator.serviceWorker - .register(swUrl) - .then(registration => { - // eslint-disable-next-line no-param-reassign - registration.onupdatefound = () => { - const installingWorker = registration.installing; - installingWorker.onstatechange = () => { - if (installingWorker.state === 'installed') { - if (navigator.serviceWorker.controller) { - // At this point, the old content will have been purged and - // the fresh content will have been added to the cache. - // It's the perfect time to display a "New content is - // available; please refresh." message in your web app. - console.log('New content is available; please refresh.'); // eslint-disable-line no-console - } 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.'); // eslint-disable-line no-console - } - } - }; - }; - }) - .catch(error => { - console.error('Error during service worker registration:', error); - }); - }); - } -} - -export function unregister() { - if ('serviceWorker' in navigator) { - navigator.serviceWorker.ready.then(registration => { - registration.unregister(); - }); - } -} diff --git a/demoReactPage/src/demo.js b/demoReactPage/src/demo.js deleted file mode 100644 index 06b62a71..00000000 --- a/demoReactPage/src/demo.js +++ /dev/null @@ -1,66 +0,0 @@ -import React from 'react'; -import { makeStyles } from '@material-ui/core/styles'; -import TreeView from '@material-ui/lab/TreeView'; -import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; -import ChevronRightIcon from '@material-ui/icons/ChevronRight'; -import TreeItem from '@material-ui/lab/TreeItem'; - -const useStyles = makeStyles({ - root: { - height: 240, - flexGrow: 1, - maxWidth: 400, - }, -}); - -export default function FileSystemNavigator() { - const classes = useStyles(); - - return ( - } - defaultExpandIcon={} - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/demoReactPage/src/index.js b/demoReactPage/src/index.js deleted file mode 100644 index af36039a..00000000 --- a/demoReactPage/src/index.js +++ /dev/null @@ -1,7 +0,0 @@ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import Demo from './demo'; - -ReactDOM.render(, document.querySelector('#root')); - \ No newline at end of file diff --git a/demoReactPage/src/package.json b/demoReactPage/src/package.json deleted file mode 100644 index 2245e394..00000000 --- a/demoReactPage/src/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "Material demo", - "devDependencies": { - "react-scripts": "latest" - }, - "description": "https://github.com/mui-org/material-ui/blob/master/docs/src/pages/components/tree-view/FileSystemNavigator.js", - "dependencies": { - "react-dom": "latest", - "react": "latest", - "@material-ui/lab": "latest", - "@material-ui/icons": "latest", - "@material-ui/core": "latest" - } -} \ No newline at end of file