Skip to content

Commit

Permalink
Development (#105)
Browse files Browse the repository at this point in the history
* Update dependency redux-persist to v6

* Update dependency github-markdown-css to v4

* Update dependency react-codemirror2 to v6.0.1

* Update dependency remark-preset-lint-recommended to v3.0.4

* Update dependency eslint-plugin-node to v11.1.0

* Update dependency d3 to v5.16.0

* Update dependency jquery to v3.5.0 [SECURITY]

* Update dependency react-router-dom to v5.2.0

* Update dependency react-codemirror2 to v7

* Update dependency eslint-plugin-jest to v23.20.0

* Update dependency react-scripts to v3.4.4

* Update react monorepo to v16.14.0

* Update dependency detect-browser to v5

* Update remark monorepo

* Update dependency axios to v0.21.1 [SECURITY]

* Update dependency bootstrap to v4.6.0

* Update dependency @fortawesome/fontawesome-free to v5.15.3

* Update dependency codemirror to v5.61.0

* Update dependency eslint-plugin-react to v7.23.2

* Update dependency react-redux to v7.2.4

* Fixed for Windows run, updated test scripts for react-scripts 3.0.0 and added Idea files to gitignore

* Adding @babel/core v7.13.16

* Changing eslint react/no-string-refs to 0 rather than false

* Adding react version to eslintrc.json and indenting launcher.jsx

* Minor fixes to move to Node LTS version 14

Co-authored-by: Renovate Bot <[email protected]>
  • Loading branch information
bcd00 and renovate-bot authored May 7, 2021
1 parent a21fe76 commit 1c5de9a
Show file tree
Hide file tree
Showing 14 changed files with 132 additions and 94 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# dependencies
node_modules
node_modules
package-lock.json
/.pnp
.pnp.js
Expand All @@ -26,3 +25,6 @@ yarn-error.log*

# visual studio code for node.js
.vscode/

.idea
/.idea
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: node_js
node_js: stable
node_js: lts/*

services:
- docker
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10-alpine
FROM node:14-alpine
WORKDIR /usr/src/app

RUN npm install -global pm2
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"start:dev": "lerna exec -- npm run start:dev"
},
"devDependencies": {
"lerna": "3.20.2",
"eslint": "5.16.0",
"@babel/core": "7.13.16",
"eslint-config-standard": "12.0.0",
"eslint-plugin-node": "11.0.0",
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.23.2",
"eslint-plugin-standard": "4.0.1",
"eslint-plugin-jest": "23.7.0",
"eslint-plugin-react": "7.18.3",
"remark": "11.0.2",
"remark-preset-lint-recommended": "3.0.3"
"lerna": "3.20.2",
"remark": "13.0.0",
"remark-preset-lint-recommended": "5.0.0"
}
}
7 changes: 6 additions & 1 deletion packages/ove-ui-demo/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"allowTemplateLiterals": true
}],
"semi": ["error", "always"],
"react/no-string-refs": ["false"]
"react/no-string-refs": [0, {"noTemplateLiterals": false}]
},
"settings": {
"react": {
"version": "detect"
}
}
}
21 changes: 11 additions & 10 deletions packages/ove-ui-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@
"author": "Senaka Fernando <[email protected]>",
"license": "MIT",
"dependencies": {
"axios": "0.19.2",
"bootstrap": "3.4.1",
"bootstrap": "4.6.0",
"axios": "0.21.1",
"cors": "2.8.5",
"detect-browser": "4.8.0",
"detect-browser": "5.2.0",
"dotenv": "8.2.0",
"express": "4.17.1",
"github-markdown-css": "3.0.1",
"jquery": "3.4.1",
"github-markdown-css": "4.0.0",
"jquery": "3.5.0",
"little-loader": "0.2.0",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-router-dom": "5.0.0",
"react-scripts": "3.0.0"
"react": "16.14.0",
"react-dom": "16.14.0",
"react-scripts": "3.4.4",
"react-router-dom": "5.2.0"
},
"scripts": {
"start": "PORT=8284 node -r dotenv/config server.js dotenv_config_path=.env",
"start:dev": "OVE_HOST='localhost:8080' PORT=8284 node -r dotenv/config ../../node_modules/.bin/react-scripts start dotenv_config_path=.env",
"start:windows": ".\\\"node_modules/.bin/react-scripts\" start",
"build": "react-scripts build",
"test": "react-scripts test --no-watch",
"test": "react-scripts test --watchAll=false",
"lint": "eslint src/. --ext .jsx"
},
"eslintConfig": {
Expand Down
7 changes: 6 additions & 1 deletion packages/ove-ui-launcher/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
}],
"quotes": [1, "single"],
"semi": ["error", "always"],
"react/no-string-refs": ["false"]
"react/no-string-refs": [0, {"noTemplateLiterals": false}]
},
"settings": {
"react": {
"version": "detect"
}
}
}
21 changes: 11 additions & 10 deletions packages/ove-ui-launcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,29 @@
"author": "Senaka Fernando <[email protected]>",
"license": "MIT",
"dependencies": {
"axios": "0.19.2",
"bootstrap": "3.4.1",
"codemirror": "5.51.0",
"bootstrap": "4.6.0",
"codemirror": "5.61.0",
"axios": "0.21.1",
"cors": "2.8.5",
"dotenv": "8.2.0",
"express": "4.17.1",
"jquery": "3.4.1",
"jquery": "3.5.0",
"js-beautify": "1.10.3",
"little-loader": "0.2.0",
"react": "16.8.6",
"react-codemirror2": "6.0.0",
"react-dom": "16.8.6",
"react-redux": "7.0.3",
"react-scripts": "3.0.0",
"react-codemirror2": "7.2.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"react-redux": "7.2.4",
"react-scripts": "3.4.4",
"semantic-ui-css": "2.4.1",
"semantic-ui-react": "0.88.2"
},
"scripts": {
"start": "PORT=8281 node -r dotenv/config server.js dotenv_config_path=.env",
"start:dev": "OVE_HOST='localhost:8080' PORT=8281 node -r dotenv/config ../../node_modules/.bin/react-scripts start dotenv_config_path=.env",
"start:windows": ".\\\"node_modules/.bin/react-scripts\" start",
"build": "react-scripts build",
"test": "react-scripts test --no-watch",
"test": "react-scripts test --watchAll=false",
"lint": "eslint src/. --ext .jsx"
},
"eslintConfig": {
Expand Down
68 changes: 34 additions & 34 deletions packages/ove-ui-launcher/src/app/launcher.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,43 +96,43 @@ export default class Launcher extends Component {

return (
<>
<h1>OVE Application Launcher</h1>
<h1>OVE Application Launcher</h1>
<p>Configured to launch applications into the OVE instance at <a href={Constants.REACT_APP_OVE_HOST} target="_blank"
rel="noopener noreferrer"><code>{Constants.REACT_APP_OVE_HOST}</code></a>.</p>

<div className='form'>
<SelectApp updateApp={ev => this.setState({ app: ev.value, state: null, controllerURL: undefined })}
selectedApp={this.state.app} appAvailable={this.state.appAvailable} />

<SpaceAndGeometry log={this.log} updateSpace={space => this.setState({ space, controllerURL: undefined })}
updateGeometry={geometry => this.setState({ geometry, controllerURL: undefined })}
updateErrors={geometryErrors => this.setState({ geometryErrors })}

space={this.state.space} geometry={this.state.geometry} errors={this.state.geometryErrors}/>

<StateConfiguration log={this.log} updateState={(d) => this.setState({ state: d, controllerURL: undefined })}
updateMode={d => this.setState({ mode: d, controllerURL: undefined })}
updateURL={d => this.setState({ url: d, controllerURL: undefined })}
updateErrors={d => this.setState({ stateErrors: d })}
app={this.state.app} mode={this.state.mode} state={this.state.state} url={this.state.url} errors={this.state.stateErrors} />

<Review updateOptions={this.updateOptions}
updateDeleteSections={deleteSections => this.setState({ deleteSections })}
updateShowController={showController => this.setState({ showController })}
updateErrors={optionsErrors => this.setState({ optionsErrors })}
updateConfig={config => this.setState({ config })}
app={this.state.app} space={this.state.space} deleteSections={this.state.deleteSections} showController={this.state.showController} mode={this.state.mode} state={this.state.state} url={this.state.url} config={this.state.config}
errors={this.state.optionsErrors} />

<Confirm log={this.log} updateControllerURL={controllerURL => this.setState({ controllerURL })}
updateOS={os => this.setState({ os })}
app={this.state.app} space={this.state.space} geometry={this.state.geometry} mode={this.state.mode}
config={this.state.config} state={this.state.state} deleteSections={this.state.deleteSections}
showController={this.state.showController} os={this.state.os} ready={this.ready()}
appAvailable={this.state.appAvailable} updateAppAvailability={appAvailable => this.setState({ appAvailable })} />

<Complete app={this.state.app} space={this.state.space} controllerURL={this.state.controllerURL} />
</div>
<div className='form'>
<SelectApp updateApp={ev => this.setState({ app: ev.value, state: null, controllerURL: undefined })}
selectedApp={this.state.app} appAvailable={this.state.appAvailable} />

<SpaceAndGeometry log={this.log} updateSpace={space => this.setState({ space, controllerURL: undefined })}
updateGeometry={geometry => this.setState({ geometry, controllerURL: undefined })}
updateErrors={geometryErrors => this.setState({ geometryErrors })}

space={this.state.space} geometry={this.state.geometry} errors={this.state.geometryErrors}/>

<StateConfiguration log={this.log} updateState={(d) => this.setState({ state: d, controllerURL: undefined })}
updateMode={d => this.setState({ mode: d, controllerURL: undefined })}
updateURL={d => this.setState({ url: d, controllerURL: undefined })}
updateErrors={d => this.setState({ stateErrors: d })}
app={this.state.app} mode={this.state.mode} state={this.state.state} url={this.state.url} errors={this.state.stateErrors} />

<Review updateOptions={this.updateOptions}
updateDeleteSections={deleteSections => this.setState({ deleteSections })}
updateShowController={showController => this.setState({ showController })}
updateErrors={optionsErrors => this.setState({ optionsErrors })}
updateConfig={config => this.setState({ config })}
app={this.state.app} space={this.state.space} deleteSections={this.state.deleteSections} showController={this.state.showController} mode={this.state.mode} state={this.state.state} url={this.state.url} config={this.state.config}
errors={this.state.optionsErrors} />

<Confirm log={this.log} updateControllerURL={controllerURL => this.setState({ controllerURL })}
updateOS={os => this.setState({ os })}
app={this.state.app} space={this.state.space} geometry={this.state.geometry} mode={this.state.mode}
config={this.state.config} state={this.state.state} deleteSections={this.state.deleteSections}
showController={this.state.showController} os={this.state.os} ready={this.ready()}
appAvailable={this.state.appAvailable} updateAppAvailability={appAvailable => this.setState({ appAvailable })} />

<Complete app={this.state.app} space={this.state.space} controllerURL={this.state.controllerURL} />
</div>
</>
);
}
Expand Down
5 changes: 5 additions & 0 deletions packages/ove-ui-preview/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@
}],
"quotes": [1, "single"],
"semi": ["error", "always"]
},
"settings": {
"react": {
"version": "detect"
}
}
}
21 changes: 11 additions & 10 deletions packages/ove-ui-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@
"author": "Senaka Fernando <[email protected]>",
"license": "MIT",
"dependencies": {
"axios": "0.19.2",
"bootstrap": "3.4.1",
"bootstrap": "4.6.0",
"axios": "0.21.1",
"cors": "2.8.5",
"d3": "5.15.0",
"d3": "5.16.0",
"dotenv": "8.2.0",
"express": "4.17.1",
"jquery": "3.4.1",
"jquery": "3.5.0",
"little-loader": "0.2.0",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-redux": "7.0.3",
"react-scripts": "3.0.0",
"react": "16.14.0",
"react-dom": "16.14.0",
"react-redux": "7.2.4",
"react-scripts": "3.4.4",
"redux": "4.0.5",
"redux-persist": "5.10.0"
"redux-persist": "6.0.0"
},
"scripts": {
"start": "PORT=8282 node -r dotenv/config server.js dotenv_config_path=.env",
"start:dev": "OVE_HOST='localhost:8080' PORT=8282 node -r dotenv/config ../../node_modules/.bin/react-scripts start dotenv_config_path=.env",
"start:windows": ".\\\"node_modules/.bin/react-scripts\" start",
"build": "react-scripts build",
"test": "react-scripts test --no-watch",
"test": "react-scripts test --watchAll=false",
"lint": "eslint src/. --ext .jsx && eslint src/. --ext .js"
},
"eslintConfig": {
Expand Down
7 changes: 6 additions & 1 deletion packages/ove-ui-status/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
}],
"quotes": [1, "single"],
"semi": ["error", "always"],
"react/no-string-refs": ["false"]
"react/no-string-refs": [0, {"noTemplateLiterals": false}]
},
"settings": {
"react": {
"version": "detect"
}
}
}
19 changes: 10 additions & 9 deletions packages/ove-ui-status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@
"author": "Senaka Fernando <[email protected]>",
"license": "MIT",
"dependencies": {
"@fortawesome/fontawesome-free": "5.8.1",
"axios": "0.19.2",
"bootstrap": "4.3.1",
"@fortawesome/fontawesome-free": "5.15.3",
"bootstrap": "4.6.0",
"axios": "0.21.1",
"cors": "2.8.5",
"dotenv": "8.2.0",
"express": "4.17.1",
"github-markdown-css": "3.0.1",
"jquery": "3.4.1",
"github-markdown-css": "4.0.0",
"jquery": "3.5.0",
"little-loader": "0.2.0",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-scripts": "3.0.0"
"react": "16.14.0",
"react-dom": "16.14.0",
"react-scripts": "3.4.4"
},
"scripts": {
"start": "PORT=8283 node -r dotenv/config server.js dotenv_config_path=.env",
"start:dev": "OVE_HOST='localhost:8080' PORT=8283 node -r dotenv/config ../../node_modules/.bin/react-scripts start dotenv_config_path=.env",
"start:windows": ".\\\"node_modules/.bin/react-scripts\" start dotenv_config_path=.env",
"build": "react-scripts build",
"test": "react-scripts test --no-watch",
"test": "react-scripts test --watchAll=false",
"lint": "eslint src/. --ext .jsx"
},
"eslintConfig": {
Expand Down
28 changes: 20 additions & 8 deletions pm2-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,51 @@
"cwd": "./packages/ove-ui-launcher",
"kill_timeout": 3000,
"restart_delay": 3000,
"script": "-r dotenv/config server.js dotenv_config_path=.env",
"script": "server.js",
"env": {
"PORT": "8281"
"PUBLIC_URL": "//__OVEHOST__/ui/demo",
"OVE_HOST": "localhost:8080",
"PORT": 8281,
"REACT_APP_OVE_HOST": "$OVE_HOST"
}
},
{
"name": "@ove/ove-ui-preview",
"cwd": "./packages/ove-ui-preview",
"kill_timeout": 3000,
"restart_delay": 3000,
"script": "-r dotenv/config server.js dotenv_config_path=.env",
"script": "server.js",
"env": {
"PORT": "8282"
"PUBLIC_URL": "//__OVEHOST__/ui/demo",
"OVE_HOST": "localhost:8080",
"PORT": 8282,
"REACT_APP_OVE_HOST": "$OVE_HOST"
}
},
{
"name": "@ove/ove-ui-status",
"cwd": "./packages/ove-ui-status",
"kill_timeout": 3000,
"restart_delay": 3000,
"script": "-r dotenv/config server.js dotenv_config_path=.env",
"script": "server.js",
"env": {
"PORT": "8283"
"PUBLIC_URL": "//__OVEHOST__/ui/demo",
"OVE_HOST": "localhost:8080",
"PORT": 8283,
"REACT_APP_OVE_HOST": "$OVE_HOST"
}
},
{
"name": "@ove/ove-ui-demo",
"cwd": "./packages/ove-ui-demo",
"kill_timeout": 3000,
"restart_delay": 3000,
"script": "-r dotenv/config server.js dotenv_config_path=.env",
"script": "server.js",
"env": {
"PORT": "8284"
"PUBLIC_URL": "//__OVEHOST__/ui/demo",
"OVE_HOST": "localhost:8080",
"PORT": 8284,
"REACT_APP_OVE_HOST": "$OVE_HOST"
}
}
]
Expand Down

0 comments on commit 1c5de9a

Please sign in to comment.