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 = [


Loading…
取消
儲存