IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
소스 검색

Support for YAML workflow definitions.

master
부모
커밋
12192c5b93
4개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -0
      frontend/package.json
  2. +1
    -0
      frontend/rollup.config.js
  3. +1
    -0
      frontend/src/html/index.html
  4. +6
    -1
      frontend/src/js/component/wb-workflow-fields.js

+ 1
- 0
frontend/package.json 파일 보기

@@ -7,6 +7,7 @@
"history": "^4.10.1",
"jquery": "^3.4.1",
"js-uuid": "0.0.6",
"js-yaml": "^3.13.1",
"linkstate": "^1.1.1",
"popper.js": "^1.16.1",
"preact": "^8.2.9",


+ 1
- 0
frontend/rollup.config.js 파일 보기

@@ -46,6 +46,7 @@ export default {
'node_modules/crypto-js/core.js': 'dist/js/crypto-js/core.js',
'node_modules/crypto-js/md5.js': 'dist/js/crypto-js/md5.js',
'src/js/misc/wb-manifest-worker.js': 'dist/js/wb-manifest-worker.js',
'node_modules/js-yaml/dist/js-yaml.min.js': 'dist/js/js-yaml.min.js',
verbose: true
}),
buble({jsx: 'h'}),


+ 1
- 0
frontend/src/html/index.html 파일 보기

@@ -14,6 +14,7 @@
<script language="javascript" src="/js/filesize.js"></script>
<script language="javascript" src="/js/crypto-js/core.js"></script>
<script language="javascript" src="/js/crypto-js/md5.js"></script>
<script language="javascript" src="/js/js-yaml.min.js"></script>
</head>
<body>
<script language="javascript" src="/js/app.min.js"></script>


+ 6
- 1
frontend/src/js/component/wb-workflow-fields.js 파일 보기

@@ -22,7 +22,12 @@ class WBWorkflowFields extends Component {
prom = prom.then(xhr => {
const item = xhr.response;
const definition = JSON.parse(item.definition);
let definition;
try {
definition = JSON.parse(item.definition);
} catch (_) {
definition = jsyaml.load(item.definition);
}
const graph = definition['$graph'];
let rows = [


불러오는 중...
취소
저장