diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-04-21 11:41:01 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-04-21 11:41:01 -0400 |
| commit | 4c8c80162a60231b0254abcce8a336447c3a3416 (patch) | |
| tree | e270c18a22c5d41ce922d28d968491ef4a42f510 | |
| parent | bf9bdaa3e56adcac8abc955cace439d0092033e3 (diff) | |
some node modules
| -rw-r--r-- | client/components/App.jsx | 0 | ||||
| -rw-r--r-- | client/index.js | 15 | ||||
| -rw-r--r-- | package.json | 31 |
3 files changed, 46 insertions, 0 deletions
diff --git a/client/components/App.jsx b/client/components/App.jsx new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/client/components/App.jsx diff --git a/client/index.js b/client/index.js new file mode 100644 index 0000000..61e61ad --- /dev/null +++ b/client/index.js @@ -0,0 +1,15 @@ + +import React from 'react' +import ReactDOM from 'react-dom'; +import App from './components/App.jsx'; + +const isIphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) +const isIpad = (navigator.userAgent.match(/iPad/i)) +const isAndroid = (navigator.userAgent.match(/Android/i)) +const isMobile = isIphone || isIpad || isAndroid +const isDesktop = ! isMobile + +document.body.classList.add(isDesktop ? 'desktop' : 'mobile') + +ReactDOM.render(<App />, document.getElementById('container')); + diff --git a/package.json b/package.json new file mode 100644 index 0000000..9a96000 --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "msa", + "version": "1.0.0", + "description": "msa cartweaver helper app", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git@ghghgh.us:msana.git" + }, + "author": "jules laplace <julescarbon@gmail.com>", + "license": "UNLICENSED", + "dependencies": { + "body-parser": "^1.17.1", + "express": "^4.15.2", + "express-basic-auth": "^1.0.1", + "mysql": "^2.13.0", + "react": "^15.5.4", + "react-dom": "^15.5.4", + "serve-favicon": "^2.4.2" + }, + "devDependencies": { + "babel-core": "^6.24.1", + "babel-loader": "^6.4.1", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react": "^6.24.1", + "webpack": "^2.4.1" + } +} |
