Skip to content

Commit

Permalink
Merge pull request #76 from ligangty/2.0-refactor
Browse files Browse the repository at this point in the history
Fix a import issue
  • Loading branch information
ligangty authored Nov 15, 2023
2 parents cfb9306 + 130321f commit 5152b68
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main/webui/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
**/*.json
**/*.ico
**/index.html
**/README.md
4 changes: 2 additions & 2 deletions src/main/webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/main/webui/src/app/components/CompUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
});
Expand Down

0 comments on commit 5152b68

Please sign in to comment.