@nocobase/plugin-workflow-sql 0.20.0-alpha.3 → 0.20.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("@nocobase/client"),require("react/jsx-runtime"),require("@nocobase/plugin-workflow/client"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","react/jsx-runtime","@nocobase/plugin-workflow/client","react-i18next"],o):(e=typeof globalThis!="undefined"?globalThis:e||self,o(e["@nocobase/plugin-workflow-sql"]={},e["@nocobase/client"],e.jsxRuntime,e["@nocobase/plugin-workflow"],e["react-i18next"]))})(this,function(e,o,n,s,c){"use strict";var
|
|
1
|
+
(function(e,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("@nocobase/client"),require("react/jsx-runtime"),require("@nocobase/plugin-workflow/client"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","react/jsx-runtime","@nocobase/plugin-workflow/client","react-i18next"],o):(e=typeof globalThis!="undefined"?globalThis:e||self,o(e["@nocobase/plugin-workflow-sql"]={},e["@nocobase/client"],e.jsxRuntime,e["@nocobase/plugin-workflow"],e["react-i18next"]))})(this,function(e,o,n,s,c){"use strict";var b=Object.defineProperty;var x=(e,o,n)=>o in e?b(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n;var r=(e,o,n)=>(x(e,typeof o!="symbol"?o+"":o,n),n);var u=(e,o,n)=>new Promise((s,c)=>{var i=t=>{try{a(n.next(t))}catch(l){c(l)}},d=t=>{try{a(n.throw(t))}catch(l){c(l)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(i,d);a((n=n.apply(e,o)).next())});const i="@nocobase/plugin-workflow-sql";class d extends s.Instruction{constructor(){super(...arguments);r(this,"title",`{{t("SQL action", { ns: "${i}" })}}`);r(this,"type","sql");r(this,"group","collection");r(this,"description",`{{t("Execute a SQL statement in database.", { ns: "${i}" })}}`);r(this,"fieldset",{sql:{type:"string",required:!0,title:"SQL",description:"{{sqlDescription()}}","x-decorator":"FormItem","x-component":"WorkflowVariableRawTextArea","x-component-props":{rows:20,className:o.css`
|
|
2
2
|
font-size: 80%;
|
|
3
3
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
4
|
-
`}}});r(this,"scope",{sqlDescription(){return n.jsxs(c.Trans,{ns:i,children:["SQL query result could be used through ",n.jsx("a",{href:"https://docs-cn.nocobase.com/
|
|
4
|
+
`}}});r(this,"scope",{sqlDescription(){return n.jsxs(c.Trans,{ns:i,children:["SQL query result could be used through ",n.jsx("a",{href:"https://docs-cn.nocobase.com/handbook/workflow-json-query",target:"_blank",rel:"noreferrer",children:"JSON query node"})," (Commercial plugin)."]})}});r(this,"components",{WorkflowVariableRawTextArea:s.WorkflowVariableRawTextArea})}useVariables({key:p,title:w},{types:m,fieldNames:f=s.defaultFieldNames}){return{[f.value]:p,[f.label]:w}}}class a extends o.Plugin{afterAdd(){return u(this,null,function*(){})}beforeLoad(){return u(this,null,function*(){})}load(){return u(this,null,function*(){this.app.pm.get("workflow").registerInstruction("sql",d)})}}e.default=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.20.0-alpha.
|
|
3
|
-
"@nocobase/plugin-workflow": "0.20.0-alpha.
|
|
4
|
-
"react-i18next": "11.18.6",
|
|
2
|
+
"@nocobase/client": "0.20.0-alpha.4",
|
|
3
|
+
"@nocobase/plugin-workflow": "0.20.0-alpha.4",
|
|
5
4
|
"react": "18.2.0",
|
|
6
|
-
"
|
|
7
|
-
"@nocobase/
|
|
8
|
-
"@nocobase/test": "0.20.0-alpha.
|
|
9
|
-
"@nocobase/
|
|
5
|
+
"react-i18next": "11.18.6",
|
|
6
|
+
"@nocobase/server": "0.20.0-alpha.4",
|
|
7
|
+
"@nocobase/plugin-workflow-test": "0.20.0-alpha.4",
|
|
8
|
+
"@nocobase/test": "0.20.0-alpha.4",
|
|
9
|
+
"@nocobase/utils": "0.20.0-alpha.4"
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:SQL 节点",
|
|
5
5
|
"description": "Execute SQL statements in workflow.",
|
|
6
6
|
"description.zh-CN": "可用于在工作流中对数据库执行任意 SQL 语句。",
|
|
7
|
-
"version": "0.20.0-alpha.
|
|
7
|
+
"version": "0.20.0-alpha.4",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
|
-
"homepage": "https://docs.nocobase.com/
|
|
11
|
-
"homepage.zh-CN": "https://docs-cn.nocobase.com/
|
|
10
|
+
"homepage": "https://docs.nocobase.com/handbook/workflow-sql",
|
|
11
|
+
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-sql",
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"antd": "5.x",
|
|
14
14
|
"react": "18.x",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@nocobase/server": "0.x",
|
|
22
22
|
"@nocobase/test": "0.x"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "9f0ec793806251c36029ebac3e80fbbec90ec0db",
|
|
25
25
|
"keywords": [
|
|
26
26
|
"Workflow"
|
|
27
27
|
]
|
|
@@ -2,9 +2,9 @@ import { css } from '@nocobase/client';
|
|
|
2
2
|
|
|
3
3
|
import { Instruction, WorkflowVariableRawTextArea, defaultFieldNames } from '@nocobase/plugin-workflow/client';
|
|
4
4
|
|
|
5
|
-
import { NAMESPACE } from '../locale';
|
|
6
|
-
import { Trans } from 'react-i18next';
|
|
7
5
|
import React from 'react';
|
|
6
|
+
import { Trans } from 'react-i18next';
|
|
7
|
+
import { NAMESPACE } from '../locale';
|
|
8
8
|
|
|
9
9
|
export default class extends Instruction {
|
|
10
10
|
title = `{{t("SQL action", { ns: "${NAMESPACE}" })}}`;
|
|
@@ -33,7 +33,7 @@ export default class extends Instruction {
|
|
|
33
33
|
return (
|
|
34
34
|
<Trans ns={NAMESPACE}>
|
|
35
35
|
{'SQL query result could be used through '}
|
|
36
|
-
<a href="https://docs-cn.nocobase.com/
|
|
36
|
+
<a href="https://docs-cn.nocobase.com/handbook/workflow-json-query" target="_blank" rel="noreferrer">
|
|
37
37
|
{'JSON query node'}
|
|
38
38
|
</a>
|
|
39
39
|
{' (Commercial plugin).'}
|