-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Develop See merge request triones/npm-pkg/alkaid!3
- Loading branch information
Showing
30 changed files
with
610 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # default branch | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm install | ||
- run: npm run build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# 文档目录,如果是 react 模板需要修改为 docs-dist | ||
publish_dir: ./examples/basic/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
.idea | ||
*/node_modules/ | ||
*/node_modules/ | ||
.npmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const FlinkSqlSelect = () => { | ||
return <>s</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import {DnFC} from "@trionesdev/designable-react"; | ||
import React from "react"; | ||
import {BaseNode} from "./BaseNode"; | ||
import {createBehavior, createResource} from "@trionesdev/designable-core"; | ||
import {uid} from "@trionesdev/designable-shared"; | ||
import _ from "lodash"; | ||
|
||
export const BatchSyncNode: DnFC<React.ComponentProps<typeof BaseNode>> = _.cloneDeep(BaseNode) | ||
|
||
BatchSyncNode.Behavior = createBehavior({ | ||
name: 'BatchSyncNode', | ||
extends: ['FlowNode'], | ||
selector: (node) => node.props?.['x-component'] === 'BatchSyncNode', | ||
designerProps: { | ||
propsSchema: { | ||
type: 'object', | ||
properties: { | ||
'node-props-group': { | ||
type: 'void', | ||
'x-component': 'CollapseItem', | ||
properties: { | ||
'x-component-props': { | ||
type: 'object', | ||
properties: { | ||
title: { | ||
type: 'string', | ||
'x-decorator': 'FormItem', | ||
'x-component': 'Input', | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
defaultProps: { | ||
"title": "离线同步" | ||
}, | ||
graphNodeProps: { | ||
type: 'BATCH_SYNC', | ||
label: '离线同步任务', | ||
icon: 'RadioGroupSource', | ||
props: { | ||
"title": "离线同步" | ||
}, | ||
"ports": [ | ||
{ | ||
"id": uid(), | ||
"group": "left" | ||
}, | ||
{ | ||
"id": uid(), | ||
"group": "right" | ||
} | ||
] | ||
} | ||
}, | ||
designerLocales: { | ||
'zh-CN': { | ||
"title": "离线同步", | ||
"settings": { | ||
"x-component-props": { | ||
"title": "名称" | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
|
||
BatchSyncNode.Resource = createResource({ | ||
icon: 'RadioGroupSource', | ||
"title": "离线同步任务", | ||
elements: [ | ||
{ | ||
componentName: 'FlowNode', | ||
props: { | ||
type: 'object', | ||
'x-component': 'BatchSyncNode', | ||
}, | ||
}, | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.