Skip to content

Commit ce76231

Browse files
author
Alexander Matyushentsev
authored
Move Argo Workflows UI into https://github.com/argoproj/argo repo (argoproj#53)
1 parent 3dc35d1 commit ce76231

File tree

230 files changed

+117
-4381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+117
-4381
lines changed

.circleci/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ jobs:
1212
- save_cache:
1313
key: yarn-packages-v4-{{ checksum "yarn.lock" }}
1414
paths: [~/.cache/yarn, node_modules]
15-
- run: yarn test
1615
- run: yarn build
1716
- run: yarn lint

Dockerfile

-21
This file was deleted.

Procfile

-2
This file was deleted.

README.md

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
# Argo UI
1+
# Argo UI Components
22

33
![Argo Image](https://github.com/argoproj/argo/blob/master/argo.png?raw=true)
44

5-
Some Argo UI components (such as Workflow DAG viewer, Workflow timeline etc.) are available via the [argo-ui npm package](https://www.npmjs.com/package/argo-ui).
5+
Set of React components used by https://github.com/argoproj/argo and https://github.com/argoproj/argo-cd
66

7-
A web-based UI for the Argo Workflow engine.
8-
9-
The UI has the following features:
10-
* View live Argo Workflows running in the cluster
11-
* View completed Argo Workflows
12-
* View container logs
13-
14-
15-
## Build, Run, & Release
7+
## Build & Run
168

179
1. Install Toolset: [NodeJS](https://nodejs.org/en/download/) and [Yarn](https://yarnpkg.com)
1810
2. Install Dependencies: From your command line, navigate to the argo-ui directory and run `yarn install` to install dependencies.
19-
3. Run: `yarn start` - starts API server and webpack dev UI server. API server uses current `kubectl` context to access workflow CRDs.
20-
4. Build: `yarn build` - builds static resources into `./dist` directory.
21-
5. Release: `IMAGE_NAMESPACE=argoproj IMAGE_TAG=latest DOCKER_PUSH=true yarn docker` - builds docker image and optionally push to docker registry.
11+
3. Run: `yarn start` - starts https://storybook.js.org/ dev server

package.json

+6-28
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,28 @@
11
{
22
"name": "argo-ui",
33
"version": "1.0.0",
4-
"main": "./src/lib/index.ts",
5-
"types": "./src/lib/index.ts",
4+
"main": "./src/index.ts",
5+
"types": "./src/index.ts",
66
"license": "MIT",
77
"files": [
88
"src"
99
],
1010
"scripts": {
11-
"docker": "./scripts/build_docker.sh",
12-
"build": "yarn build:ui && yarn build:api",
13-
"build:ui": "webpack --config ./src/app/webpack.config.js",
14-
"build:api": "tsc -p ./src/api/tsconfig.json",
15-
"build:storybook": "build-storybook -o ./dist/storybook",
16-
"start": "nf start",
17-
"start:ui": "webpack-dev-server --config ./src/app/webpack.config.js",
18-
"start:api": "TS_NODE_PROJECT=./src/api/tsconfig.json nodemon --nolazy --inspect -r ts-node/register ./src/api/main.ts",
19-
"lint": "yarn lint:ui && yarn lint:api",
20-
"lint:ui": "tslint -p ./src/app",
21-
"lint:api": "tslint -p ./src/api",
11+
"build": "build-storybook -o ./dist/storybook",
12+
"lint": "tslint -p ./src",
2213
"utils:icons": "rm -f src/assets/fonts/* && node ./scripts/icons/generator.js",
23-
"test": "mocha --require ts-node/register ./src/app/**/*.spec.ts",
24-
"storybook": "start-storybook -p 6006"
14+
"start": "start-storybook -p 6006"
2515
},
2616
"dependencies": {
2717
"@fortawesome/fontawesome-free": "^5.8.1",
2818
"@tippy.js/react": "^2.1.2",
2919
"@types/react-form": "^2.16.1",
3020
"@types/react-helmet": "^5.0.8",
31-
"aws-sdk": "^2.188.0",
32-
"body-parser": "^1.18.2",
3321
"classnames": "^2.2.5",
3422
"dagre": "^0.8.2",
3523
"deep-equal": "^1.0.1",
36-
"express": "^4.16.2",
37-
"express-winston": "^3.0.0",
3824
"foundation-sites": "^6.4.3",
3925
"history": "^4.7.2",
40-
"json-stream": "^1.0.0",
41-
"kubernetes-client": "3.17.1",
4226
"moment": "^2.20.1",
4327
"prop-types": "^15.6.0",
4428
"react": "^16.8.3",
@@ -52,21 +36,17 @@
5236
"superagent-promise": "^1.1.0",
5337
"ts-loader": "^6.0.4",
5438
"typescript": "^2.8.3",
55-
"util.promisify": "^1.0.0",
5639
"webpack-cli": "^3.3.5",
57-
"winston": "^3.1.0",
5840
"ws": "^4.0.0",
5941
"xterm": "2.4.0",
60-
"yamljs": "^0.3.0",
61-
"yargs": "^11.0.0"
42+
"yamljs": "^0.3.0"
6243
},
6344
"devDependencies": {
6445
"@dump247/storybook-state": "^1.5.0",
6546
"@storybook/addon-actions": "^5.1.9",
6647
"@storybook/addon-links": "^5.1.9",
6748
"@storybook/addons": "^5.1.9",
6849
"@storybook/react": "^5.1.9",
69-
"@types/aws-sdk": "^2.7.0",
7050
"@types/chai": "^4.1.2",
7151
"@types/classnames": "^2.2.3",
7252
"@types/dagre": "^0.7.39",
@@ -80,8 +60,6 @@
8060
"@types/storybook__addon-actions": "^3.0.2",
8161
"@types/storybook__addon-links": "^3.3.0",
8262
"@types/storybook__react": "^3.0.7",
83-
"@types/superagent": "^3.5.7",
84-
"@types/ws": "^4.0.0",
8563
"@types/yamljs": "^0.2.30",
8664
"babel-core": "^6.26.0",
8765
"chai": "^4.1.2",

scripts/build_docker.sh

-16
This file was deleted.

scripts/icons/generator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const fs = require('fs');
77
const FONT_TYPES = ['svg', 'ttf', 'woff', 'eot'];
88

99
webfontsGenerator({
10-
files: glob.sync('src/app/shared/styles/icons/*.svg'),
10+
files: glob.sync('src/styles/icons/*.svg'),
1111
dest: 'src/assets/fonts',
1212
fontName: 'argo-icon',
1313
types: FONT_TYPES,
@@ -22,7 +22,7 @@ webfontsGenerator({
2222
console.log('Fail!', error);
2323
} else {
2424
const scss = fs.readFileSync('src/assets/fonts/argo-icon.css', 'utf-8').replace(/url\(\"argo-icon/g, 'url\($argo-icon-fonts-root + \"argo-icon');
25-
fs.writeFileSync('src/app/shared/styles/argo-icon.scss', scss);
25+
fs.writeFileSync('src/styles/argo-icon.scss', scss);
2626
fs.unlinkSync('src/assets/fonts/argo-icon.css');
2727
}
2828
});

0 commit comments

Comments
 (0)