diff --git a/src/main/webui/.eslintignore b/src/main/webui/.eslintignore index 16e62fe..55af28b 100644 --- a/src/main/webui/.eslintignore +++ b/src/main/webui/.eslintignore @@ -2,3 +2,4 @@ **/*.json **/*.ico **/index.html +**/README.md diff --git a/src/main/webui/package.json b/src/main/webui/package.json index 5d341e0..4441499 100644 --- a/src/main/webui/package.json +++ b/src/main/webui/package.json @@ -47,8 +47,8 @@ "node": ">=18.0.0" }, "scripts": { - "build-dev": "npm run clean && npm run compile-dev && npm run test && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/", - "build": "npm run clean && npm run compile && npm run test && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/", + "build-dev": "npm run clean && npm run compile-dev && npm run lint && npm run test && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/", + "build": "npm run clean && npm run compile && npm run test && npm run lint && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/", "clean": "rm -rf ./dist/*", "compile-dev": "NODE_ENV=development webpack --config ./webpack.config.js && webpack --config ./webpack-content-browse.dev.config.js", "compile": "NODE_ENV=production webpack --config ./webpack.config-prod.js && webpack --config ./webpack-content-browse.prod.config.js", diff --git a/src/main/webui/src/app/components/CompUtils.js b/src/main/webui/src/app/components/CompUtils.js index d6de168..122d0e9 100644 --- a/src/main/webui/src/app/components/CompUtils.js +++ b/src/main/webui/src/app/components/CompUtils.js @@ -14,6 +14,11 @@ * limitations under the License. */ +/** + * All functions in this Utils are migrated from old indy UI 1.0, which + * are used for dedicated purpose in old code. Will check if they are still + * useful in new UI and and decide if removing some of them. + */ export const Utils = { remoteOptions: store => { const options = []; diff --git a/src/main/webui/src/app/components/content/common/PackageTypeSelect.jsx b/src/main/webui/src/app/components/content/common/PackageTypeSelect.jsx index 903eb91..df29da9 100644 --- a/src/main/webui/src/app/components/content/common/PackageTypeSelect.jsx +++ b/src/main/webui/src/app/components/content/common/PackageTypeSelect.jsx @@ -16,9 +16,9 @@ import React, {useState, useEffect} from 'react'; import {PropTypes} from 'prop-types'; -import {jsonRest} from '../../RestClient.js'; +import {jsonRest} from '../../../RestClient.js'; -const PackageTypeSelect = ({pkgType,vauleChangeHandler}) =>{ +export const PackageTypeSelect = ({pkgType,vauleChangeHandler}) =>{ const [state, setState] = useState({ pkgTypes: [] });