@nocobase/plugin-action-custom-request 1.2.13-alpha → 1.3.0-alpha.20240710084543
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/package.json +2 -2
- package/dist/client/components/CustomRequestAction.d.ts +0 -15
- package/dist/client/components/CustomRequestActionDesigner.d.ts +0 -20
- package/dist/client/components/index.d.ts +0 -9
- package/dist/client/constants.d.ts +0 -9
- package/dist/client/hooks/index.d.ts +0 -11
- package/dist/client/hooks/useCustomRequestVariableOptions.d.ts +0 -13
- package/dist/client/hooks/useCustomRequestsResource.d.ts +0 -9
- package/dist/client/hooks/useCustomizeRequestActionProps.d.ts +0 -11
- package/dist/client/hooks/useGetCustomRequest.d.ts +0 -15
- package/dist/client/index.d.ts +0 -13
- package/dist/client/index.js +0 -10
- package/dist/client/initializer/CustomRequestInitializer.d.ts +0 -26
- package/dist/client/initializer/index.d.ts +0 -9
- package/dist/client/locale.d.ts +0 -12
- package/dist/client/schemaSettings.d.ts +0 -10
- package/dist/client/schemas/CustomRequestACL.d.ts +0 -35
- package/dist/client/schemas/CustomRequestConfigurationFields.d.ts +0 -195
- package/dist/client/schemas/index.d.ts +0 -10
- package/dist/externalVersion.js +0 -27
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -48
- package/dist/locale/ko_KR.json +0 -26
- package/dist/locale/zh-CN.json +0 -26
- package/dist/server/actions/listByCurrentRole.d.ts +0 -10
- package/dist/server/actions/listByCurrentRole.js +0 -51
- package/dist/server/actions/send.d.ts +0 -11
- package/dist/server/actions/send.js +0 -208
- package/dist/server/collections/customRequest.d.ts +0 -10
- package/dist/server/collections/customRequest.js +0 -60
- package/dist/server/collections/customRequestsRoles.d.ts +0 -10
- package/dist/server/collections/customRequestsRoles.js +0 -36
- package/dist/server/index.d.ts +0 -9
- package/dist/server/index.js +0 -42
- package/dist/server/migrations/20240425205017-change-locale-module.d.ts +0 -14
- package/dist/server/migrations/20240425205017-change-locale-module.js +0 -51
- package/dist/server/plugin.d.ts +0 -22
- package/dist/server/plugin.js +0 -79
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-action-custom-request",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-alpha.20240710084543",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/action-custom-request",
|
|
6
6
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/action-custom-request",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nocobase/server": "1.x",
|
|
23
23
|
"@nocobase/test": "1.x"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "07a8b596fc64a9779a194cb9b0dc2ca7570ed9d4",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"Actions"
|
|
28
28
|
]
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
export declare const CustomRequestActionACLDecorator: (props: any) => any;
|
|
11
|
-
export declare const CustomRequestAction: {
|
|
12
|
-
(props: any): React.JSX.Element;
|
|
13
|
-
Designer: React.FC<{}>;
|
|
14
|
-
Decorator: (props: any) => any;
|
|
15
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import { SchemaSettings } from '@nocobase/client';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export declare function CustomRequestSettingsItem(): React.JSX.Element;
|
|
12
|
-
export declare function CustomRequestACL(): React.JSX.Element;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
export declare const customRequestActionSettings: SchemaSettings<{}>;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
export declare const CustomRequestActionDesigner: React.FC;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export * from './CustomRequestAction';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const listByCurrentRoleUrl = "customRequests:listByCurrentRole";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export * from './useCustomizeRequestActionProps';
|
|
10
|
-
export * from './useGetCustomRequest';
|
|
11
|
-
export * from './useCustomRequestVariableOptions';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const useCustomRequestVariableOptions: () => {
|
|
10
|
-
name: string;
|
|
11
|
-
title: string;
|
|
12
|
-
children: any;
|
|
13
|
-
}[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const useCustomRequestsResource: () => import("@nocobase/sdk").IResource;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const useCustomizeRequestActionProps: () => {
|
|
10
|
-
onClick(e?: any, callBack?: any): Promise<void>;
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const useGetCustomRequest: () => import("@nocobase/client").UseRequestResult<{
|
|
10
|
-
data: {
|
|
11
|
-
options: any;
|
|
12
|
-
title: string;
|
|
13
|
-
roles: any[];
|
|
14
|
-
};
|
|
15
|
-
}>;
|
package/dist/client/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin } from '@nocobase/client';
|
|
10
|
-
export declare class PluginActionCustomRequestClient extends Plugin {
|
|
11
|
-
load(): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export default PluginActionCustomRequestClient;
|
package/dist/client/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
(function(t,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("react/jsx-runtime"),require("@nocobase/client"),require("@formily/react"),require("@nocobase/utils/client"),require("antd"),require("react-router-dom"),require("react"),require("react-i18next"),require("@formily/antd-v5"),require("@formily/shared")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@nocobase/client","@formily/react","@nocobase/utils/client","antd","react-router-dom","react","react-i18next","@formily/antd-v5","@formily/shared"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t["@nocobase/plugin-action-custom-request"]={},t.jsxRuntime,t["@nocobase/client"],t["@formily/react"],t["@nocobase/utils"],t.antd,t["react-router-dom"],t.react,t["react-i18next"],t["@formily/antd-v5"],t["@formily/shared"]))})(this,function(t,n,e,l,F,O,D,g,S,E,_){"use strict";var fe=Object.defineProperty,he=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var $=(t,n,e)=>n in t?fe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,q=(t,n)=>{for(var e in n||(n={}))Q.call(n,e)&&$(t,e,n[e]);if(M)for(var e of M(n))Z.call(n,e)&&$(t,e,n[e]);return t},I=(t,n)=>he(t,ye(n));var ee=(t,n)=>{var e={};for(var l in t)Q.call(t,l)&&n.indexOf(l)<0&&(e[l]=t[l]);if(t!=null&&M)for(var l of M(t))n.indexOf(l)<0&&Z.call(t,l)&&(e[l]=t[l]);return e};var A=(t,n,e)=>new Promise((l,F)=>{var O=S=>{try{g(e.next(S))}catch(E){F(E)}},D=S=>{try{g(e.throw(S))}catch(E){F(E)}},g=S=>S.done?l(S.value):Promise.resolve(S.value).then(O,D);g((e=e.apply(t,n)).next())});const L="customRequests:listByCurrentRole";var P=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},V={exports:{}};(function(a,p){(function(i,c){c()})(P,function(){function i(o,r){return typeof r=="undefined"?r={autoBom:!1}:typeof r!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}function c(o,r,y){var m=new XMLHttpRequest;m.open("GET",o),m.responseType="blob",m.onload=function(){v(m.response,r,y)},m.onerror=function(){console.error("could not download file")},m.send()}function d(o){var r=new XMLHttpRequest;r.open("HEAD",o,!1);try{r.send()}catch(y){}return 200<=r.status&&299>=r.status}function f(o){try{o.dispatchEvent(new MouseEvent("click"))}catch(y){var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),o.dispatchEvent(r)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof P=="object"&&P.global===P?P:void 0,x=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!x?function(o,r,y){var m=u.URL||u.webkitURL,C=document.createElement("a");r=r||o.name||"download",C.download=r,C.rel="noopener",typeof o=="string"?(C.href=o,C.origin===location.origin?f(C):d(C.href)?c(o,r,y):f(C,C.target="_blank")):(C.href=m.createObjectURL(o),setTimeout(function(){m.revokeObjectURL(C.href)},4e4),setTimeout(function(){f(C)},0))}:"msSaveOrOpenBlob"in navigator?function(o,r,y){if(r=r||o.name||"download",typeof o!="string")navigator.msSaveOrOpenBlob(i(o,y),r);else if(d(o))c(o,r,y);else{var m=document.createElement("a");m.href=o,m.target="_blank",setTimeout(function(){f(m)})}}:function(o,r,y,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof o=="string")return c(o,r,y);var C=o.type==="application/octet-stream",b=/constructor/i.test(u.HTMLElement)||u.safari,k=/CriOS\/[\d]+/.test(navigator.userAgent);if((k||C&&b||x)&&typeof FileReader!="undefined"){var s=new FileReader;s.onloadend=function(){var R=s.result;R=k?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=R:location=R,m=null},s.readAsDataURL(o)}else{var T=u.URL||u.webkitURL,w=T.createObjectURL(o);m?m.location=w:location.href=w,m=null,setTimeout(function(){T.revokeObjectURL(w)},4e4)}});u.saveAs=v.saveAs=v,a.exports=v})})(V);var te=V.exports;const oe=()=>{const a=e.useAPIClient(),p=D.useNavigate(),i=l.useFieldSchema(),c=e.useCompile(),d=l.useForm(),f=e.useRecord(),u=l.useFieldSchema(),x=l.useField(),{setVisible:v}=e.useActionContext(),{modal:o,message:r}=O.App.useApp(),y=e.useDataSourceKey();return{onClick(C,b){return A(this,null,function*(){var R,X;const{skipValidator:k,onSuccess:s}=(R=i==null?void 0:i["x-action-settings"])!=null?R:{},T=i==null?void 0:i["x-action"];k!==!0&&T==="customize:form:request"&&(yield d.submit());let w=q({},f);T==="customize:form:request"&&(w=d.values),(X=x.data)!=null||(x.data={}),x.data.loading=!0;try{const z=yield a.request({url:`/customRequests:send/${u["x-uid"]}`,method:"POST",data:{currentRecord:{dataSourceKey:y,data:w}},responseType:u["x-response-type"]==="stream"?"blob":"json"});if(z.headers["content-disposition"]){const de=/attachment;\s*filename="([^"]+)"/,Y=z.headers["content-disposition"].match(de);Y[1]&&te.saveAs(z.data,Y[1])}if(x.data.loading=!1,b&&(b==null||b()),T==="customize:form:request"&&(v==null||v(!1)),!(s!=null&&s.successMessage))return;s!=null&&s.manualClose?o.success({title:c(s==null?void 0:s.successMessage),onOk:()=>A(this,null,function*(){s!=null&&s.redirecting&&(s!=null&&s.redirectTo)&&(F.isURL(s.redirectTo)?window.location.href=s.redirectTo:p(s.redirectTo))})}):(r.success(c(s==null?void 0:s.successMessage)),s!=null&&s.redirecting&&(s!=null&&s.redirectTo)&&(F.isURL(s.redirectTo)?window.location.href=s.redirectTo:p(s.redirectTo)))}finally{x.data.loading=!1}})}}},K=()=>{const p=`customRequests:get/${l.useFieldSchema()["x-uid"]}`;return e.useRequest({url:p,params:{appends:["roles"]}},{manual:!0,cacheKey:p})},B="action-custom-request";function h(a){return`{{t('${a}', { ns: '${B}', nsMode: 'fallback' })}}`}function U(){return S.useTranslation(B,{nsMode:"fallback"})}const se=()=>{const a=e.useCollection_deprecated(),{t:p}=U(),i=e.useCollectionFilterOptions(a),c=e.useCollectionFilterOptions("users",e.DEFAULT_DATA_SOURCE_KEY),d=e.useCompile(),[f,u]=g.useMemo(()=>[d(i),d(c)],[i,c]);return g.useMemo(()=>[{name:"currentRecord",title:p("Current record",{ns:"client"}),children:[...f]},{name:"currentUser",title:p("Current user",{ns:"client"}),children:u},{name:"currentTime",title:p("Current time",{ns:"client"}),children:null}],[f,u])},j=()=>e.useAPIClient().resource("customRequests"),H={type:"object",properties:{method:{type:"string",required:!0,title:h("HTTP method"),"x-decorator-props":{tooltip:h("When the HTTP method is Post, Put or Patch, and this custom request inside the form, the request body will be automatically filled in with the form data")},"x-decorator":"FormItem","x-component":"Select","x-component-props":{showSearch:!1,allowClear:!1,className:"auto-width"},enum:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"},{label:"DELETE",value:"DELETE"}],default:"POST"},url:{type:"string",required:!0,title:h("URL"),"x-decorator":"FormItem","x-component":"Variable.RawTextArea","x-component-props":{scope:"{{useCustomRequestVariableOptions}}",autoSize:!0,fieldNames:{value:"name",label:"title"},placeholder:"https://www.nocobase.com"}},headers:{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:h("Headers"),description:h('"Content-Type" only support "application/json", and no need to specify'),items:{type:"object",properties:{space:{type:"void","x-component":"Space",properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:h("Name")}},value:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:"{{useCustomRequestVariableOptions}}",fieldNames:{value:"name",label:"title"},useTypedConstant:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},properties:{add:{type:"void",title:h("Add request header"),"x-component":"ArrayItems.Addition"}}},params:{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:h("Parameters"),items:{type:"object",properties:{space:{type:"void","x-component":"Space",properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:h("Name")}},value:{type:"string","x-decorator":"FormItem","x-component":"Variable.Input","x-component-props":{scope:"{{useCustomRequestVariableOptions}}",fieldNames:{value:"name",label:"title"},useTypedConstant:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},properties:{add:{type:"void",title:h("Add parameter"),"x-component":"ArrayItems.Addition"}}},data:{type:"string",title:h("Body"),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"Variable.JSON","x-component-props":{scope:"{{useCustomRequestVariableOptions}}",fieldNames:{value:"name",label:"title"},changeOnSelect:!0,autoSize:{minRows:10},placeholder:h("Input request data")},description:h("Only support standard JSON data")},timeout:{type:"number",title:h("Timeout config"),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"InputNumber","x-component-props":{addonAfter:h("ms"),min:1,step:1e3,defaultValue:5e3}},responseType:{type:"string",title:h("Response type"),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"Select",default:"json",enum:[{value:"json",label:"JSON"},{value:"stream",label:"Stream"}]}}},ne={type:"object",properties:{roles:{type:"array",title:h("Roles"),"x-decorator":"FormItem","x-decorator-props":{tooltip:h("If not set, all roles can see this action")},"x-component":"RemoteSelect","x-component-props":{multiple:!0,objectValue:!0,dataSource:e.DEFAULT_DATA_SOURCE_KEY,service:{resource:"roles"},manual:!1,fieldNames:{label:"title",value:"name"}}}}};function G(){var o;const{t:a}=U(),{name:p}=e.useCollection_deprecated(),i=e.useDataSourceKey(),c=l.useFieldSchema(),d=j(),{message:f}=O.App.useApp(),{data:u,refresh:x}=K(),{dn:v}=e.useDesignable();return n.jsx(n.Fragment,{children:n.jsx(e.SchemaSettingsActionModalItem,{title:a("Request settings"),components:{ArrayItems:E.ArrayItems},beforeOpen:()=>!u&&x(),scope:{useCustomRequestVariableOptions:se},schema:H,initialValues:q({},(o=u==null?void 0:u.data)==null?void 0:o.options),onSubmit:r=>A(this,null,function*(){const y=ee(r,[]);return c["x-response-type"]=y.responseType,yield d.updateOrCreate({values:{key:c["x-uid"],options:I(q({},y),{collectionName:p,dataSourceKey:i})},filterKeys:["key"]}),v.emit("patch",{schema:{"x-response-type":y.responseType,"x-uid":c["x-uid"]}}),x(),f.success(a("Saved successfully"))})})})}function J(){var x;const{t:a}=U(),p=l.useFieldSchema(),i=j(),{message:c}=O.App.useApp(),{data:d,refresh:f}=K(),{refresh:u}=e.useRequest({url:L},{manual:!0,cacheKey:L});return n.jsx(n.Fragment,{children:n.jsx(e.SchemaSettingsActionModalItem,{title:a("Access control"),schema:ne,initialValues:{roles:(x=d==null?void 0:d.data)==null?void 0:x.roles},beforeOpen:()=>!d&&f(),onSubmit:o=>A(this,[o],function*({roles:v}){return yield i.updateOrCreate({values:{key:p["x-uid"],roles:v},filterKeys:["key"]}),f(),u(),c.success(a("Saved successfully"))})})})}const re=new e.SchemaSettings({name:"CustomRequestActionSettings",items:[I(q({},e.actionSettingsItems[0]),{children:[...e.actionSettingsItems[0].children,{name:"request settings",Component:G},{name:"accessControl",Component:J}]})]}),ae=()=>{const a=j(),p=l.useFieldSchema();return n.jsx(e.Action.Designer,{linkageAction:!0,schemaSettings:"CustomRequestActionSettings",buttonEditorProps:{isLink:p["x-action"]==="customize:table:request"},linkageRulesProps:{type:"button"},removeButtonProps:{onConfirmOk(){return a.destroy({filterByTk:p["x-uid"]})}}})},ie=a=>{var f;const i=e.useAPIClient().auth.role==="root",c=l.useFieldSchema(),{data:d}=e.useRequest({url:L},{manual:i,cacheKey:L});return!i&&!((f=d==null?void 0:d.data)!=null&&f.includes(c==null?void 0:c["x-uid"]))?null:a.children},ue={"customize:table:request":e.Action.Link},N=a=>{const i=l.useFieldSchema()["x-action"],c=ue[i]||e.Action;return n.jsx(c,I(q({},a),{useProps:oe}))};N.Designer=ae,N.Decorator=ie;const ce=()=>({title:'{{ t("Custom request") }}',"x-component":"CustomRequestAction","x-action":"customize:form:request","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:customRequest","x-decorator":"CustomRequestAction.Decorator","x-uid":_.uid(),"x-action-settings":{onSuccess:{manualClose:!1,redirecting:!1,successMessage:'{{t("Request success")}}'}}}),me=a=>{const p=j(),i=e.useSchemaInitializerItem(),{insert:c}=e.useSchemaInitializer();return n.jsx(e.SchemaInitializerItem,I(q({},i),{onClick:()=>A(this,null,function*(){var u;const d=ce(),f=_.merge(d||{},i.schema||{});(u=i==null?void 0:i.schemaInitialize)==null||u.call(i,f),c(f),yield p.create({values:{key:f["x-uid"]}})})}))},le=new e.SchemaSettings({name:"actionSettings:customRequest",items:[{name:"editButton",Component:e.ButtonEditor,useComponentProps(){return{isLink:l.useFieldSchema()["x-action"]==="customize:table:request"}}},{name:"linkageRules",Component:e.SchemaSettingsLinkageRules,useComponentProps(){const{name:a}=e.useCollection(),{linkageRulesProps:p}=e.useSchemaToolbar();return I(q({},p),{collectionName:a})}},{name:"secondConFirm",Component:e.SecondConFirm},{name:"afterSuccessfulSubmission",Component:e.AfterSuccess},{name:"request settings",Component:G},{name:"accessControl",Component:J},{name:"refreshDataBlockRequest",Component:e.RefreshDataBlockRequest,useComponentProps(){return{isPopupAction:!1}}},{name:"delete",sort:100,Component:e.RemoveButton,useComponentProps(){const{removeButtonProps:a}=e.useSchemaToolbar();return a}}]}),pe=a=>n.jsx(e.SchemaComponentOptions,{scope:{CustomRequestConfigurationFieldsSchema:H},components:{CustomRequestAction:N,CustomRequestInitializer:me},children:a.children});class W extends e.Plugin{load(){return A(this,null,function*(){this.app.use(pe),this.app.schemaSettingsManager.add(le),this.app.schemaSettingsManager.add(re)})}}t.PluginActionCustomRequestClient=W,t.default=W,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
export declare const getNewSchema: () => {
|
|
11
|
-
title: string;
|
|
12
|
-
'x-component': string;
|
|
13
|
-
'x-action': string;
|
|
14
|
-
'x-toolbar': string;
|
|
15
|
-
'x-settings': string;
|
|
16
|
-
'x-decorator': string;
|
|
17
|
-
'x-uid': string;
|
|
18
|
-
'x-action-settings': {
|
|
19
|
-
onSuccess: {
|
|
20
|
-
manualClose: boolean;
|
|
21
|
-
redirecting: boolean;
|
|
22
|
-
successMessage: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare const CustomRequestInitializer: React.FC<any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export * from './CustomRequestInitializer';
|
package/dist/client/locale.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const NAMESPACE = "action-custom-request";
|
|
10
|
-
export declare function lang(key: string): string;
|
|
11
|
-
export declare function generateNTemplate(key: string): string;
|
|
12
|
-
export declare function useTranslation(): import("react-i18next").UseTranslationResponse<"action-custom-request", undefined>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import { SchemaSettings } from '@nocobase/client';
|
|
10
|
-
export declare const customizeCustomRequestActionSettings: SchemaSettings<{}>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const CustomRequestACLSchema: {
|
|
10
|
-
type: string;
|
|
11
|
-
properties: {
|
|
12
|
-
roles: {
|
|
13
|
-
type: string;
|
|
14
|
-
title: string;
|
|
15
|
-
'x-decorator': string;
|
|
16
|
-
'x-decorator-props': {
|
|
17
|
-
tooltip: string;
|
|
18
|
-
};
|
|
19
|
-
'x-component': string;
|
|
20
|
-
'x-component-props': {
|
|
21
|
-
multiple: boolean;
|
|
22
|
-
objectValue: boolean;
|
|
23
|
-
dataSource: string;
|
|
24
|
-
service: {
|
|
25
|
-
resource: string;
|
|
26
|
-
};
|
|
27
|
-
manual: boolean;
|
|
28
|
-
fieldNames: {
|
|
29
|
-
label: string;
|
|
30
|
-
value: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const CustomRequestConfigurationFieldsSchema: {
|
|
10
|
-
type: string;
|
|
11
|
-
properties: {
|
|
12
|
-
method: {
|
|
13
|
-
type: string;
|
|
14
|
-
required: boolean;
|
|
15
|
-
title: string;
|
|
16
|
-
'x-decorator-props': {
|
|
17
|
-
tooltip: string;
|
|
18
|
-
};
|
|
19
|
-
'x-decorator': string;
|
|
20
|
-
'x-component': string;
|
|
21
|
-
'x-component-props': {
|
|
22
|
-
showSearch: boolean;
|
|
23
|
-
allowClear: boolean;
|
|
24
|
-
className: string;
|
|
25
|
-
};
|
|
26
|
-
enum: {
|
|
27
|
-
label: string;
|
|
28
|
-
value: string;
|
|
29
|
-
}[];
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
url: {
|
|
33
|
-
type: string;
|
|
34
|
-
required: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
'x-decorator': string;
|
|
37
|
-
'x-component': string;
|
|
38
|
-
'x-component-props': {
|
|
39
|
-
scope: string;
|
|
40
|
-
autoSize: boolean;
|
|
41
|
-
fieldNames: {
|
|
42
|
-
value: string;
|
|
43
|
-
label: string;
|
|
44
|
-
};
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
headers: {
|
|
49
|
-
type: string;
|
|
50
|
-
'x-component': string;
|
|
51
|
-
'x-decorator': string;
|
|
52
|
-
title: string;
|
|
53
|
-
description: string;
|
|
54
|
-
items: {
|
|
55
|
-
type: string;
|
|
56
|
-
properties: {
|
|
57
|
-
space: {
|
|
58
|
-
type: string;
|
|
59
|
-
'x-component': string;
|
|
60
|
-
properties: {
|
|
61
|
-
name: {
|
|
62
|
-
type: string;
|
|
63
|
-
'x-decorator': string;
|
|
64
|
-
'x-component': string;
|
|
65
|
-
'x-component-props': {
|
|
66
|
-
placeholder: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
value: {
|
|
70
|
-
type: string;
|
|
71
|
-
'x-decorator': string;
|
|
72
|
-
'x-component': string;
|
|
73
|
-
'x-component-props': {
|
|
74
|
-
scope: string;
|
|
75
|
-
fieldNames: {
|
|
76
|
-
value: string;
|
|
77
|
-
label: string;
|
|
78
|
-
};
|
|
79
|
-
useTypedConstant: boolean;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
remove: {
|
|
83
|
-
type: string;
|
|
84
|
-
'x-decorator': string;
|
|
85
|
-
'x-component': string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
properties: {
|
|
92
|
-
add: {
|
|
93
|
-
type: string;
|
|
94
|
-
title: string;
|
|
95
|
-
'x-component': string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
params: {
|
|
100
|
-
type: string;
|
|
101
|
-
'x-component': string;
|
|
102
|
-
'x-decorator': string;
|
|
103
|
-
title: string;
|
|
104
|
-
items: {
|
|
105
|
-
type: string;
|
|
106
|
-
properties: {
|
|
107
|
-
space: {
|
|
108
|
-
type: string;
|
|
109
|
-
'x-component': string;
|
|
110
|
-
properties: {
|
|
111
|
-
name: {
|
|
112
|
-
type: string;
|
|
113
|
-
'x-decorator': string;
|
|
114
|
-
'x-component': string;
|
|
115
|
-
'x-component-props': {
|
|
116
|
-
placeholder: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
value: {
|
|
120
|
-
type: string;
|
|
121
|
-
'x-decorator': string;
|
|
122
|
-
'x-component': string;
|
|
123
|
-
'x-component-props': {
|
|
124
|
-
scope: string;
|
|
125
|
-
fieldNames: {
|
|
126
|
-
value: string;
|
|
127
|
-
label: string;
|
|
128
|
-
};
|
|
129
|
-
useTypedConstant: boolean;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
remove: {
|
|
133
|
-
type: string;
|
|
134
|
-
'x-decorator': string;
|
|
135
|
-
'x-component': string;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
properties: {
|
|
142
|
-
add: {
|
|
143
|
-
type: string;
|
|
144
|
-
title: string;
|
|
145
|
-
'x-component': string;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
data: {
|
|
150
|
-
type: string;
|
|
151
|
-
title: string;
|
|
152
|
-
'x-decorator': string;
|
|
153
|
-
'x-decorator-props': {};
|
|
154
|
-
'x-component': string;
|
|
155
|
-
'x-component-props': {
|
|
156
|
-
scope: string;
|
|
157
|
-
fieldNames: {
|
|
158
|
-
value: string;
|
|
159
|
-
label: string;
|
|
160
|
-
};
|
|
161
|
-
changeOnSelect: boolean;
|
|
162
|
-
autoSize: {
|
|
163
|
-
minRows: number;
|
|
164
|
-
};
|
|
165
|
-
placeholder: string;
|
|
166
|
-
};
|
|
167
|
-
description: string;
|
|
168
|
-
};
|
|
169
|
-
timeout: {
|
|
170
|
-
type: string;
|
|
171
|
-
title: string;
|
|
172
|
-
'x-decorator': string;
|
|
173
|
-
'x-decorator-props': {};
|
|
174
|
-
'x-component': string;
|
|
175
|
-
'x-component-props': {
|
|
176
|
-
addonAfter: string;
|
|
177
|
-
min: number;
|
|
178
|
-
step: number;
|
|
179
|
-
defaultValue: number;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
responseType: {
|
|
183
|
-
type: string;
|
|
184
|
-
title: string;
|
|
185
|
-
'x-decorator': string;
|
|
186
|
-
'x-decorator-props': {};
|
|
187
|
-
'x-component': string;
|
|
188
|
-
default: string;
|
|
189
|
-
enum: {
|
|
190
|
-
value: string;
|
|
191
|
-
label: string;
|
|
192
|
-
}[];
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export * from './CustomRequestConfigurationFields';
|
|
10
|
-
export * from './CustomRequestACL';
|
package/dist/externalVersion.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.2.13-alpha",
|
|
12
|
-
"react": "18.2.0",
|
|
13
|
-
"react-i18next": "11.18.6",
|
|
14
|
-
"@formily/react": "2.3.0",
|
|
15
|
-
"@nocobase/logger": "1.2.13-alpha",
|
|
16
|
-
"@nocobase/server": "1.2.13-alpha",
|
|
17
|
-
"@nocobase/test": "1.2.13-alpha",
|
|
18
|
-
"@formily/antd-v5": "1.1.9",
|
|
19
|
-
"antd": "5.12.8",
|
|
20
|
-
"@nocobase/utils": "1.2.13-alpha",
|
|
21
|
-
"react-router-dom": "6.21.0",
|
|
22
|
-
"@formily/shared": "2.3.0",
|
|
23
|
-
"@nocobase/actions": "1.2.13-alpha",
|
|
24
|
-
"@nocobase/evaluators": "1.2.13-alpha",
|
|
25
|
-
"axios": "0.26.1",
|
|
26
|
-
"@nocobase/database": "1.2.13-alpha"
|
|
27
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export * from './server';
|
|
10
|
-
export { default } from './server';
|
package/dist/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
-
mod
|
|
36
|
-
));
|
|
37
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
-
var src_exports = {};
|
|
39
|
-
__export(src_exports, {
|
|
40
|
-
default: () => import_server.default
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(src_exports);
|
|
43
|
-
__reExport(src_exports, require("./server"), module.exports);
|
|
44
|
-
var import_server = __toESM(require("./server"));
|
|
45
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
-
0 && (module.exports = {
|
|
47
|
-
...require("./server")
|
|
48
|
-
});
|
package/dist/locale/ko_KR.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Access control": "접근 제어",
|
|
3
|
-
"Custom Request": "사용자 정의 요청",
|
|
4
|
-
"Request settings": "요청 설정",
|
|
5
|
-
"Roles": "역할",
|
|
6
|
-
"If not set, all roles can see this action": "설정되지 않은 경우 모든 역할이이 작업을 볼 수 있습니다",
|
|
7
|
-
"Title": "제목",
|
|
8
|
-
"HTTP method": "HTTP 메소드",
|
|
9
|
-
"URL": "URL",
|
|
10
|
-
"Headers": "헤더",
|
|
11
|
-
"Parameters": "파라미터",
|
|
12
|
-
"Add request header": "요청 헤더 추가",
|
|
13
|
-
"Add parameter": "파라미터 추가",
|
|
14
|
-
"Enter description info": "설명 정보 입력",
|
|
15
|
-
"Body": "바디",
|
|
16
|
-
"Use variable": "변수 사용",
|
|
17
|
-
"Format": "형식",
|
|
18
|
-
"Insert": "삽입",
|
|
19
|
-
"Timeout config": "타임아웃 설정",
|
|
20
|
-
"ms": "밀리초",
|
|
21
|
-
"Input request data": "요청 데이터 입력",
|
|
22
|
-
"Only support standard JSON data": "표준 JSON 데이터만 지원됩니다",
|
|
23
|
-
"\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\"은 \"application/json\"만 지원하며 지정할 필요가 없습니다",
|
|
24
|
-
"When the HTTP method is Post, Put or Patch, and this custom request inside the form, the request body will be automatically filled in with the form data": "HTTP 메소드가 Post, Put 또는 Patch이고이 사용자 정의 요청이 양식 내에있는 경우 요청 본문은 자동으로 양식 데이터로 채워집니다",
|
|
25
|
-
"Please configure the request settings first": "먼저 요청 설정을 구성하십시오"
|
|
26
|
-
}
|
package/dist/locale/zh-CN.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Access control": "权限控制",
|
|
3
|
-
"Custom Request": "自定义请求",
|
|
4
|
-
"Request settings": "请求设置",
|
|
5
|
-
"Roles": "角色",
|
|
6
|
-
"If not set, all roles can see this action": "如果不设置,所有角色都可以看到这个自定义请求",
|
|
7
|
-
"Title": "标题",
|
|
8
|
-
"HTTP method": "HTTP 方法",
|
|
9
|
-
"URL": "URL",
|
|
10
|
-
"Headers": "请求头",
|
|
11
|
-
"Parameters": "参数",
|
|
12
|
-
"Add request header": "添加请求头",
|
|
13
|
-
"Add parameter": "添加参数",
|
|
14
|
-
"Enter description info": "输入描述信息",
|
|
15
|
-
"Body": "请求体",
|
|
16
|
-
"Use variable": "使用变量",
|
|
17
|
-
"Format": "格式化",
|
|
18
|
-
"Insert": "插入",
|
|
19
|
-
"Timeout config": "超时设置",
|
|
20
|
-
"ms": "毫秒",
|
|
21
|
-
"Input request data": "输入请求数据",
|
|
22
|
-
"Only support standard JSON data": "仅支持标准 JSON 数据",
|
|
23
|
-
"\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" 请求头仅支持 \"application/json\",无需填写",
|
|
24
|
-
"When the HTTP method is Post, Put or Patch, and this custom request inside the form, the request body will be automatically filled in with the form data": "当请求方法为 Post、Put 或 Patch 时,且此自定义请求在表单内,请求体将自动填充表单数据",
|
|
25
|
-
"Please configure the request settings first": "请先配置请求设置"
|
|
26
|
-
}
|