diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 92a0abb8a..d673df676 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -30,5 +30,5 @@ the [forum](https://discourse.nodered.org) or
- [ ] I have read the [contribution guidelines](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
- [ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
-- [ ] I have run `grunt` to verify the unit tests pass
+- [ ] I have run `npm run test` to verify the unit tests pass
- [ ] I have added suitable unit tests to cover the new/changed functionality
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..ad3a4ca7a
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,15 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+ - package-ecosystem: "github-actions" # See documentation for possible values
+ directory: "/" # Location of package manifests
+ schedule:
+ interval: "monthly"
+ groups:
+ github-actions:
+ patterns:
+ - "*"
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8f3c8a6ce..6e66ce5d1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,26 +5,29 @@ on:
release:
types: [published]
+permissions:
+ contents: read
+
jobs:
generate:
name: 'Update node-red-docker image'
runs-on: ubuntu-latest
steps:
- name: Check out node-red repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
with:
path: 'node-red'
- name: Check out node-red-docker repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
with:
repository: 'node-red/node-red-docker'
path: 'node-red-docker'
- name: Check out node-red.github.io repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
with:
repository: 'node-red/node-red.github.io'
path: 'node-red.github.io'
- - uses: actions/setup-node@v1
+ - uses: actions/setup-node@v3
with:
node-version: '16'
- run: node ./node-red/.github/scripts/update-node-red-docker.js
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 0db909da6..d89394afa 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -6,16 +6,22 @@ on:
pull_request:
branches: [ master, dev ]
+permissions:
+ contents: read
+
jobs:
build:
+ permissions:
+ checks: write # for coverallsapp/github-action to create new checks
+ contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [14, 16]
+ node-version: [16, 18, 20]
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v2
+ uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
@@ -23,8 +29,8 @@ jobs:
- name: Run tests
run: |
npm run test
- - name: Publish to coveralls.io
- if: ${{ matrix.node-version == 14 }}
- uses: coverallsapp/github-action@v1.1.2
- with:
- github-token: ${{ github.token }}
+ # - name: Publish to coveralls.io
+ # if: ${{ matrix.node-version == 16 }}
+ # uses: coverallsapp/github-action@v1.1.2
+ # with:
+ # github-token: ${{ github.token }}
diff --git a/.gitignore b/.gitignore
index d4c991688..6a2ebfaa1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@ docs
.vscode
.nyc_output
sync.ffs_db
+package-lock.json
diff --git a/.jshintrc b/.jshintrc
index 719eecb49..0886c1dc0 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -15,5 +15,5 @@
"shadow": true, // allow variable shadowing (re-use of names...)
"sub": true, // don't warn that foo['bar'] should be written as foo.bar
"proto": true, // allow setting of __proto__ in node < v0.12,
- "esversion": 6 // allow es6
+ "esversion": 11 // allow es11(ES2020)
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb99d8e0e..26ec431bc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,314 @@
+#### 3.1.0: Milestone Release
+
+Editor
+
+ - Default filter to All Catalogues and show nodes for small lists (#4318) @knolleary
+ - Better distinguish between ctrl and meta keys on mac (#4310) @knolleary
+ - Ensure junction appears when filtering quick-add list (#4297) @knolleary
+ - Update message catalogs for JSONata Expression editor (#4287) @kazuhitoyokoi
+ - Add tooltip to relevance sort button in user settings UI (#4288) @kazuhitoyokoi
+ - Capture workspace dirty state when quick-adding junction (#4283) @knolleary
+ - Add docs for $clone function (#4284) @knolleary
+
+Runtime
+
+ - Dependency updates (#4317) @knolleary
+ - Ensure storage/util.writeFile handles concurrent write attempts (#4316) @knolleary
+ - Migrate http -> https for nodered.org (#4313) @Rotzbua
+ - Add Node 20 to GH Action test matrix (#4305) @Rotzbua
+ - Handle group-scoped nodes inside subflow (#4301) @knolleary
+ - Handle non-url-safe chars in context api (#4298) @knolleary
+ - Fix git pull operation in project feature (#4290) @kazuhitoyokoi
+ - Change linefeed codes in Korean message catalogs (#4286) @kazuhitoyokoi
+ - Fix file permissions of message catalogs (#4285) @kazuhitoyokoi
+ - Update tour (#4278) @knolleary
+
+Nodes
+
+ - File: Fix handling in file nodes when number is specified as file name (#4267) @kazuhitoyokoi
+ - Function: Adding function timeout to settings file (#4265) (#4309) @knolleary
+ - Function: Fix function setup tab layout (#4299) @knolleary
+ - HTTP Request: Handle 204 in httprequest JSON (#4262) @sammachin
+ - JSON: Fix test cases of JSON node (#4275) @kazuhitoyokoi
+ - MQTT: Remove unnecessary check for clientid if autoUnsub set (#4302) @knolleary
+
+##### 3.1.0-beta.4: Beta Release
+
+ Editor
+
+ - Add Japanese translation for 3.1.0 (#4252) @kazuhitoyokoi
+ - Improve Catalogue visibility (#4248) @Steve-Mcl
+ - Add support for wiring and moving junctions on touch device (#4244) @Steve-Mcl
+ - Show errors and statuses of config nodes in the sidebar when no catch node is available (#4231) @bvmensvoort
+ - Improve wiring for horizontally aligned nodes (#4232) @knolleary
+ - French translation of Welcome Tours (#4200) @GogoVega
+ - French translation of v3.1.0-beta.3 changes (#4199) @GogoVega
+ - add Japanese message for 3.1.0 beta 3 (#4209) @HiroyasuNishiyama
+ - Dont clone the group nodes `node` array when saving edits (#4208) @Steve-Mcl
+
+ Runtime
+
+ - Add NR_SUBFLOW_NAME/ID/PATH env vars (#4250) @knolleary
+ - Evaluate all env vars as part of async flow start (#4230) @knolleary
+ - Add support for httpStatic middleware (#4229) @knolleary
+
+ Nodes
+
+ - Fix JSONata in file nodes (#4246) @kazuhitoyokoi
+ - Fix timeout icon in function and link call nodes (#4253) @kazuhitoyokoi
+ - Fix connection keep-alive in http request node (#4228) @knolleary
+ - adding timeout attribute to function node (#4177) @k1ln
+ - Fix manual mode join when multiple sequences being handled (#4143) @BitCaesar
+ - Fix delay node flush issue (#4203) @dceejay
+ - Update status and catch node labels in group mode (#4207) @Steve-Mcl
+
+##### 3.1.0-beta.3: Beta Release
+
+Editor
+
+ - Select the item that is specified in a deep link URL (#4113) @Steve-Mcl
+ - Update to Monaco 0.38.0 (#4189) @Steve-Mcl
+ - Place subflow outputs/inputs relative to current view (#4183) @knolleary
+ - Enable RED.view.select to select group by id (#4184) @knolleary
+ - Combine existing env vars when merging groups (#4182) @knolleary
+ - Avoid creating empty global-config node if not needed (#4153) @knolleary
+ - Fix group selection when using lasso (#4108) @knolleary
+ - Use editor path in generating localStorage keys (#4151) @mw75
+ - Ensure no node credentials are included when exporting to clipboard (#4112) @knolleary
+ - Fix jsonata expression test ui (#4097) @knolleary
+ - Fix search button in palette popover (#4096) @knolleary
+
+Runtime
+
+ - Allow options object on each httpStatic configuration (#4109) @kevinGodell
+ - Ensure non-zero exit codes for errors (#4181) @knolleary
+ - Ensure external modules are installed synchronously (#4180) @knolleary
+ - Update dependecies include got (#4155) @knolleary
+ - Add Japanese translations for v3.1 beta.2 (#4158) @kazuhitoyokoi
+ - Ensure express server options are applied consistently (#4178) @knolleary
+ - Remove version info from theme endpoint (#4179) @knolleary
+ - Add Japanese translations for welcome tour of 3.1.0 beta.2 (#4145) @kazuhitoyokoi
+ - Added SHA-256 and SHA-512-256 digest authentication (#4100) @sroebert
+ - Add "timers" types to known types (#4103) @Steve-Mcl
+
+Nodes
+
+ - Allow Catch/Status nodes to be scoped to their group (#4185) @NetHans
+ - MQTT: Option to disable MQTT topic unsubscribe on disconnect (#4078) @flying7eleven
+
+
+##### 3.1.0-beta.2: Beta Release
+
+Editor
+
+ - NEW: Add change icon to tabs (#4068) @knolleary
+ - NEW: Complete overhaul of Group UX (#4079) @knolleary
+ - NEW: Add link to node help in node edit dialog footer (#4065) @knolleary
+ - NEW: Added editor feature for connecting multiple nodes to single node (#4051) @sonntam
+ - NEW: Increase workspace size to 8000x8000 (#4094) @knolleary
+ - Ensure node buttons are redrawn when flow lock state is changed (#4091) @knolleary
+ - Prevent loops being created with junction nodes (#4087) @knolleary
+ - Prevent opening locked node's edit dialog (#4069) @knolleary
+ - Reverse direction of tab scroll to expected direction (#4064) @knolleary
+ - Add cancel operation to editableList (#4077) @HiroyasuNishiyama
+ - Apply Mermaid diagram for project settings UI (#4054) @kazuhitoyokoi
+ - Add tooltip for show/hide button on info sidebar (#4050) @kazuhitoyokoi
+ - Fix align nodes on locked tab (#4072) @HiroyasuNishiyama
+ - Fix importing connected link nodes into a subflow (#4082) @knolleary
+ - Fix to add empty marker to empty group (#4060) @HiroyasuNishiyama
+ - Fix image URLs for v3.0 tour (#4053) @kazuhitoyokoi
+ - Show scrollbar in notification dialog only when needed (#4048) @kazuhitoyokoi
+ - Update-monaco-and-typings (#4089) @Steve-Mcl
+ - Update jquery UI (#4088) @knolleary
+ - Support i18n of lock/unlock buttons in flow property UI (#4049) @kazuhitoyokoi
+ - Translation kr (#3895) @hae-iotplatform
+ - Translation zhcn (!!请懂中文的帮忙review) (#3952) @cliyr
+ - Add French translation of nodes (#3964) @GogoVega
+ - Add French translation (#3962) @GogoVega
+ - Portuguese Brazilian (pt-BR) translation (#3804) @FabsMuller
+
+
+Runtime
+
+ - NEW: Generate stable ids for subflow instance internal nodes (#4093) @knolleary
+ - NEW: Change default file name to flows.json in project feature (#4073) @kazuhitoyokoi
+ - NEW: Deprecate synchronous access to jsonata (#4090) @knolleary
+ - Add Node 18 to test matrix (#4084) @knolleary
+ - Bump minimum nodejs version supported to match documented value (#4086) @knolleary
+ - Update monaco docs link in settings.js (#4075) @Steve-Mcl
+ - Remove duplicated messages in the message catalog (#4066) @kazuhitoyokoi
+ - Ensure errors in preDeliver callback are handled (#3911) @knolleary
+ - Fix "EADDRINUSE" error (#4046) @bggbr
+
+Nodes
+
+ - Link Call: Clear link-call timeouts when node is closed (#4085) @knolleary
+ - Join: ensure inflight status is cleared when in auto mode (#4083) @knolleary
+ - File Out: Fix extra newline append for multipart file write (#3915) @dceejay
+ - Add validators for complete and link call nodes (#4056) @kazuhitoyokoi
+
+##### 3.1.0-beta.1: Beta Release
+
+Editor
+
+ - NEW: Locking Flows (#3938) @knolleary
+ - NEW: Improve UX around hiding flows via context menu (#3930) @knolleary
+ - NEW: Add support for inline image in markdown editor by drag and drop of an image file (#4006) @HiroyasuNishiyama
+ - NEW: Add support for mermaid diagram to markdown editor (#4007) @HiroyasuNishiyama
+ - NEW: Support uri fragments for nodes and groups including edit support (#3870) @knolleary
+ - NEW: Add global environment variable feature (#3941) @HiroyasuNishiyama
+
+ - Remember compact/pretty flow export user choice (#3974) @Steve-Mcl
+ - fix .red-ui-notification class (#4035) @xiaobinqt
+ - Fix border radius on Modules list header (#4038) @bonanitech
+ - fix workspace reference error in case of empty tabs (#4029) @HiroyasuNishiyama
+ - Disable delete tab menu when single tab exists (#4030) @HiroyasuNishiyama
+ - Disable hide all menu if all tabs hidden (#4031) @HiroyasuNishiyama
+ - fix hide subflow tooltip (#4033) @HiroyasuNishiyama
+ - Fix disabled menu items in project feature (#4027) @kazuhitoyokoi
+ - Let themes change radialMenu text colors (#3995) @bonanitech
+ - Add Japanese translations for v3.0.3 (#4012) @kazuhitoyokoi
+ - Add Japanese translation for v3.1.0-beta.0 (#3997) @kazuhitoyokoi
+ - Add Japanese translation for v3.1.0-beta.0 (#3916) @kazuhitoyokoi
+ - Hide subflow category after deleting subflow (#3980) @kazuhitoyokoi
+ - Prevent dbl-click opening node edit dialog with text selected (#3970) @knolleary
+ - Handle replacing unknown node inside group or subflow (#3921) @knolleary
+ - Fix #3939, red border red-ui-typedInput-container (#3949) @Steveorevo
+ - i18n item URL copy notification & add Japanese message (#3946) @HiroyasuNishiyama
+ - add Japanese message for item url copy actions (#3947) @HiroyasuNishiyama
+ - Fix autocomplete entry for responseUrl (#3884) @knolleary
+ - Fix Japanese translation for JSONata editor (#3872) @HiroyasuNishiyama
+ - Fix search type with spaces (#3841) @Steve-Mcl
+ - Fix error hanndling of JSONata expression editor for extended functions (#3871) @HiroyasuNishiyama
+ - Add button type to the adding SSH key button (#3866) @kazuhitoyokoi
+ - Check radio button as default in project dialog (#3879) @kazuhitoyokoi
+ - Add $clone as supported function (#3874) @HiroyasuNishiyama
+ - Env var jsonata (#3807) @HiroyasuNishiyama
+ - Add Japanese translation for v3.0.2 (#3852) @kazuhitoyokoi
+
+Runtime
+
+ - Force IPv4 name resolution to have priority (#4019) @dceejay
+ - Fix async loading of modules containing both nodes and plugins (#3999) @knolleary
+ - Use main branch as default in project feature (#4036) @kazuhitoyokoi
+ - Rename package var to avoid strict mode error (#4020) @knolleary
+ - Fix typos in settings.js (#4013) @ypid
+ - Ensure credentials object is removed before returning node in getFlow request (#3971) @knolleary
+ - Ignore commit error in project feature (#3987) @kazuhitoyokoi
+ - Update dependencies (#3969) @knolleary
+ - Add check that node sends object rather than primitive type (#3909) @knolleary
+ - Ensure key_path is quoted in GIT_SSH_COMMAND in case of spaces in pathname (#3912) @knolleary
+ - Fix nodesDir scan when node package has js/html in sub dir to package.json (#3867) @Steve-Mcl
+ - Fix file permissions (#3917) @kazuhitoyokoi
+ - ci: add minimum GitHub token permissions for workflows (#3907) @boahc077
+
+Nodes
+
+ - Catch: fix typo in catch.html (#3965) @we11adam
+ - Change: Fix change node overwriting msg with itself (#3899) @dceejay
+ - Comment node: Clarify where the text will appear (#4004) @dirkjanfaber
+ - CSV: change replace to replaceAll (#3990) @dceejay
+ - CSV node: check header properties for ' and " (#3920) @dceejay
+ - CSV: Fix for CSV undefined property (#3906) @dceejay
+ - Delay: let delay node handle both flush then reset (#3898) @dceejay
+ - Function: Limit number of ports in function node (#3886) @kazuhitoyokoi
+ - Function: Remove dot from variable name for external module in function node (#3880) @kazuhitoyokoi
+ - Function: add function node monaco types util and promisify (#3868) @Steve-Mcl
+ - HTTP In: Ensure msg.req.headers is enumerable (#3908) @knolleary
+ - HTTP Request: Support form-data arrays (#3991) @hardillb
+ - HTTP Request: Fix httprequest tests to be more lenient on error message (#3922) @knolleary
+ - HTTP Request: Add missing property to node object HTTPRequest (#3842) @hardillb
+ - HTTP Request/Response: Support sortable list on property UI of http request and http response nodes (#3857) @kazuhitoyokoi
+ - HTTP Response: Ensure statusCode is a number (#3894) @hardillb
+ - Inject: Allow Inject node to work with async context stores (#4021) @knolleary
+ - Join/Batch: Add count to join and batch node labels (#4028) @dceejay
+ - MQTT: Fix birth topic handling in MQTT node (#3905) @Steve-Mcl
+ - MQTT: Fix pull-down menus of MQTT configuration node (#3890) @kazuhitoyokoi
+ - MQTT: Prevent invalid mqtt birth topic crashing node-red (#3869) @Steve-Mcl
+ - MQTT: ensure sessionExpiry(Interval) is applied (#3840) @Steve-Mcl
+ - MQTT: Fix mqtt nodes not reconnecting on modified-flows deploy (#3992) @knolleary
+ - MQTT: fix single subscription mqtt node status (#3966) @Steve-Mcl
+ - Range: Add drop mode to range node (#3935) @dceejay
+ - Remove done from describe (#3873) @HiroyasuNishiyama
+ - Split node: avoid duplicate done call for buffer split (#4000) @knolleary
+ - Status: Fix typo in 25-status.html (#3981) @kazuhitoyokoi
+ - TCP Node: ensure newline substitution applies to whole message (#4009) @dceejay
+ - Template: Add information about environment variable to template node (#3882) @kazuhitoyokoi
+ - Trigger: Hide trigger node repeat send option if sending nothing (#4023) @dceejay
+ - Watch: fix watch node test on MacOS/ARM (#3942) @HiroyasuNishiyama
+
+#### 3.0.2: Maintenance Release
+
+Editor
+
+ - Fix workspace chart bottom property (#3812) @bonanitech
+ - Update german translation (#3802) @Dennis14e
+ - Support color reset to the default in subflow and group (#3801) @kazuhitoyokoi
+ - Allow generateNodeNames to handle names containing regex control chars (#3817) @knolleary
+ - Hide scrollbars until they're needed (#3808) @bonanitech
+ - Include junctions/groups when exporting subflows plus related fixes (#3816) @knolleary
+ - remove console.log (#3820) @Steve-Mcl
+
+Runtime
+
+ - Register subflow module instance node with parent flow (#3818) @knolleary
+
+Nodes
+
+ - HTTP Request: Allow HTTP Headers not in spec (#3776) @hardillb
+
+#### 3.0.1: Maintenance Release
+
+Editor
+
+ - Allow codeEditor theme to be set even if `codeEditor` is not set in settings.js (#3794) @Steve-Mcl
+ - Sys info (diagnostics report) amendments (#3793) @Steve-Mcl
+ - Allow `mode` and `title` to be omitted in `options` argument for `createEditor` (#3791) @Steve-Mcl
+ - Fix focus issues (#3789) @Steve-Mcl
+ - Ensure all typedInput buttons have button type set (#3788) @knolleary
+ - Do not flag hasUsers=false nodes as unused in search (#3787) @knolleary
+ - Properly position quick-add dialog in all cases (#3786) @knolleary
+ - Ensure quick-add dialog does not obscure ghost node when shifted (#3785) @knolleary
+ - Remove use of Object.hasOwn (#3784) @knolleary
+
+#### 3.0.0: Milestone Release
+
+Editor
+
+ - Use theme page and header values if settings.js values are not present (#3767) @Steve-Mcl
+ - Focus editor for undo after some actions in menu (#3759) @kazuhitoyokoi
+ - Ensure node icon shade has properly rounded corners (#3763) @knolleary
+ - Fix storing subflow credential type when input has multiple types (#3762) @knolleary
+ - Ensure global-config and flow-config have info in the hierarchy popover (#3752) @Steve-Mcl
+ - Include dirty state in history event (#3748) @Steve-Mcl
+ - Fix display direction of context sub-menu (#3746) @knolleary
+ - Fix clear pinned paths of debug sidebar menu (#3745) @HiroyasuNishiyama
+ - prevent exception generating tooltip for deleted nodes (#3742) @Steve-Mcl
+ - Fix context menu issues ready for v3 beta.5 (#3741) @Steve-Mcl
+ - Do not generate new node-ids when pasting a cut flow (#3729) @knolleary
+ - Fix to prevent node from moving out of workspace (#3731) @HiroyasuNishiyama
+ - Don't let themes change disabled config node background color (#3736) @bonanitech
+ - Move colors left behind in #3692 to CSS variables (#3737) @bonanitech
+ - Fix handling of global debug message (#3733) @HiroyasuNishiyama
+ - Fix label overflow @ config-node palette (#3730) @ralphwetzel
+ - Fix defaulting to monaco if settings does not contain codeEditor (#3732) @knolleary
+ - Disable keyboard shortcut mapping when showing Edit[..]Dialog (#3700) @ralphwetzel
+ - Update add-junction menu to work in more cases (#3727) @knolleary
+ - Ensure importMap is not null when using import UI (#3723) @Steve-Mcl
+ - Add Japanese translations for v3.0-beta.4 (#3724) @kazuhitoyokoi
+ - Fix "split with" on virtual links (#3766) @Steve-Mcl
+
+Runtime
+
+ - Do not remove unknown credentials of Subflow Modules (#3728) @knolleary
+ - Add missing entries from beta.4 changelog (#3721) @knolleary
+
+Nodes
+
+ - Change: Fix change node, not handling from field properly when using context (#3754) @Fadoli
+ - Link Call: Fix linkcall registry bugs (#3751) @Steve-Mcl
+ - WebSocket: Fix close timeout of websocket node (#3734) @HiroyasuNishiyama
+
#### 3.0.0-beta.4: Beta Release
Editor
@@ -185,528 +496,6 @@ Nodes
- Watch: Update Watch node to use node-watch module (#3559 #3569) @knolleary
- WebSocket: call done after ws disconnects (#3531) @Steve-Mcl
-
-#### 2.2.2: Maintenance Release
-
-Nodes
-
- - Fix "close timed out" error when performing full deploy or modifying broker node. (#3451) @Steve-Mcl
-
-
-#### 2.2.1: Maintenance Release
-
-Editor
-
- - Handle mixed-cased filter terms in keyboard shortcut dialog (#3444) @knolleary
- - Prevent duplicate links being added between nodes (#3442) @knolleary
- - Fix to hide tooltip after removing subflow tab (#3391) @HiroyasuNishiyama
- - Fix node validation to be applied to config node (#3397) @HiroyasuNishiyama
- - Fix: Dont add wires to undo buffer twice (#3437) @Steve-Mcl
-
-Runtime
-
- - Improve module location parsing (of stack info) when adding hook (#3447) @Steve-Mcl
- - Fix substitution of NR_NODE_PATH (#3445) @HiroyasuNishiyama
- - Remove console.log when ignoring disabled module (#3439) @knolleary
- - Improve "Unexpected Node Error" logging (#3446) @Steve-Mcl
-
-Nodes
-
- - Debug: Fix no-prototype-builtins bug in debug node and utils (#3394) @Alkarex
- - Delay: Fix Japanese message of delay node (#3434)
- - Allow nbRateUnits to be undefined when validating (#3443) @knolleary
- - Coding help for recently added node-red Predefined Environment Variables (#3440) @Steve-Mcl
-
-
-#### 2.2.0: Milestone Release
-
-Editor
-
- - Add editorTheme.tours property to default settings file (#3375) @knolleary
- - Remember Zoom level and Sidebar tab selection between sessions (#3361) @knolleary
- - Fix timing issue when merging background changes fixes #3364 (#3373) @Steve-Mcl
- - Use a nodes palette label in help tree (#3372) @Steve-Mcl
- - Subflow: Add labels to OUTPUT nodes (#3352) @ralphwetzel
- - Fix vertical align subflow port (#3370) @knolleary
- - Make actions list i18n ready and Japanese translation (#3359) @HiroyasuNishiyama
- - Update tour for 2.2.0 (#3378) @knolleary
- - Include paletteLabel when building search index (#3380) @Steve-Mcl
- - Fix opening/closing subflow template not to make subflow changed (#3382) @HiroyasuNishiyama
- - Add Japanese translations for v2.2.0 (#3353, #3381) @kazuhitoyokoi
-
-Runtime
-
- - Add support for accessing node id & name as environment variable (#3356) @HiroyasuNishiyama
- - Clear context contents when switching projects (#3243) @knolleary
-
-Nodes
-
- - MQTT: reject invalid topics (#3374) @Steve-Mcl
- - Function: Expose node.path property (#3371) @knolleary
- - Function: Update `node` declarations in func.d.ts (#3377) @Steve-Mcl
-
-#### 2.2.0-beta.1: Beta Release
-
-Editor
-
- - Add search history to main search box (#3262) @knolleary
- - Check availability of type of config node on deploy (#3304) @k-toumura
- - Add wire-slice mode to delete wires with Ctrl-RHClick-Drag (#3340) @knolleary
- - Wiring keyboard shortcuts (#3288) @knolleary
- - Snap nodes on grid using either edge as reference (#3289) @knolleary
- - Detach node action (#3338) @knolleary
- - Highlight links when selecting nodes (#3323) @knolleary
- - Allow multiple links to be selected by ctrl-click (#3294) @knolleary
-
-Nodes
-
- - JSON: Let JSON node attempt to parse buffer if it contains a valid string (#3296) @dceejay
- - Remove use of verbose flag in core nodes - and use node.debug level instead (#3300) @dceejay
- - TCP: Add TLS option to tcp client nodes (#3307) @dceejay
- - WebSocket: Implemented support for Websocket Subprotocols in WS Client Node. (#3333) @tobiasoort
-
-#### 2.1.6: Maintenance Release
-
-Editor
-
- - Revert copy-text change and apply alternative fix (#3363) @knolleary
- - Update marked to latest (#3362) @knolleary
- - fix to make start of property error tooltip messages aligned (#3358) @HiroyasuNishiyama
-
-Nodes
-
- - Inject: fix JSON propety validation of inject node (#3349) @HiroyasuNishiyama
- - Delay: fix unit value validation of delay node (#3351) @HiroyasuNishiyama
-
-#### 2.1.5: Maintenance Release
-
-Runtime
-
- - Handle reporting error location when stack is truncated (#3346) @knolleary
- - Initialize passport when only adminAuth.tokens is set (#3343) @knolleary
- - Add log logging (#3342) @knolleary
-
-Editor
-
- - Fix copy buttons on the debug window (another method) (#3331) @kazuhitoyokoi
- - Add Japanese translations for hidden flow (#3302) @kazuhitoyokoi
- - Improve jsonata legacy mode detection regex (#3345) @knolleary
- - Fix generating flow name with incrementing number (#3347) @knolleary
- - resume focus after import/export dialog close (#3337) @HiroyasuNishiyama
- - Fix findPreviousVisibleTab action (#3321) @knolleary
- - Fix storing hidden tab state when not hidden via action (#3312) @knolleary
- - Avoid adding empty env properties to tabs/groups (#3311) @knolleary
- - Fix hide icon in tour guide (#3301) @kazuhitoyokoi
-
-Nodes
-
- - File: Update file node examples according to node name change (#3335) @HiroyasuNishiyama
- - Filter (RBE): Fix for filter node narrrowbandEq mode start condition failure (#3339) @dceejay
- - Function: Prevent function scrollbar from obscuring expand button (#3348) @knolleary
- - Function: load extralibs when expanding monaco. fixes #3319 (#3334) @Steve-Mcl
- - Function: Update Function to use correct api to access env vars (#3310) @knolleary
- - HTTP Request: Fix basic auth with empty username or password (#3325) @hardillb
- - Inject: Fix incorrect clearing of blank payload property in Inject node (#3322) @knolleary
- - Link Call: add link call example (#3336) @HiroyasuNishiyama
- - WebSocket: Only setup ws client heartbeat once it is connected (#3344) @knolleary
- - Update Japanese translations in node help (#3332) @kazuhitoyokoi
-
-#### 2.1.4: Maintenance Release
-
-Runtime
-
- - fix env var access using $parent for groups (#3278) @HiroyasuNishiyama
- - Add proper error handling for 404 errors when serving debug files (#3277) @knolleary
- - Add Japanese translations for Node-RED v2.1.0-beta.1 (#3179) @kazuhitoyokoi
- - Include full user object on login audit events (#3269) @knolleary
- - Remove styling from de locale files (#3237) @knolleary
-
-Editor
-
- - Change tab hide button icon to an eye and add search option (#3282) @knolleary
- - Fix i18n handling of namespaces with spaces in (#3281) @knolleary
- - Trigger change event when autoComplete fills in input (#3280) @knolleary
- - Apply CN i18n fix (#3279) @knolleary
- - fix select menu label of config node to use paletteLabel (#3273) @HiroyasuNishiyama
- - fix removed tab not to cause node conflict (#3275) @HiroyasuNishiyama
- - Group diff fix (#3239) @knolleary
- - Only toggle disabled workspace flag if on activeWorkspace (#3252) @knolleary
- - Do not show status for disabled nodes (#3253) @knolleary
- - Set dimension value for tour guide (#3265) @kazuhitoyokoi
- - Avoid redundant initialisation of TypedInput type (#3263) @knolleary
- - Don't let themes change flow port label color (#3270) @bonanitech
- - Fix treeList gutter calculation to handle floating gutters (#3238) @knolleary
-
-Nodes
-
-- Debug: Handle RegExp types in Debug sidebar (#3251) @knolleary
-- Delay: fix 2nd output when in rate limit per topic modes (#3261) @dceejay
-- Link: fix to show link target when selected (#3267) @HiroyasuNishiyama
-- Inject: Do not modify inject node props in oneditprepare (#3242) @knolleary
-- HTTP Request: HTTP Basic Auth should always add : between username and password even if empty (#3236) @hardillb
-
-#### 2.1.3: Maintenance Release
-
-Runtime
-
- - Update gen-publish script to update 'next' tag for main releases
- - Add environment variable to enable/disable tours (#3221) @hardillb
- - Fix loading non-default language files leaving runtime in wrong locale (#3225) @knolleary
-
-Editor
-
- - Refresh editor settings whenever a node is added or enabled (#3227) @knolleary
- - Revert spinner css change that made it shrink in some cases (#3229) @knolleary
- - Fix import notification message when importing config nodes (#3224) @knolleary
- - Handle changing types of TypedInput repeatedly (#3223) @knolleary
-
-
-#### 2.1.2: Maintenance Release
-
-
-Runtime
-
- - node-red-pi: Remove bash dependency (#3216) @a16bitsysop
-
-Editor
-
- - Improved regex for markdown renderer (#3213) @GerwinvBeek
- - Fix TypedInput initialisation (#3220) @knolleary
-
-Nodes
-
- - MQTT: fix datatype in node config not used. fixes #3215 (#3219) @Steve-Mcl
-
-#### 2.1.1: Maintenance Release
-
-Editor
-
- - Ensure tourGuide popover doesn't fall offscreen (#3212) @knolleary
- - Fix issue with old inject nodes that migrated topic to 'string' type (#3210) @knolleary
- - Add cache-busting query params to index.mst (#3211) @knolleary
- - Fix TypedInput validation of type without options (#3207) @knolleary
-
-#### 2.1.0: Milestone Release
-
-Editor
-
- - Position popover properly on a scrolled page
- - Fixes from 2.1.0-beta.2 (#3202) @knolleary
-
-Nodes
-
-- Link Out: Fix saving link out node links (#3201) @knolleary
- - Switch: Refix #3170 - copy switch rule type when adding new rule
- - TCP Request: Add string option to TCP request node output (#3204) @dceejay
-
-#### 2.1.0-beta.2: Beta Release
-
-Editor
-
- - Fix switching projects (#3199) @knolleary
- - Use locale setting when installing/enabling node (#3198) @knolleary
- - Do not show projects-wecome dialog until welcome tour completes (#3197) @knolleary
- - Fix converting selection to subflow (#3196) @knolleary
- - Avoid conflicts with native browser cmd-ctrl type shortcuts (#3195) @knolleary
- - Ensure message tools stay attached to top-level entry in Debug/Context (#3186) @knolleary
- - Ensure tab state updates properly when toggling enable state (#3175) @knolleary
- - Improve handling of long labels in TreeList (#3176) @knolleary
- - Shift-click tab scroll arrows to jump to start/end (#3177) @knolleary
-
-Runtime
-
- - Update package dependencies
- - Update to latest node-red-admin
-
-Nodes
-
- - Dynamic MQTT connections (#3189)
- - Link: Filter out Link Out Return nodes in Link In edit dialog Fixes #3187
- - Link: Fix link call label (#3200) @knolleary
- - Debug: Redesign debug filter options and make them persistant (#3183) @knolleary
- - Inject: Widen Inject interval box for >1 digit (#3184) @knolleary
- - Switch: Fix rule focus when switch 'otherwise' rule is used (#3185) @knolleary
-
-#### 2.1.0-beta.1: Beta Release
-
-Editor
-
- - Add Tour Guide component (#3136) @knolleary
- - Allow tabs to be hidden (#3120) @knolleary
- - Add align actions to editor (#3110) @knolleary
- - Add support of environment variable for tab & group (#3112) @HiroyasuNishiyama
- - Add autoComplete widget and add to TypedInput for msg. props (#3171) @knolleary
- - Render node documentation to node-red style guide when written in markdown. (#3169) @Steve-Mcl
- - Allow colouring of tab icon svg (#3140) @harmonic7
- - Restore tab selection after merging conflicts (#3151) @GerwinvBeek
- - Fix serving of theme files on Windows (#3154) @knolleary
- - Ensure config-node select inherits width properly from input (#3155) @knolleary
- - Do better remembering TypedInput values whilst switching types (#3159) @knolleary
- - Update monaco to 0.28.1 (#3153) @knolleary
- - Improve themeing of tourGuide (#3161) @knolleary
- - Allow a node to specify a filter for the config nodes it can pick from (#3160) @knolleary
- - Allow RED.notify.update to modify any notification setting (#3163) @knolleary
- - Fix typo in ko editor.json Fixes #3119
- - Improve RED.actions api to ensure actions cannot be overridden
- - Ensure treeList row has suitable min-height when no content Fixes #3109
- - Refactor edit dialogs to use separate edit panes
- - Ensure type select button is not focussable when TypedInput only has one type
- - Place close tab link in front of fade
-
-Runtime
-
- - Improve error reporting with oauth login strategies (#3148) @knolleary
- - Add allowUpdate feature to externalModules.palette (#3143) @knolleary
- - Improve node install error reporting (#3158) @knolleary
- - Improve unit test coverage (#3168) @knolleary
- - Allow coreNodesDir to be set to false (#3149) @hardillb
- - Update package dependencies
- - uncaughtException debug improvements (#3146) @renatojuniorrs
-
-Nodes
-
- - Change: Add option to deep-clone properties in Change node (#3156) @knolleary
- - Delay: Add push to front of rate limit queue. (#3069) @dceejay
- - File: Add paletteLabel to file nodes to make read/write more obvious (#3157) @knolleary
- - HTTP Request: Extend HTTP request node to log detailed timing information (#3116) @k-toumura
- - HTTP Response: Fix sizing of HTTP Response header fields (#3164) @knolleary
- - Join: Support for msg.restartTimeout (#3121) @magma1447
- - Link Call: Add Link Call node (#3152) @knolleary
- - Switch: Copy previous rule type when adding rule to switch node (#3170) @knolleary
- - Delay node: add option to send intermediate messages on separate output (#3166) @knolleary
- - Typo in http request set method translation (#3173) @mailsvb
-
-#### 2.0.6: Maintenance Release
-
-Editor
-
- - Fix typo in ko editor.json Fixes #3119
- - Change fade color when hovering an inactive tab (#3106) @bonanitech
- - Ensure treeList row has suitable min-height when no content Fixes #3109
-
-Runtime
-
- - Update tar to latest (#3128) @aksswami
- - Give passport verify callback the same arity as the original callback (#3117) @dschmidt
- - Handle HTTPS Key and certificate as string or buffer (#3115) @bartbutenaers
-
-#### 2.0.5: Maintenance Release
-
-Editor
-
- - Remove default ctrl-enter keybinding from monaco editor Fixes #3093
-
-Runtime
-
- - Update tar dependency
- - Add support for maintenance streams in generate-publish-script
-
-
-Nodes
-
- - Fix regression in Join node when manual joining array with msg.parts present Fixes #3096
-
-#### 2.0.4: Maintenance Release
-
-Editor
-
- - Fix tab fade CSS for when using themes (#3085) @bonanitech
- - Handle just-copied-but-not-deployed node with credentials in editor Fixes #3090
-
-Nodes
-
- - Filter: Fix RBE node handling of default topi property Fixes #3087
- - HTTP Request: Handle partially encoded url query strings in request node
- - HTTP Request: Fix support for supplied CA certs (#3089) @hardillb
- - HTTP Request: Ensure TLS Cert is used (#3092) @hardillb
- - Inject: Fix inject now button unable to send empty props
- - Inject: Inject now button success notification should use label with updated props
-
-#### 2.0.3: Maintenance Release
-
-Nodes
-
- - HTML: Fix HTML parsing when body is included in the select tag Fixes #3079
- - HTTP Request: Preserve case of user-provided http headers in request node Fixes #3081
- - HTTP Request: Set decompress to false for HTTP Request to keep 1.x compatibility Fixes #3083
- - HTTP Request: Add unit tests for HTTP Request encodeURI and error response
- - HTTP Request: Do not throw HTTP errors in request node Fixes #3082
- - HTTP Request: Ensure uri is properly encoded before passing to got module Fixes #3080
-
-#### 2.0.2: Maintenance Release
-
-Runtime
-
- - Use file:// url with dynamic import
- - Detect if agent-base has patched https.request and undo it Fixes #3072
-
-Editor
-
- - Fix tab fade css because Safari Fixes #3073
- - Fix error closing library dialog with monaco
- - Handle other error types in Manage Palette view
-
-
-Nodes
-
- - HTTP Request node - ignore invalid cookies rather than fail request Fixes #3075
- - Fix msg.reset handling in Delay node Fixes #3074
-
-#### 2.0.1: Maintenance Release
-
-Nodes
-
- - Function: Ensure default module export is exposed in Function node
-
-#### 2.0.0: Milestone Release
-
-**Migration from 1.x**
-
- - Node-RED now requires Node.js 12.x or later.
-
- - The following nodes have had significant dependency updates. Unless stated,
- they should be fully backward compatible.
-
- - RBE: Relabelled as 'filter' to make it more discoverable and made part of
- the core palette, rather than as a separate module.
- - Tail: This node has been removed from the default palette. You can reinstall it
- from node-red-node-tail
- - HTTP Request: Reimplemented with a different underlying module. We have
- tried to maintain 100% functional compatibility, but it is possible
- some edge cases remain.
- - JSON: The schema validation option no longer supports JSON-Schema draft-04
- - HTML: Its underlying module has had a major version update. Should be fully
- backward compatible.
-
- - `functionExternalModules` is now enabled by default for new installs.
- If you have an existing settings file that contains this setting, you will
- need to set it to `true` yourself.
-
- The external modules will now get installed in your Node-RED user directory,
- (`~/.node-red`) rather than in a subdirectory. This means all dependencies will
- be listed in your top-level `package.json`. If you have existing external modules,
- they will get reinstalled to the new location when you first run Node-RED 2.0.
-
-
-Runtime
-
- - Fix missing dependencies (#3052, #2057) @kazuhitoyokoi
- - Ensure node.types is defined if node html file missing
- - Fix reporting of type_already_registered error
- - Move install location of external modules (#3064) @knolleary
-
-Editor
-
- - Update translations (#3063) @kazuhitoyokoi
- - Add a slight fade to tab labels that overflow
- - Show config node details when selected in outliner
- - Fix layout of info outliner for subflow entries
-
-Nodes
-
- - Delay: let `msg.flush` specify how many messages to flush from node (#3059) @dceejay
- - Function: external modules is now enabled by default (#3065) @knolleary
- - Function: external modules now supports both ES6 and CJS modules (#3065) @knolleary
- - WebSocket: add option for client node to send automatic pings (#3056) @knolleary
-
-
-##### 2.0.0-beta.2: Beta Release
-
-Runtime
-
- - Add `node-red admin init` (via `node-red-admin@2.1.0`)
- - Move to GH Actions rather than Travis for build (#3042) @knolleary
-
-Editor
-
- - Include hasUser=false config nodes when exporting whole flow (#3048)
- - Emit nodes:change for any updated config node when node deleted/added
- - Fix padding of compact notification Closes #3045
- - Ensure any html in changelog is escaped before displaying
- - Add support for Map/Set property types on Debug (#3040) @knolleary
- - Add 'theme' to default settings file
- - Add RED.view.annotations api (#3032) @knolleary
- - Update monaco editor to V0.25.2 (#3031) @Steve-Mcl
- - Lower tray zIndex when overlay tray being opened Fixes #3019
- - Reduce z-Index of Function expand buttons to prevent overlap Part of #3019
- - Ensure RED.clipboard.import displays the right library Fixes #3021
- - Batch messages sent over comms to prevent flooding (#3025) @knolleary
- - Allow RED.popover.panel to specify a closeButton to ignore click events on
- - Use browser default language for initial page load
- - Add css var for node font color
- - Fix label padding of toggleButton
- - Give sidebar open tab a bit more room for its label
- - Various Monaco updates (#3015) @Steve-Mcl
- - Log readOnly on startup (#3024) @sammachin
- - Translation updates (#3020 #3022) @HiroyasuNishiyama @kazuhitoyokoi
-
-Nodes
-
- - HTTP Request: Fix proxy handling (#3044) @hardillb
- - HTTP Request: Handle basic auth with @ in username (#3017) @hardillb
- - Add Japanese translation for file-in node (#3037 #3039) @kazuhitoyokoi
- - File In: Add option for file-in node to include all properties (default off) (#3035) @dceejay
- - Exec: add windowsHide option to hide windows under Windows (#3026) @natcl
- - Support loading external module sub path Fixes #3023
-
-##### 2.0.0-beta.1: Beta Release
-
-
-
-Runtime
-
- - [MAJOR] Set minimum node version to 12.
- - [MAJOR] Fix flowfile name to flows.json in settings (#2951) @dceejay
- - [MAJOR] Update to latest i18n in editor and runtime (#2940) @knolleary
- - [MAJOR] Deprecate usage of httpRoot (#2953) @knolleary
- - Add pre/postInstall hooks to npm install handling (#2936) @knolleary
- - Add engine-strict flag to npm install args (#2965) @nileio
- - Restructure default settings.js to be more organised (#3012) @knolleary
- - Ensure httpServerOptions gets applied to ALL the express apps
- - Allow RED.settings.set to replace string property with object property
- - Update debug tests to handle compact comms format
- - Updates to encode/decode message when passed over debug comms link
- - Remove all input event listeners on a node once it is closed
- - Move hooks to util package
- - Rework hooks structure to be a linkedlist
- - Update dependencies (#2922) @knolleary
-
-Editor
-
- - [MAJOR] Change node id generation to give fixed length values without '.' (#2987) @knolleary
- - [MAJOR] Add Monaco code editor (#2971) @Steve-Mcl
- - Update to latest Monaco (#3007) @Steve-Mcl
- - Update Node-RED Function typings in Monaco (#3008) @Steve-Mcl
- - Add css named variables for certain key colours (#2994) @knolleary
- - Improve contrast of export dialog JSON font color
- - Switch editableList buttons from to elements
- - Add option to RED.nodes.createCompleteNodeSet to include node dimensions
- - Fix css of node help table of contents elements
- - Improve red-ui-node-icon css and add red-ui-node-icon-small modifier class
- - Add RED.hooks to editor
- - Add viewAddPort viewRemovePort viewAddNode viewRemoveNode hooks to view
- - Use paletteLabel if set in help sidebar
- - Add missing args from JSONata $now signature
-
-Nodes
-
- - [MAJOR] Relabel RBE node as 'filter' and move into core. Also remove tail (#2944) @dceejay
- - [MAJOR] HTTP Request: migrate to 'got' module (#2952) @knolleary
- - [MAJOR] Move Inject node to CronosJS module (#2959) @knolleary
- - [MAJOR] JSON: Update ajv to 8.2.0 - drop support for JSON-Schema draft-04 (#2969) @knolleary
- - [MAJOR] HTML node: cheerio update to 1.x (#3011) @knolleary
- - Join: change default manual mode to object (#2931) @knolleary
- - File node: Add fileWorkingDirectory (#2932) @knolleary
- - Delay node enhancements (#2294) @kazuhitoyokoi (#2949) @dceejay
- - Add Japanese translations for delay node enhancements (#2958) @kazuhitoyokoi
- - Inject node: reorder TypedInput options (#2961) @dceejay
- - HTTP Request: update to work with proxies (#2983) @hardillb (#3009) @hardillb
- - HTTP Request: fix msg.responseUrl (#2986) @hardillb
- - TLS: Add ALPN support to TLS node (#2988) @hardillb
- - Inject: add "Inject now" button to edit dialog (#2990) @Steve-Mcl
-
-
-
#### Older Releases
Change logs for older releases are available on GitHub: https://github.com/node-red/node-red/releases
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 95287d81f..f8fb04304 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -16,6 +16,9 @@ behavior to the project's core team at team@nodered.org.
Please raise any bug reports on the relevant project's issue tracker. Be sure to
search the list to see if your issue has already been raised.
+If your issue is more of a question on how to do something with Node-RED, please
+consider using the [community forum](https://discourse.nodered.org/).
+
A good bug report is one that make it easy for us to understand what you were
trying to do and what went wrong.
@@ -35,14 +38,18 @@ For feature requests, please raise them on the [forum](https://discourse.nodered
## Pull-Requests
If you want to raise a pull-request with a new feature, or a refactoring
-of existing code, it may well get rejected if you haven't discussed it on
-the [forum](https://discourse.nodered.org) first.
+of existing code, please come and discuss it with us first. We prefer to
+do it that way to make sure your time and effort is well spent on something
+that fits with our goals.
+
+If you've got a bug-fix or similar for us, then you are most welcome to
+get it raised - just make sure you link back to the issue it's fixing and
+try to include some tests!
All contributors need to sign the OpenJS Foundation's Contributor License Agreement.
It is an online process and quick to do. If you raise a pull-request without
having signed the CLA, you will be prompted to do so automatically.
-
### Code Branches
When raising a PR for a fix or a new feature, it is important to target the right branch.
diff --git a/Gruntfile.js b/Gruntfile.js
index 2f81da923..09b057837 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -169,6 +169,7 @@ module.exports = function(grunt) {
"packages/node_modules/@node-red/editor-client/src/js/ui/diagnostics.js",
"packages/node_modules/@node-red/editor-client/src/js/ui/diff.js",
"packages/node_modules/@node-red/editor-client/src/js/ui/keyboard.js",
+ "packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js",
"packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js",
"packages/node_modules/@node-red/editor-client/src/js/ui/statusBar.js",
"packages/node_modules/@node-red/editor-client/src/js/ui/view.js",
@@ -224,7 +225,7 @@ module.exports = function(grunt) {
"node_modules/jsonata/jsonata-es5.min.js",
"packages/node_modules/@node-red/editor-client/src/vendor/jsonata/formatter.js",
"packages/node_modules/@node-red/editor-client/src/vendor/ace/ace.js",
- "packages/node_modules/@node-red/editor-client/src/vendor/ace/ext-language_tools.js",
+ "packages/node_modules/@node-red/editor-client/src/vendor/ace/ext-language_tools.js"
],
// "packages/node_modules/@node-red/editor-client/public/vendor/vendor.css": [
// // TODO: resolve relative resource paths in
@@ -233,6 +234,9 @@ module.exports = function(grunt) {
"packages/node_modules/@node-red/editor-client/public/vendor/ace/worker-jsonata.js": [
"node_modules/jsonata/jsonata-es5.min.js",
"packages/node_modules/@node-red/editor-client/src/vendor/jsonata/worker-jsonata.js"
+ ],
+ "packages/node_modules/@node-red/editor-client/public/vendor/mermaid/mermaid.min.js": [
+ "node_modules/mermaid/dist/mermaid.min.js"
]
}
}
@@ -403,7 +407,7 @@ module.exports = function(grunt) {
{
cwd: 'packages/node_modules/@node-red/editor-client/src',
src: [
- 'types/node/*.ts',
+ 'types/node/**/*.ts',
'types/node-red/*.ts',
],
expand: true,
diff --git a/README.md b/README.md
index b1e9766f0..3401c3726 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,16 @@
# Node-RED
-http://nodered.org
+https://nodered.org
-[![Build Status](https://travis-ci.org/node-red/node-red.svg?branch=master)](https://travis-ci.org/node-red/node-red)
-[![Coverage Status](https://coveralls.io/repos/node-red/node-red/badge.svg?branch=master)](https://coveralls.io/r/node-red/node-red?branch=master)
+[![Build Status](https://github.com/node-red/node-red/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/node-red/node-red/actions?query=branch%3Amaster)
Low-code programming for event-driven applications.
-![Node-RED: Low-code programming for event-driven applications](http://nodered.org/images/node-red-screenshot.png)
+![Node-RED: Low-code programming for event-driven applications](https://nodered.org/images/node-red-screenshot.png)
## Quick Start
-Check out http://nodered.org/docs/getting-started/ for full instructions on getting
+Check out https://nodered.org/docs/getting-started/ for full instructions on getting
started.
1. `sudo npm install -g --unsafe-perm node-red`
@@ -20,7 +19,7 @@ started.
## Getting Help
-More documentation can be found [here](http://nodered.org/docs).
+More documentation can be found [here](https://nodered.org/docs).
For further help, or general discussion, please use the [Node-RED Forum](https://discourse.nodered.org) or [slack team](https://nodered.org/slack).
diff --git a/package.json b/package.json
index 1f5759634..ea42f8c2e 100644
--- a/package.json
+++ b/package.json
@@ -1,8 +1,8 @@
{
"name": "node-red",
- "version": "3.0.0-beta.4",
+ "version": "3.1.0",
"description": "Low-code programming for event-driven applications",
- "homepage": "http://nodered.org",
+ "homepage": "https://nodered.org",
"license": "Apache-2.0",
"repository": {
"type": "git",
@@ -26,30 +26,30 @@
}
],
"dependencies": {
- "acorn": "8.7.1",
+ "acorn": "8.8.2",
"acorn-walk": "8.2.0",
- "ajv": "8.11.0",
- "async-mutex": "0.3.2",
+ "ajv": "8.12.0",
+ "async-mutex": "0.4.0",
"basic-auth": "2.0.1",
"bcryptjs": "2.4.3",
- "body-parser": "1.20.0",
+ "body-parser": "1.20.2",
"cheerio": "1.0.0-rc.10",
"clone": "2.1.2",
- "content-type": "1.0.4",
+ "content-type": "1.0.5",
"cookie": "0.5.0",
"cookie-parser": "1.4.6",
"cors": "2.8.5",
"cronosjs": "1.7.1",
- "denque": "2.0.1",
- "express": "4.18.1",
+ "denque": "2.1.0",
+ "express": "4.18.2",
"express-session": "1.17.3",
"form-data": "4.0.0",
- "fs-extra": "10.1.0",
- "got": "11.8.5",
+ "fs-extra": "11.1.1",
+ "got": "12.6.0",
"hash-sum": "2.0.0",
- "hpagent": "1.0.0",
+ "hpagent": "1.2.0",
"https-proxy-agent": "5.0.1",
- "i18next": "21.8.10",
+ "i18next": "21.10.0",
"iconv-lite": "0.6.3",
"is-utf8": "0.2.1",
"js-yaml": "4.1.0",
@@ -59,34 +59,34 @@
"media-typer": "1.1.0",
"memorystore": "1.6.7",
"mime": "3.0.0",
- "moment": "2.29.3",
- "moment-timezone": "0.5.34",
+ "moment": "2.29.4",
+ "moment-timezone": "0.5.43",
"mqtt": "4.3.7",
"multer": "1.4.5-lts.1",
"mustache": "4.2.0",
- "node-red-admin": "^3.0.0",
- "node-watch": "0.7.3",
+ "node-red-admin": "^3.1.0",
+ "node-watch": "0.7.4",
"nopt": "5.0.0",
"oauth2orize": "1.11.1",
"on-headers": "1.0.2",
- "passport": "0.5.2",
+ "passport": "0.6.0",
"passport-http-bearer": "1.0.1",
"passport-oauth2-client-password": "0.1.2",
- "raw-body": "2.5.1",
- "semver": "7.3.7",
- "tar": "6.1.11",
- "tough-cookie": "4.0.0",
- "uglify-js": "3.16.0",
- "uuid": "8.3.2",
+ "raw-body": "2.5.2",
+ "semver": "7.5.4",
+ "tar": "6.1.13",
+ "tough-cookie": "4.1.3",
+ "uglify-js": "3.17.4",
+ "uuid": "9.0.0",
"ws": "7.5.6",
- "xml2js": "0.4.23"
+ "xml2js": "0.6.2"
},
"optionalDependencies": {
- "bcrypt": "5.0.1"
+ "bcrypt": "5.1.1"
},
"devDependencies": {
- "dompurify": "2.3.8",
- "grunt": "1.5.3",
+ "dompurify": "2.4.1",
+ "grunt": "1.6.1",
"grunt-chmod": "~1.1.1",
"grunt-cli": "~1.4.3",
"grunt-concurrent": "3.0.0",
@@ -95,7 +95,7 @@
"grunt-contrib-concat": "2.1.0",
"grunt-contrib-copy": "1.0.0",
"grunt-contrib-jshint": "3.2.0",
- "grunt-contrib-uglify": "5.2.1",
+ "grunt-contrib-uglify": "5.2.2",
"grunt-contrib-watch": "1.1.0",
"grunt-jsdoc": "2.4.1",
"grunt-jsdoc-to-markdown": "6.0.0",
@@ -108,17 +108,18 @@
"i18next-http-backend": "1.4.1",
"jquery-i18next": "1.2.1",
"jsdoc-nr-template": "github:node-red/jsdoc-nr-template",
- "marked": "4.0.17",
+ "marked": "4.3.0",
+ "mermaid": "^10.4.0",
"minami": "1.2.3",
"mocha": "9.2.2",
- "node-red-node-test-helper": "^0.3.0",
- "nodemon": "2.0.16",
+ "node-red-node-test-helper": "^0.3.2",
+ "nodemon": "2.0.20",
"proxy": "^1.0.2",
- "sass": "1.52.3",
+ "sass": "1.62.1",
"should": "13.2.3",
"sinon": "11.1.2",
"stoppable": "^1.1.0",
- "supertest": "6.2.3"
+ "supertest": "6.3.3"
},
"engines": {
"node": ">=14"
diff --git a/packages/node_modules/@node-red/editor-api/lib/admin/index.js b/packages/node_modules/@node-red/editor-api/lib/admin/index.js
index 8406fa8e9..26eabe65b 100644
--- a/packages/node_modules/@node-red/editor-api/lib/admin/index.js
+++ b/packages/node_modules/@node-red/editor-api/lib/admin/index.js
@@ -14,8 +14,6 @@
* limitations under the License.
**/
-var express = require("express");
-
var nodes = require("./nodes");
var flows = require("./flows");
var flow = require("./flow");
@@ -37,18 +35,9 @@ module.exports = {
plugins.init(runtimeAPI);
diagnostics.init(settings, runtimeAPI);
- var needsPermission = auth.needsPermission;
-
- var adminApp = express();
-
- var defaultServerSettings = {
- "x-powered-by": false
- }
- var serverSettings = Object.assign({},defaultServerSettings,settings.httpServerOptions||{});
- for (var eOption in serverSettings) {
- adminApp.set(eOption, serverSettings[eOption]);
- }
+ const needsPermission = auth.needsPermission;
+ const adminApp = apiUtil.createExpressApp(settings)
// Flows
adminApp.get("/flows",needsPermission("flows.read"),flows.get,apiUtil.errorHandler);
diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/index.js b/packages/node_modules/@node-red/editor-api/lib/editor/index.js
index f210d90fe..42be1f270 100644
--- a/packages/node_modules/@node-red/editor-api/lib/editor/index.js
+++ b/packages/node_modules/@node-red/editor-api/lib/editor/index.js
@@ -46,14 +46,15 @@ module.exports = {
runtimeAPI = _runtimeAPI;
needsPermission = auth.needsPermission;
if (!settings.disableEditor) {
- info.init(runtimeAPI);
+ info.init(settings, runtimeAPI);
comms.init(server,settings,runtimeAPI);
var ui = require("./ui");
ui.init(runtimeAPI);
- var editorApp = express();
+ const editorApp = apiUtil.createExpressApp(settings)
+
if (settings.requireHttps === true) {
editorApp.enable('trust proxy');
editorApp.use(function (req, res, next) {
@@ -86,7 +87,7 @@ module.exports = {
//Projects
var projects = require("./projects");
- projects.init(runtimeAPI);
+ projects.init(settings, runtimeAPI);
editorApp.use("/projects",projects.app());
// Locales
diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/projects.js b/packages/node_modules/@node-red/editor-api/lib/editor/projects.js
index ad505a46e..5d1b2ff26 100644
--- a/packages/node_modules/@node-red/editor-api/lib/editor/projects.js
+++ b/packages/node_modules/@node-red/editor-api/lib/editor/projects.js
@@ -14,9 +14,9 @@
* limitations under the License.
**/
-var express = require("express");
var apiUtils = require("../util");
+var settings;
var runtimeAPI;
var needsPermission = require("../auth").needsPermission;
@@ -77,11 +77,12 @@ function getProjectRemotes(req,res) {
})
}
module.exports = {
- init: function(_runtimeAPI) {
+ init: function(_settings, _runtimeAPI) {
+ settings = _settings;
runtimeAPI = _runtimeAPI;
},
app: function() {
- var app = express();
+ var app = apiUtils.createExpressApp(settings)
app.use(function(req,res,next) {
runtimeAPI.projects.available().then(function(available) {
diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/settings.js b/packages/node_modules/@node-red/editor-api/lib/editor/settings.js
index 5fa2476e1..200ddf2c2 100644
--- a/packages/node_modules/@node-red/editor-api/lib/editor/settings.js
+++ b/packages/node_modules/@node-red/editor-api/lib/editor/settings.js
@@ -18,9 +18,9 @@ var runtimeAPI;
var sshkeys = require("./sshkeys");
module.exports = {
- init: function(_runtimeAPI) {
+ init: function(settings, _runtimeAPI) {
runtimeAPI = _runtimeAPI;
- sshkeys.init(runtimeAPI);
+ sshkeys.init(settings, runtimeAPI);
},
userSettings: function(req, res) {
var opts = {
diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js b/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js
index 6d1c62e11..08097571f 100644
--- a/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js
+++ b/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js
@@ -17,13 +17,15 @@
var apiUtils = require("../util");
var express = require("express");
var runtimeAPI;
+var settings;
module.exports = {
- init: function(_runtimeAPI) {
+ init: function(_settings, _runtimeAPI) {
runtimeAPI = _runtimeAPI;
+ settings = _settings;
},
app: function() {
- var app = express();
+ const app = apiUtils.createExpressApp(settings);
// List all SSH keys
app.get("/", function(req,res) {
diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js
index 88b3eeb62..c3e8f975e 100644
--- a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js
+++ b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js
@@ -19,6 +19,7 @@ var util = require("util");
var path = require("path");
var fs = require("fs");
var clone = require("clone");
+const apiUtil = require("../util")
var defaultContext = {
page: {
@@ -27,8 +28,7 @@ var defaultContext = {
tabicon: {
icon: "red/images/node-red-icon-black.svg",
colour: "#8f0000"
- },
- version: require(path.join(__dirname,"../../package.json")).version
+ }
},
header: {
title: "Node-RED",
@@ -40,6 +40,7 @@ var defaultContext = {
vendorMonaco: ""
}
};
+var settings;
var theme = null;
var themeContext = clone(defaultContext);
@@ -92,7 +93,8 @@ function serveFilesFromTheme(themeValue, themeApp, directory, baseDirectory) {
}
module.exports = {
- init: function(settings, _runtimeAPI) {
+ init: function(_settings, _runtimeAPI) {
+ settings = _settings;
runtimeAPI = _runtimeAPI;
themeContext = clone(defaultContext);
if (process.env.NODE_ENV == "development") {
@@ -113,7 +115,15 @@ module.exports = {
var url;
themeSettings = {};
- themeApp = express();
+ themeApp = apiUtil.createExpressApp(settings);
+
+ const defaultServerSettings = {
+ "x-powered-by": false
+ }
+ const serverSettings = Object.assign({},defaultServerSettings,settings.httpServerOptions||{});
+ for (const eOption in serverSettings) {
+ themeApp.set(eOption, serverSettings[eOption]);
+ }
if (theme.page) {
@@ -266,9 +276,69 @@ module.exports = {
theme.page = theme.page || {_:{}}
theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || [])
}
- if(theme.codeEditor) {
- theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options);
+ // check and load page settings from theme
+ if (themePlugin.page) {
+ if (themePlugin.page.favicon && !theme.page.favicon) {
+ const result = serveFilesFromTheme(
+ [themePlugin.page.favicon],
+ themeApp,
+ "/",
+ themePlugin.path
+ )
+ if(result && result.length > 0) {
+ // update themeContext page favicon
+ themeContext.page.favicon = result[0]
+ theme.page = theme.page || {_:{}}
+ theme.page._.favicon = result[0]
+ }
+ }
+ if (themePlugin.page.tabicon && themePlugin.page.tabicon.icon && !theme.page.tabicon) {
+ const result = serveFilesFromTheme(
+ [themePlugin.page.tabicon.icon],
+ themeApp,
+ "/page/",
+ themePlugin.path
+ )
+ if(result && result.length > 0) {
+ // update themeContext page tabicon
+ themeContext.page.tabicon.icon = result[0]
+ themeContext.page.tabicon.colour = themeContext.page.tabicon.colour || themeContext.page.tabicon.colour
+ theme.page = theme.page || {_:{}}
+ theme.page._.tabicon = theme.page._.tabicon || {}
+ theme.page._.tabicon.icon = themeContext.page.tabicon.icon
+ theme.page._.tabicon.colour = themeContext.page.tabicon.colour
+ }
+ }
+ // if the plugin has a title AND the users settings.js does NOT
+ if (themePlugin.page.title && !theme.page.title) {
+ themeContext.page.title = themePlugin.page.title || themeContext.page.title
+ }
}
+ // check and load header settings from theme
+ if (themePlugin.header) {
+ if (themePlugin.header.image && !theme.header.image) {
+ const result = serveFilesFromTheme(
+ [themePlugin.header.image],
+ themeApp,
+ "/header/",
+ themePlugin.path
+ )
+ if(result && result.length > 0) {
+ // update themeContext header image
+ themeContext.header.image = result[0]
+ }
+ }
+ // if the plugin has a title AND the users settings.js does NOT have a title
+ if (themePlugin.header.title && !theme.header.title) {
+ themeContext.header.title = themePlugin.header.title || themeContext.header.title
+ }
+ // if the plugin has a header url AND the users settings.js does NOT
+ if (themePlugin.header.url && !theme.header.url) {
+ themeContext.header.url = themePlugin.header.url || themeContext.header.url
+ }
+ }
+ theme.codeEditor = theme.codeEditor || {}
+ theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options);
}
activeThemeInitialised = true;
}
diff --git a/packages/node_modules/@node-red/editor-api/lib/index.js b/packages/node_modules/@node-red/editor-api/lib/index.js
index 56f52a222..d9f34eafd 100644
--- a/packages/node_modules/@node-red/editor-api/lib/index.js
+++ b/packages/node_modules/@node-red/editor-api/lib/index.js
@@ -37,7 +37,6 @@ var adminApp;
var server;
var editor;
-
/**
* Initialise the module.
* @param {Object} settings The runtime settings
@@ -49,7 +48,7 @@ var editor;
function init(settings,_server,storage,runtimeAPI) {
server = _server;
if (settings.httpAdminRoot !== false) {
- adminApp = express();
+ adminApp = apiUtil.createExpressApp(settings);
var cors = require('cors');
var corsHandler = cors({
@@ -64,14 +63,6 @@ function init(settings,_server,storage,runtimeAPI) {
}
}
- var defaultServerSettings = {
- "x-powered-by": false
- }
- var serverSettings = Object.assign({},defaultServerSettings,settings.httpServerOptions||{});
- for (var eOption in serverSettings) {
- adminApp.set(eOption, serverSettings[eOption]);
- }
-
auth.init(settings,storage);
var maxApiRequestSize = settings.apiMaxLength || '5mb';
@@ -136,10 +127,11 @@ async function stop() {
editor.stop();
}
}
+
module.exports = {
- init: init,
- start: start,
- stop: stop,
+ init,
+ start,
+ stop,
/**
* @memberof @node-red/editor-api
diff --git a/packages/node_modules/@node-red/editor-api/lib/util.js b/packages/node_modules/@node-red/editor-api/lib/util.js
index 621fd9e33..f1420235a 100644
--- a/packages/node_modules/@node-red/editor-api/lib/util.js
+++ b/packages/node_modules/@node-red/editor-api/lib/util.js
@@ -14,10 +14,9 @@
* limitations under the License.
**/
+const express = require("express");
-var log = require("@node-red/util").log; // TODO: separate module
-var i18n = require("@node-red/util").i18n; // TODO: separate module
-
+const { log, i18n } = require("@node-red/util");
module.exports = {
errorHandler: function(err,req,res,next) {
@@ -64,5 +63,17 @@ module.exports = {
path: req.path,
ip: (req.headers && req.headers['x-forwarded-for']) || (req.connection && req.connection.remoteAddress) || undefined
}
+ },
+ createExpressApp: function(settings) {
+ const app = express();
+
+ const defaultServerSettings = {
+ "x-powered-by": false
+ }
+ const serverSettings = Object.assign({},defaultServerSettings,settings.httpServerOptions||{});
+ for (let eOption in serverSettings) {
+ app.set(eOption, serverSettings[eOption]);
+ }
+ return app
}
}
diff --git a/packages/node_modules/@node-red/editor-api/package.json b/packages/node_modules/@node-red/editor-api/package.json
index 777e15cc3..d5153b027 100644
--- a/packages/node_modules/@node-red/editor-api/package.json
+++ b/packages/node_modules/@node-red/editor-api/package.json
@@ -1,6 +1,6 @@
{
"name": "@node-red/editor-api",
- "version": "3.0.0-beta.4",
+ "version": "3.1.0",
"license": "Apache-2.0",
"main": "./lib/index.js",
"repository": {
@@ -16,14 +16,14 @@
}
],
"dependencies": {
- "@node-red/util": "3.0.0-beta.4",
- "@node-red/editor-client": "3.0.0-beta.4",
+ "@node-red/util": "3.1.0",
+ "@node-red/editor-client": "3.1.0",
"bcryptjs": "2.4.3",
- "body-parser": "1.20.0",
+ "body-parser": "1.20.2",
"clone": "2.1.2",
"cors": "2.8.5",
"express-session": "1.17.3",
- "express": "4.18.1",
+ "express": "4.18.2",
"memorystore": "1.6.7",
"mime": "3.0.0",
"multer": "1.4.5-lts.1",
@@ -31,10 +31,10 @@
"oauth2orize": "1.11.1",
"passport-http-bearer": "1.0.1",
"passport-oauth2-client-password": "0.1.2",
- "passport": "0.5.2",
+ "passport": "0.6.0",
"ws": "7.5.6"
},
"optionalDependencies": {
- "bcrypt": "5.0.1"
+ "bcrypt": "5.1.0"
}
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/de/editor.json b/packages/node_modules/@node-red/editor-client/locales/de/editor.json
old mode 100755
new mode 100644
index 41fe1459a..f2955c266
--- a/packages/node_modules/@node-red/editor-client/locales/de/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/de/editor.json
@@ -105,7 +105,7 @@
"search": "Flows durchsuchen",
"searchInput": "Flows durchsuchen",
"subflows": "Subflow",
- "createSubflow": "Subflow",
+ "createSubflow": "Hinzufügen",
"selectionToSubflow": "Auswahl in Subflow umwandeln",
"flows": "Flow",
"add": "Hinzufügen",
@@ -152,7 +152,8 @@
"zoom-in": "Vergrößern",
"search-flows": "Flows durchsuchen",
"search-prev": "Vorherige",
- "search-next": "Nächste"
+ "search-next": "Nächste",
+ "search-counter": "\"__term__\" __result__ von __count__"
},
"user": {
"loggedInAs": "Angemeldet als __name__",
@@ -168,7 +169,11 @@
}
},
"notification": {
- "warning": "Warnung: __message__",
+ "state": {
+ "flowsStopped": "Flows gestoppt",
+ "flowsStarted": "Flows gestartet"
+ },
+ "warning": "Warnung : __message__",
"warnings": {
"undeployedChanges": "Node hat nicht übernommene (deploy) Änderungen",
"nodeActionDisabled": "Node-Aktionen deaktiviert",
@@ -177,15 +182,15 @@
"missing-modules": "Flows angehalten aufgrund fehlender Module
",
"safe-mode": "Flows sind im abgesicherten Modus gestoppt.
Flows können bearbeitet und übernommen (deploy) werden, um sie neu zu starten.
",
"restartRequired": "Node-RED muss neu gestartet werden, damit die Module nach Upgrade aktiviert werden",
- "credentials_load_failed": "Flows gestoppt, da die Berechtigungen nicht entschlüsselt werden konnten.
Die Datei mit dem Flow-Berechtigungen ist verschlüsselt, aber der Schlüssel des Projekts fehlt oder ist ungültig.
",
- "credentials_load_failed_reset": "Die Berechtigungen konnten nicht entschlüsselt werden.
Die Datei mit den Flow-Berechtigungen ist verschlüsselt, aber der Schlüssel des Projekts fehlt oder ist ungültig.
Die Datei mit den Flow-Berechtigungen wird bei der nächsten Übernahme (deploy) zurückgesetzt. Alle vorhandenen Flow-Berechtigungen werden gelöscht.
",
+ "credentials_load_failed": "Flows gestoppt, da die Credentials nicht entschlüsselt werden konnten.
Die Datei mit den Flow-Credentials ist verschlüsselt, aber der Schlüssel des Projekts fehlt oder ist ungültig.
",
+ "credentials_load_failed_reset": "Die Credentials konnten nicht entschlüsselt werden.
Die Datei mit den Flow-Credentials ist verschlüsselt, aber der Schlüssel des Projekts fehlt oder ist ungültig.
Die Datei mit den Flow-Credentials wird bei der nächsten Übernahme (deploy) zurückgesetzt. Alle vorhandenen Flow-Credentials werden gelöscht.
",
"missing_flow_file": "Die Flow-Datei des Projekts wurde nicht gefunden.
Das Projekt ist nicht mit einer Flow-Datei konfiguriert.
",
"missing_package_file": "Die Paket-Datei des Projekts wurde nicht gefunden.
In dem Projekt fehlt die 'package.json'-Datei.
",
"project_empty": "Das Projekt ist leer.
Soll ein Standardsatz an Projektdateien erstellen werden? Andernfalls müssen die Dateien manuell außerhalb des Editors dem Projekt hinzugefügt werden.
",
"project_not_found": "Das Projekt '__project__' wurde nicht gefunden.
",
"git_merge_conflict": "Der automatische Merge der Änderungen ist fehlgeschlagen.
Die Merge-Konflikte müssen behoben und die Ergebnisse ins Repository übertragen werden (commit).
"
},
- "error": "Fehler: __message__",
+ "error": "Fehler : __message__",
"errors": {
"lostConnection": "Verbindung zum Server verloren. Verbindung wird erneut hergestellt ...",
"lostConnectionReconnect": "Verbindung zum Server verloren. Wiederherstellung der Verbindung in __time__s.",
@@ -203,7 +208,7 @@
"pull": "Projekt '__project__' erneut geladen",
"revert": "Änderungen im Projekt '__project__' rückgängig gemacht",
"merge-complete": "Git-Merge abgeschlossen",
- "setupCredentials": "Berechtigungen einrichten",
+ "setupCredentials": "Credentials einrichten",
"setupProjectFiles": "Projektdateien einrichten",
"no": "Nein, Danke",
"createDefault": "Standardprojektdateien erstellen",
@@ -211,7 +216,7 @@
},
"label": {
"manage-project-dep": "Projektabhängigkeiten verwalten",
- "setup-cred": "Berechtigungen einrichten",
+ "setup-cred": "Credentials einrichten",
"setup-project": "Projektdateien einrichten",
"create-default-package": "Standardpaketdatei erstellen",
"no-thanks": "Nein, Danke",
@@ -295,6 +300,10 @@
"modifiedFlowsDesc": "Übernimmt nur Flows, die geänderte Nodes enthalten",
"modifiedNodes": "Geänderte Nodes",
"modifiedNodesDesc": "Übernimmt nur Nodes, die sich geändert haben",
+ "startFlows": "Start",
+ "startFlowsDesc": "Flows starten",
+ "stopFlows": "Stop",
+ "stopFlowsDesc": "Flows stoppen",
"restartFlows": "Flows neustarten",
"restartFlowsDesc": "Startet die aktuell übernommenen Flows (ohne vorheriges Deploy)",
"successfulDeploy": "Erfolgreich übernommen (deploy)",
@@ -376,7 +385,7 @@
"confirmDelete": "Sind Sie sicher mit dem Löschen dieses Subflows?",
"info": "Beschreibung",
"category": "Kategorie",
- "module": "Module",
+ "module": "Modul",
"license": "Lizenz",
"licenseNone": "Keine",
"licenseOther": "Andere",
@@ -434,7 +443,7 @@
"icon": "Icon",
"inputType": "Eingangstyp",
"selectType": "Wähle Typen ...",
- "loadCredentials": "Lade Node-Berechtigungen",
+ "loadCredentials": "Lade Node-Credentials",
"inputs": {
"input": "Eingang",
"select": "Auswahl",
@@ -450,7 +459,7 @@
"json": "JSON",
"bin": "buffer",
"env": "Umgebungsvariable",
- "cred": "Berechtigung"
+ "cred": "Credentials"
},
"menu": {
"input": "Eingang",
@@ -470,7 +479,7 @@
"errors": {
"scopeChange": "Wenn Sie den Geltungsbereich (scope) ändern, wird er für Nodes in anderen Flows nicht verfügbar sein",
"invalidProperties": "Ungültige Eigenschaften:",
- "credentialLoadFailed": "Laden der Node-Berechtigungen fehlgeschlagen"
+ "credentialLoadFailed": "Laden der Node-Credentials fehlgeschlagen"
}
},
"keyboard": {
@@ -683,7 +692,8 @@
"showHelp": "Hilfe zeigen",
"showInOutline": "Zeige im Editor",
"showTopics": "Zeige Hilfethemen",
- "noHelp": "Kein Hilfethema ausgewählt"
+ "noHelp": "Kein Hilfethema ausgewählt",
+ "changeLog": "Änderungsprotokoll"
},
"config": {
"name": "Konfigurations-Node",
@@ -737,7 +747,7 @@
"addToProject": "Zu Projekt hinzufügen",
"files": "Dateien",
"flow": "Flow",
- "credentials": "Berechtigungen",
+ "credentials": "Credentials",
"package": "Paket",
"packageCreate": "Datei wird erstellt beim Speichern der Änderungen",
"fileNotExist": "Datei existiert nicht",
@@ -750,7 +760,7 @@
"changeTheEncryptionKey": "Schlüssel ändern",
"currentKey": "Aktueller Schlüssel",
"newKey": "Neuer Schlüssel",
- "credentialsAlert": "Dadurch werden alle vorhandenen Berechtigungen gelöscht",
+ "credentialsAlert": "Dadurch werden alle vorhandenen Credentials gelöscht",
"versionControl": "Versionsverwaltung (Git)",
"branches": "Branches",
"noBranches": "Keine Branches",
@@ -886,7 +896,7 @@
"date": "timestamp",
"jsonata": "JSONata",
"env": "Umgebungsvariable",
- "cred": "Berechtigung"
+ "cred": "Credentials"
}
},
"editableList": {
@@ -1026,7 +1036,7 @@
"passphrase": "Passphrase",
"ssh-key-desc": "Bevor Sie ein Repository über SSH lokal klonen können, müssen Sie einen SSH-Schlüssel hinzufügen, um auf diesen zugreifen zu können",
"ssh-key-add": "SSH-Schlüssel hinzufügen",
- "credential-key": "Schlüssel für Berechtigungen",
+ "credential-key": "Schlüssel für Credentials",
"cant-get-ssh-key": "Fehler! Der ausgewählte SSH-Schlüsselpfad kann nicht abgerufen werden",
"already-exists2": "bereits vorhanden",
"git-error": "Git-Fehler",
@@ -1038,27 +1048,27 @@
"create": "Erstellen Sie Ihre Projektdateien",
"desc0": "Ein Projekt enthält Ihre Flow-Dateien, eine README-Datei und die 'package.json'-Datei.",
"desc1": "Es kann alle anderen Dateien enthalten, die im Git-Repository verwaltet werden sollen.",
- "desc2": "Ihre vorhandenen Flow- und Berechtigungs-Dateien werden in das Projekt kopiert.",
+ "desc2": "Ihre vorhandenen Flow- und Credential-Dateien werden in das Projekt kopiert.",
"flow-file": "Flow-Datei",
- "credentials-file": "Datei mit Berechtigungen"
+ "credentials-file": "Datei mit Credentials"
},
"encryption-config": {
- "setup": "Einrichtung der Verschlüsselung Ihrer Datei mit den Berechtigungen",
- "desc0": "Die Datei mit den Flow-Berechtigungen kann verschlüsselt werden, um ihren Inhalt zu schützen.",
- "desc1": "Wenn Sie diese Berechtigungen in einem öffentlichen Repository speichern möchten, müssen Sie sie mit einen geheimen Schlüsselausdruck verschlüsseln.",
- "desc2": "Die Datei mit den Flow-Berechtigungen ist derzeit nicht verschlüsselt.",
+ "setup": "Einrichtung der Verschlüsselung Ihrer Datei mit den Credentials",
+ "desc0": "Die Datei mit den Flow-Credentials kann verschlüsselt werden, um ihren Inhalt zu schützen.",
+ "desc1": "Wenn Sie diese Credentials in einem öffentlichen Repository speichern möchten, müssen Sie sie mit einen geheimen Schlüsselausdruck verschlüsseln.",
+ "desc2": "Die Datei mit den Flow-Credentials ist derzeit nicht verschlüsselt.",
"desc3": "D.h. ihr Inhalt (z.B. Passwörter und Zugriffs-Tokens) kann von jedem mit Zugriff auf die Datei gelesen werden.",
- "desc4": "Wenn Sie diese Berechtigungen in einen öffentlichen Repository speichern möchten, müssen Sie diese verschlüsseln, indem Sie einen geheimen Schlüsselausdruck eingeben.",
- "desc5": "Ihre Datei mit den Flow-Berechtigungen wird derzeit mit dem Eintrag 'credentialSecret' Ihrer Einstellungsdatei als Schlüssel verschlüsselt.",
- "desc6": "Die Datei mit den Flow-Berechtigungen wird derzeit mit einem vom System generierten Schlüssel verschlüsselt. Sie sollten einen neuen geheimen Schlüssel für dieses Projekt vorgeben.",
+ "desc4": "Wenn Sie diese Credentials in einen öffentlichen Repository speichern möchten, müssen Sie diese verschlüsseln, indem Sie einen geheimen Schlüsselausdruck eingeben.",
+ "desc5": "Ihre Datei mit den Flow-Credentials wird derzeit mit dem Eintrag 'credentialSecret' Ihrer Einstellungsdatei als Schlüssel verschlüsselt.",
+ "desc6": "Die Datei mit den Flow-Credentials wird derzeit mit einem vom System generierten Schlüssel verschlüsselt. Sie sollten einen neuen geheimen Schlüssel für dieses Projekt vorgeben.",
"desc7": "Der Schlüssel wird separat von den Projektdateien gespeichert. Sie müssen den Schlüssel angeben, damit dieses Projekt auch in einem anderen Node-RED-System verwendet werden kann.",
- "credentials": "Berechtigung",
+ "credentials": "Credentials",
"enable": "Verschlüsselung aktivieren",
"disable": "Verschlüsselung deaktivieren",
"disabled": "deaktiviert",
"copy": "Vorhandenen Schlüssel ersetzen",
"use-custom": "Eigenen Schlüssel verwenden",
- "desc8": "Die Datei mit den Berechtigungen wird nicht verschlüsselt, und ihr Inhalt kann leicht gelesen werden",
+ "desc8": "Die Datei mit den Credentials wird nicht verschlüsselt und ihr Inhalt kann leicht gelesen werden",
"create-project-files": "Projektdateien erstellen",
"create-project": "Projekt erstellen",
"already-exists": "bereits vorhanden",
@@ -1083,12 +1093,12 @@
"desc": "Beschreibung",
"opt": "Optional",
"flow-file": "Flow-Datei",
- "credentials": "Berechtigungen",
+ "credentials": "Credentials",
"enable-encryption": "Verschlüsselung aktivieren",
"disable-encryption": "Verschlüsselung deaktivieren",
"encryption-key": "Schlüssel",
- "desc0": "Eine Floskel, mit der Sie Ihre Berechtigungen schützen",
- "desc1": "Die Datei mit den Berechtigungen wird nicht verschlüsselt, und ihr Inhalt kann leicht gelesen werden",
+ "desc0": "Eine Ausdruck, mit der Sie Ihre Credentials schützen",
+ "desc1": "Die Datei mit den Credentials wird nicht verschlüsselt und ihr Inhalt kann leicht gelesen werden",
"git-url": "Git-Repository-URL",
"protocols": "https://, ssh:// oder file://",
"auth-failed": "Authentifizierung fehlgeschlagen",
@@ -1098,7 +1108,7 @@
"passphrase": "Passphrase",
"desc2": "Bevor Sie ein Repository über SSH klonen können, müssen Sie einen SSH-Schlüssel hinzufügen, um auf diesen zu zugreifen",
"add-ssh-key": "Einen SSH-Schlüssel hinzufügen",
- "credentials-encryption-key": "Schlüssel für Berechtigungen",
+ "credentials-encryption-key": "Schlüssel für Credentials",
"already-exists-2": "bereits vorhanden",
"git-error": "Git-Fehler",
"con-failed": "Verbindung fehlgeschlagen",
@@ -1156,7 +1166,8 @@
"tourGuide": {
"takeATour": "Tour starten",
"start": "Start",
- "next": "Nächste"
+ "next": "Nächste",
+ "welcomeTours": "Welcome Tours"
},
"diagnostics": {
"title": "System-Informationen"
@@ -1164,8 +1175,10 @@
"languages": {
"de": "Deutsch",
"en-US": "Englisch",
+ "fr": "Französisch",
"ja": "Japanisch",
"ko": "Koreanisch",
+ "pt-BR":"Portugiesisch",
"ru": "Russisch",
"zh-CN": "Chinesisch (Vereinfacht)",
"zh-TW": "Chinesisch (Traditionell)"
diff --git a/packages/node_modules/@node-red/editor-client/locales/de/infotips.json b/packages/node_modules/@node-red/editor-client/locales/de/infotips.json
old mode 100755
new mode 100644
diff --git a/packages/node_modules/@node-red/editor-client/locales/de/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/de/jsonata.json
old mode 100755
new mode 100644
index 9717f3715..77e32c09b
--- a/packages/node_modules/@node-red/editor-client/locales/de/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/de/jsonata.json
@@ -205,7 +205,7 @@
},
"$formatNumber": {
"args": "number, picture [, options]",
- "desc": "Wandelt `number` in eine Zeichenfolge um und formatiert sie in eine dezimale Darstellung, wie im `picture`-String-Parameter vorgegeben.\n\nDas Verhalten dieser Funktion ist mit der XPath/XQuery-Funktion fn:formatnummer konsistent, wie sie in der XPath F&O 3.1-Spezifikation definiert ist. Der `picture`-String-Parameter definiert, wie die Zahl formatiert ist und hat die gleiche Syntax wie fn:format-number.\n\nDer optionale dritte Parameter `options` wird verwendet, um die standardmäßigen länderspezifischen Formatierungszeichen, wie z.B. das Dezimaltrennzeichen, zu überschreiben. Wenn dieser Parameter vorgegeben wird, muss es sich um ein Objekt handeln, das Name/Wert-Paare enthält, die im Abschnitt mit dem Dezimalformat der XPath F&O 3.1-Spezifikation vorgegeben sind."
+ "desc": "Wandelt `number` in eine Zeichenfolge um und formatiert sie in eine dezimale Darstellung, wie im `picture`-String-Parameter vorgegeben.\n\nDas Verhalten dieser Funktion ist mit der XPath/XQuery-Funktion `fn:formatnummer` konsistent, wie sie in der XPath F&O 3.1-Spezifikation definiert ist. Der `picture`-String-Parameter definiert, wie die Zahl formatiert ist und hat die gleiche Syntax wie `fn:format-number`.\n\nDer optionale dritte Parameter `options` wird verwendet, um die standardmäßigen länderspezifischen Formatierungszeichen, wie z.B. das Dezimaltrennzeichen, zu überschreiben. Wenn dieser Parameter vorgegeben wird, muss es sich um ein Objekt handeln, das Name/Wert-Paare enthält, die im Abschnitt mit dem Dezimalformat der XPath F&O 3.1-Spezifikation vorgegeben sind."
},
"$formatBase": {
"args": "number [, radix]",
diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json
old mode 100755
new mode 100644
index c8abada3e..c0317c90e
--- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json
@@ -23,7 +23,11 @@
"position": "Position",
"enable": "Enable",
"disable": "Disable",
- "upload": "Upload"
+ "upload": "Upload",
+ "lock": "Lock",
+ "unlock": "Unlock",
+ "locked": "Locked",
+ "unlocked": "Unlocked"
},
"type": {
"string": "string",
@@ -53,22 +57,30 @@
"confirmDelete": "Confirm delete",
"delete": "Are you sure you want to delete '__label__'?",
"dropFlowHere": "Drop the flow here",
+ "dropImageHere": "Drop the image here",
"addFlow": "Add flow",
"addFlowToRight": "Add flow to the right",
+ "closeFlow": "Close flow",
"hideFlow": "Hide flow",
"hideOtherFlows": "Hide other flows",
- "showAllFlows": "Show all flows",
+ "showAllFlows": "Show all flows (__count__ hidden)",
"hideAllFlows": "Hide all flows",
"hiddenFlows": "List __count__ hidden flow",
"hiddenFlows_plural": "List __count__ hidden flows",
- "showLastHiddenFlow": "Show last hidden flow",
+ "showLastHiddenFlow": "Reopen hidden flow",
"listFlows": "List flows",
"listSubflows": "List subflows",
"status": "Status",
"enabled": "Enabled",
"disabled": "Disabled",
"info": "Description",
- "selectNodes": "Click nodes to select"
+ "selectNodes": "Click nodes to select",
+ "enableFlow": "Enable flow",
+ "disableFlow": "Disable flow",
+ "lockFlow": "Lock flow",
+ "unlockFlow": "Unlock flow",
+ "moveToStart": "Move flow to start",
+ "moveToEnd": "Move flow to end"
},
"menu": {
"label": {
@@ -101,6 +113,7 @@
"displayStatus": "Show node status",
"displayConfig": "Configuration nodes",
"import": "Import",
+ "importExample": "Import Example Flow",
"export": "Export",
"search": "Search flows",
"searchInput": "search your flows",
@@ -403,6 +416,7 @@
},
"errors": {
"noNodesSelected": "Cannot create subflow : no nodes selected",
+ "acrossMultipleGroups": "Cannot create subflow across multiple groups",
"multipleInputsToSelection": "Cannot create subflow : multiple inputs to selection"
}
},
@@ -491,12 +505,14 @@
"unassigned": "Unassigned",
"global": "global",
"workspace": "workspace",
+ "editor": "edit dialog",
"selectAll": "Select all",
"selectNone": "Select none",
"selectAllConnected": "Select connected",
"addRemoveNode": "Add/remove node from selection",
"editSelected": "Edit selected node",
"deleteSelected": "Delete selected nodes or link",
+ "deleteReconnect": "Delete and Reconnect",
"importNode": "Import nodes",
"exportNode": "Export nodes",
"nudgeNode": "Move selected nodes (1px)",
@@ -571,6 +587,7 @@
"editor": {
"title": "Manage palette",
"palette": "Palette",
+ "allCatalogs": "All Catalogs",
"times": {
"seconds": "seconds ago",
"minutes": "minutes ago",
@@ -610,6 +627,7 @@
"tab-nodes": "Nodes",
"tab-install": "Install",
"sort": "sort:",
+ "sortRelevance": "relevance",
"sortAZ": "a-z",
"sortRecent": "recent",
"more": "+ __count__ more",
@@ -683,7 +701,11 @@
"empty": "empty",
"globalConfig": "Global Configuration Nodes",
"triggerAction": "Trigger action",
- "find": "Find in workspace"
+ "find": "Find in workspace",
+ "copyItemUrl": "Copy item url",
+ "copyURL2Clipboard": "Copied url to clipboard",
+ "showFlow": "Show",
+ "hideFlow": "Hide"
},
"help": {
"name": "Help",
@@ -936,6 +958,9 @@
"invalid-expr": "Invalid JSONata expression:\n __message__",
"invalid-msg": "Invalid example JSON message:\n __message__",
"context-unsupported": "Cannot test context functions\n $flowContext or $globalContext",
+ "env-unsupported": "Cannot test $env function",
+ "moment-unsupported": "Cannot test $moment function",
+ "clone-unsupported": "Cannot test $clone function",
"eval": "Error evaluating expression:\n __message__"
}
},
@@ -981,7 +1006,10 @@
"quote": "Quote",
"link": "Link",
"horizontal-rule": "Horizontal rule",
- "toggle-preview": "Toggle preview"
+ "toggle-preview": "Toggle preview",
+ "mermaid": {
+ "summary": "Mermaid Diagram"
+ }
},
"bufferEditor": {
"title": "Buffer editor",
@@ -1176,8 +1204,10 @@
"languages": {
"de": "German",
"en-US": "English",
+ "fr": "French",
"ja": "Japanese",
"ko": "Korean",
+ "pt-BR":"Portuguese",
"ru": "Russian",
"zh-CN": "Chinese(Simplified)",
"zh-TW": "Chinese(Traditional)"
@@ -1185,11 +1215,9 @@
"validator": {
"errors": {
"invalid-json": "Invalid JSON data: __error__",
- "invalid-json-prop": "__prop__: invalid JSON data: __error__",
+ "invalid-expr": "Invalid JSONata expression: __error__",
"invalid-prop": "Invalid property expression",
- "invalid-prop-prop": "__prop__: invalid property expression",
"invalid-num": "Invalid number",
- "invalid-num-prop": "__prop__: invalid number",
"invalid-regexp": "Invalid input pattern",
"invalid-regex-prop": "__prop__: invalid input pattern",
"missing-required-prop": "__prop__: property value missing",
@@ -1203,5 +1231,10 @@
"node": "Node",
"junction": "Junction",
"linkNodes": "Link Nodes"
+ },
+ "env-var": {
+ "environment": "Environment",
+ "header": "Global Environment Variables",
+ "revert": "Revert"
}
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/infotips.json b/packages/node_modules/@node-red/editor-client/locales/en-US/infotips.json
old mode 100755
new mode 100644
diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/en-US/jsonata.json
old mode 100755
new mode 100644
index b24a898b7..6dad125f3
--- a/packages/node_modules/@node-red/editor-client/locales/en-US/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/en-US/jsonata.json
@@ -1,7 +1,7 @@
{
"$string": {
"args": "arg[, prettify]",
- "desc": "Casts the `arg` parameter to a string using the following casting rules:\n\n - Strings are unchanged\n - Functions are converted to an empty string\n - Numeric infinity and NaN throw an error because they cannot be represented as a JSON number\n - All other values are converted to a JSON string using the `JSON.stringify` function. If `prettify` is true, then \"prettified\" JSON is produced. i.e One line per field and lines will be indented based on the field depth."
+ "desc": "Casts the `arg` parameter to a string using the following casting rules:\n\n - Strings are unchanged\n - Functions are converted to an empty string\n - Numeric infinity and NaN throw an error because they cannot be represented as a JSON number\n - All other values are converted to a JSON string using the `JSON.stringify` function. If `prettify` is true, then \"prettified\" JSON is produced. i.e One line per field and lines will be indented based on the field depth."
},
"$length": {
"args": "str",
@@ -53,7 +53,7 @@
},
"$now": {
"args": "$[picture [, timezone]]",
- "desc": "Generates a timestamp in ISO 8601 compatible format and returns it as a string. If the optional picture and timezone parameters are supplied, then the current timestamp is formatted as described by the `$fromMillis()` function"
+ "desc": "Generates a timestamp in ISO 8601 compatible format and returns it as a string. If the optional `picture` and `timezone` parameters are supplied, then the current timestamp is formatted as described by the `$fromMillis()` function"
},
"$base64encode": {
"args": "string",
@@ -137,7 +137,7 @@
},
"$sort": {
"args": "array [, function]",
- "desc": "Returns an array containing all the values in the `array` parameter, but sorted into order.\n\nIf a comparator `function` is supplied, then it must be a function that takes two parameters:\n\n`function(left, right)`\n\nThis function gets invoked by the sorting algorithm to compare two values left and right. If the value of left should be placed after the value of right in the desired sort order, then the function must return Boolean `true` to indicate a swap. Otherwise it must return `false`."
+ "desc": "Returns an array containing all the values in the `array` parameter, but sorted into order.\n\nIf a comparator `function` is supplied, then it must be a function that takes two parameters:\n\n`function(left, right)`\n\nThis function gets invoked by the sorting algorithm to compare two values `left` and `right`. If the value of `left` should be placed after the value of `right` in the desired sort order, then the function must return Boolean `true` to indicate a swap. Otherwise it must return `false`."
},
"$reverse": {
"args": "array",
@@ -201,11 +201,11 @@
},
"$fromMillis": {
"args": "number, [, picture [, timezone]]",
- "desc": "Convert the `number` representing milliseconds since the Unix Epoch (1 January, 1970 UTC) to a formatted string representation of the timestamp as specified by the picture string.\n\nIf the optional `picture` parameter is omitted, then the timestamp is formatted in the ISO 8601 format.\n\nIf the optional `picture` string is supplied, then the timestamp is formatted occording to the representation specified in that string. The behaviour of this function is consistent with the two-argument version of the XPath/XQuery function `format-dateTime` as defined in the XPath F&O 3.1 specification. The picture string parameter defines how the timestamp is formatted and has the same syntax as `format-dateTime`.\n\nIf the optional `timezone` string is supplied, then the formatted timestamp will be in that timezone. The `timezone` string should be in the format '±HHMM', where ± is either the plus or minus sign and HHMM is the offset in hours and minutes from UTC. Positive offset for timezones east of UTC, negative offset for timezones west of UTC."
+ "desc": "Convert the `number` representing milliseconds since the Unix Epoch (1 January, 1970 UTC) to a formatted string representation of the timestamp as specified by the picture string.\n\nIf the optional `picture` parameter is omitted, then the timestamp is formatted in the ISO 8601 format.\n\nIf the optional `picture` string is supplied, then the timestamp is formatted according to the representation specified in that string. The behaviour of this function is consistent with the two-argument version of the XPath/XQuery function `format-dateTime` as defined in the XPath F&O 3.1 specification. The picture string parameter defines how the timestamp is formatted and has the same syntax as `format-dateTime`.\n\nIf the optional `timezone` string is supplied, then the formatted timestamp will be in that timezone. The `timezone` string should be in the format '±HHMM', where ± is either the plus or minus sign and HHMM is the offset in hours and minutes from UTC. Positive offset for timezones east of UTC, negative offset for timezones west of UTC."
},
"$formatNumber": {
"args": "number, picture [, options]",
- "desc": "Casts the `number` to a string and formats it to a decimal representation as specified by the `picture` string.\n\n The behaviour of this function is consistent with the XPath/XQuery function fn:format-number as defined in the XPath F&O 3.1 specification. The picture string parameter defines how the number is formatted and has the same syntax as fn:format-number.\n\nThe optional third argument `options` is used to override the default locale specific formatting characters such as the decimal separator. If supplied, this argument must be an object containing name/value pairs specified in the decimal format section of the XPath F&O 3.1 specification."
+ "desc": "Casts the `number` to a string and formats it to a decimal representation as specified by the `picture` string.\n\n The behaviour of this function is consistent with the XPath/XQuery function `fn:format-number` as defined in the XPath F&O 3.1 specification. The `picture` string parameter defines how the number is formatted and has the same syntax as `fn:format-number`.\n\nThe optional third argument `options` is used to override the default locale specific formatting characters such as the decimal separator. If supplied, this argument must be an object containing name/value pairs specified in the decimal format section of the XPath F&O 3.1 specification."
},
"$formatBase": {
"args": "number [, radix]",
@@ -233,15 +233,15 @@
},
"$error": {
"args": "[str]",
- "desc": "Throws an error with a message. The optional `str` will replace the default message of `$error() function evaluated`"
+ "desc": "Throws an error with a message. The optional `str` will replace the default message of `$error() function evaluated`"
},
"$assert": {
"args": "arg, str",
- "desc": "If `arg` is true the function returns undefined. If `arg` is false an exception is thrown with `str` as the message of the exception."
+ "desc": "If `arg` is `true` the function returns `undefined`. If `arg` is `false` an exception is thrown with `str` as the message of the exception."
},
"$single": {
"args": "array, function",
- "desc": "Returns the one and only value in the `array` parameter that satisfies the `function` predicate (i.e. the `function` returns Boolean `true` when passed the value). Throws an exception if the number of matching values is not exactly one.\n\nThe function should be supplied in the following signature: `function(value [, index [, array]])` where value is each input of the array, index is the position of that value and the whole array is passed as the third argument"
+ "desc": "Returns the one and only value in the `array` parameter that satisfies the `function` predicate (i.e. the `function` returns Boolean `true` when passed the value). Throws an exception if the number of matching values is not exactly one.\n\nThe function should be supplied in the following signature: `function(value [, index [, array]])` where value is each input of the array, index is the position of that value and the whole array is passed as the third argument"
},
"$encodeUrlComponent": {
"args": "str",
@@ -249,15 +249,15 @@
},
"$encodeUrl": {
"args": "str",
- "desc": "Encodes a Uniform Resource Locator (URL) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character. \n\nExample: `$encodeUrl(\"https://mozilla.org/?x=шеллы\")` => `\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\"`"
+ "desc": "Encodes a Uniform Resource Locator (URL) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.\n\nExample: `$encodeUrl(\"https://mozilla.org/?x=шеллы\")` => `\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\"`"
},
"$decodeUrlComponent": {
"args": "str",
- "desc": "Decodes a Uniform Resource Locator (URL) component previously created by encodeUrlComponent. \n\nExample: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
+ "desc": "Decodes a Uniform Resource Locator (URL) component previously created by encodeUrlComponent.\n\nExample: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
},
"$decodeUrl": {
"args": "str",
- "desc": "Decodes a Uniform Resource Locator (URL) previously created by encodeUrl. \n\nExample: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ "desc": "Decodes a Uniform Resource Locator (URL) previously created by encodeUrl.\n\nExample: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
},
"$distinct": {
"args": "array",
@@ -270,5 +270,9 @@
"$moment": {
"args": "[str]",
"desc": "Gets a date object using the Moment library."
+ },
+ "$clone": {
+ "args": "value",
+ "desc": "Safely clone an object."
}
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/fr/editor.json b/packages/node_modules/@node-red/editor-client/locales/fr/editor.json
new file mode 100644
index 000000000..274cadb2a
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/locales/fr/editor.json
@@ -0,0 +1,1239 @@
+{
+ "common": {
+ "label": {
+ "name": "Nom",
+ "ok": "Ok",
+ "done": "Terminer",
+ "cancel": "Annuler",
+ "delete": "Supprimer",
+ "close": "Fermer",
+ "load": "Ouvrir",
+ "save": "Sauver",
+ "import": "Importer",
+ "export": "Exporter",
+ "back": "Retour",
+ "next": "Suivant",
+ "clone": "Cloner",
+ "cont": "Continuer",
+ "style": "Style",
+ "line": "Bordure",
+ "fill": "Remplissage",
+ "label": "Etiquette",
+ "color": "Couleur",
+ "position": "Position",
+ "enable": "Activer",
+ "disable": "Désactiver",
+ "upload": "Charger",
+ "lock": "Verrouiller",
+ "unlock": "Déverrouiller",
+ "locked": "Verrouillé",
+ "unlocked": "Déverrouillé"
+ },
+ "type": {
+ "string": "chaîne de caractères",
+ "number": "nombre",
+ "boolean": "booléen",
+ "array": "tableau",
+ "buffer": "tampon",
+ "object": "objet",
+ "jsonString": "chaîne JSON",
+ "undefined": "indéfini",
+ "null": "nul"
+ }
+ },
+ "event": {
+ "loadPlugins": "Chargement des extensions",
+ "loadPalette": "Chargement de la palette",
+ "loadNodeCatalogs": "Chargement des catalogues de noeuds",
+ "loadNodes": "Chargement des noeuds __count__",
+ "loadFlows": "Chargement des flux",
+ "importFlows": "Ajout de flux à l'espace de travail",
+ "importError": "Erreur lors de l'ajout du flux
__message__
",
+ "loadingProject": "Chargement du projet"
+ },
+ "workspace": {
+ "defaultName": "Flux __number__",
+ "editFlow": "Modifier le flux : __name__",
+ "confirmDelete": "Confirmation de la suppression",
+ "delete": "Etes-vous sûr de vouloir supprimer '__label__'?",
+ "dropFlowHere": "Déposer le flux ici",
+ "dropImageHere": "Déposer l'image ici",
+ "addFlow": "Ajouter un flux",
+ "addFlowToRight": "Ajouter un flux à droite",
+ "closeFlow": "Fermer le flux",
+ "hideFlow": "Masquer le flux",
+ "hideOtherFlows": "Masquer les autres flux",
+ "showAllFlows": "Afficher tous les flux",
+ "hideAllFlows": "Masquer tous les flux",
+ "hiddenFlows": "Répertorier le flux masqué __count__",
+ "hiddenFlows_plural": "Répertorier les flux masqués __count__",
+ "showLastHiddenFlow": "Afficher le dernier flux masqué",
+ "listFlows": "Répertorier les flux",
+ "listSubflows": "Répertorier les sous-flux",
+ "status": "Statut",
+ "enabled": "Activé",
+ "disabled": "Désactivé",
+ "info": "Description",
+ "selectNodes": "Cliquer sur les noeuds pour sélectionner",
+ "enableFlow": "Activer le flux",
+ "disableFlow": "Désactiver le flux",
+ "lockFlow": "Verrouiller le flux",
+ "unlockFlow": "Déverrouiller le flux",
+ "moveToStart": "Déplacer le flux au début",
+ "moveToEnd": "Déplacer le flux vers la fin"
+ },
+ "menu": {
+ "label": {
+ "view": {
+ "view": "Affichage",
+ "grid": "Grille",
+ "storeZoom": "Restaurer le niveau de zoom au chargement",
+ "storePosition": "Restaurer la position de défilement au chargement",
+ "showGrid": "Afficher la grille",
+ "snapGrid": "Aligner sur la grille",
+ "gridSize": "Taille de la grille",
+ "textDir": "Sens du texte",
+ "defaultDir": "Sens par défaut",
+ "ltr": "De gauche à droite",
+ "rtl": "De droite à gauche",
+ "auto": "Contextuel",
+ "language": "Langue",
+ "browserDefault": "Navigateur par défaut"
+ },
+ "sidebar": {
+ "show": "Afficher la barre latérale"
+ },
+ "palette": {
+ "show": "Afficher la palette"
+ },
+ "edit": "Éditer",
+ "settings": "Paramètres",
+ "userSettings": "Paramètres de l'utilisateur",
+ "nodes": "Noeuds",
+ "displayStatus": "Afficher l'état du noeud",
+ "displayConfig": "Noeuds de configuration",
+ "import": "Importer",
+ "importExample": "Importer un exemple de flux",
+ "export": "Exporter",
+ "search": "Rechercher les flux",
+ "searchInput": "Rechercher vos flux",
+ "subflows": "Sous-flux",
+ "createSubflow": "Créer un sous-flux",
+ "selectionToSubflow": "Convertir en sous-flux",
+ "flows": "Flux",
+ "add": "Ajouter",
+ "rename": "Renommer",
+ "delete": "Supprimer",
+ "keyboardShortcuts": "Raccourcis clavier",
+ "login": "Se connecter",
+ "logout": "Se déconnecter",
+ "editPalette": "Gérer la palette",
+ "other": "Autre",
+ "showTips": "Afficher les astuces",
+ "showWelcomeTours": "Afficher les visites guidées pour les nouvelles versions",
+ "help": "Site web de Node-RED",
+ "projects": "Projets",
+ "projects-new": "Nouveau projet",
+ "projects-open": "Ouvrir le projet",
+ "projects-settings": "Paramètres du projet",
+ "showNodeLabelDefault": "Afficher l'étiquette des noeuds nouvellement ajoutés",
+ "codeEditor": "Éditeur de code",
+ "groups": "Groupes",
+ "groupSelection": "Grouper cette sélection",
+ "ungroupSelection": "Dégrouper la sélection",
+ "groupMergeSelection": "Fusionner la sélection",
+ "groupRemoveSelection": "Supprimer du groupe",
+ "arrange": "Organiser",
+ "alignLeft": "Aligner à gauche",
+ "alignCenter": "Aligner au centre",
+ "alignRight": "Aligner à droite",
+ "alignTop": "Aligner en haut",
+ "alignMiddle": "Aligner au milieu",
+ "alignBottom": "Aligner en bas",
+ "distributeHorizontally": "Répartir horizontalement",
+ "distributeVertically": "Distribuer verticalement",
+ "moveToBack": "Déplacer vers l'arrière",
+ "moveToFront": "Déplacer vers l'avant",
+ "moveBackwards": "Reculer",
+ "moveForwards": "Avancer"
+ }
+ },
+ "actions": {
+ "toggle-navigator": "Basculer de navigateur",
+ "zoom-out": "Dézoomer",
+ "zoom-reset": "Réinitialiser le zoom",
+ "zoom-in": "Agrandir",
+ "search-flows": "Rechercher le flux",
+ "search-prev": "Précédent",
+ "search-next": "Suivant",
+ "search-counter": "\"__term__\" __result__ de __count__"
+ },
+ "user": {
+ "loggedInAs": "Connecté en tant que __name__",
+ "username": "Nom d'utilisateur",
+ "password": "Mot de passe",
+ "login": "Connexion",
+ "loginFailed": "Échec de la connexion",
+ "notAuthorized": "Pas autorisé",
+ "errors": {
+ "settings": "Vous devez être connecté pour accéder aux paramètres",
+ "deploy": "Vous devez être connecté pour déployer les modifications",
+ "notAuthorized": "Vous devez être connecté pour effectuer cette action"
+ }
+ },
+ "notification": {
+ "state": {
+ "flowsStopped": "Flux arrêtés",
+ "flowsStarted": "Flux démarrés"
+ },
+ "warning": "Attention : __message__",
+ "warnings": {
+ "undeployedChanges": "Le noeud a des modifications non déployées",
+ "nodeActionDisabled": "Actions de noeud désactivées",
+ "nodeActionDisabledSubflow": "Actions de noeud désactivées dans le sous-flux",
+ "missing-types": "Flux arrêtés en raison de types de noeuds manquants.
",
+ "missing-modules": "Flux arrêtés en raison de modules manquants.
",
+ "safe-mode": "Flux arrêtés en mode sans échec.
Vous pouvez modifier vos flux et déployer les changements pour redémarrer.
",
+ "restartRequired": "Node-RED doit être redémarré pour mettre à jour les modules",
+ "credentials_load_failed": "Les flux se sont arrêtés car les informations d'identification n'ont pas pu être déchiffrées.
Le fichier d'informations d'identification du flux est chiffré, mais la clé de chiffrement du projet est manquante ou invalide.
",
+ "credentials_load_failed_reset": "Les informations d'identification n'ont pas pu être déchiffrées
Le fichier d'informations d'identification du flux est chiffré, mais la clé de chiffrement du projet est manquante ou invalide.
Le fichier d'informations d'identification du flux sera réinitialisé lors du prochain déploiement. Toutes les informations d'identification de flux existantes seront perdues.
",
+ "missing_flow_file": "Fichier contenant les flux introuvable.
Le projet n'est pas configuré avec un fichier de flux.
",
+ "missing_package_file": "Fichier de paquetage du projet introuvable.
Il manque au projet un fichier package.json.
",
+ "project_empty": "Le projet est vide.
Voulez-vous créer un ensemble de fichiers de projet par défaut ? Sinon, vous devrez ajouter manuellement des fichiers au projet (en dehors de l'éditeur).
",
+ "project_not_found": "Le projet '__project__' est introuvable.
",
+ "git_merge_conflict": "La fusion automatique des modifications a échoué.
Corriger les conflits non fusionnés, puis valider le résultat.
"
+ },
+ "error": "Erreur : __message__",
+ "errors": {
+ "lostConnection": "Connexion avec le serveur perdue, reconnexion...",
+ "lostConnectionReconnect": "Connexion avec le serveur perdue, reconnexion dans __time__s.",
+ "lostConnectionTry": "Essayer maintenant",
+ "cannotAddSubflowToItself": "Impossible d'ajouter un sous-flux à lui-même",
+ "cannotAddCircularReference": "Impossible d'ajouter un sous-flux - référence circulaire détectée",
+ "unsupportedVersion": "Utilisation d'une version non prise en charge de Node.js
Vous devez effectuer une mise à jour vers la dernière version de Node.js LTS
",
+ "failedToAppendNode": "Échec du chargement du module '__module__'
__error__
"
+ },
+ "project": {
+ "change-branch": "Changer pour une branche locale '__project__'",
+ "merge-abort": "Git fusion abandonnée",
+ "loaded": "Projet '__project__' chargé",
+ "updated": "Projet '__project__' mis à jour",
+ "pull": "Projet '__project__' rechargé",
+ "revert": "Projet '__project__' annulé",
+ "merge-complete": "Fusion Git terminée",
+ "setupCredentials": "Configuration des identifiants",
+ "setupProjectFiles": "Configuration des fichiers du projet",
+ "no": "Non merci",
+ "createDefault": "Créer des fichiers de projet par défaut",
+ "mergeConflict": "Afficher les conflits de fusion"
+ },
+ "label": {
+ "manage-project-dep": "Gérer les dépendances du projet",
+ "setup-cred": "Configuration des identifiants",
+ "setup-project": "Configuration des fichiers du projet",
+ "create-default-package": "Créer un fichier de paquetage par défaut",
+ "no-thanks": "Non merci",
+ "create-default-project": "Créer des fichiers de projet par défaut",
+ "show-merge-conflicts": "Afficher les conflits de fusion",
+ "unknownNodesButton": "Rechercher les noeuds inconnus"
+ }
+ },
+ "clipboard": {
+ "clipboard": "Presse-papiers",
+ "nodes": "Noeuds",
+ "node": "__count__ noeud",
+ "node_plural": "__count__ noeuds",
+ "configNode": "__count__ noeud de configuration",
+ "configNode_plural": "__count__ noeuds de configuration",
+ "group": "__count__ groupe",
+ "group_plural": "__count__ groupes",
+ "flow": "__count__ flux",
+ "flow_plural": "__count__ flux",
+ "subflow": "__count__ sous-flux",
+ "subflow_plural": "__count__ sous-flux",
+ "replacedNodes": "__count__ noeud remplacé",
+ "replacedNodes_plural": "__count__ noeuds remplacés",
+ "pasteNodes": "Coller le flux JSON ou",
+ "selectFile": "Sélectionner un fichier à importer",
+ "importNodes": "Importer des noeuds",
+ "exportNodes": "Exporter des noeuds",
+ "download": "Télécharger",
+ "importUnrecognised": "Importation d'un type inconnu :",
+ "importUnrecognised_plural": "Importation de plusieurs types inconnus :",
+ "importDuplicate": "Noeud en double importé :",
+ "importDuplicate_plural": "Noeuds en double importés :",
+ "nodesExported": "Noeuds exportés vers le presse-papiers",
+ "nodesImported": "Noeuds importés :",
+ "nodeCopied": "__count__ noeud copié",
+ "nodeCopied_plural": "__count__ noeuds copiés",
+ "groupCopied": "__count__ groupe copié",
+ "groupCopied_plural": "__count__ groupes copiés",
+ "groupStyleCopied": "Style de groupe copié",
+ "invalidFlow": "Flux invalide : __message__",
+ "recoveredNodes": "Noeuds récupérés",
+ "recoveredNodesInfo": "Les noeuds importés sur ce flux contiennent un mauvais identifiant de flux. Ces noeuds ont été ajoutés à ce flux afin que vous puissiez les restaurer ou les supprimer.",
+ "recoveredNodesNotification": "Noeuds importés sans identifiant de flux valide
Ils ont été ajoutés à un nouveau flux appelé '__flowName__'.
",
+ "export": {
+ "selected": "les noeuds sélectionnés",
+ "current": "le flux actuel",
+ "all": "tous les flux",
+ "compact": "Condensé",
+ "formatted": "Formaté",
+ "copy": "Copier dans le presse-papier",
+ "export": "Exporter vers la bibliothèque",
+ "exportAs": "Exporter comme",
+ "overwrite": "Remplacer",
+ "exists": "\"__file__\" existe déjà.
Voulez-vous le remplacer ?
"
+ },
+ "import": {
+ "import": "Importer vers",
+ "importSelected": "Importer la sélection",
+ "importCopy": "Importer une copie",
+ "viewNodes": "Vérifier ces noeuds",
+ "newFlow": "un nouveau flux",
+ "replace": "Remplacer",
+ "errors": {
+ "notArray": "L'entrée n'est pas un tableau JSON",
+ "itemNotObject": "L'entrée n'est pas un flux valide - l'élément '__index__' n'est pas un objet du noeud",
+ "missingId": "L'entrée n'est pas un flux valide - l'élément '__index__' n'a pas de propriété 'id'",
+ "missingType": "L'entrée n'est pas un flux valide - l'élément '__index__' n'a pas de propriété 'type'"
+ },
+ "conflictNotification1": "Certains des noeuds que vous avez importés existent déjà dans votre espace de travail.",
+ "conflictNotification2": "Sélectionnez les noeuds à importer et choisissez s'il faut remplacer les noeuds existants ou en importer une copie."
+ },
+ "copyMessagePath": "Chemin copié",
+ "copyMessageValue": "Valeur copiée",
+ "copyMessageValue_truncated": "Valeur tronquée (coupée) copiée"
+ },
+ "deploy": {
+ "deploy": "Déployer",
+ "full": "Tout",
+ "fullDesc": "Déploie tout l'espace de travail",
+ "modifiedFlows": "Flux modifiés",
+ "modifiedFlowsDesc": "Déploie uniquement les flux contenant des noeuds modifiés",
+ "modifiedNodes": "Noeuds modifiés",
+ "modifiedNodesDesc": "Déploie uniquement les noeuds qui ont changés",
+ "startFlows": "Démarrer",
+ "startFlowsDesc": "Démarrer les flux",
+ "stopFlows": "Arrêter",
+ "stopFlowsDesc": "Arrêter les flux",
+ "restartFlows": "Redémarrer les flux",
+ "restartFlowsDesc": "Redémarrer les flux actuellement déployés",
+ "successfulDeploy": "Déployé avec succès",
+ "successfulRestart": "Flux redémarrés avec succès",
+ "deployFailed": "Échec du déploiement : __message__",
+ "unusedConfigNodes": "Vous avez des noeuds de configuration inutilisés.",
+ "unusedConfigNodesButton": "Rechercher les noeuds de configuration inutilisés",
+ "unknownNodesButton": "Rechercher les noeuds inconnus",
+ "invalidNodesButton": "Rechercher les noeuds invalides",
+ "errors": {
+ "noResponse": "Pas de réponse du serveur"
+ },
+ "confirm": {
+ "button": {
+ "ignore": "Ignorer",
+ "confirm": "Confirmer",
+ "review": "Examiner les modifications",
+ "cancel": "Annuler",
+ "merge": "Fusionner",
+ "overwrite": "Ignorer et déployer"
+ },
+ "undeployedChanges": "Vous avez des modifications non déployées.\n\nSi vous quittez cette page, ces modifications seront perdues.",
+ "improperlyConfigured": "L'espace de travail contient des noeuds qui ne sont pas correctement configurés :",
+ "unknown": "L'espace de travail contient des types de noeuds inconnus :",
+ "confirm": "Êtes-vous sûr de vouloir déployer ?",
+ "doNotWarn": "Ne plus m'avertir à ce sujet",
+ "conflict": "Le serveur exécute un ensemble de flux plus récent.",
+ "backgroundUpdate": "Les flux sur le serveur ont été mis à jour.",
+ "conflictChecking": "Vérifier si les modifications peuvent être fusionnées automatiquement",
+ "conflictAutoMerge": "Les modifications n'incluent aucun conflit et peuvent être fusionnées automatiquement.",
+ "conflictManualMerge": "Les changements incluent des conflits qui doivent être résolus avant de pouvoir être déployés.",
+ "plusNMore": "+ __count__ en plus"
+ }
+ },
+ "eventLog": {
+ "title": "Journal des événements",
+ "view": "Afficher le journal"
+ },
+ "diff": {
+ "unresolvedCount": "__count__ conflit non résolu",
+ "unresolvedCount_plural": "__count__ conflits non résolus",
+ "globalNodes": "noeuds globaux",
+ "flowProperties": "Propriétés du flux",
+ "type": {
+ "added": "ajouté",
+ "changed": "modifié",
+ "unchanged": "inchangé",
+ "deleted": "supprimé",
+ "flowDeleted": "flux supprimé",
+ "flowAdded": "flux ajouté",
+ "movedTo": "déplacé vers __id__",
+ "movedFrom": "déplacé depuis __id__"
+ },
+ "nodeCount": "__count__ noeud",
+ "nodeCount_plural": "__count__ noeuds",
+ "local": "Changements locaux",
+ "remote": "Modifications à distance",
+ "reviewChanges": "Examiner les modifications",
+ "noBinaryFileShowed": "Impossible d'afficher le contenu du fichier binaire",
+ "viewCommitDiff": "Afficher les modifications de validation",
+ "compareChanges": "Comparer les modifications",
+ "saveConflict": "Enregistrer la résolution des conflits",
+ "conflictHeader": "__resolved__ sur __unresolved__ conflit(s) résolu(s)",
+ "commonVersionError": "La version commune ne contient pas de JSON valide :",
+ "oldVersionError": "L'ancienne version ne contient pas de JSON valide :",
+ "newVersionError": "La nouvelle version ne contient pas de JSON valide :"
+ },
+ "subflow": {
+ "editSubflowInstance": "Modifier l'instance du sous-flux : __name__",
+ "editSubflow": "Modifier le modèle du sous-flux : __name__",
+ "edit": "Modifier le modèle du sous-flux",
+ "subflowInstances": "Il existe __count__ instance de ce modèle de sous-flux",
+ "subflowInstances_plural": "Il existe __count__ instances de ce modèle de sous-flux",
+ "editSubflowProperties": "modifier les propriétés",
+ "input": "Entrées:",
+ "output": "Sorties:",
+ "status": "Statut du noeud",
+ "deleteSubflow": "Supprimer le sous-flux",
+ "confirmDelete": "Voulez-vous vraiment supprimer ce sous-flux ?",
+ "info": "Description",
+ "category": "Catégorie",
+ "module": "Module",
+ "license": "Licence",
+ "licenseNone": "Aucune",
+ "licenseOther": "Autre",
+ "type": "Type de noeud",
+ "version": "Version",
+ "versionPlaceholder": "x.y.z",
+ "keys": "Mots clés",
+ "keysPlaceholder": "Mots clés séparés par des virgules",
+ "author": "Auteur",
+ "authorPlaceholder": "Votre nom ",
+ "desc": "Description",
+ "env": {
+ "restore": "Restaurer le sous-flux par défaut",
+ "remove": "Supprimer la variable d'environnement"
+ },
+ "errors": {
+ "noNodesSelected": "Impossible de créer un sous-flux : aucun noeud sélectionné",
+ "acrossMultipleGroups": "Impossible de créer un sous-flux sur plusieurs groupes",
+ "multipleInputsToSelection": "Impossible de créer un sous-flux : plusieurs entrées pour la sélection"
+ }
+ },
+ "group": {
+ "editGroup": "Modifier le groupe : __name__",
+ "errors": {
+ "cannotCreateDiffGroups": "Impossible de créer un groupe de noeuds provenant de différents groupes",
+ "cannotAddSubflowPorts": "Impossible d'ajouter des ports à un groupe de sous-flux"
+ }
+ },
+ "editor": {
+ "configEdit": "Modifier",
+ "configAdd": "Ajouter",
+ "configUpdate": "Sauver",
+ "configDelete": "Supprimer",
+ "nodesUse": "__count__ noeud utilise cette configuration",
+ "nodesUse_plural": "__count__ noeuds utilisent cette configuration",
+ "addNewConfig": "Ajouter un nouveau noeud de configuration __type__",
+ "editNode": "Modifier le noeud __type__",
+ "editConfig": "Modifier le noeud de configuration __type__",
+ "addNewType": "Ajouter un nouveau __type__...",
+ "nodeProperties": "Propriétés du noeud",
+ "label": "Étiquette",
+ "color": "Couleur",
+ "portLabels": "Étiquettes des ports",
+ "labelInputs": "Entrées",
+ "labelOutputs": "Sorties",
+ "settingIcon": "Icône",
+ "default": "Par défaut",
+ "noDefaultLabel": "Aucune",
+ "defaultLabel": "Utiliser l'étiquette par défaut",
+ "searchIcons": "Rechercher une icône",
+ "useDefault": "Icône par défaut",
+ "description": "Description",
+ "show": "Afficher",
+ "hide": "Masquer",
+ "locale": "Sélectionner la langue",
+ "icon": "Icône",
+ "inputType": "Type d'entrée",
+ "selectType": "Sélectionner les types...",
+ "loadCredentials": "Chargement des identifiants du noeud",
+ "inputs": {
+ "input": "entrée",
+ "select": "sélection",
+ "checkbox": "case à cocher",
+ "spinner": "valeurs à défiler",
+ "none": "aucune",
+ "hidden": "masquer la propriété"
+ },
+ "types": {
+ "str": "chaîne de caractères",
+ "num": "nombre",
+ "bool": "booléen",
+ "json": "JSON",
+ "bin": "tampon",
+ "env": "variable d'environnement",
+ "cred": "identifiant"
+ },
+ "menu": {
+ "input": "entrée",
+ "select": "sélection",
+ "checkbox": "case à cocher",
+ "spinner": "valeurs à défiler",
+ "hidden": "étiquette seulement"
+ },
+ "select": {
+ "label": "Etiquette",
+ "value": "Valeur"
+ },
+ "spinner": {
+ "min": "Minimum",
+ "max": "Maximum"
+ },
+ "errors": {
+ "scopeChange": "La modification de la portée la rendra indisponible pour les noeuds d'autres flux qui l'utilisent",
+ "invalidProperties": "Propriétés invalides :",
+ "credentialLoadFailed": "Échec du chargement des identifiants du noeud"
+ }
+ },
+ "keyboard": {
+ "title": "Raccourcis clavier",
+ "keyboard": "Clavier",
+ "filterActions": "Rechercher l'action",
+ "shortcut": "Raccourci",
+ "scope": "Portée",
+ "unassigned": "Non attribué",
+ "global": "Global",
+ "workspace": "Espace de travail",
+ "editor": "Boîte de dialogue d'édition",
+ "selectAll": "Tout sélectionner",
+ "selectNone": "Ne rien sélectionner",
+ "selectAllConnected": "Sélectionner tous les éléments connectés",
+ "addRemoveNode": "Ajouter/supprimer un noeud de la sélection",
+ "editSelected": "Modifier le noeud sélectionné",
+ "deleteSelected": "Supprimer les noeuds ou le lien sélectionné(s)",
+ "deleteReconnect": "Supprimer et reconnecter",
+ "importNode": "Importer les noeuds",
+ "exportNode": "Exporter les noeuds",
+ "nudgeNode": "Déplacer les noeuds sélectionnés (1px)",
+ "moveNode": "Déplacer les noeuds sélectionnés (20px)",
+ "toggleSidebar": "Basculer la barre latérale",
+ "togglePalette": "Basculer la palette",
+ "copyNode": "Copier les noeuds sélectionnés",
+ "cutNode": "Couper les noeuds sélectionnés",
+ "pasteNode": "Coller les noeuds",
+ "copyGroupStyle": "Copier le style de groupe",
+ "pasteGroupStyle": "Coller le style de groupe",
+ "undoChange": "Annuler",
+ "redoChange": "Rétablir",
+ "searchBox": "Ouvrir le champ de recherche",
+ "managePalette": "Gérer la palette",
+ "actionList": "Liste d'action",
+ "splitWireWithLinks": "Ajouter des liens à la sélection"
+ },
+ "library": {
+ "library": "Bibliothèque",
+ "openLibrary": "Ouvrir la bibliothèque...",
+ "saveToLibrary": "Enregistrer dans la bibliothèque...",
+ "typeLibrary": "__type__ bibliothèque",
+ "unnamedType": "Innomé __type__",
+ "exportedToLibrary": "Noeuds exportés vers la bibliothèque",
+ "dialogSaveOverwrite": "Une __libraryType__ appelée __libraryName__ existe déjà. Écraser ?",
+ "invalidFilename": "Nom de fichier non valide",
+ "savedNodes": "Noeuds enregistrés",
+ "savedType": "__type__ enregistré",
+ "saveFailed": "Échec de la sauvegarde : __message__",
+ "newFolder": "Nouveau dossier",
+ "types": {
+ "local": "Local",
+ "examples": "Exemples"
+ }
+ },
+ "palette": {
+ "noInfo": "Pas d'information disponible",
+ "filter": "Rechercher le noeud",
+ "search": "Rechercher les modules",
+ "addCategory": "Ajouter un nouveau...",
+ "label": {
+ "subflows": "Sous-flux",
+ "network": "Réseau",
+ "common": "Commun",
+ "input": "Entrée",
+ "output": "Sortie",
+ "function": "Fonction",
+ "sequence": "Séquence",
+ "parser": "Analyseur",
+ "social": "Social",
+ "storage": "Stockage",
+ "analysis": "Analyse",
+ "advanced": "Avancé"
+ },
+ "actions": {
+ "collapse-all": "Réduire toutes les catégories",
+ "expand-all": "Développer toutes les catégories"
+ },
+ "event": {
+ "nodeAdded": "Noeud ajouté à la palette :",
+ "nodeAdded_plural": "Noeuds ajoutés à la palette :",
+ "nodeRemoved": "Noeud supprimé de la palette :",
+ "nodeRemoved_plural": "Noeuds supprimés de la palette :",
+ "nodeEnabled": "Noeud activé :",
+ "nodeEnabled_plural": "Noeuds activés :",
+ "nodeDisabled": "Noeud désactivé :",
+ "nodeDisabled_plural": "Noeuds désactivés :",
+ "nodeUpgraded": "Les noeuds du module __module__ ont été mis à jour vers la version __version__",
+ "unknownNodeRegistered": "Erreur lors du chargement du noeud : "
+ },
+ "editor": {
+ "title": "Gérer la palette",
+ "palette": "Palette",
+ "allCatalogs": "Tous les catalogues",
+ "times": {
+ "seconds": "il y a quelques secondes",
+ "minutes": "il y a quelques minutes",
+ "minutesV": "il y a __count__ minutes",
+ "hoursV": "il y a __count__ heure",
+ "hoursV_plural": "il y a __count__ heures",
+ "daysV": "il y a __count__ jour",
+ "daysV_plural": "il y a __count__ jours",
+ "weeksV": "il y a __count__ semaine",
+ "weeksV_plural": "il y a __count__ semaines",
+ "monthsV": "il y a __count__ mois",
+ "monthsV_plural": "il y a __count__ mois",
+ "yearsV": "il y a __count__ an",
+ "yearsV_plural": "il y a __count__ ans",
+ "yearMonthsV": "il y a __y__ an, __count__ mois",
+ "yearMonthsV_plural": "il y a __y__ an, __count__ mois",
+ "yearsMonthsV": "il y a __y__ ans, __count__ mois",
+ "yearsMonthsV_plural": "il y a __y__ ans, __count__ mois"
+ },
+ "nodeCount": "__label__ noeud",
+ "nodeCount_plural": "__label__ noeuds",
+ "moduleCount": "__count__ module disponible",
+ "moduleCount_plural": "__count__ modules disponibles",
+ "inuse": "En cours d'utilisation",
+ "enableall": "Activer tout",
+ "disableall": "Désactiver tout",
+ "enable": "Activer",
+ "disable": "Désactiver",
+ "remove": "Supprimer",
+ "update": "Mettre à jour vers __version__",
+ "updated": "Mis à jour",
+ "install": "Installer",
+ "installed": "Installé",
+ "conflict": "Conflit",
+ "conflictTip": "Ce module ne peut pas être installé car il inclut un type de noeud qui a déjà été installé
Conflits avec __module__
",
+ "loading": "Chargement des catalogues...",
+ "tab-nodes": "Noeuds",
+ "tab-install": "Installer",
+ "sort": "Trier:",
+ "sortRelevance": "Pertinence",
+ "sortAZ": "A-Z",
+ "sortRecent": "Récent",
+ "more": "+ __count__ en plus",
+ "upload": "Charger le fichier tgz du module",
+ "refresh": "Actualiser la liste des modules",
+ "errors": {
+ "catalogLoadFailed": "Échec du chargement du catalogue de noeuds.
Vérifier la console du navigateur pour plus d'informations
",
+ "installFailed": "Échec lors de l'installation : __module__
__message__
Consulter le journal pour plus d'informations
",
+ "removeFailed": "Échec lors de la suppression : __module__
__message__
Consulter le journal pour plus d'informations
",
+ "updateFailed": "Échec lors de la mise à jour : __module__
__message__
Consulter le journal pour plus d'informations
",
+ "enableFailed": "Échec lors de l'activation : __module__
__message__
Consulter le journal pour plus d'informations
",
+ "disableFailed": "Échec lors de la désactivation : __module__
__message__
Consulter le journal pour plus d'informations
"
+ },
+ "confirm": {
+ "install": {
+ "body": "Installation de '__module__'
Avant l'installation, veuiller lire la documentation du noeud. Certains noeuds ont des dépendances qui ne peuvent pas être résolues automatiquement et peuvent nécessiter un redémarrage de Node-RED.
",
+ "title": "Installer les noeuds"
+ },
+ "remove": {
+ "body": "Suppression de '__module__'
La suppression du noeud le désinstallera de Node-RED. Le noeud peut continuer à utiliser des ressources jusqu'au redémarrage de Node-RED.
",
+ "title": "Supprimer les noeuds"
+ },
+ "update": {
+ "body": "Mise à jour de '__module__'
La mise à jour du noeud nécessitera un redémarrage de Node-RED pour terminer la mise à jour. Cela doit être fait manuellement.
",
+ "title": "Mettre à jour les noeuds"
+ },
+ "cannotUpdate": {
+ "body": "Une mise à jour pour ce noeud est disponible, mais il n'est pas installé dans un emplacement que le gestionnaire de palette peut mettre à jour. Veuiller vous référer à la documentation pour savoir comment mettre à jour ce noeud."
+ },
+ "button": {
+ "review": "Ouvrir la documentation",
+ "install": "Installer",
+ "remove": "Supprimer",
+ "update": "Mettre à jour"
+ }
+ }
+ }
+ },
+ "sidebar": {
+ "info": {
+ "name": "Information",
+ "tabName": "Nom",
+ "label": "Info",
+ "node": "Noeud",
+ "type": "Type",
+ "group": "Groupe",
+ "module": "Module",
+ "id": "ID (identifiant)",
+ "status": "Statut",
+ "enabled": "Activé",
+ "disabled": "Désactivé",
+ "subflow": "Sous-flux",
+ "instances": "Instances",
+ "properties": "Propriétés",
+ "info": "Information",
+ "desc": "Description",
+ "blank": "Vide",
+ "null": "Nul",
+ "showMore": "Afficher en plus",
+ "showLess": "Afficher en moins",
+ "flow": "Flux",
+ "selection": "Sélection",
+ "nodes": "__count__ noeuds",
+ "flowDesc": "Description du flux",
+ "subflowDesc": "Description du sous-flux",
+ "nodeHelp": "Aide sur les noeuds",
+ "none": "Aucun",
+ "arrayItems": "__count__ éléments",
+ "showTips": "Vous pouvez ouvrir les astuces à partir du panneau des paramètres",
+ "outline": "Plan",
+ "empty": "Vide",
+ "globalConfig": "Noeuds de configuration globale",
+ "triggerAction": "Déclencher une action",
+ "find": "Rechercher dans l'espace de travail",
+ "copyItemUrl": "Copier l'URL de l'élément",
+ "copyURL2Clipboard": "URL copiée dans le presse-papiers",
+ "showFlow": "Afficher",
+ "hideFlow": "Masquer"
+ },
+ "help": {
+ "name": "Aide",
+ "label": "Aide",
+ "search": "Aide à la recherche",
+ "nodeHelp": "Aide sur les noeuds",
+ "showHelp": "Afficher l'aide",
+ "showInOutline": "Afficher dans les grandes lignes",
+ "showTopics": "Afficher les sujets",
+ "noHelp": "Aucune rubrique d'aide sélectionnée",
+ "changeLog": "Journal des modifications"
+ },
+ "config": {
+ "name": "Noeuds de configuration",
+ "label": "Configuration",
+ "global": "Tous les flux",
+ "none": "Aucun",
+ "subflows": "Sous-flux",
+ "flows": "Flux",
+ "filterAll": "Tout",
+ "showAllConfigNodes": "Afficher tous les noeuds de configuration",
+ "filterUnused": "Inutilisé",
+ "showAllUnusedConfigNodes": "Afficher tous les noeuds de configuration inutilisés",
+ "filtered": "__count__ caché(s)"
+ },
+ "context": {
+ "name": "Données contextuelles",
+ "label": "Contexte",
+ "none": "Aucune sélection",
+ "refresh": "Actualiser pour charger",
+ "empty": "Vide",
+ "node": "Noeud",
+ "flow": "Flux",
+ "global": "Global",
+ "deleteConfirm": "Êtes-vous sûr de vouloir supprimer cet élément ?",
+ "autoRefresh": "Rafraîchir si la sélection change",
+ "refrsh": "Rafraîchir",
+ "delete": "Supprimer"
+ },
+ "palette": {
+ "name": "Gestion des palettes",
+ "label": "Palette"
+ },
+ "project": {
+ "label": "Projet",
+ "name": "Projet",
+ "description": "Description",
+ "dependencies": "Dépendances",
+ "settings": "Paramètres",
+ "noSummaryAvailable": "Aucun résumé disponible",
+ "editDescription": "Modifier la description du projet",
+ "editDependencies": "Modifier les dépendances du projet",
+ "noDescriptionAvailable": "Pas de description disponible",
+ "editReadme": "Modifier le fichier README.md",
+ "showProjectSettings": "Afficher les paramètres du projet",
+ "projectSettings": {
+ "title": "Paramètres du projet",
+ "edit": "Modifier",
+ "none": "Vide",
+ "install": "Installer",
+ "removeFromProject": "Supprimer du projet",
+ "addToProject": "Ajouter au projet",
+ "files": "Fichiers",
+ "flow": "Flux",
+ "credentials": "Identifiants",
+ "package": "Paquets",
+ "packageCreate": "Le fichier sera créé lorsque les modifications seront enregistrées",
+ "fileNotExist": "Le fichier n'existe pas",
+ "selectFile": "Choisir le dossier",
+ "invalidEncryptionKey": "Clé de chiffrement invalide",
+ "encryptionEnabled": "Chiffrement activé",
+ "encryptionDisabled": "Chiffrement désactivé",
+ "setTheEncryptionKey": "Définir la clé de chiffrement",
+ "resetTheEncryptionKey": "Réinitialiser la clé de chiffrement",
+ "changeTheEncryptionKey": "Changer la clé de chiffrement",
+ "currentKey": "Clé actuelle",
+ "newKey": "Nouvelle clé",
+ "credentialsAlert": "Cela supprimera tous les identifiants existants",
+ "versionControl": "Contrôle de version",
+ "branches": "Branches",
+ "noBranches": "Pas de branche",
+ "deleteConfirm": "Êtes-vous sûr de vouloir supprimer la branche locale '__name__' ? Ça ne peut pas être annulé.",
+ "unmergedConfirm": "La branche locale '__name__' contient des modifications non fusionnées qui seront perdues. Etes-vous sûr de vouloir la supprimer?",
+ "deleteUnmergedBranch": "Supprimer la branche non fusionnée",
+ "gitRemotes": "Git distant",
+ "addRemote": "Ajout distant",
+ "addRemote2": "Ajout distant",
+ "remoteName": "Nom distant",
+ "nameRule": "Doit contenir uniquement A-Z 0-9 _ -",
+ "url": "URL",
+ "urlRule": "https://, ssh:// ou file://",
+ "urlRule2": "Ne pas inclure le nom d'utilisateur/mot de passe dans l'URL",
+ "noRemotes": "Pas distant",
+ "deleteRemoteConfrim": "Êtes-vous sûr de vouloir supprimer '__name__' distant ?",
+ "deleteRemote": "Supprimer distant"
+ },
+ "userSettings": {
+ "committerDetail": "Détails de l'auteur de la validation (commit)",
+ "committerTip": "Laisser vide pour utiliser la valeur par défaut du système",
+ "userName": "Nom d'utilisateur",
+ "email": "e-mail",
+ "workflow": "Flux de travail",
+ "workfowTip": "Choisisser votre flux de travail Git préféré",
+ "workflowManual": "Manuel",
+ "workflowManualTip": "Toutes les modifications doivent être validées manuellement dans la barre latérale 'historique'",
+ "workflowAuto": "Automatique",
+ "workflowAutoTip": "Les modifications sont validées automatiquement à chaque déploiement",
+ "sshKeys": "Clés SSH",
+ "sshKeysTip": "Vous permet de créer des connexions sécurisées aux référentiels Git distants.",
+ "add": "Ajouter une clé",
+ "addSshKey": "Ajouter une clé SSH",
+ "addSshKeyTip": "Générer une nouvelle paire de clés publique/privée",
+ "name": "Nom",
+ "nameRule": "Doit contenir uniquement A-Z 0-9 _ -",
+ "passphrase": "Phrase de mot de passe",
+ "passphraseShort": "Phrase de mot de passe trop courte",
+ "optional": "Facultatif",
+ "cancel": "Annuler",
+ "generate": "Générer une clé",
+ "noSshKeys": "Pas de clé SSH",
+ "copyPublicKey": "Copier la clé publique dans le presse-papiers",
+ "delete": "Supprimer une clé",
+ "gitConfig": "Configuration Git",
+ "deleteConfirm": "Êtes-vous sûr de vouloir supprimer la clé SSH __nom__ ? Ça ne peut pas être annulé."
+ },
+ "versionControl": {
+ "unstagedChanges": "Abandon des changements",
+ "stagedChanges": "Changement mis en place",
+ "unstageChange": "Ne pas mettre en place le changement",
+ "stageChange": "Mettre en place le changement",
+ "unstageAllChange": "Ne pas mettre en place tous les changements",
+ "stageAllChange": "Mettre en place tous les changements",
+ "commitChanges": "Valider les changements",
+ "resolveConflicts": "Résoudre les conflits",
+ "head": "En-tête",
+ "staged": "Mis en place",
+ "unstaged": "Non mis en place",
+ "local": "Local",
+ "remote": "Distant",
+ "revert": "Voulez-vous vraiment annuler les modifications apportées à '__file__' ? Ça ne peut pas être annulé.",
+ "revertChanges": "Rétablir les changements",
+ "localChanges": "Modifications locales",
+ "none": "Vide",
+ "conflictResolve": "Tous les conflits ont été résolus. Valider les modifications pour terminer la fusion.",
+ "localFiles": "Fichiers locaux",
+ "all": "Tout",
+ "unmergedChanges": "Modifications non fusionnées",
+ "abortMerge": "Abandonner la fusion",
+ "commit": "Valider",
+ "changeToCommit": "Modifications à valider",
+ "commitPlaceholder": "Entrer votre message de validation",
+ "cancelCapital": "Annuler",
+ "commitCapital": "Valider",
+ "commitHistory": "Historique des validations",
+ "branch": "Branche :",
+ "moreCommits": "Davantage de validations",
+ "changeLocalBranch": "Changer de branche locale",
+ "createBranchPlaceholder": "Trouver où créer une branche",
+ "upstream": "en amont",
+ "localOverwrite": "Vous avez des modifications locales qui seraient écrasées en changeant la branche. Vous devez d'abord valider ou annuler ces modifications.",
+ "manageRemoteBranch": "Gérer une branche distante",
+ "unableToAccess": "Impossible d'accéder au référentiel distant",
+ "retry": "Recommencer",
+ "setUpstreamBranch": "Définir comme branche en amont",
+ "createRemoteBranchPlaceholder": "Trouver ou créer une branche distante",
+ "trackedUpstreamBranch": "La branche créée sera définie comme la branche en amont suivie.",
+ "selectUpstreamBranch": "La branche sera créée. Sélectionner ci-dessous pour la définir comme branche en amont suivie.",
+ "pushFailed": "L'envoi a échoué car la branche a des validations plus récentes. Tirer et fusionner d'abord, puis envoyer à nouveau.",
+ "push": "Envoyer",
+ "pull": "Tirer",
+ "unablePull": "Impossible d'extraire les modifications à distance ; vos modifications locales non mises en place seraient écrasées.
Valider vos modifications et réessayer.
",
+ "showUnstagedChanges": "Afficher les modifications non mise en place",
+ "connectionFailed": "Impossible de se connecter au référentiel distant: ",
+ "pullUnrelatedHistory": "Le réferentiel distant a un historique de validations sans rapport.
Êtes-vous sûr de vouloir extraire les modifications dans votre référentiel local ?
",
+ "pullChanges": "Tirer les changements",
+ "history": "Historique",
+ "projectHistory": "Historique du projet",
+ "daysAgo": "il y a __count__ jour",
+ "daysAgo_plural": "il y a __count__ jours",
+ "hoursAgo": "il y a __count__ heure",
+ "hoursAgo_plural": "il y a __count__ heures",
+ "minsAgo": "il y a __count__ minute",
+ "minsAgo_plural": "il y a __count__ minutes",
+ "secondsAgo": "Il y a quelques instants",
+ "notTracking": "Votre branche locale ne suit pas actuellement une branche distante.",
+ "statusUnmergedChanged": "Votre référentiel contient des modifications non fusionnées. Vous devez résoudre les conflits et valider le résultat.",
+ "repositoryUpToDate": "Votre référentiel est à jour.",
+ "commitsAhead": "Votre référentiel a __count__ validation d'avance sur le référentiel distant. Vous pouvez pousser cette validation maintenant.",
+ "commitsAhead_plural": "Votre référentiel a __count__ validations d'avance sur le référentiel distant. Vous pouvez pousser ces validations maintenant.",
+ "commitsBehind": "Votre référentiel a __count__ validation de retard sur le référentiel distant. Vous pouvez pousser cette validation maintenant.",
+ "commitsBehind_plural": "Votre référentiel a __count__ validations de retard sur le référentiel distant. Vous pouvez pousser ces validations maintenant.",
+ "commitsAheadAndBehind1": "Votre référentiel a __count__ validation derrière et ",
+ "commitsAheadAndBehind1_plural": "Votre référentiel est __count__ validations derrière et ",
+ "commitsAheadAndBehind2": "__count__ validation avant le référentiel distant. ",
+ "validationsAheadAndBehind2_plural": "__count__ commits avant le référentiel distant. ",
+ "commitsAheadAndBehind3": "Vous devez retirer la validation à distance avant de pousser la modification.",
+ "commitsAheadAndBehind3_plural": "Vous devez retirer les validations à distance avant de pousser les modifications.",
+ "refreshCommitHistory": "Actualiser l'historique des validations",
+ "refreshChanges": "Actualiser les modifications"
+ }
+ }
+ },
+ "typedInput": {
+ "type": {
+ "str": "chaîne de caractères",
+ "num": "nombre",
+ "re": "expression régulière",
+ "bool": "booléen",
+ "json": "JSON",
+ "bin": "tampon",
+ "date": "horodatage",
+ "jsonata": "expression",
+ "env": "variable d'environnement",
+ "cred": "identifiant"
+ }
+ },
+ "editableList": {
+ "add": "Ajouter",
+ "addTitle": "Ajouter un élément"
+ },
+ "search": {
+ "history": "Historique des recherches",
+ "clear": "Tout effacer",
+ "empty": "Aucun résultat",
+ "addNode": "Ajouter un noeud...",
+ "options": {
+ "configNodes": "Noeuds de configuration",
+ "unusedConfigNodes": "Noeuds de configuration inutilisés",
+ "invalidNodes": "Noeuds invalides",
+ "uknownNodes": "Noeuds inconnus",
+ "unusedSubflows": "Sous-flux inutilisés",
+ "hiddenFlows": "Flux cachés",
+ "modifiedNodes": "Noeuds et flux modifiés",
+ "thisFlow": "Flux courant"
+ }
+ },
+ "expressionEditor": {
+ "functions": "Fonctions",
+ "functionReference": "Fonction de référence",
+ "insert": "Insérer",
+ "title": "Éditeur d'expressions JSONata",
+ "test": "Test",
+ "data": "Exemple de message",
+ "result": "Résultat",
+ "format": "Format",
+ "compatMode": "Mode de compatibilité activé",
+ "compatModeDesc": "Mode de compatibilité JSONata L'expression actuelle semble toujours faire référence à msg
et sera donc évaluée en mode de compatibilité. Veuiller mettre à jour l'expression pour ne pas utiliser msg
car ce mode sera supprimé à l'avenir.
Lorsque la prise en charge de JSONata a été ajoutée pour la première fois à Node-RED, il fallait que l'expression référencie l'objet msg
. Par exemple, msg.payload
serait utilisé pour accéder à la charge utile.
Cela n'est plus nécessaire car l'expression sera évaluée directement par rapport au message. Pour accéder à la charge utile, l'expression doit être simplement charge utile
.
",
+ "noMatch": "Aucun résultat correspondant",
+ "errors": {
+ "invalid-expr": "Expression JSONata non valide :\n __message__",
+ "invalid-msg": "Exemple de message JSON non valide :\n __message__",
+ "context-unsupported": "Impossible de tester les fonctions de contexte\n $flowContext ou $globalContext",
+ "env-unsupported": "Impossible de tester la fonction $env",
+ "moment-unsupported": "Impossible de tester la fonction $moment",
+ "clone-unsupported": "Impossible de tester la fonction $clone",
+ "eval": "Erreur lors de l'évaluation de l'expression :\n __message__"
+ }
+ },
+ "monaco": {
+ "setTheme": "Définir le thème"
+ },
+ "jsEditor": {
+ "title": "Éditeur JavaScript"
+ },
+ "textEditor": {
+ "title": "Éditeur de texte"
+ },
+ "jsonEditor": {
+ "title": "Éditeur JSON",
+ "format": "Format JSON",
+ "rawMode": "Modifier JSON",
+ "uiMode": "Afficher l'éditeur",
+ "rawMode-readonly": "JSON",
+ "uiMode-readonly": "Visualiser",
+ "insertAbove": "Insérer ci-dessus",
+ "insertBelow": "Insérer ci-dessous",
+ "addItem": "Ajouter un élément",
+ "copyPath": "Copier le chemin vers l'élément",
+ "expandItems": "Développer les éléments",
+ "collapseItems": "Réduire les éléments",
+ "duplicate": "Dupliquer",
+ "error": {
+ "invalidJSON": "JSON invalide : "
+ }
+ },
+ "markdownEditor": {
+ "title": "Éditeur Markdown",
+ "expand": "Développer",
+ "format": "Formaté avec Markdown",
+ "heading1": "Rubrique 1",
+ "heading2": "Rubrique 2",
+ "heading3": "Rubrique 3",
+ "bold": "Gras",
+ "italic": "Italic",
+ "code": "Code",
+ "ordered-list": "Liste ordonnée",
+ "unordered-list": "Liste non ordonnée",
+ "quote": "Citation",
+ "link": "Lien",
+ "horizontal-rule": "Règle horizontale",
+ "toggle-preview": "Basculer l'aperçu",
+ "mermaid": {
+ "summary": "Diagramme Mermaid"
+ }
+ },
+ "bufferEditor": {
+ "title": "Éditeur de tampon",
+ "modeString": "Gérer comme une chaîne UTF-8",
+ "modeArray": "Gérer en tant que tableau JSON",
+ "modeDesc": "Éditeur de tampon Le type de tampon est stocké sous la forme d'un tableau JSON de valeurs d'octets. L'éditeur tentera d'analyser la valeur saisie en tant que tableau JSON. S'il ne s'agit pas d'un JSON valide, il sera traité comme une chaîne UTF-8 et converti en un tableau de points de code de caractères individuels.
Par exemple, une valeur de Hello World
sera converti en tableau JSON :
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]
"
+ },
+ "projects": {
+ "config-git": "Configurer le client Git",
+ "welcome": {
+ "hello": "Bonjour! Nous avons introduit des 'projets' dans Node-RED.",
+ "desc0": "Il s'agit d'une nouvelle façon pour vous de gérer vos fichiers de flux, cela inclut le contrôle de version de vos flux.",
+ "desc1": "Pour commencer, vous pouvez créer votre premier projet ou cloner un projet existant à partir d'un référentiel git.",
+ "desc2": "Si vous n'êtes pas sûr, vous pouvez ignorer ceci pour le moment. Vous pourrez toujours créer votre premier projet à partir du menu 'Projets' à tout moment.",
+ "create": "Créer un projet",
+ "clone": "Cloner un référentiel",
+ "openExistingProject": "Ouvrir un projet existant",
+ "not-right-now": "Pas maintenant"
+ },
+ "git-config": {
+ "setup": "Configurer votre version du client Git",
+ "desc0": "Node-RED utilise l'outil open source Git pour le contrôle de version. Il suit les modifications apportées à vos fichiers de projet et vous permet de les transférer vers des référentiels distants.",
+ "desc1": "Lorsque vous validez un ensemble de modifications, Git enregistre l'auteur qui a effectué les modifications avec un nom d'utilisateur et une adresse e-mail. Le nom d'utilisateur peut être ce que vous voulez - il n'est pas nécessaire que ce soit votre vrai nom.",
+ "desc2": "Votre client Git est déjà configuré avec les détails ci-dessous.",
+ "desc3": "Vous pouvez modifier ces paramètres ultérieurement sous l'onglet 'Configuration Git' de la boîte de dialogue des paramètres.",
+ "username": "Nom d'utilisateur",
+ "email": "e-mail"
+ },
+ "project-details": {
+ "create": "Créer votre projet",
+ "desc0": "Un projet est maintenu en tant que référentiel Git. Il est beaucoup plus facile de partager vos flux et de collaborer avec les autres grâce à ce référentiel.",
+ "desc1": "Vous pouvez créer plusieurs projets et basculer rapidement entre eux depuis l'éditeur.",
+ "desc2": "Pour commencer, votre projet a besoin d'un nom et facultativement d'une description.",
+ "already-exists": "Le projet existe déjà",
+ "must-contain": "Doit contenir uniquement A-Z 0-9 _ -",
+ "project-name": "Nom du projet",
+ "desc": "Description",
+ "opt": "Facultatif"
+ },
+ "clone-project": {
+ "clone": "Cloner un projet",
+ "desc0": "Si vous avez déjà un dépôt Git contenant un projet, vous pouvez le cloner pour commencer.",
+ "already-exists": "Le projet existe déjà",
+ "must-contain": "Doit contenir uniquement A-Z 0-9 _ -",
+ "project-name": "Nom du projet",
+ "no-info-in-url": "Ne pas inclure le nom d'utilisateur/mot de passe dans l'URL",
+ "git-url": "URL du dépôt Git",
+ "protocols": "https://, ssh:// ou file://",
+ "auth-failed": "L'authentification a échoué",
+ "username": "Nom d'utilisateur",
+ "passwd": "Mot de passe",
+ "ssh-key": "Clé SSH",
+ "passphrase": "Phrase de mot de passe",
+ "ssh-key-desc": "Avant de pouvoir cloner un référentiel avec ssh, vous devez ajouter une clé SSH pour y accéder.",
+ "ssh-key-add": "Ajouter une clé ssh",
+ "credential-key": "Clé de chiffrement des identifiants",
+ "cant-get-ssh-key": "Erreur! Impossible d'obtenir le chemin de la clé SSH sélectionnée.",
+ "already-exists2": "Existe déjà",
+ "git-error": "Erreur git",
+ "connection-failed": "La connexion a échoué",
+ "not-git-repo": "Ce n'est pas un dépôt Git",
+ "repo-not-found": "Référentiel introuvable"
+ },
+ "default-files": {
+ "create": "Créer vos fichiers de projet",
+ "desc0": "Un projet contient vos fichiers de flux, un fichier README et un fichier package.json.",
+ "desc1": "Il peut contenir tous les autres fichiers que vous souhaitez conserver dans le référentiel Git.",
+ "desc2": "Vos fichiers de flux et identifiants existants seront copiés dans le projet.",
+ "flow-file": "Fichier de flux",
+ "credentials-file": "Fichier d'identifiants"
+ },
+ "encryption-config": {
+ "setup": "Configuration du chiffrage de votre fichier d'informations d'identification",
+ "desc0": "Votre fichier d'informations d'identification de flux peut être chiffré pour sécuriser son contenu.",
+ "desc1": "Si vous souhaitez stocker ces identifiants dans un référentiel Git public, vous devez les chiffrer en fournissant une phrase clé secrète.",
+ "desc2": "Votre fichier d'identifiants de flux n'est actuellement pas chiffré.",
+ "desc3": "Cela signifie que son contenu, tel que les mots de passe et les jetons d'accès, peut être lu par toute personne ayant accès au fichier.",
+ "desc4": "Si vous souhaitez stocker ces identifiants dans un référentiel Git public, vous devez les chiffrer en fournissant une phrase clé secrète.",
+ "desc5": "Votre fichier contenant les identifiants de flux est actuellement chiffré à l'aide de la propriété credentialSecret de votre fichier de paramètres comme clé.",
+ "desc6": "Votre fichier contenant les identifiants de flux est actuellement chiffré à l'aide d'une clé générée par le système. Vous devez fournir une nouvelle clé secrète pour ce projet.",
+ "desc7": "La clé sera stockée séparément de vos fichiers de projet. Vous devrez fournir la clé pour utiliser ce projet dans une autre instance de Node-RED.",
+ "credentials": "Identifiants",
+ "enable": "Activer le chiffrement",
+ "disable": "Désactiver le chiffrement",
+ "disabled": "Désactivé",
+ "copy": "Remplacer la clé existante",
+ "use-custom": "Utiliser la clé personnalisée",
+ "desc8": "Le fichier contenant les identifiants ne sera pas crypté et son contenu sera facilement lisible",
+ "create-project-files": "Créer des fichiers de projet",
+ "create-project": "Créer un projet",
+ "already-exists": "Existe déjà",
+ "git-error": "Erreur Git",
+ "git-auth-error": "Erreur d'authentification Git"
+ },
+ "create-success": {
+ "success": "Vous avez créé avec succès votre premier projet !",
+ "desc0": "Vous pouvez maintenant continuer à utiliser Node-RED comme vous l'avez toujours fait.",
+ "desc1": "L'onglet 'info' dans la barre latérale vous montre quel est votre projet actif actuel. Le bouton à côté du nom peut être utilisé pour accéder à la vue des paramètres du projet.",
+ "desc2": "L'onglet 'historique' dans la barre latérale peut être utilisé pour afficher les fichiers qui ont changé dans votre projet et pour les valider. Il vous montre un historique complet de vos validations (commits) et vous permet de pousser vos modifications vers un référentiel distant."
+ },
+ "create": {
+ "projects": "Projets",
+ "already-exists": "Le projet existe déjà",
+ "must-contain": "Doit contenir uniquement A-Z 0-9 _ -",
+ "no-info-in-url": "Ne pas inclure le nom d'utilisateur/mot de passe dans l'URL",
+ "open": "Projet ouvert",
+ "create": "Créer un projet",
+ "clone": "Cloner un référentiel",
+ "project-name": "Nom du projet",
+ "desc": "Description",
+ "opt": "Facultatif",
+ "flow-file": "Fichier de flux",
+ "credentials": "Identifiants",
+ "enable-encryption": "Activer le chiffrement",
+ "disable-encryption": "Désactiver le chiffrement",
+ "encryption-key": "Clé de chiffrement",
+ "desc0": "Une phrase pour sécuriser vos identifiants",
+ "desc1": "Le fichier contenant les identifiants ne sera pas crypté et son contenu sera facilement lisible",
+ "git-url": "URL du dépôt Git",
+ "protocols": "https://, ssh:// ou file://",
+ "auth-failed": "L'authentification a échoué",
+ "username": "Nom d'utilisateur",
+ "password": "Mot de passe",
+ "ssh-key": "Clé SSH",
+ "passphrase": "Phrase de mot de passe",
+ "desc2": "Avant de pouvoir cloner un référentiel sur ssh, vous devez ajouter une clé SSH pour y accéder.",
+ "add-ssh-key": "Ajouter une clé ssh",
+ "credentials-encryption-key": "Clé de chiffrement des identifiants",
+ "already-exists-2": "Existe déjà",
+ "git-error": "Erreur git",
+ "con-failed": "La connexion a échoué",
+ "not-git": "Ce n'est pas un dépôt git",
+ "no-resource": "Référentiel introuvable",
+ "cant-get-ssh-key-path": "Erreur! Impossible d'obtenir le chemin de la clé SSH sélectionnée.",
+ "unexpected_error": "Erreur inattendue",
+ "clearContext": "Effacer le contexte lors du changement de projet"
+ },
+ "delete": {
+ "confirm": "Voulez-vous vraiment supprimer ce projet ?"
+ },
+ "create-project-list": {
+ "search": "Rechercher vos projets",
+ "current": "Actuel"
+ },
+ "require-clean": {
+ "confirm": "Vous avez des modifications non déployées qui seront perdues.
Voulez-vous continuer ?
"
+ },
+ "send-req": {
+ "auth-req": "Authentification requise pour le référentiel",
+ "username": "Nom d'utilisateur",
+ "password": "Mot de passe",
+ "passphrase": "Phrase de mot de passe",
+ "retry": "Recommencer",
+ "update-failed": "La mise à jour a échoué",
+ "unhandled": "Code d'erreur non géré",
+ "host-key-verify-failed": "La vérification de la clé d'hôte a échoué.
La clé d'hôte du référentiel n'a pas pu être vérifiée. Veuillez mettre à jour votre fichier known_hosts
et réessayer.
"
+ },
+ "create-branch-list": {
+ "invalid": "Branche invalide",
+ "create": "Créer une branche",
+ "current": "Actuelle"
+ },
+ "create-default-file-set": {
+ "no-active": "Impossible de créer un ensemble de fichiers par défaut sans projet actif",
+ "no-empty": "Impossible de créer un ensemble de fichiers par défaut sur un projet non vide",
+ "git-error": "Erreur Git"
+ },
+ "errors": {
+ "no-username-email": "Votre client Git n'est pas configuré avec un nom d'utilisateur/e-mail.",
+ "unexpected": "Une erreur inattendue est apparue",
+ "code": "Code"
+ }
+ },
+ "editor-tab": {
+ "properties": "Propriétés",
+ "envProperties": "Variables d'environnement",
+ "module": "Propriétés des modules",
+ "description": "Description",
+ "appearance": "Apparence",
+ "preview": "Aperçu de l'interface utilisateur",
+ "defaultValue": "Valeur par défaut"
+ },
+ "tourGuide": {
+ "takeATour": "Aperçu",
+ "start": "Commencer",
+ "next": "Suivant",
+ "welcomeTours": "Visite de bienvenue"
+ },
+ "diagnostics": {
+ "title": "Information système"
+ },
+ "languages": {
+ "de": "Allemand",
+ "en-US": "Anglais",
+ "fr": "Français",
+ "ja": "Japonais",
+ "ko": "Coréen",
+ "pt-BR": "Portugais brésilien",
+ "ru": "Russe",
+ "zh-CN": "Chinois (Simplifié)",
+ "zh-TW": "Chinois (Traditionnel)"
+ },
+ "validator": {
+ "errors": {
+ "invalid-json": "Données JSON invalides : __error__",
+ "invalid-prop": "Expression de propriété non valide",
+ "invalid-num": "Numéro invalide",
+ "invalid-regexp": "Modèle d'entrée non valide",
+ "invalid-regex-prop": "__prop__: modèle d'entrée non valide",
+ "missing-required-prop": "__prop__: valeur de la propriété manquante",
+ "invalid-config": "__prop__: noeud de configuration invalide",
+ "missing-config": "__prop__: noeud de configuration manquant",
+ "validation-error": "__prop__: erreur de validation: __node__, __id__: __error__"
+ }
+ },
+ "contextMenu": {
+ "insert": "Insérer",
+ "node": "Noeud",
+ "junction": "Jonction",
+ "linkNodes": "Liens entre les noeuds"
+ },
+ "env-var": {
+ "environment": "Environment",
+ "header": "Variables d'environnement globales",
+ "revert": "Rétablir"
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/fr/infotips.json b/packages/node_modules/@node-red/editor-client/locales/fr/infotips.json
new file mode 100644
index 000000000..449be751b
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/locales/fr/infotips.json
@@ -0,0 +1,23 @@
+{
+ "info": {
+ "tip0": "Vous pouvez supprimer les noeuds ou les liens sélectionnés avec {{core:delete-selection}}",
+ "tip1": "Rechercher des noeuds à l'aide de {{core:search}}",
+ "tip2": "{{core:toggle-sidebar}} basculera l'affichage de cette barre latérale",
+ "tip3": "Vous pouvez gérer votre palette de noeuds avec {{core:manage-palette}}",
+ "tip4": "Vos noeuds de configuration de flux sont répertoriés dans le panneau de la barre latérale. Ils sont accessibles depuis le menu ou avec {{core:show-config-tab}}",
+ "tip5": "Activer ou désactiver ces conseils à partir de l'option dans les paramètres",
+ "tip6": "Déplacer les noeuds sélectionnés à l'aide des touches [gauche] [haut] [bas] et [droite]. Maintenir la touche [shift] enfoncée pour les pousser plus loin",
+ "tip7": "Faire glisser un noeud sur un fil le raccordera au lien",
+ "tip8": "Exporter les noeuds sélectionnés, ou l'onglet actuel avec {{core:show-export-dialog}}",
+ "tip9": "Importer un flux en faisant glisser son JSON dans l'éditeur, ou avec {{core:show-import-dialog}}",
+ "tip10": "[majuscule] [clic] et faites glisser sur un port de noeud pour déplacer tous les fils attachés ou seulement celui sélectionné",
+ "tip11": "Afficher l'onglet Infos avec {{core:show-info-tab}} ou l'onglet Débogage avec {{core:show-debug-tab}}",
+ "tip12": "[ctrl] [clic] dans l'espace de travail pour ouvrir la boîte de dialogue d'ajout rapide",
+ "tip13": "Maintenir la touche [ctrl] enfoncée lorsque vous [cliquez] sur un port de noeud pour activer le câblage rapide",
+ "tip14": "Maintenir la touche [shift] enfoncée lorsque vous [cliquez] sur un noeud pour sélectionner également tous ses noeuds connectés",
+ "tip15": "Maintenir la touche [ctrl] enfoncée lorsque vous [cliquez] sur un noeud pour l'ajouter ou le supprimer de la sélection actuelle",
+ "tip16": "Changer d'onglet de flux avec {{core:show-previous-tab}} et {{core:show-next-tab}}",
+ "tip17": "Vous pouvez confirmer vos modifications dans le panneau d'édition du noeud avec {{core:confirm-edit-tray}} ou les annuler avec {{core:cancel-edit-tray}}",
+ "tip18": "Appuyer sur {{core:edit-selected-node}} modifiera le premier noeud de la sélection actuelle"
+ }
+}
\ No newline at end of file
diff --git a/packages/node_modules/@node-red/editor-client/locales/fr/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/fr/jsonata.json
new file mode 100644
index 000000000..fca57953a
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/locales/fr/jsonata.json
@@ -0,0 +1,278 @@
+{
+ "$string": {
+ "args": "arg[, prettify]",
+ "desc": "Convertit le paramètre `arg` en une chaîne de caractères en utilisant les règles de typage suivantes :\n\n - Les chaînes de caractères sont inchangées\n - Les fonctions sont converties en une chaîne vide\n - L'infini numérique et NaN renvoient une erreur car ils ne peuvent pas être représentés comme un Numéro JSON\n - Toutes les autres valeurs sont converties en une chaîne JSON à l'aide de la fonction `JSON.stringify`. Si `prettify` est vrai, alors le JSON \"prettified\" est produit. c'est-à-dire une ligne par champ et les lignes seront en retrait en fonction de la profondeur du champ."
+ },
+ "$length": {
+ "args": "str",
+ "desc": "Renvoie le nombre de caractères dans la chaîne `str`. Une erreur est renvoyée si `str` n'est pas une chaîne de caractères."
+ },
+ "$substring": {
+ "args": "str, start[, length]",
+ "desc": "Renvoie une chaîne contenant les caractères du premier paramètre `str` commençant à la position `start` (pas de décalage). Si `length` est spécifié, alors la sous-chaîne contiendra un maximum de caractères `length`. Si `start` est négatif alors il indique le nombre de caractères à partir de la fin de `str`."
+ },
+ "$substringBefore": {
+ "args": "str, chars",
+ "desc": "Renvoie la sous-chaîne avant la première occurrence de la séquence de caractères `chars` dans `str`. Si `str` ne contient pas `chars`, alors il renvoie `str`."
+ },
+ "$substringAfter": {
+ "args": "str, chars",
+ "desc": "Renvoie la sous-chaîne après la première occurrence de la séquence de caractères `chars` dans `str`. Si `str` ne contient pas `chars`, alors il renvoie `str`."
+ },
+ "$uppercase": {
+ "args": "str",
+ "desc": "Renvoie une chaîne avec tous les caractères de `str` convertis en majuscules."
+ },
+ "$lowercase": {
+ "args": "str",
+ "desc": "Renvoie une chaîne avec tous les caractères de `str` convertis en minuscules."
+ },
+ "$trim": {
+ "args": "str",
+ "desc": "Normalise et supprime tous les caractères d'espacement dans `str` en appliquant les étapes suivantes :\n\n - Toutes les tabulations, retours à la ligne et sauts de ligne sont remplacés par des espaces.\n- Les séquences contiguës d'espaces sont réduites à un seul espace.\n- Les espaces de fin et de début sont supprimés.\n\n Si `str` n'est pas spécifié (c'est-à-dire que cette fonction est invoquée sans argument), alors la valeur de contexte est utilisée comme valeur de `str`. Une erreur est renvoyée si `str` n'est pas une chaîne."
+ },
+ "$contains": {
+ "args": "str, pattern",
+ "desc": "Renvoie `true` si `str` correspond à `pattern`, sinon il renvoie `false`. Si `str` n'est pas spécifié (c'est-à-dire que cette fonction est invoquée avec un argument), alors la valeur de contexte est utilisée comme valeur de `str`. Le paramètre `pattern` peut être une chaîne ou une expression régulière."
+ },
+ "$split": {
+ "args": "str[, separator][, limit]",
+ "desc": "Divise le paramètre `str` en un tableau de sous-chaînes. C'est une erreur si `str` n'est pas une chaîne. Le paramètre facultatif `separator` spécifie les caractères à l'intérieur de `str` à propos desquels il doit être divisé en chaîne ou en expression régulière. Si `separator` n'est pas spécifié, la chaîne vide est supposée et `str` sera divisé en un tableau de caractères uniques. C'est une erreur si `separator` n'est pas une chaîne. Le paramètre facultatif `limit` est un nombre qui spécifie le nombre maximum de sous-chaînes à inclure dans le tableau résultant. Toutes les sous-chaînes supplémentaires sont ignorées. Si `limit` n'est pas spécifié, alors `str` est entièrement divisé sans limite à la taille du tableau résultant. C'est une erreur si `limit` n'est pas un nombre non négatif."
+ },
+ "$join": {
+ "args": "array[, separator]",
+ "desc": "Joint un tableau de chaînes de composants en une seule chaîne concaténée, chaque chaîne de composants étant séparée par le paramètre facultatif `separator`. C'est une erreur si l'entrée `array` contient un élément qui n'est pas une chaîne. Si `séparateur` n'est pas spécifié, il est supposé être la chaîne vide, c'est-à-dire qu'il n'y a pas de `séparateur` entre les chaînes de composants. C'est une erreur si `separator` n'est pas une chaîne."
+ },
+ "$match": {
+ "args": "str, pattern [, limit]",
+ "desc": "Applique la chaîne `str` à l'expression régulière `pattern` et renvoie un tableau d'objets, chaque objet contenant des informations sur chaque occurrence d'une correspondance dans `str`."
+ },
+ "$replace": {
+ "args": "str, pattern, replacement [, limit]",
+ "desc": "Trouve les occurrences de `pattern` dans `str` et les remplace par `replacement`.\n\nLe paramètre facultatif `limit` est le nombre maximum de remplacements."
+ },
+ "$now": {
+ "args": "$[picture [, timezone]]",
+ "desc": "Génère un horodatage au format compatible ISO 8601 et le renvoie sous forme de chaîne. Si les paramètres optionnels d'image et de fuseau horaire sont fournis, alors l'horodatage actuel est formaté comme décrit par la fonction `$fromMillis()`"
+ },
+ "$base64encode": {
+ "args": "string",
+ "desc": "Convertit une chaîne ASCII en une représentation en base 64. Chaque caractère de la chaîne est traité comme un octet de données binaires. Cela nécessite que tous les caractères de la chaîne se trouvent dans la plage 0x00 à 0xFF, qui inclut tous les caractères des chaînes encodées en URI. Les caractères Unicode en dehors de cette plage ne sont pas pris en charge."
+ },
+ "$base64decode": {
+ "args": "string",
+ "desc": "Convertit les octets encodés en base 64 en une chaîne, à l'aide d'une page de codes Unicode UTF-8."
+ },
+ "$number": {
+ "args": "arg",
+ "desc": "Convertit le paramètre `arg` en un nombre en utilisant les règles de conversion suivantes :\n\n - Les nombres sont inchangés\n - Les chaînes qui contiennent une séquence de caractères représentant un nombre JSON légal sont converties en ce nombre\n - Toutes les autres valeurs provoquer l'envoi d'une erreur."
+ },
+ "$abs": {
+ "args": "number",
+ "desc": "Renvoie la valeur absolue du paramètre `nombre`."
+ },
+ "$floor": {
+ "args": "number",
+ "desc": "Renvoie la valeur de `number` arrondie à l'entier le plus proche inférieur ou égal à `number`."
+ },
+ "$ceil": {
+ "args": "number",
+ "desc": "Renvoie la valeur de `number` arrondie à l'entier le plus proche supérieur ou égal à `number`."
+ },
+ "$round": {
+ "args": "number [, precision]",
+ "desc": "Renvoie la valeur du paramètre `number` arrondie au nombre de décimales spécifié par le paramètre facultatif `precision`."
+ },
+ "$power": {
+ "args": "base, exponent",
+ "desc": "Renvoie la valeur de `base` élevée à la puissance de `exponent`."
+ },
+ "$sqrt": {
+ "args": "number",
+ "desc": "Renvoie la racine carrée de la valeur du paramètre `number`."
+ },
+ "$random": {
+ "args": "",
+ "desc": "Renvoie un nombre pseudo-aléatoire supérieur ou égal à zéro et inférieur à un."
+ },
+ "$millis": {
+ "args": "",
+ "desc": "Renvoie le nombre de millisecondes depuis l'époque Unix (1er janvier 1970 UTC) sous forme de nombre. Tous les appels de `$millis()` dans une évaluation d'une expression renverront toutes la même valeur."
+ },
+ "$sum": {
+ "args": "array",
+ "desc": "Renvoie la somme arithmétique d'un `tableau` de nombres. C'est une erreur si l'entrée `array` contient un élément qui n'est pas un nombre."
+ },
+ "$max": {
+ "args": "array",
+ "desc": "Renvoie le nombre maximal dans un `tableau` de nombres. C'est une erreur si l'entrée `array` contient un élément qui n'est pas un nombre."
+ },
+ "$min": {
+ "args": "array",
+ "desc": "Renvoie le nombre minimum dans un `tableau` de nombres. C'est une erreur si l'entrée `array` contient un élément qui n'est pas un nombre."
+ },
+ "$average": {
+ "args": "array",
+ "desc": "Renvoie la valeur moyenne d'un `tableau` de nombres. C'est une erreur si l'entrée `array` contient un élément qui n'est pas un nombre."
+ },
+ "$boolean": {
+ "args": "arg",
+ "desc": "Transforme l'argument en booléen en utilisant les règles suivantes :\n\n - `Boolean` : inchangé\n - `string` : vide : `false`\n - `string` : non vide : `true`\n - `number` : `0` : `false`\n - `number` : non nul : `true`\n - `null` : `false`\n - `array` : vide : `false`\n - `array` : contient un membre qui convertit en `true` : `true`\n - `array` : tous les membres sont transformés en `false` : `false`\n - `object` : vide : `false`\n - `object` : non vide : `true`\n - `function` : `false`"
+ },
+ "$not": {
+ "args": "arg",
+ "desc": "Renvoie un booléen résultat de la négation logique de l'argument"
+ },
+ "$exists": {
+ "args": "arg",
+ "desc": "Renvoie la valeur booléenne `true` si l'expression `arg` est évaluée à une valeur, ou `false` si l'expression ne correspond à rien (par exemple, un chemin vers une référence de champ inexistante)."
+ },
+ "$count": {
+ "args": "array",
+ "desc": "Renvoie le nombre d'éléments du tableau"
+ },
+ "$append": {
+ "args": "array, array",
+ "desc": "Combine deux tableaux"
+ },
+ "$sort": {
+ "args": "array [, function]",
+ "desc": "Renvoie un tableau contenant toutes les valeurs du paramètre `array`, mais triées dans l'ordre.\n\nSi un comparateur `function` est fourni, alors il doit s'agir d'une fonction qui prend deux paramètres :\n\n`function(left , droite)`\n\nCette fonction est invoquée par l'algorithme de tri pour comparer deux valeurs à gauche et à droite. Si la valeur de `left` doit être placée après la valeur de `right` dans l'ordre de tri souhaité, la fonction doit renvoyer un booléen `true` pour indiquer un échange. Sinon, il doit renvoyer `false`."
+ },
+ "$reverse": {
+ "args": "array",
+ "desc": "Renvoie un tableau contenant toutes les valeurs du paramètre `array`, mais dans l'ordre inverse."
+ },
+ "$shuffle": {
+ "args": "array",
+ "desc": "Renvoie un tableau contenant toutes les valeurs du paramètre `array`, mais mélangées dans un ordre aléatoire."
+ },
+ "$zip": {
+ "args": "array, ...",
+ "desc": "Renvoie un tableau convolué (zippé) contenant des tableaux groupés de valeurs des arguments `array1`...`arrayN` d'index 0, 1, 2...."
+ },
+ "$keys": {
+ "args": "object",
+ "desc": "Renvoie un tableau contenant les clés de l'objet. Si l'argument est un tableau d'objets, le tableau renvoyé contient une liste dédupliquée de toutes les clés de tous les objets."
+ },
+ "$lookup": {
+ "args": "object, key",
+ "desc": "Renvoie la valeur associée à la clé dans l'objet. Si le premier argument est un tableau d'objets, tous les objets du tableau sont recherchés et les valeurs associées à toutes les occurrences de key sont renvoyées."
+ },
+ "$spread": {
+ "args": "object",
+ "desc": "Divise un objet contenant des paires clé/valeur en un tableau d'objets, chacun ayant une seule paire clé/valeur de l'objet d'entrée. Si le paramètre est un tableau d'objets, alors le tableau résultant contient un objet pour chaque paire clé/valeur dans chaque objet du tableau fourni."
+ },
+ "$merge": {
+ "args": "array<object>",
+ "desc": "Fusionne un tableau d'`objets` en un seul `objet` contenant toutes les paires clé/valeur de chacun des objets du tableau d'entrée. Si l'un des objets d'entrée contient la même clé, alors l'`objet` renvoyé contiendra la valeur du dernier dans le tableau. C'est une erreur si le tableau d'entrée contient un élément qui n'est pas un objet."
+ },
+ "$sift": {
+ "args": "object, function",
+ "desc": "Renvoie un objet qui contient uniquement les paires clé/valeur du paramètre `object` qui satisfont le prédicat `function` transmis comme second paramètre.\n\nLa `function` qui est fournie comme second paramètre doit avoir la signature suivante :\n\n`fonction(valeur [, clé [, objet]])`"
+ },
+ "$each": {
+ "args": "object, function",
+ "desc": "Renvoie un tableau contenant les valeurs renvoyées par la `fonction` lorsqu'elle est appliquée à chaque paire clé/valeur dans l'`objet`."
+ },
+ "$map": {
+ "args": "array, function",
+ "desc": "Renvoie un tableau contenant les résultats de l'application du paramètre `function` à chaque valeur du paramètre `array`.\n\nLa `function` fournie comme second paramètre doit avoir la signature suivante :\n\n`function( valeur [, indice [, tableau]])`"
+ },
+ "$filter": {
+ "args": "array, function",
+ "desc": "Renvoie un tableau contenant uniquement les valeurs du paramètre `array` qui satisfont le prédicat `function`.\n\nLa `function` fournie comme second paramètre doit avoir la signature suivante :\n\n`function(value [ , indice [, tableau]])`"
+ },
+ "$reduce": {
+ "args": "array, function [, init]",
+ "desc": "Renvoie une valeur agrégée dérivée de l'application successive du paramètre `function` à chaque valeur de `array` en combinaison avec le résultat de l'application précédente de la fonction.\n\nLa fonction doit accepter deux arguments et se comporte comme un opérateur infixe entre chaque valeur dans le `tableau`. La signature de `function` doit être de la forme : `myfunc($accumulator, $value[, $index[, $array]])`\n\nLe paramètre facultatif `init` est utilisé comme valeur initiale dans l'agrégation ."
+ },
+ "$flowContext": {
+ "args": "string[, string]",
+ "desc": "Récupère une propriété de contexte de flux.\n\nCeci est une fonction définie par Node-RED."
+ },
+ "$globalContext": {
+ "args": "string[, string]",
+ "desc": "Récupère une propriété de contexte globale.\n\nCeci est une fonction définie par Node-RED."
+ },
+ "$pad": {
+ "args": "string, width [, char]",
+ "desc": "Renvoie une copie de la `chaîne` avec un rembourrage supplémentaire, si nécessaire, de sorte que son nombre total de caractères corresponde au moins à la valeur absolue du paramètre `width`.\n\nSi `width` est un nombre positif, alors la chaîne est rembourré à droite; s'il est négatif, il est rempli vers la gauche.\n\nL'argument optionnel `char` spécifie le(s) caractère(s) de remplissage à utiliser. S'il n'est pas spécifié, la valeur par défaut est le caractère espace."
+ },
+ "$fromMillis": {
+ "args": "number, [, picture [, timezone]]",
+ "desc": "Convertisser le « nombre » représentant les millisecondes depuis l'époque Unix (1er janvier 1970 UTC) en une représentation sous forme de chaîne formatée de l'horodatage tel que spécifié par la chaîne d'image.\n\nSi le paramètre facultatif « image » est omis, l'horodatage est formaté au format ISO 8601.\n\nSi la chaîne facultative `image` est fournie, l'horodatage est formaté selon la représentation spécifiée dans cette chaîne. Le comportement de cette fonction est cohérent avec la version à deux arguments de la fonction XPath/XQuery `format-dateTime` telle que définie dans la spécification XPath F&O 3.1. Le paramètre de chaîne d'image définit la façon dont l'horodatage est formaté et a la même syntaxe que `format-dateTime`.\n\nSi la chaîne facultative `timezone` est fournie, alors l'horodatage formaté sera dans ce fuseau horaire. La chaîne `timezone` doit être au format '±HHMM', où ± est le signe plus ou moins et HHMM est le décalage en heures et minutes par rapport à UTC. Décalage positif pour les fuseaux horaires à l'est de UTC, décalage négatif pour les fuseaux horaires à l'ouest de UTC."
+ },
+ "$formatNumber": {
+ "args": "number, picture [, options]",
+ "desc": "Convertit le `number` en une chaîne et le formate en une représentation décimale comme spécifié par la chaîne `picture`.\n\n Le comportement de cette fonction est cohérent avec la fonction XPath/XQuery `fn:format-number` telle que définie dans le Spécification XPath F&O 3.1. Le paramètre de chaîne d'image définit la façon dont le nombre est formaté et a la même syntaxe que `fn:format-number`.\n\nLe troisième argument facultatif `options` est utilisé pour remplacer les caractères de formatage spécifiques aux paramètres régionaux par défaut, tels que le séparateur décimal. S'il est fourni, cet argument doit être un objet contenant des paires nom/valeur spécifiées dans la section de format décimal de la spécification XPath F&O 3.1."
+ },
+ "$formatBase": {
+ "args": "number [, radix]",
+ "desc": "Convertit le `number` en une chaîne et le formate en un entier représenté dans la base numérique spécifiée par l'argument `radix`. Si `radix` n'est pas spécifié, la valeur par défaut est la base 10. `radix` peut être compris entre 2 et 36, sinon une erreur est renvoyée."
+ },
+ "$toMillis": {
+ "args": "timestamp",
+ "desc": "Convertit une chaîne `timestamp` au format ISO 8601 en nombre de millisecondes depuis l'époque Unix (1er janvier 1970 UTC) sous forme de nombre. Une erreur est renvoyée si la chaîne n'est pas au format correct."
+ },
+ "$env": {
+ "args": "arg",
+ "desc": "Renvoie la valeur d'une variable d'environnement.\n\nCeci est une fonction définie par Node-RED."
+ },
+ "$eval": {
+ "args": "expr [, context]",
+ "desc": "Analyse et évalue la chaîne `expr` qui contient un JSON littéral ou une expression JSONata en utilisant le contexte actuel comme contexte d'évaluation."
+ },
+ "$formatInteger": {
+ "args": "number, picture",
+ "desc": "Transforme le `nombre` en une chaîne et le formate en une représentation entière comme spécifié par la chaîne `image`. Le paramètre de chaîne d'image définit la façon dont le nombre est formaté et a la même syntaxe que `fn:format-integer` de la spécification XPath F&O 3.1."
+ },
+ "$parseInteger": {
+ "args": "string, picture",
+ "desc": "Analyse le contenu du paramètre `string` en un entier (comme un nombre JSON) en utilisant le format spécifié par la chaîne `picture`. Le paramètre de chaîne `picture` a le même format que `$formatInteger`."
+ },
+ "$error": {
+ "args": "[str]",
+ "desc": "Génère une erreur avec un message. Le `str` facultatif remplacera le message par défaut de la fonction `$error() évaluée`"
+ },
+ "$assert": {
+ "args": "arg, str",
+ "desc": "Si `arg` est vrai, la fonction renvoie undefined. Si `arg` est faux, une exception est lancée avec `str` comme message de l'exception."
+ },
+ "$single": {
+ "args": "array, function",
+ "desc": "Renvoie la seule et unique valeur du paramètre `array` qui satisfait le prédicat `function` (c'est-à-dire que la `function` renvoie la valeur booléenne `true` lorsqu'elle est transmise à la valeur). Lève une exception si le nombre de valeurs correspondantes n'est pas exactement un.\n\nLa fonction doit être fournie dans la signature suivante : `function(value [, index [, array]])` où value est chaque entrée du tableau, index est la position de cette valeur et le tableau entier est passé comme troisième argument"
+ },
+ "$encodeUrlComponent": {
+ "args": "str",
+ "desc": "Encode un composant URL (Uniform Resource Locator) en remplaçant chaque instance de certains caractères par une, deux, trois ou quatre séquences d'échappement représentant l'encodage UTF-8 du caractère.\n\nExemple : `$encodeUrlComponent(\"?x =test\")` => `\"%3Fx%3Dtest\"`"
+ },
+ "$encodeUrl": {
+ "args": "str",
+ "desc": "Encode une URL (Uniform Resource Locator) en remplaçant chaque instance de certains caractères par une, deux, trois ou quatre séquences d'échappement représentant l'encodage UTF-8 du caractère.\n\nExemple : `$encodeUrl(\"https://mozilla.org/?x=шеллы\")` => `\"https://mozilla.org/?x=%D1%88%D0% B5%D0%BB%D0%BB%D1%8B\"`"
+ },
+ "$decodeUrlComponent": {
+ "args": "str",
+ "desc": "Décode un composant URL (Uniform Resource Locator) précédemment créé par encodeUrlComponent.\n\nExemple : `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
+ },
+ "$decodeUrl": {
+ "args": "str",
+ "desc": "Décode une URL (Uniform Resource Locator) précédemment créée par encodeUrl.\n\nExemple : `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ },
+ "$distinct": {
+ "args": "array",
+ "desc": "Renvoie un tableau avec les valeurs en double supprimées de `array`"
+ },
+ "$type": {
+ "args": "value",
+ "desc": "Renvoie le type de `value` sous forme de chaîne. Si `value` n'est pas défini, cela renverra `undefined`"
+ },
+ "$moment": {
+ "args": "[str]",
+ "desc": "Obtient un objet de date à l'aide de la bibliothèque Moment."
+ },
+ "$clone": {
+ "args": "valeur",
+ "desc": "Cloner un objet en toute sécurité."
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json
index fb3458eed..ceb001a10 100644
--- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json
@@ -23,7 +23,11 @@
"position": "配置",
"enable": "有効",
"disable": "無効",
- "upload": "アップロード"
+ "upload": "アップロード",
+ "lock": "固定",
+ "unlock": "固定を解除",
+ "locked": "固定済み",
+ "unlocked": "固定なし"
},
"type": {
"string": "文字列",
@@ -53,8 +57,10 @@
"confirmDelete": "削除の確認",
"delete": "本当に '__label__' を削除しますか?",
"dropFlowHere": "ここにフローをドロップしてください",
+ "dropImageHere": "ここに画像ファイルをドロップしてください",
"addFlow": "フローの追加",
"addFlowToRight": "右側にフローを追加",
+ "closeFlow": "フローを閉じる",
"hideFlow": "フローを非表示",
"hideOtherFlows": "他のフローを非表示",
"showAllFlows": "全てのフローを表示",
@@ -68,7 +74,13 @@
"enabled": "有効",
"disabled": "無効",
"info": "詳細",
- "selectNodes": "ノードをクリックして選択"
+ "selectNodes": "ノードをクリックして選択",
+ "enableFlow": "フローを有効化",
+ "disableFlow": "フローを無効化",
+ "lockFlow": "フローを固定",
+ "unlockFlow": "フローの固定を解除",
+ "moveToStart": "フローを先頭へ移動",
+ "moveToEnd": "フローを最後へ移動"
},
"menu": {
"label": {
@@ -101,6 +113,7 @@
"displayStatus": "ノードのステータスを表示",
"displayConfig": "設定ノード",
"import": "読み込み",
+ "importExample": "フロー例を読み込み",
"export": "書き出し",
"search": "ノードを検索",
"searchInput": "ノードを検索",
@@ -403,6 +416,7 @@
},
"errors": {
"noNodesSelected": "サブフローを作成できません : ノードが選択されていません",
+ "acrossMultipleGroups": "複数のグループをまたがるサブフローは作成できません",
"multipleInputsToSelection": "サブフローを作成できません : 複数の入力が選択されています"
}
},
@@ -491,12 +505,14 @@
"unassigned": "未割当",
"global": "グローバル",
"workspace": "ワークスペース",
+ "editor": "編集ダイアログ",
"selectAll": "全てのノードを選択",
"selectNone": "選択を外す",
"selectAllConnected": "接続されたノードを選択",
"addRemoveNode": "ノードの選択、選択解除",
"editSelected": "選択したノードを編集",
"deleteSelected": "選択したノードや接続を削除",
+ "deleteReconnect": "削除と再接続",
"importNode": "フローの読み込み",
"exportNode": "フローの書き出し",
"nudgeNode": "選択したノードを移動(移動量小)",
@@ -571,6 +587,7 @@
"editor": {
"title": "パレットの管理",
"palette": "パレット",
+ "allCatalogs": "全カタログ",
"times": {
"seconds": "数秒前",
"minutes": "数分前",
@@ -610,6 +627,7 @@
"tab-nodes": "現在のノード",
"tab-install": "ノードを追加",
"sort": "並べ替え:",
+ "sortRelevance": "関連順",
"sortAZ": "辞書順",
"sortRecent": "日付順",
"more": "+ さらに __count__ 個",
@@ -683,7 +701,11 @@
"empty": "空",
"globalConfig": "グローバル設定ノード",
"triggerAction": "アクションを実行",
- "find": "ワークスペース内を検索"
+ "find": "ワークスペース内を検索",
+ "copyItemUrl": "要素のURLをコピー",
+ "copyURL2Clipboard": "URLをクリップボードにコピーしました",
+ "showFlow": "表示",
+ "hideFlow": "非表示"
},
"help": {
"name": "ヘルプ",
@@ -935,8 +957,11 @@
"errors": {
"invalid-expr": "不正なJSONata式:\n __message__",
"invalid-msg": "不正なJSONメッセージ例:\n __message__",
- "context-unsupported": "$flowContext や $globalContextの\nコンテキスト機能をテストできません",
- "eval": "表現評価エラー:\n __message__"
+ "context-unsupported": "$flowContext や $globalContextの\nコンテキスト関数をテストできません",
+ "env-unsupported": "$env関数はテストできません",
+ "moment-unsupported": "$moment関数はテストできません",
+ "clone-unsupported": "$clone関数はテストできません",
+ "eval": "式評価エラー:\n __message__"
}
},
"monaco": {
@@ -981,7 +1006,10 @@
"quote": "引用",
"link": "リンク",
"horizontal-rule": "区切り線",
- "toggle-preview": "プレビュー表示切替え"
+ "toggle-preview": "プレビュー表示切替え",
+ "mermaid": {
+ "summary": "Mermaid図"
+ }
},
"bufferEditor": {
"title": "バッファエディタ",
@@ -1168,8 +1196,7 @@
"takeATour": "ツアーを開始",
"start": "開始",
"next": "次へ",
- "welcomeTours": "ウェルカムツアー",
- "tours": "ツアー"
+ "welcomeTours": "ウェルカムツアー"
},
"diagnostics": {
"title": "システム情報"
@@ -1177,8 +1204,10 @@
"languages": {
"de": "ドイツ語",
"en-US": "英語",
+ "fr": "フランス語",
"ja": "日本語",
"ko": "韓国語",
+ "pt-BR": "ポルトガル語",
"ru": "ロシア語",
"zh-CN": "中国語(簡体)",
"zh-TW": "中国語(繁体)"
@@ -1186,11 +1215,8 @@
"validator": {
"errors": {
"invalid-json": "JSONデータが不正: __error__",
- "invalid-json-prop": "__prop__: JSONデータが不正: __error__",
"invalid-prop": "プロパティ式が不正",
- "invalid-prop-prop": "__prop__: プロパティ式が不正",
"invalid-num": "数値が不正",
- "invalid-num-prop": "__prop__: 数値が不正",
"invalid-regexp": "入力パターンが不正",
"invalid-regex-prop": "__prop__: 入力パターンが不正",
"missing-required-prop": "__prop__: プロパティが未設定",
@@ -1205,6 +1231,11 @@
"junction": "分岐点",
"linkNodes": "Linkノード"
},
+ "env-var": {
+ "environment": "環境変数",
+ "header": "大域環境変数",
+ "revert": "破棄"
+ },
"action-list": {
"toggle-show-tips": "ヒント表示切替",
"show-about": "Node-REDの説明を表示",
@@ -1289,6 +1320,7 @@
"distribute-selection-vertically": "選択を上下に整列",
"wire-series-of-nodes": "ノードを一続きに接続",
"wire-node-to-multiple": "ノードを複数に接続",
+ "wire-multiple-to-node": "複数からノードへ接続",
"split-wire-with-link-nodes": "ワイヤーをlinkノードで分割",
"generate-node-names": "ノード名を生成",
"show-user-settings": "ユーザ設定を表示",
@@ -1348,6 +1380,14 @@
"show-project-settings": "プロジェクト設定を表示",
"show-version-control-tab": "バージョンコントロールタブを表示",
"start-flows": "フローを開始",
- "stop-flows": "フローを停止"
+ "stop-flows": "フローを停止",
+ "copy-item-url": "要素のURLをコピー",
+ "copy-item-edit-url": "要素の編集URLをコピー",
+ "move-flow-to-start": "フローを先頭に移動",
+ "move-flow-to-end": "フローを末尾に移動",
+ "show-global-env": "大域環境変数を表示",
+ "lock-flow": "フローを固定",
+ "unlock-flow": "フローの固定を解除",
+ "show-node-help": "ノードのヘルプを表示"
}
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/ja/jsonata.json
index 31263cc32..7391ce6a3 100644
--- a/packages/node_modules/@node-red/editor-client/locales/ja/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ja/jsonata.json
@@ -53,7 +53,7 @@
},
"$now": {
"args": "$[picture [, timezone]]",
- "desc": "ISO 8601互換形式の時刻を生成し、文字列として返します。pictureおよびtimezoneパラメータが指定されている場合、現在時刻を`$fromMillis()`関数の説明に従ってフォーマットします。"
+ "desc": "ISO 8601互換形式の時刻を生成し、文字列として返します。`picture` および `timezone` パラメータが指定されている場合、現在時刻を `$fromMillis()` 関数の説明に従ってフォーマットします。"
},
"$base64encode": {
"args": "string",
@@ -117,11 +117,11 @@
},
"$boolean": {
"args": "arg",
- "desc": "以下のルールを用いて、ブーリアン型へ型変換します。:\n\n - `Boolean` : 変換しない\n - `string`: 空 : `false`\n - `string`: 空でない : `true`\n - `number`: `0` : `false`\n - `number`: 0でない : `true`\n - `null` : `false`\n - `array`: 空 : `false`\n - `array`: `true` に型変換された要素を持つ: `true`\n - `array`: 全ての要素が `false` に型変換: `false`\n - `object`: 空 : `false`\n - `object`: 空でない : `true`\n - `function` : `false`"
+ "desc": "以下のルールを用いて、真偽型へ型変換します。:\n\n - `Boolean` : 変換しない\n - `string`: 空 : `false`\n - `string`: 空でない : `true`\n - `number`: `0` : `false`\n - `number`: 0でない : `true`\n - `null` : `false`\n - `array`: 空 : `false`\n - `array`: `true` に型変換された要素を持つ: `true`\n - `array`: 全ての要素が `false` に型変換: `false`\n - `object`: 空 : `false`\n - `object`: 空でない : `true`\n - `function` : `false`"
},
"$not": {
"args": "arg",
- "desc": "引数の否定をブーリアン型で返します。 `arg` は最初にブーリアン型に型変換されます。"
+ "desc": "引数の否定を真偽型で返します。 `arg` は最初に真偽型に型変換されます。"
},
"$exists": {
"args": "arg",
@@ -137,7 +137,7 @@
},
"$sort": {
"args": "array [, function]",
- "desc": "配列 `array` 内の値を並び変えた配列を返します。\n\n比較関数 `function` を用いる場合、比較関数は以下のとおり2つの引数を持つ必要があります。\n\n`function(left, right)`\n\n比較関数は、leftとrightの2つの値を比較するために、値を並び替える処理で呼び出されます。もし、求められる並び順にてleftの値をrightの値より後ろに置きたい場合は、比較関数は置き換えを表すブーリアン型の `true` を返す必要があります。一方、置き換えが不要の場合は `false` を返す必要があります。"
+ "desc": "配列 `array` 内の値を並び変えた配列を返します。\n\n比較関数 `function` を用いる場合、比較関数は以下のとおり2つの引数を持つ必要があります。\n\n`function(left, right)`\n\n比較関数は、`left` と `right` の2つの値を比較するために、値を並び替える処理で呼び出されます。もし、求められる並び順にて `left` の値を `right` の値より後ろに置きたい場合は、比較関数は置き換えを表す真偽型の `true` を返す必要があります。一方、置き換えが不要の場合は `false` を返す必要があります。"
},
"$reverse": {
"args": "array",
@@ -205,7 +205,7 @@
},
"$formatNumber": {
"args": "number, picture [, options]",
- "desc": "`number` を文字列へ変換し、文字列 `picture` に指定した数値表現になるよう書式を変更します。\n\nこの関数の動作は、XPath F&O 3.1の仕様に定義されているXPath/XQuery関数のfn:format-numberの動作と同じです。引数の文字列 picture は、fn:format-numberと同じ構文で数値の書式を定義します。\n\n任意の第三引数 `options` は、小数点記号の様な既定のロケール固有の書式設定文字を上書きするために使用します。この引数を指定する場合、XPath F&O 3.1の仕様の数値形式の項に記述されているname/valueペアを含むオブジェクトでなければなりません。"
+ "desc": "`number` を文字列へ変換し、文字列 `picture` に指定した数値表現になるよう書式を変更します。\n\nこの関数の動作は、XPath F&O 3.1の仕様に定義されているXPath/XQuery関数の `fn:format-number` の動作と同じです。引数の文字列 `picture` は、 `fn:format-number` と同じ構文で数値の書式を定義します。\n\n任意の第三引数 `options` は、小数点記号の様な既定のロケール固有の書式設定文字を上書きするために使用します。この引数を指定する場合、XPath F&O 3.1の仕様の数値形式の項に記述されているname/valueペアを含むオブジェクトでなければなりません。"
},
"$formatBase": {
"args": "number [, radix]",
@@ -237,7 +237,7 @@
},
"$assert": {
"args": "arg, str",
- "desc": "`arg`が真の場合、undefinedを返します。偽の場合、`str`をメッセージとする例外を送出します。"
+ "desc": "`arg`が真の場合、`undefined`を返します。偽の場合、`str`をメッセージとする例外を送出します。"
},
"$single": {
"args": "array, function",
@@ -257,7 +257,7 @@
},
"$decodeUrl": {
"args": "str",
- "desc": "encodeUrlで置換したUniform Resource Locator (URL)要素をデコードします。 \n\n例: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ "desc": "encodeUrlで置換したUniform Resource Locator (URL)要素をデコードします。\n\n例: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
},
"$distinct": {
"args": "array",
@@ -270,5 +270,9 @@
"$moment": {
"args": "[str]",
"desc": "Momentライブラリを使用して日付オブジェクトを取得します。"
+ },
+ "$clone": {
+ "args": "value",
+ "desc": "オブジェクトを安全に複製します。"
}
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/ko/editor.json b/packages/node_modules/@node-red/editor-client/locales/ko/editor.json
old mode 100755
new mode 100644
index 9890dda9a..ad4f4354f
--- a/packages/node_modules/@node-red/editor-client/locales/ko/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ko/editor.json
@@ -1,903 +1,1105 @@
-{
- "common": {
- "label": {
- "name": "이름",
- "ok": "확인",
- "done": "완료",
- "cancel": "취소",
- "delete": "삭제",
- "close": "닫기",
- "load": "열기",
- "save": "저장",
- "import": "가져오기",
- "export": "내보내기",
- "back": "뒤로",
- "next": "앞으로",
- "clone": "프로젝트 복제",
- "cont": "계속하기"
- }
- },
- "workspace": {
- "defaultName": "플로우 __number__",
- "editFlow": "플로우 수정 : __name__",
- "confirmDelete": "삭제 확인",
- "delete": "정말로 '__label__' 을(를) 삭제하시겠습니까?",
- "dropFlowHere": "플로우를 이곳에 가져오세요",
- "addFlow": "플로우 추가",
- "status": "상태",
- "enabled": "사용가능",
- "disabled": "사용불가능",
- "info": "상세내역"
- },
- "menu": {
- "label": {
- "view": {
- "view": "창",
- "grid": "눈금선",
- "showGrid": "눈금선 보이기",
- "snapGrid": "노드 배치 보조 켜기",
- "gridSize": "눈금선 크기",
- "textDir": "텍스트 방향",
- "defaultDir": "기본",
- "ltr": "왼쪽 -> 오른쪽",
- "rtl": "오른쪽 -> 왼쪽",
- "auto": "자동배분"
- },
- "sidebar": {
- "show": "우측사이드바 보이기"
- },
- "palette": {
- "show": "팔렛트 보이기"
- },
- "settings": "설정",
- "userSettings": "사용자 설정",
- "nodes": "노드설정",
- "displayStatus": "노드상태 보이기",
- "displayConfig": "설정노드 보기",
- "import": "가져오기",
- "export": "내보내기",
- "search": "플로우 검색",
- "searchInput": "플로우 검색",
- "subflows": "보조 플로우",
- "createSubflow": "보조 플로우 생성",
- "selectionToSubflow": "보조 플로우 선택",
- "flows": "플로우",
- "add": "추가",
- "rename": "이름변경",
- "delete": "삭제",
- "keyboardShortcuts": "단축키",
- "login": "로그인",
- "logout": "로그아웃",
- "editPalette": "팔렛트 관리",
- "other": "기타",
- "showTips": "Tip 보기",
- "help": "Node-RED 웹사이트",
- "projects": "프로젝트",
- "projects-new": "신규",
- "projects-open": "열기",
- "projects-settings": "프로젝트 설정",
- "showNodeLabelDefault": "새로 추가된 노드의 라벨 보이기"
- }
- },
- "actions": {
- "toggle-navigator": "네비게이터 표시/비표시",
- "zoom-out": "축소하기",
- "zoom-reset": "확대/축소 초기화",
- "zoom-in": "확대하기"
- },
- "user": {
- "loggedInAs": "__name__ 에 로그인됨",
- "username": "사용자명",
- "password": "비밀번호",
- "login": "로그인",
- "loginFailed": "로그인 실패",
- "notAuthorized": "권한이 없습니다",
- "errors": {
- "settings": "로그인 후 설정이 가능합니다",
- "deploy": "로그인 후 배포가 가능합니다",
- "notAuthorized": "이 기능은 로그인 후 사용가능합니다"
- }
- },
- "notification": {
- "warning": "경고 : __message__",
- "warnings": {
- "undeployedChanges": "변경사항 배포가 취소되었습니다",
- "nodeActionDisabled": "노드 실행이 비활성화 되었습니다",
- "nodeActionDisabledSubflow": "보조 플로우에서 노드 실행이 비활성화 되었습니다",
- "missing-types": "타입이 없는 노드로인해 플로우가 중지되었습니다
",
- "safe-mode": "[안전모드] 플로우가 정지되었습니다.
플로우의 수정과 배포가 가능합니다. 다시 배포버튼을 누르세요.
",
- "restartRequired": "업그레이드한 모듈을 유효화하기 위해 Node-RED를 재시작 합니다 ",
- "credentials_load_failed": "인증정보 복호화에 실패하여 플로우가 멈췄습니다.
인증정보는 암호화 되어있습니다. 프로젝트의 암호화 키가 깨졌거나 정상적이지 않습니다.
",
- "credentials_load_failed_reset": "인증정보를 복호화할 수 없습니다
인증정보는 암호화 되어있습니다. 프로젝트의 암호화 키가 깨졌거나 정상적이지 않습니다.
다음 배포시 플로우의 인증정보는 초기화 될것입니다. 기존 모든 플로우의 인증정보가 지워집니다.
",
- "missing_flow_file": "프로젝트 플로우 파일을 찾을 수 없습니다
프로젝트의 플로우 파일이 설정되지 않았습니다
",
- "missing_package_file": "프로젝트 패키지 파일을 찾을 수 없습니다
프로젝트의 package.json 파일이 없습니다
",
- "project_empty": "프로젝트가 누락되어 있습니다.
기본 프로젝트 파일을 만드시겠습니까? 그렇지 않으면 수동으로 편집가 외부에 프로젝트 파일을 만드셔야 합니다.
",
- "project_not_found": "'__project__' 가 없습니다.
",
- "git_merge_conflict": "변경사항 자동병합에 실패했습니다.
병합되지 않은 충돌을 수정 후 재등록 하세요.
"
- },
- "error": "에러 : __message__",
- "errors": {
- "lostConnection": "서버와 연결이 끊어졌습니다. 재접속을 시도합니다 ...",
- "lostConnectionReconnect": "서버와 연결이 끊어졌습니다. __time__ 초 안에 재접속을 시도합니다.",
- "lostConnectionTry": "지금 재접속",
- "cannotAddSubflowToItself": "서브플로우 자기자신을 추가할 수 없습니다",
- "cannotAddCircularReference": "순환참조가 발견되었습니다. 서브플로우를 추가할 수 없습니다",
- "unsupportedVersion": "지원하지 않는 Node.js를 사용하고 있습니다
Node.js LTS 버전을 사용해 주세요
",
- "failedToAppendNode": "'__module__' 읽어오기 실패
__error__
"
- },
- "project": {
- "change-branch": "로컬지점으로 '__project__' 변경",
- "merge-abort": "Git 병합을 중지했습니다.",
- "loaded": "'__project__' 프로젝트를 열었습니다",
- "updated": "'__project__'가 변경 되었습니다",
- "pull": "'__project__'를 다시 가져왔습니다",
- "revert": "'__project__'를 취소했습니다",
- "merge-complete": "Git 병합이 완료되었습니다"
- },
- "label": {
- "manage-project-dep": "프로젝트 의존성 관리",
- "setup-cred": "인증정보 설정",
- "setup-project": "프로젝트 파일 설정",
- "create-default-package": "기본 패키지 파일 생성",
- "no-thanks": "괜찮습니다",
- "create-default-project": "기본 프로젝트 파일 생성",
- "show-merge-conflicts": "병합 충돌 보여주기",
- "unknownNodesButton": "알 수 없는 노드 검색"
- }
- },
- "clipboard": {
- "clipboard": "클립보드",
- "nodes": "노드",
- "node": "__count__ 개의 노드",
- "node_plural": "__count__ 개의 노드",
- "configNode": "__count__ 개의 설정 노드",
- "configNode_plural": "__count__ 개의 설정 노드",
- "flow": "__count__ 개의 플로우",
- "flow_plural": "__count__ 개의 플로우",
- "subflow": "__count__ 개의 서브 플로우",
- "subflow_plural": "__count__ 개의 서브 플로우",
- "pasteNodes": "여기에 노드를 붙여넣기 하세요",
- "selectFile": "불러올 파일을 선택하세요",
- "importNodes": "노드 불러오기",
- "exportNodes": "클립보드에 노드 내보내기",
- "download": "다운로드",
- "importUnrecognised": "알 수 없는 형식 :",
- "importUnrecognised_plural": "알 수 없는 형식 :",
- "nodesExported": "클립보드에 노드 내보내기",
- "nodesImported": "불러오기 : ",
- "nodeCopied": "__count__개의 노드가 복사 되었습니다",
- "nodeCopied_plural": "__count__개의 노드가 복사 되었습니다",
- "invalidFlow": "정상적지 않은 플로우 : __message__",
- "export": {
- "selected": "선택된 노드",
- "current": "현재 플로우",
- "all": "모든 플로우",
- "compact": "압축형식",
- "formatted": "서식유지",
- "copy": "클립보드로 내보내기"
- },
- "import": {
- "import": "가져올 위치 : ",
- "newFlow": "새로운 플로우",
- "errors": {
- "notArray": "입력이 JSON 배열이 아닙니다",
- "itemNotObject": "입력이 올바른 플로우가 아닙니다 - __index__는 노드 오브젝트가 아닙니다",
- "missingId": "입력이 올바른 플로우가 아닙니다 - __index__의 'id' 속성이 없습니다",
- "missingType": "입력이 올바른 플로우가 아닙니다 - __index__의 'type' 속성이 없습니다"
- }
- },
- "copyMessagePath": "Path가 복사 되었습니다",
- "copyMessageValue": "Value가 복사 되었습니다",
- "copyMessageValue_truncated": "Truncated value가 복사 되었습니다"
- },
- "deploy": {
- "deploy": "배포하기",
- "full": "전체",
- "fullDesc": "작업공간 내 모든 플로우를 배포합니다",
- "modifiedFlows": "변경된 플로우",
- "modifiedFlowsDesc": "변경사항이 있는 플로우만 배포합니다",
- "modifiedNodes": "변경된 노드",
- "modifiedNodesDesc": "변경사항이 있는 노드만 배포합니다",
- "restartFlows": "플로우 재시작",
- "restartFlowsDesc": "현재 배포된 플로우를 재시작합니다",
- "successfulDeploy": "배포가 성공했습니다",
- "successfulRestart": "플로우 재시작을 성공했습니다",
- "deployFailed": "배포 실패 : __message__",
- "unusedConfigNodes": "사용되지 않는 설정노드가 있습니다",
- "unusedConfigNodesButton":"사용하지 않는 구성 노드 검색",
- "unknownNodesButton":"알 수 없는 노드 검색",
- "invalidNodesButton":"잘못된 노드 검색",
- "errors": {
- "noResponse": "서버의 응답이 없습니다"
- },
- "confirm": {
- "button": {
- "ignore": "무시",
- "confirm": "배포 확인",
- "review": "변경사항 보기",
- "cancel": "취소",
- "merge": "병합",
- "overwrite": "무시하고 배포하기"
- },
- "undeployedChanges": "배포되지 않은 변경사항이 있습니다.\n\n이 페이지를 떠나면 변경사항이 사라집니다",
- "improperlyConfigured": "작업공간에 올바르게 구성되지 않은 노드가 있습니다 :",
- "unknown": "작업공간에 알려지지 않는 노드타입이 있습니다 :",
- "confirm": "배포하시겠습니까?",
- "doNotWarn": "이 경고를 무시",
- "conflict": "서버가 최신 플로우를 사용중입니다",
- "backgroundUpdate": "플로우가 변경되었습니다",
- "conflictChecking": "변경사항이 자동으로 병합될 수 있는지 확인",
- "conflictAutoMerge": "변경사항에 충돌이 없습니다. 자동병합이 가능합니다",
- "conflictManualMerge": "변경사항에 충돌이 있습니다. 배포하기 전에 충돌을 해결하세요",
- "plusNMore": "+ __count__ 개 더보기"
- }
- },
- "eventLog": {
- "title": "이벤트 로그",
- "view": "로그 보기"
- },
- "diff": {
- "unresolvedCount": "__count__개의 충돌이 해결되지 않음",
- "unresolvedCount_plural": "__count__개의 충돌이 해결되지 않음",
- "globalNodes": "Global 노드",
- "flowProperties": "플로우 속성",
- "type": {
- "added": "추가됨",
- "changed": "변경됨",
- "unchanged": "변경없음",
- "deleted": "삭제됨",
- "flowDeleted": "플로우 삭제됨",
- "flowAdded": "플로우 추가됨",
- "movedTo": "__id__로 이동됨",
- "movedFrom": "__id__로 부터 이동됨"
- },
- "nodeCount": "__count__ 개의 노드",
- "nodeCount_plural": "__count__ 개의 노드",
- "local": "로컬 변경사항",
- "remote": "원격 변경사항",
- "reviewChanges": "변경사항 살펴보기",
- "noBinaryFileShowed": "바이너리파일 내용을 볼수 없습니다",
- "viewCommitDiff": "변경사항 보기",
- "compareChanges": "변경사항 비교",
- "saveConflict": "충돌 해결내용 저장",
- "conflictHeader": "__unresolved__ 개 중 __resolved__ 충돌이 해결됨",
- "commonVersionError": "Common Version의 JSON 형식이 올바르지 않습니다 :",
- "oldVersionError": "Old Version의 JSON 형식이 올바르지 않습니다 :",
- "newVersionError": "New Version의 JSON 형식이 올바르지 않습니다 :"
- },
- "subflow": {
- "editSubflow": "플로우 템플릿 수정 : __name__",
- "edit": "플로우 템플릿 수정",
- "subflowInstances": "서브 플로우 템플릿에 __count__개의 인스턴스가 있습니다",
- "subflowInstances_plural": "서브 플로우 템플릿에 __count__개의 인스턴스가 있습니다",
- "editSubflowProperties": "속성 수정",
- "input": "입력:",
- "output": "출력:",
- "deleteSubflow": "서브 플로우 삭제",
- "info": "상세내역",
- "category": "카테고리",
- "errors": {
- "noNodesSelected": "서브 플로우를 생성할 수 없습니다 : 노드가 선택되지 않았습니다",
- "multipleInputsToSelection": "서브 플로우를 생성할 수 없습니다 : 복수의 입력이 선택되었습니다"
- }
- },
- "editor": {
- "configEdit": "수정",
- "configAdd": "추가",
- "configUpdate": "변경",
- "configDelete": "삭제",
- "nodesUse": "__count__개의 노드가 이 설정을 사용중입니다",
- "nodesUse_plural": "__count__개의 노드가 이 설정을 사용중입니다",
- "addNewConfig": "__type__의 설정노드 추가",
- "editNode": "__type__의 노드 수정",
- "editConfig": "__type__의 설정노드 수정",
- "addNewType": "__type__의 노드타입 추가 ...",
- "nodeProperties": "노드 속성",
- "label": "명칭",
- "portLabels": "포트 설정",
- "labelInputs": "입력",
- "labelOutputs": "출력",
- "settingIcon": "아이콘",
- "noDefaultLabel": "없음",
- "defaultLabel": "기본 명칭",
- "searchIcons": "아이콘 조회",
- "useDefault": "기본설정 사용",
- "description": "상세 내역",
- "show": "보이기",
- "hide": "숨기기",
- "errors": {
- "scopeChange": "범위를 변경하게 되면 다른 플로우의 노드가 사용이 불가능해 집니다."
- }
- },
- "keyboard": {
- "title": "키보드 단축키",
- "keyboard": "키보드",
- "filterActions": "필터",
- "shortcut": "단축키",
- "scope": "범위",
- "unassigned": "미할당",
- "global": "글로벌",
- "workspace": "작업공간",
- "selectAll": "모든 노드 선택",
- "selectAllConnected": "모든 연결된 노드 선택",
- "addRemoveNode": "노드 추가/삭제",
- "editSelected": "선택된 노드 수정",
- "deleteSelected": "선택된 노드나 링크를 삭제",
- "importNode": "노드 불러오기",
- "exportNode": "노드 내보내기",
- "nudgeNode": "선택된 노드 이동 (1px)",
- "moveNode": "선택된 노드 이동 (20px)",
- "toggleSidebar": "사이드바 표시/비표시",
- "togglePalette": "팔렛트 표시/비표시",
- "copyNode": "선택된 노드 복사",
- "cutNode": "선택된 노드 잘라내기",
- "pasteNode": "노드 붙여넣기",
- "undoChange": "마지막 변경 되돌리기",
- "searchBox": "검색창 열기",
- "managePalette": "팔렛트 관리"
- },
- "library": {
- "library": "라이브러리",
- "openLibrary": "라이브러리 열기...",
- "saveToLibrary": "라이브러리로 저장...",
- "typeLibrary": "__type__ 라이브러리",
- "unnamedType": "이름없는 __type__",
- "dialogSaveOverwrite": "__libraryType__이 __libraryName__으로 이미 등록되어있습니다. 덮어쓸까요?",
- "invalidFilename": "파일명이 올바르지 않습니다",
- "savedNodes": "저장된 노드",
- "savedType": "저장된 __type__",
- "saveFailed": "저장 실패 : __message__",
- "types": {
- "examples": "예시"
- }
- },
- "palette": {
- "noInfo": "정보 없음",
- "filter": "필터",
- "search": "모듈 검색",
- "addCategory": "추가 ...",
- "label": {
- "subflows": "서브 플로우",
- "input": "입력",
- "output": "출력",
- "function": "기능",
- "social": "소셜",
- "storage": "저장",
- "analysis": "분석",
- "advanced": "그 외"
- },
- "actions": {
- "collapse-all": "모든 카테고리 접기",
- "expand-all": "모든 카테고리 펼치기"
- },
- "event": {
- "nodeAdded": "팔렛트에 노드가 추가되었습니다:",
- "nodeAdded_plural": "팔렛트에 노드가 추가되었습니다:",
- "nodeRemoved": "팔렛트에서 노드가 삭제되었습니다:",
- "nodeRemoved_plural": "팔렛트에서 노드가 삭제되었습니다:",
- "nodeEnabled": "노드가 활성화 되었습니다:",
- "nodeEnabled_plural": "노드가 활성화 되었습니다:",
- "nodeDisabled": "노드가 비활성화 되었습니다:",
- "nodeDisabled_plural": "노드가 비활성화 되었습니다:",
- "nodeUpgraded": "__module__ 노드모듈이 __version__으로 업그레이드 되었습니다"
- },
- "editor": {
- "title": "팔렛트 관리",
- "palette": "팔렛트",
- "times": {
- "seconds": "몇초 전",
- "minutes": "몇분 전",
- "minutesV": "__count__분 전",
- "hoursV": "__count__시간 전",
- "hoursV_plural": "__count__시간 전",
- "daysV": "__count__일 전",
- "daysV_plural": "__count__일 전",
- "weeksV": "__count__주 전",
- "weeksV_plural": "__count__주 전",
- "monthsV": "__count__달 전",
- "monthsV_plural": "__count__달 전",
- "yearsV": "__count__년 전",
- "yearsV_plural": "__count__년 전",
- "yearMonthsV": "__y__년, __count__월 전",
- "yearMonthsV_plural": "__y__년, __count__월 전",
- "yearsMonthsV": "__y__년, __count__월 전",
- "yearsMonthsV_plural": "__y__년, __count__월 전"
- },
- "nodeCount": "__label__ 개의 노드",
- "nodeCount_plural": "__label__ 개의 노드",
- "moduleCount": "__count__ 개의 모듈 사용가능",
- "moduleCount_plural": "__count__ 개의 모듈 사용가능",
- "inuse": "사용중",
- "enableall": "모두 활성화",
- "disableall": "모두 비활성화",
- "enable": "활성화",
- "disable": "비활성화",
- "remove": "삭제",
- "update": "__version__으로 업데이트",
- "updated": "업데이트 됨",
- "install": "설치",
- "installed": "설치됨",
- "conflict": "충돌",
- "conflictTip": "노드타입이 이미 설치 되어 있습니다. /p>
충돌모듈 : __module__
",
- "loading": "카탈로그 여는중...",
- "tab-nodes": "설치된 노드",
- "tab-install": "설치가능한 노드",
- "sort": "정렬:",
- "sortAZ": "a-z",
- "sortRecent": "최근",
- "more": "+ __count__ 개 더 보기",
- "errors": {
- "catalogLoadFailed": "노드 카탈로그를 설치하지 못했습니다.
브라우저 콘솔로그를 참고하세요.
",
- "installFailed": "설치 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
- "removeFailed": "삭제 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
- "updateFailed": "업데이트 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
- "enableFailed": "활성화 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
- "disableFailed": "비활성화 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
"
- },
- "confirm": {
- "install": {
- "body": "'__module__' 설치중
설치하기 전 노드 설명서를 읽으세요. 어떤 노드은 의존성이 자동으로 해결되지 않거나, Node-RED의 재시작이 필요할 수 있습니다.
",
- "title": "노드 설치"
- },
- "remove": {
- "body": "'__module__' 삭제중
Node-RED에서 노드를 제거합니다. Node-RED가 재시작되기까지 리소스가 계속 사용될 수도 있습니다.
",
- "title": "노드 삭제"
- },
- "update": {
- "body": "'__module__' 업데이트중
업데이트 반영을 위해 Node-RED를 수동으로 재시작해야 할 경우도 있습니다.
",
- "title": "노드 변경"
- },
- "cannotUpdate": {
- "body": "이 노드에 대한 업데이트가 있지만, 팔레트 관리자가 변경할 수 있는 위치에 설치되지 않았습니다. 이 노드를 변경하는 방법은 설명서를 참조하세요"
- },
- "button": {
- "review": "노드정보 열기",
- "install": "설치",
- "remove": "삭제",
- "update": "업데이트"
- }
- }
- }
- },
- "sidebar": {
- "info": {
- "name": "노드정보",
- "tabName": "이름",
- "label": "정보",
- "node": "노드",
- "type": "타입",
- "module": "모듈",
- "id": "ID",
- "status": "상태",
- "enabled": "활성화",
- "disabled": "비활성화",
- "subflow": "서브 플로우",
- "instances": "인스턴스",
- "properties": "속성",
- "info": "정보",
- "desc": "상세 내역",
- "blank": "공백",
- "null": "null",
- "showMore": "더 보기",
- "showLess": "간단히",
- "flow": "플로우",
- "selection": "선택",
- "nodes": "__count__ 개의 노드",
- "flowDesc": "플로우 상세내역",
- "subflowDesc": "서브 플로우 상세내역",
- "nodeHelp": "노드 도움말",
- "none": "없음",
- "arrayItems": "__count__ 개의 항목",
- "showTips": "설정에서 도움말을 열 수 있습니다. "
- },
- "config": {
- "name": "노드 설정",
- "label": "설정",
- "global": "모든 플로우",
- "none": "없음",
- "subflows": "보조 플로우",
- "flows": "플로우",
- "filterAll": "전체",
- "filterUnused": "미사용",
- "filtered": "__count__ 개 숨김"
- },
- "context": {
- "name": "Context 데이터",
- "label": "context",
- "none": "선택 없음",
- "refresh": "새로고침",
- "empty": "공백",
- "node": "노드",
- "flow": "플로우",
- "global": "Global",
- "deleteConfirm": "정말로 이 아이템을 지우시겠습니까?"
- },
- "palette": {
- "name": "팔레트 관리",
- "label": "팔레트"
- },
- "project": {
- "label": "프로젝트",
- "name": "프로젝트",
- "description": "상세내역",
- "dependencies": "의존성",
- "settings": "설정",
- "noSummaryAvailable": "요약 없음",
- "editDescription": "프로젝트 상세내역 수정",
- "editDependencies": "프로젝트 의존성 수정",
- "editReadme": "README.md 수정",
- "showProjectSettings": "프로젝트 설정 보이기",
- "projectSettings": {
- "title": "프로젝트 설정",
- "edit": "수정",
- "none": "없음",
- "install": "설치",
- "removeFromProject": "프로젝트에서 삭제",
- "addToProject": "프로젝트에 추가",
- "files": "파일",
- "flow": "플로우",
- "credentials": "인증정보",
- "invalidEncryptionKey": "잘못된 암호화 키",
- "encryptionEnabled": "암호화 활성화",
- "encryptionDisabled": "암호화 비활성화",
- "setTheEncryptionKey": "암호화 키 설정 :",
- "resetTheEncryptionKey": "암호화 키 초기화 :",
- "changeTheEncryptionKey": "암호화 키 변경:",
- "currentKey": "현재 키",
- "newKey": "새로운 키",
- "credentialsAlert": "모든 인증정보를 삭제합니다",
- "versionControl": "버전 관리",
- "branches": "브랜치",
- "noBranches": "브랜치 없음",
- "deleteConfirm": "다시 되돌릴 수 없습니다. '__name__'의 로컬 브랜치를 삭제 히시겠습니까?",
- "unmergedConfirm": "'__name__'의 병합되지 않은 수정사항을 잃어버릴 수 있습니다. 그래도 삭제 하시겠습니까?",
- "deleteUnmergedBranch": "미병합 브랜치 삭제",
- "gitRemotes": "Git 원격",
- "addRemote": "원격 추가",
- "addRemote2": "원격 추가",
- "remoteName": "원격 이름",
- "nameRule": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
- "url": "URL",
- "urlRule": "https://, ssh:// or file://",
- "urlRule2": "URL안에 사용자아이디/비밀번호를 사용하지 마세요",
- "noRemotes": "원격 없음",
- "deleteRemoteConfrim": "원격 '__name__'를 정말로 삭제하시겠습니까?",
- "deleteRemote": "원격 삭제"
- },
- "userSettings": {
- "committerDetail": "Committer 상세내역",
- "committerTip": "시스템 기본값을 사용하려면 비워두세요",
- "userName": "사용자명",
- "email": "이메일",
- "sshKeys": "SSH키",
- "sshKeysTip": "원격저장소에 대한 보안연결을 허용합니다",
- "add": "키 추가",
- "addSshKey": "SSH키 추가",
- "addSshKeyTip": "public/private 키쌍을 추가합니다",
- "name": "이름",
- "nameRule": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
- "passphrase": "암호",
- "passphraseShort": "암호가 너무 짧습니다",
- "optional": "선택항목",
- "cancel": "취소",
- "generate": "Key 생성",
- "noSshKeys": "SSH키 없음",
- "copyPublicKey": "클립보드로 public key 복사",
- "delete": "키 삭제",
- "gitConfig": "Git 설정",
- "deleteConfirm": "다시 되돌릴 수 없습니다. __name__의 SSH키를 삭제하시겠습니까?"
- },
- "versionControl": {
- "unstagedChanges": "변경사항을 언스테이징",
- "stagedChanges": "스테이징된 변경사항",
- "unstageChange": "스테이징 되지않은 변경사항",
- "stageChange": "변경사항을 스테이징",
- "unstageAllChange": "모든 변경사항 언스테이징",
- "stageAllChange": "모든 변경사항 스테이징",
- "commitChanges": "변경사항 커밋",
- "resolveConflicts": "충돌 해결",
- "head": "HEAD",
- "staged": "스테이징 됨",
- "unstaged": "스테이징 안됨",
- "local": "로컬",
- "remote": "리모트",
- "revert": "다시 복원할 수 없습니다. '__file__'을 되돌리시겠습니까?",
- "revertChanges": "변경사항 되돌리기",
- "localChanges": "로컬 변경사항",
- "none": "없음",
- "conflictResolve": "모든 충돌이 해결되었습니다. 변경사항을 적용하여 병합을 완료하세요",
- "localFiles": "로컬 파일",
- "all": "전체",
- "unmergedChanges": "병합되지 않은 변경사항",
- "abortMerge": "병합 중단",
- "commit": "커밋",
- "changeToCommit": "커밋 변경사항",
- "commitPlaceholder": "커밋 메시지를 입력하세요",
- "cancelCapital": "취소",
- "commitCapital": "커밋",
- "commitHistory": "커밋 이력",
- "branch": "브랜치 :",
- "moreCommits": "커밋 더보기",
- "changeLocalBranch": "로컬 브랜치 변경",
- "createBranchPlaceholder": "브렌치 찾기/생성",
- "upstream": "업스트림",
- "localOverwrite": "브랜치에 반영할 변경사항이 있습니다. 변경사항을 커밋하거나, 변경내역을 취소해야 합니다",
- "manageRemoteBranch": "원격 브랜치 관리",
- "unableToAccess": "원격저장소에 접근할 수 없습니다",
- "retry": "재시도",
- "setUpstreamBranch": "업스트림 브랜치로 설정",
- "createRemoteBranchPlaceholder": "리모드 브랜치 찾기/생성",
- "trackedUpstreamBranch": "생성된 브랜치는 트래킹된 업스트림 브랜치로 설정됩니다",
- "selectUpstreamBranch": "브랜치가 생성될 것입니다. 트래킹된 업스트림 브랜치로 설정하세요",
- "pushFailed": "리모트에 최신 커밋이 있기 때문에 push할 수 없습니다. 먼저 pull과 병합을 하신 후 push하세요",
- "push": "push",
- "pull": "pull",
- "unablePull": "원격저장소의 변경사항을 가져올 수 없습니다, 당신의 unstaged 로컬 변경사항을 덮어씁니다.
변경사항을 적용하고 다시 시도하세요
",
- "showUnstagedChanges": "unstaged 변경사항 보여주기",
- "connectionFailed": "원격저장소 연결 불가 : ",
- "pullUnrelatedHistory": "원격저장소에 연관없는 커밋 기록이 있습니다.
모든 변경사항을 로컬 저장소로 가져 오시겠습니까?
",
- "pullChanges": "Pull 변경사항",
- "history": "이력",
- "projectHistory": "프로젝트 이력",
- "daysAgo": "__count__일 전",
- "daysAgo_plural": "__count__일 전",
- "hoursAgo": "__count__시간 전",
- "hoursAgo_plural": "__count__시간 전",
- "minsAgo": "__count__분 전",
- "minsAgo_plural": "__count__분 전",
- "secondsAgo": "몇초 전",
- "notTracking": "당신의 로컬 브랜치는 원격브랜치를 트래킹하고 있지 않습니다",
- "statusUnmergedChanged": "당신의 저장소는 병합되지 않은 변경사항을 가지고 있습니다. 충돌을 수정하고 결과를 커밋하세요",
- "repositoryUpToDate": "당신의 저장소는 최신상태 입니다",
- "commitsAhead": "당신의 저장소가 원격지보다 __count__ 커밋을 앞서 있습니다. 이제 커밋 할 수 있습니다.",
- "commitsAhead_plural": "당신의 저장소가 원격지보다 __count__ 커밋을 앞서 있습니다. 지금 커밋할 수 있습니다.",
- "commitsBehind": "당신의 저장소가 원격지보다 __count__ 커밋이 늦습니다. 이제 pull 할 수 있습니다.",
- "commitsBehind_plural": "당신의 저장소가 원격지보다 __count__ 커밋이 늦습니다. 이제 pull 할 수 있습니다.",
- "commitsAheadAndBehind1": "당신의 저장소가 __count__ 커밋이 늦고, ",
- "commitsAheadAndBehind1_plural": "당신의 저장소가 __count__ 커밋이 늦고 ",
- "commitsAheadAndBehind2": "__count__ 커밋이 원격지보다 앞서 있습니다. ",
- "commitsAheadAndBehind2_plural": "__count__ 커밋이 원격지보다 앞서 있습니다.",
- "commitsAheadAndBehind3": "push하기전에 리모트 저장소에서 pull을 먼저 수행하세요.",
- "commitsAheadAndBehind3_plural": "push하기전에 리모트 저장소에서 pull을 먼저 수행하세요.",
- "refreshCommitHistory": "커밋 기록 새로고침",
- "refreshChanges": "변경사항 새로고침"
- }
- }
- },
- "typedInput": {
- "type": {
- "str": "string",
- "num": "number",
- "re": "regular expression",
- "bool": "boolean",
- "json": "JSON",
- "bin": "buffer",
- "date": "timestamp",
- "jsonata": "expression",
- "env": "env variable"
- }
- },
- "editableList": {
- "add": "추가"
- },
- "search": {
- "empty": "결과 없음",
- "addNode": "노드 추가 ..."
- },
- "expressionEditor": {
- "functions": "기능",
- "functionReference": "기능 참조",
- "insert": "삽입",
- "title": "JSONata 형식 에디터",
- "test": "테스트",
- "data": "예제 메세지",
- "result": "결과",
- "format": "형식",
- "compatMode": "호환모드 사용",
- "compatModeDesc": "JSONata호환 모드 입력된 형식은 msg
를 참조하고 있어, 호환모드로 평가합니다. 이 모드는 후에 폐지될 예정이니, msg
를 사용하지 않도록 해 주시길 바랍니다.
JSONata를 Node-RED에서 처음 지원했을 때에는 msg
오브젝트의 참조가 필요했습니다. 예를 들어 msg.payload
는 payload를 참고하기 위해 사용되었습니다.
직접 메시지에 대하여 식을 평가하도록 되었기에, 이 형식은 사용할 수 없게 됩니다. payload를 참조하려면 단순히 payload
로 지정해 주십시오.
",
- "noMatch": "결과 없음",
- "errors": {
- "invalid-expr": "유효하지 않은 JSONata 형식 :\n __message__",
- "invalid-msg": "유효하지 않은 예시 JSON 메세지 :\n __message__",
- "context-unsupported": "컨텍스트 기능을 테스트 할 수 없습니다.\n $flowContext 또는 $globalContext",
- "eval": "형식 오류 :\n __message__"
- }
- },
- "jsEditor": {
- "title": "자바스크립트 에디터"
- },
- "jsonEditor": {
- "title": "JSON 에디터",
- "format": "JSON 형식"
- },
- "markdownEditor": {
- "title": "Markdown 에디터",
- "format": "Markdown 형식",
- "heading1": "제목 레벨1",
- "heading2": "제목 레벨2",
- "heading3": "제목 레벨3",
- "bold": "강조",
- "italic": "이탤릭",
- "code": "코드",
- "ordered-list": "번호 목차",
- "unordered-list": "목차",
- "quote": "인용",
- "link": "링크",
- "horizontal-rule": "나눔줄",
- "toggle-preview": "미리보기 전환"
- },
- "bufferEditor": {
- "title": "Buffer 에디터",
- "modeString": "UTF-8 문자열로 처리",
- "modeArray": "JSON 배열로 처리",
- "modeDesc": "Buffer 에디터 버퍼타입은 byet값의 JSON배열로 저장됩니다. 이 에디터는 입력된 값을 JSON 배열로 구문분석 합니다. 만약 유효한 JSON이 아닌경우 UTF-8 문자열로 처리되어 각 문자코드 번호의 배열로 변환됩니다.
예를들어 Hello World
라는 값은 다음의 JSON 배열로 변환됩니다.
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100] "
- },
- "projects": {
- "config-git": "Git client 설정",
- "welcome": {
- "hello": "안녕하세요. Node-RED에서 프로젝트 기능을 이용할 수 있게 되었습니다.",
- "desc0": "플로우 파일을 관리하는 새로운 방법이며, 버전을 관리할 수 도 있습니다.",
- "desc1": "무선 프로젝트를 작성하거나 기존의 Git저장소에서 프로젝트를 복제할 수 있습니다.",
- "desc2": "이 기능을 건너뛰어도 상관없습니다. 언제든지 프로젝트 메뉴에서 첫번째 프로젝트를 만들 수 있습니다.",
- "create": "프로젝트 생성",
- "clone": "프로젝트 복제",
- "not-right-now": "나중에"
- },
- "git-config": {
- "setup": "버전관리 클라이언트를 설정합니다",
- "desc0": "Node-RED는 오픈소스 Git로 버전관리를 할 수 있습니다. 프로젝트 파일의 변경사항을 추적하고 원격저장소로 push할 수 있습니다.",
- "desc1": "당신이 변경사항을 커밋하면 git은 누가 변경사항을 만들었는지 사용자명과 이메일 정보를 기록합니다. 사용자명은 꼭 당신의 실명일 필요는 없습니다.",
- "desc2": "당신의 Git 클라이언트는 아래와 같이 이미 설정되었습니다.",
- "desc3": "당신은 git config의 설정탭에서 설정을 변경할 수 있습니다.",
- "username": "사용자명",
- "email": "이메일"
- },
- "project-details": {
- "create": "프로젝트 생성",
- "desc0": "프로젝트는 Git 저장소로 관리되어집니다. 다른 사람과 협업하거나 공유하기 쉬워집니다.",
- "desc1": "당신은 여러 개의 프로젝트를 생성할 수 있고 에디터에서 프로젝트를 선택할 수 있습니다.",
- "desc2": "시작하려면 프로젝트 이름과 프로젝트의 상세설명이 필요합니다.",
- "already-exists": "프로젝트가 이미 존재합니다",
- "must-contain": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
- "project-name": "프로젝트명",
- "desc": "상세설명",
- "opt": "옵션"
- },
- "clone-project": {
- "clone": "프로젝트 복제",
- "desc0": "프로젝트가 있는 저장소를 가지고 있다면, 즉시 복제하여 사용할 수 있습니다.",
- "already-exists": "프로젝트가 이미 존재합니다",
- "must-contain": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
- "project-name": "프로젝트명",
- "no-info-in-url": "URL안에 사용자아이디/비밀번호를 사용하지 마세요",
- "git-url": "Git 저장소 URL",
- "protocols": "https://, ssh:// 혹은 file://",
- "auth-failed": "인증 실패",
- "username": "사용자명",
- "passwd": "패스워드",
- "ssh-key": "SSH키",
- "passphrase": "패스워드",
- "ssh-key-desc": "저장소를 복제하기 전에 접속을 위해 SSH키를 먼저 추가하세요.",
- "ssh-key-add": "ssh키 추가",
- "credential-key": "인증 암호화 키",
- "cant-get-ssh-key": "에러! 선택한 SSH키 경로를 가져올 수 없습니다",
- "already-exists2": "이미 존재합니다",
- "git-error": "git 에러",
- "connection-failed": "접속 실패",
- "not-git-repo": "Git저장소가 아닙니다",
- "repo-not-found": "저장소가 없습니다"
- },
- "default-files": {
- "create": "프로젝트 파일 생성",
- "desc0": "프로젝트는 당신의 플로우, README, package.json 파일을 포함합니다.",
- "desc1": "Git 저장소에서 관리하고 싶은 다른 파일들을 포함할 수 있습니다.",
- "desc2": "당신이 이미 가지고 있는 flow, 자격증명파일이 프로젝트로 복사될 것입니다.",
- "flow-file": "플로우 파일",
- "credentials-file": "자격증명 파일"
- },
- "encryption-config": {
- "setup": "자격인증 파일의 암호화 설정",
- "desc0": "플로우의 자격인증 파일 암호화를 통해 내용을 안전하게 유지할 수 있습니다.",
- "desc1": "자격증명을 공용 Git저장소에 저장하려면 비밀키 구문을 제공하여 암호화 해야 합니다",
- "desc2": "당신의 플로우 자격인증 파일은 암호화 되어 있지 않습니다.",
- "desc3": "즉, 암호 및 액세스 토큰과 같은 내용을 파일에 액세스 할 수있는 모든 사람이 열람할 수 있습니다.",
- "desc4": "자격증명을 공용 Git저장소에 저장하려면 비밀키 구문을 제공하여 암호화 해야 합니다",
- "desc5": "당신의 플로우 자격증명파일은 setting파일의 credentialSecret속성으로 암호화되어 있습니다.",
- "desc6": "당신의 플로우 자격증명파일은 시스템이 생성된 키에 의해 암호화 되어있습니다. 이 프로젝트용 새로운 비밀키를 지정해 주세요.",
- "desc7": "키는 프로젝트파일과는 별개로 보존됩니다. 다른 Node-RED에서 이 프로젝트를 이용하려면 이 프로젝트의 키가 필요합니다.",
- "credentials": "자격인증",
- "enable": "암호화 활성화",
- "disable": "암호화 비활성화",
- "disabled": "비활성화됨",
- "copy": "기존 키를 복사",
- "use-custom": "커스텀키 사용",
- "desc8": "자격증명 파일이 암호화되어 있지 않아, 간단히 해당내용이 열람될 수 있습니다.",
- "create-project-files": "프로젝트 생성",
- "create-project": "프로젝트 생성",
- "already-exists": "이미 존재합니다.",
- "git-error": "git 에러",
- "git-auth-error": "git 인증 에러"
- },
- "create-success": {
- "success": "당신의 첫번째 프로젝트 생성이 성공하였습니다.",
- "desc0": "앞으로 이와 같이 Node-RED를 사용할 수 있습니다.",
- "desc1": "사이드바의 '정보'탭은 현재 활성화된 프로젝트를 보여줍니다. 이름 옆에 있는 버틀을 사용하여 프로젝트 설정화면을 불러올 수 있습니다.",
- "desc2": "사이드바의 '이력'탭은 프로젝트의 변경된 파일을 확인하고 커밋할 수 있습니다. 커밋의 전체 기록을 보여주고 변경사항을 원격 저장소에 push할 수 있습니다."
- },
- "create": {
- "projects": "프로젝트",
- "already-exists": "프로젝트가 이미 존재합니다",
- "must-contain": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
- "no-info-in-url": "URL안에 사용자아이디/비밀번호를 사용하지 마세요",
- "open": "프로젝트 열기",
- "create": "프로젝트 생성",
- "clone": "프로젝트 복제",
- "project-name": "프로젝트명",
- "desc": "상세내역",
- "opt": "옵션",
- "flow-file": "플로우 파일",
- "credentials": "자격증명",
- "enable-encryption": "암호화 활성화",
- "disable-encryption": "암호화 비활성화",
- "encryption-key": "암호화 키",
- "desc0": "자격증명 정보를 안전하게 하는 문구",
- "desc1": "자격증명 파일이 암호화되어 있지 않아, 간단히 해당내용이 열람될 수 있습니다.",
- "git-url": "Git 저장소 URL",
- "protocols": "https://, ssh:// 혹은 file://",
- "auth-failed": "인증 실패",
- "username": "사용자명",
- "password": "패스워드",
- "ssh-key": "SSH키",
- "passphrase": "패스워드",
- "desc2": "저장소를 복제하기 전에 접속을 위해 SSH키를 먼저 추가하세요.",
- "add-ssh-key": "ssh키 추가",
- "credentials-encryption-key": "자격인증 암호화 키",
- "already-exists-2": "이미 존재합니다",
- "git-error": "git 에러",
- "con-failed": "접속 실패",
- "not-git": "git 저장소가 아닙니다",
- "no-resource": "저장소아 없습니다",
- "cant-get-ssh-key-path": "에러! 선택한 SSH키 경로를 가져올 수 없습니다.",
- "unexpected_error": "예기치 않은 에러"
- },
- "delete": {
- "confirm": "프로젝트를 정말 지우시겠습니까?"
- },
- "create-project-list": {
- "search": "프로젝트 검색",
- "current": "현재"
- },
- "require-clean": {
- "confirm": "변경사항을 배포하지 않아 내용이 손실될 수 있습니다.
계속 할까요?
"
- },
- "send-req": {
- "auth-req": "저장소에 대한 인증이 필요합니다.",
- "username": "사용자명",
- "password": "패스워드",
- "passphrase": "패스워드",
- "retry": "재시도",
- "update-failed": "인증 변경 실패",
- "unhandled": "오류 응답 미처리"
- },
- "create-branch-list": {
- "invalid": "올바르지 않은 브랜치",
- "create": "브랜치 생성",
- "current": "현재"
- },
- "create-default-file-set": {
- "no-active": "활성화된 프로젝트 없이 기본 파일을 만들 수 없습니다.",
- "no-empty": "비어있지 않은 프로젝트에 기본 파일을 만들 수 없습니다.",
- "git-error": "git 에러"
- },
- "errors": {
- "no-username-email": "당신의 Git 클라이언트에 사용자명/이메일이 설정되지 않았습니다.",
- "unexpected": "예기치 않은 에러가 발생했습니다.",
- "code": "코드"
- }
- },
- "editor-tab": {
- "properties": "속성",
- "description": "상세 내역",
- "appearance": "모양"
- }
-}
+{
+ "common": {
+ "label": {
+ "name": "이름",
+ "ok": "확인",
+ "done": "완료",
+ "cancel": "취소",
+ "delete": "삭제",
+ "close": "닫기",
+ "load": "열기",
+ "save": "저장",
+ "import": "가져오기",
+ "export": "내보내기",
+ "back": "뒤로",
+ "next": "앞으로",
+ "clone": "프로젝트 복제",
+ "cont": "계속하기"
+ }
+ },
+ "workspace": {
+ "defaultName": "플로우 __number__",
+ "editFlow": "플로우 수정 : __name__",
+ "confirmDelete": "삭제 확인",
+ "delete": "정말로 '__label__' 을(를) 삭제하시겠습니까?",
+ "dropFlowHere": "플로우를 이곳에 가져오세요",
+ "addFlow": "플로우 추가",
+ "addFlowToRight": "오른쪽에 플로우 추가",
+ "hideFlow": "플로우 숨기기",
+ "hideOtherFlows": "다른 플로우 숨기기",
+ "showAllFlows": "모든 플로우 보기",
+ "hideAllFlows": "모든 플로우 숨기기",
+ "hiddenFlows": "__count__개의 숨겨진 플로우 보기",
+ "hiddenFlows_plural": "__count__개의 숨겨진 플로우 보기",
+ "showLastHiddenFlow": "마지막으로 숨겨진 플로우 보기",
+ "listFlows": "플로우 리스트",
+ "listSubflows": "서브 플로우 리스트",
+ "status": "상태",
+ "enabled": "사용가능",
+ "disabled": "사용불가능",
+ "info": "상세내역",
+ "selectNodes": "선택할 노드 클릭"
+ },
+ "menu": {
+ "label": {
+ "view": {
+ "view": "창",
+ "grid": "눈금선",
+ "storeZoom": "불러오기 시 확대/축소 복원",
+ "storePosition": "불러오기 시 스크롤 위치 복원",
+ "showGrid": "눈금선 보이기",
+ "snapGrid": "노드 배치 보조 켜기",
+ "gridSize": "눈금선 크기",
+ "textDir": "텍스트 방향",
+ "defaultDir": "기본",
+ "ltr": "왼쪽 -> 오른쪽",
+ "rtl": "오른쪽 -> 왼쪽",
+ "auto": "자동배분",
+ "language": "언어",
+ "browserDefault": "브라우저 기본값"
+ },
+ "sidebar": {
+ "show": "우측사이드바 보이기"
+ },
+ "palette": {
+ "show": "팔렛트 보이기"
+ },
+ "edit": "수정",
+ "settings": "설정",
+ "userSettings": "사용자 설정",
+ "nodes": "노드설정",
+ "displayStatus": "노드 상태 보이기",
+ "displayConfig": "설정 노드 보기",
+ "import": "가져오기",
+ "export": "내보내기",
+ "search": "플로우 검색",
+ "searchInput": "플로우 검색",
+ "subflows": "서브 플로우",
+ "createSubflow": "서브 플로우 생성",
+ "selectionToSubflow": "서브 플로우 선택",
+ "flows": "플로우",
+ "add": "추가",
+ "rename": "이름변경",
+ "delete": "삭제",
+ "keyboardShortcuts": "단축키",
+ "login": "로그인",
+ "logout": "로그아웃",
+ "editPalette": "팔렛트 관리",
+ "other": "기타",
+ "showTips": "Tip 보기",
+ "showWelcomeTours": "새 버전에 대한 가이드 보기 표시",
+ "help": "Node-RED 웹사이트",
+ "projects": "프로젝트",
+ "projects-new": "신규",
+ "projects-open": "열기",
+ "projects-settings": "프로젝트 설정",
+ "showNodeLabelDefault": "새로 추가된 노드의 라벨 보이기",
+ "codeEditor": "Code Editor",
+ "groups": "그룹",
+ "groupSelection": "그룹 선택",
+ "ungroupSelection": "그룹 선택 해제",
+ "groupMergeSelection": "선택 항목 병합",
+ "groupRemoveSelection": "선택 그룹 제거",
+ "arrange": "배치",
+ "alignLeft": "왼쪽으로 정렬",
+ "alignCenter": "가운데 정렬",
+ "alignRight": "오른쪽으로 정렬",
+ "alignTop": "맨 위에 정렬",
+ "alignMiddle": "맨 위에 정렬",
+ "alignBottom": "맨 아래 정렬",
+ "distributeHorizontally": "수평으로 배치",
+ "distributeVertically": "수직으로 배치",
+ "moveToBack": "맨 뒤로 이동",
+ "moveToFront": "맨 앞으로 이동",
+ "moveBackwards": "뒤로 이동",
+ "moveForwards": "앞으로 이동"
+ }
+ },
+ "actions": {
+ "toggle-navigator": "네비게이터 표시/비표시",
+ "zoom-out": "축소하기",
+ "zoom-reset": "확대/축소 초기화",
+ "zoom-in": "확대하기",
+ "search-flows": "플로우 찾기",
+ "search-prev": "이전",
+ "search-next": "다음",
+ "search-counter": "\"__term__\" __result__ of __count__"
+ },
+ "user": {
+ "loggedInAs": "__name__ 에 로그인됨",
+ "username": "사용자명",
+ "password": "비밀번호",
+ "login": "로그인",
+ "loginFailed": "로그인 실패",
+ "notAuthorized": "권한이 없습니다",
+ "errors": {
+ "settings": "로그인 후 설정이 가능합니다",
+ "deploy": "로그인 후 배포가 가능합니다",
+ "notAuthorized": "이 기능은 로그인 후 사용가능합니다"
+ }
+ },
+ "notification": {
+ "state": {
+ "flowsStopped": "플로우 중지됨",
+ "flowsStarted": "플로우 시작됨"
+ },
+ "warning": "경고 : __message__",
+ "warnings": {
+ "undeployedChanges": "변경사항 배포가 취소되었습니다",
+ "nodeActionDisabled": "노드 실행이 비활성화 되었습니다",
+ "nodeActionDisabledSubflow": "보조 플로우에서 노드 실행이 비활성화 되었습니다",
+ "missing-types": "타입이 없는 노드로인해 플로우가 중지되었습니다
",
+ "missing-modules": "누락된 모듈로 인해 플로우가 중지되었습니다.
",
+ "safe-mode": "[안전모드] 플로우가 정지되었습니다.
플로우의 수정과 배포가 가능합니다. 다시 배포버튼을 누르세요.
",
+ "restartRequired": "업그레이드한 모듈을 유효화하기 위해 Node-RED를 재시작 합니다 ",
+ "credentials_load_failed": "인증정보 복호화에 실패하여 플로우가 멈췄습니다.
인증정보는 암호화 되어있습니다. 프로젝트의 암호화 키가 깨졌거나 정상적이지 않습니다.
",
+ "credentials_load_failed_reset": "인증정보를 복호화할 수 없습니다
인증정보는 암호화 되어있습니다. 프로젝트의 암호화 키가 깨졌거나 정상적이지 않습니다.
다음 배포시 플로우의 인증정보는 초기화 될것입니다. 기존 모든 플로우의 인증정보가 지워집니다.
",
+ "missing_flow_file": "프로젝트 플로우 파일을 찾을 수 없습니다
프로젝트의 플로우 파일이 설정되지 않았습니다
",
+ "missing_package_file": "프로젝트 패키지 파일을 찾을 수 없습니다
프로젝트의 package.json 파일이 없습니다
",
+ "project_empty": "프로젝트가 누락되어 있습니다.
기본 프로젝트 파일을 만드시겠습니까? 그렇지 않으면 수동으로 편집가 외부에 프로젝트 파일을 만드셔야 합니다.
",
+ "project_not_found": "'__project__' 가 없습니다.
",
+ "git_merge_conflict": "변경사항 자동병합에 실패했습니다.
병합되지 않은 충돌을 수정 후 재등록 하세요.
"
+ },
+ "error": "에러 : __message__",
+ "errors": {
+ "lostConnection": "서버와 연결이 끊어졌습니다. 재접속을 시도합니다 ...",
+ "lostConnectionReconnect": "서버와 연결이 끊어졌습니다. __time__ 초 안에 재접속을 시도합니다.",
+ "lostConnectionTry": "지금 재접속",
+ "cannotAddSubflowToItself": "서브플로우 자기자신을 추가할 수 없습니다",
+ "cannotAddCircularReference": "순환참조가 발견되었습니다. 서브플로우를 추가할 수 없습니다",
+ "unsupportedVersion": "지원하지 않는 Node.js를 사용하고 있습니다
Node.js LTS 버전을 사용해 주세요
",
+ "failedToAppendNode": "'__module__' 읽어오기 실패
__error__
"
+ },
+ "project": {
+ "change-branch": "로컬지점으로 '__project__' 변경",
+ "merge-abort": "Git 병합을 중지했습니다.",
+ "loaded": "'__project__' 프로젝트를 열었습니다",
+ "updated": "'__project__'가 변경 되었습니다",
+ "pull": "'__project__'를 다시 가져왔습니다",
+ "revert": "'__project__'를 취소했습니다",
+ "merge-complete": "Git 병합이 완료되었습니다",
+ "setupCredentials": "자격 증명 설정",
+ "setupProjectFiles": "프로젝트 파일 설정",
+ "no": "취소",
+ "createDefault": "기본 프로젝트 파일 만들기",
+ "mergeConflict": "병합 충돌 표시"
+ },
+ "label": {
+ "manage-project-dep": "프로젝트 의존성 관리",
+ "setup-cred": "인증정보 설정",
+ "setup-project": "프로젝트 파일 설정",
+ "create-default-package": "기본 패키지 파일 생성",
+ "no-thanks": "괜찮습니다",
+ "create-default-project": "기본 프로젝트 파일 생성",
+ "show-merge-conflicts": "병합 충돌 보여주기",
+ "unknownNodesButton": "알 수 없는 노드 검색"
+ }
+ },
+ "clipboard": {
+ "clipboard": "클립보드",
+ "nodes": "노드",
+ "node": "__count__ 개의 노드",
+ "node_plural": "__count__ 개의 노드",
+ "configNode": "__count__ 개의 설정 노드",
+ "configNode_plural": "__count__ 개의 설정 노드",
+ "group": "__count__ 개의 그룹",
+ "group_plural": "__count__ 개의 그룹",
+ "flow": "__count__ 개의 플로우",
+ "flow_plural": "__count__ 개의 플로우",
+ "subflow": "__count__ 개의 서브 플로우",
+ "subflow_plural": "__count__ 개의 서브 플로우",
+ "replacedNodes": "__count__ 개의 교체된 노드",
+ "replacedNodes_plural": "__count__ 개의 교체된 노드",
+ "pasteNodes": "여기에 노드를 붙여넣기 하세요",
+ "selectFile": "불러올 파일을 선택하세요",
+ "importNodes": "노드 불러오기",
+ "exportNodes": "클립보드에 노드 내보내기",
+ "download": "다운로드",
+ "importUnrecognised": "알 수 없는 형식 :",
+ "importUnrecognised_plural": "알 수 없는 형식 :",
+ "importDuplicate": "가져온 중복 노드:",
+ "importDuplicate_plural": "가져온 중복 노드:",
+ "nodesExported": "클립보드에 노드 내보내기",
+ "nodesImported": "불러오기 : ",
+ "nodeCopied": "__count__개의 노드가 복사되었습니다",
+ "nodeCopied_plural": "__count__개의 노드가 복사되었습니다",
+ "groupCopied": "__count__ 개의 그룹이 복사되었습니다",
+ "groupCopied_plural": "__count__ 개의 그룹이 복사되었습니다",
+ "groupStyleCopied": "그룹 스타일이 복사되었습니다",
+ "invalidFlow": "정상적지 않은 플로우 : __message__",
+ "recoveredNodes": "복구된 노드",
+ "recoveredNodesInfo": "이 플로우의 노드를 가져올 때 유효한 플로우 ID가 누락되었습니다. 해당 플로우에 추가되었으므로 복원하거나 삭제할 수 있습니다.",
+ "recoveredNodesNotification": "유효하지 않은 플로우 ID를 가진 노드입니다.
'__flowName__' 라는 플로우에 추가되었습니다.
",
+ "export": {
+ "selected": "선택된 노드",
+ "current": "현재 플로우",
+ "all": "모든 플로우",
+ "compact": "압축형식",
+ "formatted": "서식유지",
+ "copy": "클립보드로 내보내기",
+ "export": "라이브러리로 내보내기",
+ "exportAs": "내보내기",
+ "overwrite": "확인",
+ "exists": "\"__file__\" 이미 존재합니다.
교체하시겠습니까?
"
+ },
+ "import": {
+ "import": "가져올 위치 : ",
+ "importSelected": "선택 항목 가져오기",
+ "importCopy": "사본 가져오기",
+ "viewNodes": "노드 보기...",
+ "newFlow": "새로운 플로우",
+ "replace": "교체",
+ "errors": {
+ "notArray": "입력이 JSON 배열이 아닙니다",
+ "itemNotObject": "입력이 올바른 플로우가 아닙니다 - __index__는 노드 오브젝트가 아닙니다",
+ "missingId": "입력이 올바른 플로우가 아닙니다 - __index__의 'id' 속성이 없습니다",
+ "missingType": "입력이 올바른 플로우가 아닙니다 - __index__의 'type' 속성이 없습니다"
+ },
+ "conflictNotification1": "가져오는 노드 중 일부가 이미 작업 공간에 있습니다..",
+ "conflictNotification2": "가져올 노드와 기존 노드를 바꿀지 아니면 복사본을 가져올지 선택합니다."
+ },
+ "copyMessagePath": "Path가 복사 되었습니다",
+ "copyMessageValue": "Value가 복사 되었습니다",
+ "copyMessageValue_truncated": "Truncated value가 복사 되었습니다"
+ },
+ "deploy": {
+ "deploy": "배포하기",
+ "full": "전체",
+ "fullDesc": "작업공간 내 모든 플로우를 배포합니다",
+ "modifiedFlows": "변경된 플로우",
+ "modifiedFlowsDesc": "변경사항이 있는 플로우만 배포합니다",
+ "modifiedNodes": "변경된 노드",
+ "modifiedNodesDesc": "변경사항이 있는 노드만 배포합니다",
+ "startFlows": "시작",
+ "startFlowsDesc": "플로우를 시작합니다",
+ "stopFlows": "중지",
+ "stopFlowsDesc": "플로우를 중지합니다",
+ "restartFlows": "플로우 재시작",
+ "restartFlowsDesc": "현재 배포된 플로우를 재시작합니다",
+ "successfulDeploy": "배포가 성공했습니다",
+ "successfulRestart": "플로우 재시작을 성공했습니다",
+ "deployFailed": "배포 실패 : __message__",
+ "unusedConfigNodes": "사용되지 않는 설정노드가 있습니다",
+ "unusedConfigNodesButton": "사용하지 않는 구성 노드 검색",
+ "unknownNodesButton": "알 수 없는 노드 검색",
+ "invalidNodesButton": "잘못된 노드 검색",
+ "errors": {
+ "noResponse": "서버의 응답이 없습니다"
+ },
+ "confirm": {
+ "button": {
+ "ignore": "무시",
+ "confirm": "배포 확인",
+ "review": "변경사항 보기",
+ "cancel": "취소",
+ "merge": "병합",
+ "overwrite": "무시하고 배포하기"
+ },
+ "undeployedChanges": "배포되지 않은 변경사항이 있습니다.\n\n이 페이지를 떠나면 변경사항이 사라집니다",
+ "improperlyConfigured": "작업공간에 올바르게 구성되지 않은 노드가 있습니다 :",
+ "unknown": "작업공간에 알려지지 않는 노드타입이 있습니다 :",
+ "confirm": "배포하시겠습니까?",
+ "doNotWarn": "이 경고를 무시",
+ "conflict": "서버가 최신 플로우를 사용중입니다",
+ "backgroundUpdate": "플로우가 변경되었습니다",
+ "conflictChecking": "변경사항이 자동으로 병합될 수 있는지 확인",
+ "conflictAutoMerge": "변경사항에 충돌이 없습니다. 자동병합이 가능합니다",
+ "conflictManualMerge": "변경사항에 충돌이 있습니다. 배포하기 전에 충돌을 해결하세요",
+ "plusNMore": "+ __count__ 개 더보기"
+ }
+ },
+ "eventLog": {
+ "title": "이벤트 로그",
+ "view": "로그 보기"
+ },
+ "diff": {
+ "unresolvedCount": "__count__개의 충돌이 해결되지 않음",
+ "unresolvedCount_plural": "__count__개의 충돌이 해결되지 않음",
+ "globalNodes": "Global 노드",
+ "flowProperties": "플로우 속성",
+ "type": {
+ "added": "추가됨",
+ "changed": "변경됨",
+ "unchanged": "변경없음",
+ "deleted": "삭제됨",
+ "flowDeleted": "플로우 삭제됨",
+ "flowAdded": "플로우 추가됨",
+ "movedTo": "__id__로 이동됨",
+ "movedFrom": "__id__로 부터 이동됨"
+ },
+ "nodeCount": "__count__ 개의 노드",
+ "nodeCount_plural": "__count__ 개의 노드",
+ "local": "로컬 변경사항",
+ "remote": "원격 변경사항",
+ "reviewChanges": "변경사항 살펴보기",
+ "noBinaryFileShowed": "바이너리파일 내용을 볼수 없습니다",
+ "viewCommitDiff": "변경사항 보기",
+ "compareChanges": "변경사항 비교",
+ "saveConflict": "충돌 해결내용 저장",
+ "conflictHeader": "__unresolved__ 개 중 __resolved__ 충돌이 해결됨",
+ "commonVersionError": "Common Version의 JSON 형식이 올바르지 않습니다 :",
+ "oldVersionError": "Old Version의 JSON 형식이 올바르지 않습니다 :",
+ "newVersionError": "New Version의 JSON 형식이 올바르지 않습니다 :"
+ },
+ "subflow": {
+ "editSubflowInstance": "서브 플로우 인스턴스 수정: __name__",
+ "editSubflow": "플로우 템플릿 수정 : __name__",
+ "edit": "플로우 템플릿 수정",
+ "subflowInstances": "서브 플로우 템플릿에 __count__개의 인스턴스가 있습니다",
+ "subflowInstances_plural": "서브 플로우 템플릿에 __count__개의 인스턴스가 있습니다",
+ "editSubflowProperties": "속성 수정",
+ "input": "입력:",
+ "output": "출력:",
+ "status": "상태 노드",
+ "deleteSubflow": "서브 플로우 삭제",
+ "confirmDelete": "서브 플로우를 삭제하시겠습니까?",
+ "info": "상세내역",
+ "category": "카테고리",
+ "module": "모듈",
+ "license": "라이선스",
+ "licenseNone": "없음",
+ "licenseOther": "Other",
+ "type": "노드",
+ "version": "버전",
+ "versionPlaceholder": "x.y.z",
+ "keys": "키워드",
+ "keysPlaceholder": "키워드(쉼표로 구분)를 입력해주세요",
+ "author": "이름",
+ "authorPlaceholder": "이름 또는 이메일을 입력해주세요",
+ "desc": "설명",
+ "env": {
+ "restore": "서브 플로우 기본값으로 복원",
+ "remove": "환경 변수 제거"
+ },
+ "errors": {
+ "noNodesSelected": "서브 플로우를 생성할 수 없습니다 : 노드가 선택되지 않았습니다",
+ "multipleInputsToSelection": "서브 플로우를 생성할 수 없습니다 : 복수의 입력이 선택되었습니다"
+ }
+ },
+ "group": {
+ "editGroup": "그룹 수정: __name__",
+ "errors": {
+ "cannotCreateDiffGroups": "다른 그룹의 노드를 사용하여 그룹을 생성할 수 없습니다",
+ "cannotAddSubflowPorts": "그룹에 서브 플로우 포트를 추가할 수 없습니다"
+ }
+ },
+ "editor": {
+ "configEdit": "수정",
+ "configAdd": "추가",
+ "configUpdate": "변경",
+ "configDelete": "삭제",
+ "nodesUse": "__count__개의 노드가 이 설정을 사용중입니다",
+ "nodesUse_plural": "__count__개의 노드가 이 설정을 사용중입니다",
+ "addNewConfig": "__type__의 설정노드 추가",
+ "editNode": "__type__의 노드 수정",
+ "editConfig": "__type__의 설정노드 수정",
+ "addNewType": "__type__의 노드타입 추가 ...",
+ "nodeProperties": "노드 속성",
+ "label": "명칭",
+ "color": "Color",
+ "portLabels": "포트 설정",
+ "labelInputs": "입력",
+ "labelOutputs": "출력",
+ "settingIcon": "아이콘",
+ "default": "default",
+ "noDefaultLabel": "없음",
+ "defaultLabel": "기본 명칭",
+ "searchIcons": "아이콘 조회",
+ "useDefault": "기본설정 사용",
+ "description": "상세 내역",
+ "errors": {
+ "scopeChange": "범위를 변경하게 되면 다른 플로우의 노드가 사용이 불가능해 집니다.",
+ "invalidProperties": "유효하지 않은 속성:"
+ }
+ },
+ "keyboard": {
+ "title": "키보드 단축키",
+ "keyboard": "키보드",
+ "filterActions": "필터",
+ "shortcut": "단축키",
+ "scope": "범위",
+ "unassigned": "미할당",
+ "global": "글로벌",
+ "workspace": "작업공간",
+ "selectAll": "모든 노드 선택",
+ "selectNone": "노드 선택 취소",
+ "selectAllConnected": "연결된 모든 노드 선택",
+ "addRemoveNode": "노드 추가/삭제",
+ "editSelected": "선택된 노드 수정",
+ "deleteSelected": "선택된 노드 또는 링크 삭제",
+ "importNode": "노드 불러오기",
+ "exportNode": "노드 내보내기",
+ "nudgeNode": "선택된 노드 이동 (1px)",
+ "moveNode": "선택된 노드 이동 (20px)",
+ "toggleSidebar": "사이드바 표시/비표시",
+ "togglePalette": "팔렛트 표시/비표시",
+ "copyNode": "선택된 노드 복사",
+ "cutNode": "선택된 노드 잘라내기",
+ "pasteNode": "노드 붙여넣기",
+ "copyGroupStyle": "그룹 스타일 복사하기",
+ "pasteGroupStyle": "그룹 스타일 붙여넣기",
+ "undoChange": "마지막 변경 되돌리기",
+ "redoChange": "다시 실행하기",
+ "searchBox": "검색창 열기",
+ "managePalette": "팔렛트 관리",
+ "actionList": "액션 목록",
+ "splitWireWithLinks": "링크 노드로 선택 항목 분할"
+ },
+ "library": {
+ "library": "라이브러리",
+ "openLibrary": "라이브러리 열기...",
+ "saveToLibrary": "라이브러리로 저장...",
+ "typeLibrary": "__type__ 라이브러리",
+ "unnamedType": "이름없는 __type__",
+ "exportedToLibrary": "노드를 라이브러리로 내보냈습니다.",
+ "dialogSaveOverwrite": "__libraryType__이 __libraryName__으로 이미 등록되어있습니다. 덮어쓸까요?",
+ "invalidFilename": "파일명이 올바르지 않습니다",
+ "savedNodes": "저장된 노드",
+ "savedType": "저장된 __type__",
+ "saveFailed": "저장 실패 : __message__",
+ "newFolder": "새로운 폴더",
+ "types": {
+ "local": "로컬",
+ "examples": "예시"
+ }
+ },
+ "palette": {
+ "noInfo": "정보 없음",
+ "filter": "필터",
+ "search": "모듈 검색",
+ "addCategory": "추가 ...",
+ "label": {
+ "subflows": "서브 플로우",
+ "network": "네트워크",
+ "common": "일반",
+ "input": "입력",
+ "output": "출력",
+ "function": "기능",
+ "sequence": "sequence",
+ "parser": "parser",
+ "social": "소셜",
+ "storage": "저장",
+ "analysis": "분석",
+ "advanced": "그 외"
+ },
+ "actions": {
+ "collapse-all": "모든 카테고리 접기",
+ "expand-all": "모든 카테고리 펼치기"
+ },
+ "event": {
+ "nodeAdded": "팔렛트에 노드가 추가되었습니다:",
+ "nodeAdded_plural": "팔렛트에 노드가 추가되었습니다:",
+ "nodeRemoved": "팔렛트에서 노드가 삭제되었습니다:",
+ "nodeRemoved_plural": "팔렛트에서 노드가 삭제되었습니다:",
+ "nodeEnabled": "노드가 활성화 되었습니다:",
+ "nodeEnabled_plural": "노드가 활성화 되었습니다:",
+ "nodeDisabled": "노드가 비활성화 되었습니다:",
+ "nodeDisabled_plural": "노드가 비활성화 되었습니다:",
+ "nodeUpgraded": "__module__ 노드모듈이 __version__으로 업그레이드 되었습니다",
+ "unknownNodeRegistered": "Error loading node: "
+ },
+ "editor": {
+ "title": "팔렛트 관리",
+ "palette": "팔렛트",
+ "times": {
+ "seconds": "몇초 전",
+ "minutes": "몇분 전",
+ "minutesV": "__count__분 전",
+ "hoursV": "__count__시간 전",
+ "hoursV_plural": "__count__시간 전",
+ "daysV": "__count__일 전",
+ "daysV_plural": "__count__일 전",
+ "weeksV": "__count__주 전",
+ "weeksV_plural": "__count__주 전",
+ "monthsV": "__count__달 전",
+ "monthsV_plural": "__count__달 전",
+ "yearsV": "__count__년 전",
+ "yearsV_plural": "__count__년 전",
+ "yearMonthsV": "__y__년, __count__월 전",
+ "yearMonthsV_plural": "__y__년, __count__월 전",
+ "yearsMonthsV": "__y__년, __count__월 전",
+ "yearsMonthsV_plural": "__y__년, __count__월 전"
+ },
+ "nodeCount": "__label__ 개의 노드",
+ "nodeCount_plural": "__label__ 개의 노드",
+ "moduleCount": "__count__ 개의 모듈 사용가능",
+ "moduleCount_plural": "__count__ 개의 모듈 사용가능",
+ "inuse": "사용중",
+ "enableall": "모두 활성화",
+ "disableall": "모두 비활성화",
+ "enable": "활성화",
+ "disable": "비활성화",
+ "remove": "삭제",
+ "update": "__version__으로 업데이트",
+ "updated": "업데이트 됨",
+ "install": "설치",
+ "installed": "설치됨",
+ "conflict": "충돌",
+ "conflictTip": "노드타입이 이미 설치 되어 있습니다. /p>
충돌모듈 : __module__
",
+ "loading": "카탈로그 여는중...",
+ "tab-nodes": "설치된 노드",
+ "tab-install": "설치가능한 노드",
+ "sort": "정렬:",
+ "sortAZ": "a-z",
+ "sortRecent": "최근",
+ "more": "+ __count__ 개 더 보기",
+ "upload": "Upload module tgz file",
+ "refresh": "모듈 목록 새로 고침",
+ "errors": {
+ "catalogLoadFailed": "노드 카탈로그를 설치하지 못했습니다.
브라우저 콘솔로그를 참고하세요.
",
+ "installFailed": "설치 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
+ "removeFailed": "삭제 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
+ "updateFailed": "업데이트 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
+ "enableFailed": "활성화 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
",
+ "disableFailed": "비활성화 실패 : __module__
__message__
브라우저 콘솔로그를 참고하세요.
"
+ },
+ "confirm": {
+ "install": {
+ "body": "'__module__' 설치중
설치하기 전 노드 설명서를 읽으세요. 어떤 노드은 의존성이 자동으로 해결되지 않거나, Node-RED의 재시작이 필요할 수 있습니다.
",
+ "title": "노드 설치"
+ },
+ "remove": {
+ "body": "'__module__' 삭제중
Node-RED에서 노드를 제거합니다. Node-RED가 재시작되기까지 리소스가 계속 사용될 수도 있습니다.
",
+ "title": "노드 삭제"
+ },
+ "update": {
+ "body": "'__module__' 업데이트중
업데이트 반영을 위해 Node-RED를 수동으로 재시작해야 할 경우도 있습니다.
",
+ "title": "노드 변경"
+ },
+ "cannotUpdate": {
+ "body": "이 노드에 대한 업데이트가 있지만, 팔레트 관리자가 변경할 수 있는 위치에 설치되지 않았습니다. 이 노드를 변경하는 방법은 설명서를 참조하세요"
+ },
+ "button": {
+ "review": "노드정보 열기",
+ "install": "설치",
+ "remove": "삭제",
+ "update": "업데이트"
+ }
+ }
+ }
+ },
+ "sidebar": {
+ "info": {
+ "name": "노드정보",
+ "tabName": "이름",
+ "label": "정보",
+ "node": "노드",
+ "type": "타입",
+ "group": "Group",
+ "module": "모듈",
+ "id": "ID",
+ "status": "상태",
+ "enabled": "활성화",
+ "disabled": "비활성화",
+ "subflow": "서브 플로우",
+ "instances": "인스턴스",
+ "properties": "속성",
+ "info": "정보",
+ "desc": "상세 내역",
+ "blank": "공백",
+ "null": "null",
+ "showMore": "더 보기",
+ "showLess": "간단히",
+ "flow": "플로우",
+ "selection": "선택",
+ "nodes": "__count__ 개의 노드",
+ "flowDesc": "플로우 상세내역",
+ "subflowDesc": "서브 플로우 상세내역",
+ "nodeHelp": "노드 도움말",
+ "none": "없음",
+ "arrayItems": "__count__ 개의 항목",
+ "showTips": "설정에서 도움말을 열 수 있습니다. ",
+ "outline": "개요",
+ "empty": "비우기",
+ "globalConfig": "전역 설정 노드",
+ "triggerAction": "트리거 작업",
+ "find": "작업 공간에서 찾기"
+ },
+ "help": {
+ "name": "도움말",
+ "label": "도움말",
+ "search": "도움말 검색",
+ "nodeHelp": "노드 도움말 보기",
+ "showHelp": "도움말 보기",
+ "showInOutline": "요약 보기",
+ "showTopics": "토픽 보기",
+ "noHelp": "선택한 도움말 항목이 없습니다",
+ "changeLog": "릴리즈 정보"
+ },
+ "config": {
+ "name": "노드 설정",
+ "label": "설정",
+ "global": "모든 플로우",
+ "none": "없음",
+ "subflows": "보조 플로우",
+ "flows": "플로우",
+ "filterAll": "전체",
+ "showAllConfigNodes": "모든 설정 노드 보기",
+ "filterUnused": "미사용",
+ "showAllUnusedConfigNodes": "사용하지 않는 모든 설정 노드 보기",
+ "filtered": "__count__ 개 숨김"
+ },
+ "context": {
+ "name": "Context 데이터",
+ "label": "context",
+ "none": "선택 없음",
+ "refresh": "새로고침",
+ "empty": "공백",
+ "node": "노드",
+ "flow": "플로우",
+ "global": "글로벌",
+ "deleteConfirm": "정말로 이 아이템을 지우시겠습니까?",
+ "autoRefresh": "선택 변경 시 새로 고침",
+ "refrsh": "새로고침",
+ "delete": "삭제"
+ },
+ "palette": {
+ "name": "팔레트 관리",
+ "label": "팔레트"
+ },
+ "project": {
+ "label": "프로젝트",
+ "name": "프로젝트",
+ "description": "상세내역",
+ "dependencies": "의존성",
+ "settings": "설정",
+ "noSummaryAvailable": "요약 없음",
+ "editDescription": "프로젝트 상세내역 수정",
+ "editDependencies": "프로젝트 의존성 수정",
+ "noDescriptionAvailable": "설명 없음",
+ "editReadme": "README.md 수정",
+ "showProjectSettings": "프로젝트 설정 보이기",
+ "projectSettings": {
+ "title": "프로젝트 설정",
+ "edit": "수정",
+ "none": "없음",
+ "install": "설치",
+ "removeFromProject": "프로젝트에서 삭제",
+ "addToProject": "프로젝트에 추가",
+ "files": "파일",
+ "flow": "플로우",
+ "credentials": "인증정보",
+ "package": "Package",
+ "packageCreate": "변경 내용이 저장될 때 파일이 생성됩니다",
+ "fileNotExist": "파일이 존재하지 않습니다",
+ "selectFile": "파일 선택",
+ "invalidEncryptionKey": "잘못된 암호화 키",
+ "encryptionEnabled": "암호화 활성화",
+ "encryptionDisabled": "암호화 비활성화",
+ "setTheEncryptionKey": "암호화 키 설정 :",
+ "resetTheEncryptionKey": "암호화 키 초기화 :",
+ "changeTheEncryptionKey": "암호화 키 변경:",
+ "currentKey": "현재 키",
+ "newKey": "새로운 키",
+ "credentialsAlert": "모든 인증정보를 삭제합니다",
+ "versionControl": "버전 관리",
+ "branches": "브랜치",
+ "noBranches": "브랜치 없음",
+ "deleteConfirm": "다시 되돌릴 수 없습니다. '__name__'의 로컬 브랜치를 삭제 히시겠습니까?",
+ "unmergedConfirm": "'__name__'의 병합되지 않은 수정사항을 잃어버릴 수 있습니다. 그래도 삭제 하시겠습니까?",
+ "deleteUnmergedBranch": "미병합 브랜치 삭제",
+ "gitRemotes": "Git 원격",
+ "addRemote": "원격 추가",
+ "addRemote2": "원격 추가",
+ "remoteName": "원격 이름",
+ "nameRule": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
+ "url": "URL",
+ "urlRule": "https://, ssh:// or file://",
+ "urlRule2": "URL안에 사용자아이디/비밀번호를 사용하지 마세요",
+ "noRemotes": "원격 없음",
+ "deleteRemoteConfrim": "원격 '__name__'를 정말로 삭제하시겠습니까?",
+ "deleteRemote": "원격 삭제"
+ },
+ "userSettings": {
+ "committerDetail": "Committer 상세내역",
+ "committerTip": "시스템 기본값을 사용하려면 비워두세요",
+ "userName": "사용자명",
+ "email": "이메일",
+ "sshKeys": "SSH키",
+ "sshKeysTip": "원격저장소에 대한 보안연결을 허용합니다",
+ "add": "키 추가",
+ "addSshKey": "SSH키 추가",
+ "addSshKeyTip": "public/private 키쌍을 추가합니다",
+ "name": "이름",
+ "nameRule": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
+ "passphrase": "암호",
+ "passphraseShort": "암호가 너무 짧습니다",
+ "optional": "선택항목",
+ "cancel": "취소",
+ "generate": "Key 생성",
+ "noSshKeys": "SSH키 없음",
+ "copyPublicKey": "클립보드로 public key 복사",
+ "delete": "키 삭제",
+ "gitConfig": "Git 설정",
+ "deleteConfirm": "다시 되돌릴 수 없습니다. __name__의 SSH키를 삭제하시겠습니까?"
+ },
+ "versionControl": {
+ "unstagedChanges": "변경사항을 언스테이징",
+ "stagedChanges": "스테이징된 변경사항",
+ "unstageChange": "스테이징 되지않은 변경사항",
+ "stageChange": "변경사항을 스테이징",
+ "unstageAllChange": "모든 변경사항 언스테이징",
+ "stageAllChange": "모든 변경사항 스테이징",
+ "commitChanges": "변경사항 커밋",
+ "resolveConflicts": "충돌 해결",
+ "head": "HEAD",
+ "staged": "스테이징 됨",
+ "unstaged": "스테이징 안됨",
+ "local": "로컬",
+ "remote": "리모트",
+ "revert": "다시 복원할 수 없습니다. '__file__'을 되돌리시겠습니까?",
+ "revertChanges": "변경사항 되돌리기",
+ "localChanges": "로컬 변경사항",
+ "none": "없음",
+ "conflictResolve": "모든 충돌이 해결되었습니다. 변경사항을 적용하여 병합을 완료하세요",
+ "localFiles": "로컬 파일",
+ "all": "전체",
+ "unmergedChanges": "병합되지 않은 변경사항",
+ "abortMerge": "병합 중단",
+ "commit": "커밋",
+ "changeToCommit": "커밋 변경사항",
+ "commitPlaceholder": "커밋 메시지를 입력하세요",
+ "cancelCapital": "취소",
+ "commitCapital": "커밋",
+ "commitHistory": "커밋 이력",
+ "branch": "브랜치 :",
+ "moreCommits": "커밋 더보기",
+ "changeLocalBranch": "로컬 브랜치 변경",
+ "createBranchPlaceholder": "브렌치 찾기/생성",
+ "upstream": "업스트림",
+ "localOverwrite": "브랜치에 반영할 변경사항이 있습니다. 변경사항을 커밋하거나, 변경내역을 취소해야 합니다",
+ "manageRemoteBranch": "원격 브랜치 관리",
+ "unableToAccess": "원격저장소에 접근할 수 없습니다",
+ "retry": "재시도",
+ "setUpstreamBranch": "업스트림 브랜치로 설정",
+ "createRemoteBranchPlaceholder": "리모드 브랜치 찾기/생성",
+ "trackedUpstreamBranch": "생성된 브랜치는 트래킹된 업스트림 브랜치로 설정됩니다",
+ "selectUpstreamBranch": "브랜치가 생성될 것입니다. 트래킹된 업스트림 브랜치로 설정하세요",
+ "pushFailed": "리모트에 최신 커밋이 있기 때문에 push할 수 없습니다. 먼저 pull과 병합을 하신 후 push하세요",
+ "push": "push",
+ "pull": "pull",
+ "unablePull": "원격저장소의 변경사항을 가져올 수 없습니다, 당신의 unstaged 로컬 변경사항을 덮어씁니다.
변경사항을 적용하고 다시 시도하세요
",
+ "showUnstagedChanges": "unstaged 변경사항 보여주기",
+ "connectionFailed": "원격저장소 연결 불가 : ",
+ "pullUnrelatedHistory": "원격저장소에 연관없는 커밋 기록이 있습니다.
모든 변경사항을 로컬 저장소로 가져 오시겠습니까?
",
+ "pullChanges": "Pull 변경사항",
+ "history": "이력",
+ "projectHistory": "프로젝트 이력",
+ "daysAgo": "__count__일 전",
+ "daysAgo_plural": "__count__일 전",
+ "hoursAgo": "__count__시간 전",
+ "hoursAgo_plural": "__count__시간 전",
+ "minsAgo": "__count__분 전",
+ "minsAgo_plural": "__count__분 전",
+ "secondsAgo": "몇초 전",
+ "notTracking": "당신의 로컬 브랜치는 원격브랜치를 트래킹하고 있지 않습니다",
+ "statusUnmergedChanged": "당신의 저장소는 병합되지 않은 변경사항을 가지고 있습니다. 충돌을 수정하고 결과를 커밋하세요",
+ "repositoryUpToDate": "당신의 저장소는 최신상태 입니다",
+ "commitsAhead": "당신의 저장소가 원격지보다 __count__ 커밋을 앞서 있습니다. 이제 커밋 할 수 있습니다.",
+ "commitsAhead_plural": "당신의 저장소가 원격지보다 __count__ 커밋을 앞서 있습니다. 지금 커밋할 수 있습니다.",
+ "commitsBehind": "당신의 저장소가 원격지보다 __count__ 커밋이 늦습니다. 이제 pull 할 수 있습니다.",
+ "commitsBehind_plural": "당신의 저장소가 원격지보다 __count__ 커밋이 늦습니다. 이제 pull 할 수 있습니다.",
+ "commitsAheadAndBehind1": "당신의 저장소가 __count__ 커밋이 늦고, ",
+ "commitsAheadAndBehind1_plural": "당신의 저장소가 __count__ 커밋이 늦고 ",
+ "commitsAheadAndBehind2": "__count__ 커밋이 원격지보다 앞서 있습니다. ",
+ "commitsAheadAndBehind2_plural": "__count__ 커밋이 원격지보다 앞서 있습니다.",
+ "commitsAheadAndBehind3": "push하기전에 리모트 저장소에서 pull을 먼저 수행하세요.",
+ "commitsAheadAndBehind3_plural": "push하기전에 리모트 저장소에서 pull을 먼저 수행하세요.",
+ "refreshCommitHistory": "커밋 기록 새로고침",
+ "refreshChanges": "변경사항 새로고침"
+ }
+ }
+ },
+ "typedInput": {
+ "type": {
+ "str": "string",
+ "num": "number",
+ "re": "regular expression",
+ "bool": "boolean",
+ "json": "JSON",
+ "bin": "buffer",
+ "date": "timestamp",
+ "jsonata": "expression",
+ "env": "env variable",
+ "cred": "credential"
+ }
+ },
+ "editableList": {
+ "add": "추가",
+ "addTitle": "add an item"
+ },
+ "search": {
+ "history": "Search history",
+ "clear": "clear all",
+ "empty": "결과 없음",
+ "addNode": "노드 추가 ...",
+ "options": {
+ "configNodes": "설정 노드",
+ "unusedConfigNodes": "사용되지 않는 설정 노드",
+ "invalidNodes": "잘못된 노드",
+ "uknownNodes": "알 수 없는 노드",
+ "unusedSubflows": "사용되지 않는 서브 플로우",
+ "hiddenFlows": "숨겨진 플로우",
+ "modifiedNodes": "수정된 노드 및 플로우",
+ "thisFlow": "현재 플로우"
+ }
+ },
+ "expressionEditor": {
+ "functions": "기능",
+ "functionReference": "기능 참조",
+ "insert": "삽입",
+ "title": "JSONata 형식 에디터",
+ "test": "테스트",
+ "data": "예제 메세지",
+ "result": "결과",
+ "format": "형식",
+ "compatMode": "호환모드 사용",
+ "compatModeDesc": "JSONata호환 모드 입력된 형식은 msg
를 참조하고 있어, 호환모드로 평가합니다. 이 모드는 후에 폐지될 예정이니, msg
를 사용하지 않도록 해 주시길 바랍니다.
JSONata를 Node-RED에서 처음 지원했을 때에는 msg
오브젝트의 참조가 필요했습니다. 예를 들어 msg.payload
는 payload를 참고하기 위해 사용되었습니다.
직접 메시지에 대하여 식을 평가하도록 되었기에, 이 형식은 사용할 수 없게 됩니다. payload를 참조하려면 단순히 payload
로 지정해 주십시오.
",
+ "noMatch": "결과 없음",
+ "errors": {
+ "invalid-expr": "유효하지 않은 JSONata 형식 :\n __message__",
+ "invalid-msg": "유효하지 않은 예시 JSON 메세지 :\n __message__",
+ "context-unsupported": "컨텍스트 기능을 테스트 할 수 없습니다.\n $flowContext 또는 $globalContext",
+ "eval": "형식 오류 :\n __message__"
+ }
+ },
+ "monaco": {
+ "setTheme": "테마 설정"
+ },
+ "jsEditor": {
+ "title": "자바스크립트 에디터"
+ },
+ "textEditor": {
+ "title": "텍스트 에디터"
+ },
+ "jsonEditor": {
+ "title": "JSON 에디터",
+ "format": "JSON 형식",
+ "rawMode": "JSON 수정",
+ "uiMode": "비주얼 편집기",
+ "rawMode-readonly": "JSON",
+ "uiMode-readonly": "비주얼",
+ "insertAbove": "위로 삽입",
+ "insertBelow": "아래로 삽입",
+ "addItem": "속성 추가",
+ "copyPath": "속성의 키값 복사",
+ "expandItems": "속성 펼치기",
+ "collapseItems": "속성 접기",
+ "duplicate": "복사",
+ "error": {
+ "invalidJSON": "비유효한 JSON: "
+ }
+ },
+ "markdownEditor": {
+ "title": "Markdown 에디터",
+ "expand": "Expand",
+ "format": "Markdown 형식",
+ "heading1": "제목 레벨1",
+ "heading2": "제목 레벨2",
+ "heading3": "제목 레벨3",
+ "bold": "강조",
+ "italic": "이탤릭",
+ "code": "코드",
+ "ordered-list": "번호 목차",
+ "unordered-list": "목차",
+ "quote": "인용",
+ "link": "링크",
+ "horizontal-rule": "나눔줄",
+ "toggle-preview": "미리보기 전환"
+ },
+ "bufferEditor": {
+ "title": "Buffer 에디터",
+ "modeString": "UTF-8 문자열로 처리",
+ "modeArray": "JSON 배열로 처리",
+ "modeDesc": "Buffer 에디터 버퍼타입은 byet값의 JSON배열로 저장됩니다. 이 에디터는 입력된 값을 JSON 배열로 구문분석 합니다. 만약 유효한 JSON이 아닌경우 UTF-8 문자열로 처리되어 각 문자코드 번호의 배열로 변환됩니다.
예를들어 Hello World
라는 값은 다음의 JSON 배열로 변환됩니다.
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100] "
+ },
+ "projects": {
+ "config-git": "Git client 설정",
+ "welcome": {
+ "hello": "안녕하세요. Node-RED에서 프로젝트 기능을 이용할 수 있게 되었습니다.",
+ "desc0": "플로우 파일을 관리하는 새로운 방법이며, 버전을 관리할 수 도 있습니다.",
+ "desc1": "무선 프로젝트를 작성하거나 기존의 Git저장소에서 프로젝트를 복제할 수 있습니다.",
+ "desc2": "이 기능을 건너뛰어도 상관없습니다. 언제든지 프로젝트 메뉴에서 첫번째 프로젝트를 만들 수 있습니다.",
+ "create": "프로젝트 생성",
+ "clone": "프로젝트 복제",
+ "openExistingProject": "기존 프로젝트 열기",
+ "not-right-now": "나중에"
+ },
+ "git-config": {
+ "setup": "버전관리 클라이언트를 설정합니다",
+ "desc0": "Node-RED는 오픈소스 Git로 버전관리를 할 수 있습니다. 프로젝트 파일의 변경사항을 추적하고 원격저장소로 push할 수 있습니다.",
+ "desc1": "당신이 변경사항을 커밋하면 git은 누가 변경사항을 만들었는지 사용자명과 이메일 정보를 기록합니다. 사용자명은 꼭 당신의 실명일 필요는 없습니다.",
+ "desc2": "당신의 Git 클라이언트는 아래와 같이 이미 설정되었습니다.",
+ "desc3": "당신은 git config의 설정탭에서 설정을 변경할 수 있습니다.",
+ "username": "사용자명",
+ "email": "이메일"
+ },
+ "project-details": {
+ "create": "프로젝트 생성",
+ "desc0": "프로젝트는 Git 저장소로 관리되어집니다. 다른 사람과 협업하거나 공유하기 쉬워집니다.",
+ "desc1": "당신은 여러 개의 프로젝트를 생성할 수 있고 에디터에서 프로젝트를 선택할 수 있습니다.",
+ "desc2": "시작하려면 프로젝트 이름과 프로젝트의 상세설명이 필요합니다.",
+ "already-exists": "프로젝트가 이미 존재합니다",
+ "must-contain": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
+ "project-name": "프로젝트명",
+ "desc": "상세설명",
+ "opt": "옵션"
+ },
+ "clone-project": {
+ "clone": "프로젝트 복제",
+ "desc0": "프로젝트가 있는 저장소를 가지고 있다면, 즉시 복제하여 사용할 수 있습니다.",
+ "already-exists": "프로젝트가 이미 존재합니다",
+ "must-contain": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
+ "project-name": "프로젝트명",
+ "no-info-in-url": "URL안에 사용자아이디/비밀번호를 사용하지 마세요",
+ "git-url": "Git 저장소 URL",
+ "protocols": "https://, ssh:// 혹은 file://",
+ "auth-failed": "인증 실패",
+ "username": "사용자명",
+ "passwd": "패스워드",
+ "ssh-key": "SSH키",
+ "passphrase": "패스워드",
+ "ssh-key-desc": "저장소를 복제하기 전에 접속을 위해 SSH키를 먼저 추가하세요.",
+ "ssh-key-add": "ssh키 추가",
+ "credential-key": "인증 암호화 키",
+ "cant-get-ssh-key": "에러! 선택한 SSH키 경로를 가져올 수 없습니다",
+ "already-exists2": "이미 존재합니다",
+ "git-error": "git 에러",
+ "connection-failed": "접속 실패",
+ "not-git-repo": "Git저장소가 아닙니다",
+ "repo-not-found": "저장소가 없습니다"
+ },
+ "default-files": {
+ "create": "프로젝트 파일 생성",
+ "desc0": "프로젝트는 당신의 플로우, README, package.json 파일을 포함합니다.",
+ "desc1": "Git 저장소에서 관리하고 싶은 다른 파일들을 포함할 수 있습니다.",
+ "desc2": "당신이 이미 가지고 있는 flow, 자격증명파일이 프로젝트로 복사될 것입니다.",
+ "flow-file": "플로우 파일",
+ "credentials-file": "자격증명 파일"
+ },
+ "encryption-config": {
+ "setup": "자격인증 파일의 암호화 설정",
+ "desc0": "플로우의 자격인증 파일 암호화를 통해 내용을 안전하게 유지할 수 있습니다.",
+ "desc1": "자격증명을 공용 Git저장소에 저장하려면 비밀키 구문을 제공하여 암호화 해야 합니다",
+ "desc2": "당신의 플로우 자격인증 파일은 암호화 되어 있지 않습니다.",
+ "desc3": "즉, 암호 및 액세스 토큰과 같은 내용을 파일에 액세스 할 수있는 모든 사람이 열람할 수 있습니다.",
+ "desc4": "자격증명을 공용 Git저장소에 저장하려면 비밀키 구문을 제공하여 암호화 해야 합니다",
+ "desc5": "당신의 플로우 자격증명파일은 setting파일의 credentialSecret속성으로 암호화되어 있습니다.",
+ "desc6": "당신의 플로우 자격증명파일은 시스템이 생성된 키에 의해 암호화 되어있습니다. 이 프로젝트용 새로운 비밀키를 지정해 주세요.",
+ "desc7": "키는 프로젝트파일과는 별개로 보존됩니다. 다른 Node-RED에서 이 프로젝트를 이용하려면 이 프로젝트의 키가 필요합니다.",
+ "credentials": "자격인증",
+ "enable": "암호화 활성화",
+ "disable": "암호화 비활성화",
+ "disabled": "비활성화됨",
+ "copy": "기존 키를 복사",
+ "use-custom": "커스텀키 사용",
+ "desc8": "자격증명 파일이 암호화되어 있지 않아, 간단히 해당내용이 열람될 수 있습니다.",
+ "create-project-files": "프로젝트 생성",
+ "create-project": "프로젝트 생성",
+ "already-exists": "이미 존재합니다.",
+ "git-error": "git 에러",
+ "git-auth-error": "git 인증 에러"
+ },
+ "create-success": {
+ "success": "당신의 첫번째 프로젝트 생성이 성공하였습니다.",
+ "desc0": "앞으로 이와 같이 Node-RED를 사용할 수 있습니다.",
+ "desc1": "사이드바의 '정보'탭은 현재 활성화된 프로젝트를 보여줍니다. 이름 옆에 있는 버틀을 사용하여 프로젝트 설정화면을 불러올 수 있습니다.",
+ "desc2": "사이드바의 '이력'탭은 프로젝트의 변경된 파일을 확인하고 커밋할 수 있습니다. 커밋의 전체 기록을 보여주고 변경사항을 원격 저장소에 push할 수 있습니다."
+ },
+ "create": {
+ "projects": "프로젝트",
+ "already-exists": "프로젝트가 이미 존재합니다",
+ "must-contain": "A-Z 0-9 _ -의 문자만 사용이 가능합니다",
+ "no-info-in-url": "URL안에 사용자아이디/비밀번호를 사용하지 마세요",
+ "open": "프로젝트 열기",
+ "create": "프로젝트 생성",
+ "clone": "프로젝트 복제",
+ "project-name": "프로젝트명",
+ "desc": "상세내역",
+ "opt": "옵션",
+ "flow-file": "플로우 파일",
+ "credentials": "자격증명",
+ "enable-encryption": "암호화 활성화",
+ "disable-encryption": "암호화 비활성화",
+ "encryption-key": "암호화 키",
+ "desc0": "자격증명 정보를 안전하게 하는 문구",
+ "desc1": "자격증명 파일이 암호화되어 있지 않아, 간단히 해당내용이 열람될 수 있습니다.",
+ "git-url": "Git 저장소 URL",
+ "protocols": "https://, ssh:// 혹은 file://",
+ "auth-failed": "인증 실패",
+ "username": "사용자명",
+ "password": "패스워드",
+ "ssh-key": "SSH키",
+ "passphrase": "패스워드",
+ "desc2": "저장소를 복제하기 전에 접속을 위해 SSH키를 먼저 추가하세요.",
+ "add-ssh-key": "ssh키 추가",
+ "credentials-encryption-key": "자격인증 암호화 키",
+ "already-exists-2": "이미 존재합니다",
+ "git-error": "git 에러",
+ "con-failed": "접속 실패",
+ "not-git": "git 저장소가 아닙니다",
+ "no-resource": "저장소아 없습니다",
+ "cant-get-ssh-key-path": "에러! 선택한 SSH키 경로를 가져올 수 없습니다.",
+ "unexpected_error": "예기치 않은 에러",
+ "clearContext": "프로젝트 전환 시 context 삭제"
+ },
+ "delete": {
+ "confirm": "프로젝트를 정말 지우시겠습니까?"
+ },
+ "create-project-list": {
+ "search": "프로젝트 검색",
+ "current": "현재"
+ },
+ "require-clean": {
+ "confirm": "변경사항을 배포하지 않아 내용이 손실될 수 있습니다.
계속 할까요?
"
+ },
+ "send-req": {
+ "auth-req": "저장소에 대한 인증이 필요합니다.",
+ "username": "사용자명",
+ "password": "패스워드",
+ "passphrase": "패스워드",
+ "retry": "재시도",
+ "update-failed": "인증 변경 실패",
+ "unhandled": "오류 응답 미처리"
+ },
+ "create-branch-list": {
+ "invalid": "올바르지 않은 브랜치",
+ "create": "브랜치 생성",
+ "current": "현재"
+ },
+ "create-default-file-set": {
+ "no-active": "활성화된 프로젝트 없이 기본 파일을 만들 수 없습니다.",
+ "no-empty": "비어있지 않은 프로젝트에 기본 파일을 만들 수 없습니다.",
+ "git-error": "git 에러"
+ },
+ "errors": {
+ "no-username-email": "당신의 Git 클라이언트에 사용자명/이메일이 설정되지 않았습니다.",
+ "unexpected": "예기치 않은 에러가 발생했습니다.",
+ "code": "코드"
+ }
+ },
+ "editor-tab": {
+ "properties": "속성",
+ "envProperties": "환경 변수",
+ "module": "모듈 속성",
+ "description": "상세 내역",
+ "appearance": "모양",
+ "preview": "UI 프리뷰",
+ "defaultValue": "기본값"
+ },
+ "tourGuide": {
+ "takeATour": "둘러보기",
+ "start": "시작",
+ "next": "다음",
+ "welcomeTours": "버전 별 릴리즈 정보"
+ },
+ "diagnostics": {
+ "title": "시스템 정보"
+ },
+ "contextMenu": {
+ "insert": "삽입",
+ "node": "노드",
+ "junction": "접합",
+ "linkNodes": "링크 노드"
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/ko/infotips.json b/packages/node_modules/@node-red/editor-client/locales/ko/infotips.json
old mode 100755
new mode 100644
index ef0102ecc..ec947894c
--- a/packages/node_modules/@node-red/editor-client/locales/ko/infotips.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ko/infotips.json
@@ -1,23 +1,23 @@
-{
- "info": {
- "tip0": "{{core:delete-selection}}를 사용하여 선택된 노드나 링크를 삭제할 수 있습니다.",
- "tip1": "{{core:search}}를 활용하여 노드를 검색할 수 있습니다.",
- "tip2": "{{core:toggle-sidebar}}를 사용하여 사이드바를 표시/비표시 전환 할 수 있습니다.",
- "tip3": "{{core:manage-palette}}를 사용하여 노드 팔레트를 관리 할 수 있습니다.",
- "tip4": "플로우 안의 설정노드가 사이드바에 표시됩니다. 메뉴 혹은 {{core:show-config-tab}}를 사용하여 엑세스 할 수 있습니다.",
- "tip5": "설정에서 이 팁을 활성화/비활성화 할 수 있습니다.",
- "tip6": "[left] [up] [down] [right] 키를 사용하여 선택된 노드를 움직일 수 있습니다. [shift]키를 누른 채로 움직이면 이동폭이 늘어납니다.",
- "tip7": "노드를 와이어 사이로 드래그 하여 연결할 수도 있습니다.",
- "tip8": "{{core:show-export-dialog}}를 사용하여 선택한 노드 또는 현재탭을 내보낼 수 있습니다.",
- "tip9": "JSON파일을 에디터로 드래그하거나 {{core:show-import-dialog}}를 사용하여 플로우 가져올 수 있습니다.",
- "tip10": "[shift] [click] 하고서 드래그하여 선택한 와이어를 이동할 수 있습니다.",
- "tip11": "{{core:show-info-tab}}를 사용하여 정보탭을 표시하거나 {{core:show-debug-tab}}를 사용하여 디버그탭을 표시할 수 있습니다.",
- "tip12": "작업공간에서 [ctrl] [click]을 사용하여 빠른추가 대회상자를 열 수 있습니다.",
- "tip13": "[ctrl]을 누른 상태로 노드의 포트를 클릭하여 빠르게 연결할 수 있습니다.",
- "tip14": "[shift]를 누른 상태로 노드를 클릭하여 연결된 모든 노드를 선택할 수 있습니다.",
- "tip15": "[ctrl]을 누른 상태로 노드를 클릭하여 현재 선택영역에 노드를 추가/제거 할 수 있습니다.",
- "tip16": "{{core:show-previous-tab}}와 {{core:show-next-tab}}를 사용하여 탭을 전환할 수 있습니다.",
- "tip17": "노드 편집 창에서 {{core : confirm-edit-tray}}로 변경 사항을 확인하거나 {{core : cancel-edit-tray}}로 취소 할 수 있습니다.",
- "tip18": "{{core : edit-selected-node}}를 누르면 현재 선택 영역의 첫 번째 노드가 편집됩니다."
- }
-}
\ No newline at end of file
+{
+ "info": {
+ "tip0": "{{core:delete-selection}}를 사용하여 선택된 노드나 링크를 삭제할 수 있습니다.",
+ "tip1": "{{core:search}}를 활용하여 노드를 검색할 수 있습니다.",
+ "tip2": "{{core:toggle-sidebar}}를 사용하여 사이드바를 표시/비표시 전환 할 수 있습니다.",
+ "tip3": "{{core:manage-palette}}를 사용하여 노드 팔레트를 관리 할 수 있습니다.",
+ "tip4": "플로우 안의 설정노드가 사이드바에 표시됩니다. 메뉴 혹은 {{core:show-config-tab}}를 사용하여 엑세스 할 수 있습니다.",
+ "tip5": "설정에서 이 팁을 활성화/비활성화 할 수 있습니다.",
+ "tip6": "[left] [up] [down] [right] 키를 사용하여 선택된 노드를 움직일 수 있습니다. [shift]키를 누른 채로 움직이면 이동폭이 늘어납니다.",
+ "tip7": "노드를 와이어 사이로 드래그 하여 연결할 수도 있습니다.",
+ "tip8": "{{core:show-export-dialog}}를 사용하여 선택한 노드 또는 현재탭을 내보낼 수 있습니다.",
+ "tip9": "JSON파일을 에디터로 드래그하거나 {{core:show-import-dialog}}를 사용하여 플로우 가져올 수 있습니다.",
+ "tip10": "[shift] [click] 하고서 드래그하여 선택한 와이어를 이동할 수 있습니다.",
+ "tip11": "{{core:show-info-tab}}를 사용하여 정보탭을 표시하거나 {{core:show-debug-tab}}를 사용하여 디버그탭을 표시할 수 있습니다.",
+ "tip12": "작업공간에서 [ctrl] [click]을 사용하여 빠른추가 대회상자를 열 수 있습니다.",
+ "tip13": "[ctrl]을 누른 상태로 노드의 포트를 클릭하여 빠르게 연결할 수 있습니다.",
+ "tip14": "[shift]를 누른 상태로 노드를 클릭하여 연결된 모든 노드를 선택할 수 있습니다.",
+ "tip15": "[ctrl]을 누른 상태로 노드를 클릭하여 현재 선택영역에 노드를 추가/제거 할 수 있습니다.",
+ "tip16": "{{core:show-previous-tab}}와 {{core:show-next-tab}}를 사용하여 탭을 전환할 수 있습니다.",
+ "tip17": "노드 편집 창에서 {{core : confirm-edit-tray}}로 변경 사항을 확인하거나 {{core : cancel-edit-tray}}로 취소 할 수 있습니다.",
+ "tip18": "{{core : edit-selected-node}}를 누르면 현재 선택 영역의 첫 번째 노드가 편집됩니다."
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/ko/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/ko/jsonata.json
old mode 100755
new mode 100644
index 0e49d97a8..bd8a0d2ee
--- a/packages/node_modules/@node-red/editor-client/locales/ko/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ko/jsonata.json
@@ -1,222 +1,222 @@
-{
- "$string": {
- "args": "arg",
- "desc": "다음과 같은 규칙을 사용하여 인수 *arg*를 문자열로 변환합니다. \n\n - 문자열은 변경되지 않습니다. \n - 함수는 빈 문자열로 변환됩니다. \n - 무한대와 NaN은 JSON수치로 표현할 수 없기 때문에 오류처리 됩니다. \n - 다른 모든 값은 `JSON.stringify` 함수를 사용하여 JSON 문자열로 변환됩니다."
- },
- "$length": {
- "args": "str",
- "desc": "문자열 `str`의 문자 수를 반환합니다. `str`가 문자열이 아닌 경우 에러를 반환합니다."
- },
- "$substring": {
- "args": "str, start[, length]",
- "desc": "(zero-offset)의 `start`에서 시작하는 첫번째 인수 `str`의 문자열을 반환합니다. 만약 `length`가 지정된 경우, 부분 문자열은 최대 `length`의 크기를 갖습니다. 만약 `start` 인수가 음수이면 `str`의 끝에서부터의 문자수를 나타냅니다."
- },
- "$substringBefore": {
- "args": "str, chars",
- "desc": "`str`에 `chars`문자가 처음으로 나오기 전까지의 부분문자열을 반환합니다. 만약 `chars`가 없으면 `str`을 반환합니다."
- },
- "$substringAfter": {
- "args": "str, chars",
- "desc": "`str`에 `chars`문자가 처음으로 나온 이후의 부분문자열을 반환합니다. 만약 `chars`가 없으면 `str`을 반환합니다."
- },
- "$uppercase": {
- "args": "str",
- "desc": "`str`의 문자를 대문자로 반환합니다."
- },
- "$lowercase": {
- "args": "str",
- "desc": "`str`의 문자를 소문자로 반환합니다."
- },
- "$trim": {
- "args": "str",
- "desc": "다음의 순서대로 `str`의 모든 공백을 자르고 정규화 합니다:\n\n - 모든 탭, 캐리지 리턴 및 줄 바꿈은 공백으로 대체됩니다. \n- 연속된 공백은 하나로 줄입니다.\n- 후행 및 선행 공백은 삭제됩니다.\n\n 만일 `str`이 지정되지 않으면 (예: 이 함수를 인수없이 호출), context값을 `str`의 값으로 사용합니다. `str`이 문자열이 아니면 에러가 발생합니다."
- },
- "$contains": {
- "args": "str, pattern",
- "desc": "`str`이 `pattern`과 일치하면 `true`를, 일치하지 않으면 `false`를 반환합니다. 만약 `str`이 지정되지 않으면 (예: 이 함수를 인수없이 호출), context값을 `str`의 값으로 사용합니다. `pattern` 인수는 문자열이나 정규표현으로 할 수 있습니다."
- },
- "$split": {
- "args": "str[, separator][, limit]",
- "desc": "`str`인수를 분할하여 부분문자열로 배열합니다. `str`이 문자열이 아니면 에러가 발생합니다. 생략가능한 인수 `separator`는 `str`을 분할하는 문자를 문자열 또는 정규표현으로 지정합니다. `separator`를 지정하지 않은 경우, 공백의 문자열로 간주하여 `str`은 단일 문자의 배열로 분리됩니다. `separator`가 문자열이 아니면 에러가 발생합니다. 생략가능한 인수 'limit`는 결과의 배열이 갖는 부분문자열의 최대수를 지정합니다. 이 수를 넘는 부분문자열은 파기됩니다. `limit`가 지정되지 않으면`str`은 결과 배열의 크기의 제한없이 완전히 분리됩니다. `limit`이 음수인 경우 에러가 발생합니다."
- },
- "$join": {
- "args": "array[, separator]",
- "desc": "문자열의 배열을 생략가능한 인수 `separator`로 구분한 하나의 문자열로 연결합니다. 배열 `array`가 문자열이 아닌 요소를 포함하는 경우, 에러가 발생합니다. `separator`를 지정하지 않은 경우, 공백의 문자열로 간주합니다(예: 문자열간의 `separator`없음). `separator`가 문자열이 아닌 경우, 에러가 발생합니다."
- },
- "$match": {
- "args": "str, pattern [, limit]",
- "desc": "`str`문자열에 `pattern`를 적용하여, 오브젝트 배열을 반환합니다. 배열요소의 오브젝트는 `str`중 일치하는 부분의 정보를 보유합니다."
- },
- "$replace": {
- "args": "str, pattern, replacement [, limit]",
- "desc": "`str`문자열에서 `pattern` 패턴을 검색하여, `replacement`로 대체합니다.\n\n임의이ㅡ 인수 `limit`는 대체 횟수의 상한값을 지정합니다."
- },
- "$now": {
- "args": "",
- "desc": "ISO 8601 호환 형식으로 타임 스탬프를 생성하고 이를 문자열로 반환합니다."
- },
- "$base64encode": {
- "args": "string",
- "desc": "ASCII 문자열을 base 64 표현으로 변환합니다. 문자열의 각 문자는 이진 데이터의 바이트로 처리됩니다. 이렇게 하려면 문자열의 모든 문자가 URI로 인코딩 된 문자열을 포함하고, 0x00에서 0xFF 범위에 있어야합니다. 해당 범위를 벗어난 유니 코드 문자는 지원되지 않습니다"
- },
- "$base64decode": {
- "args": "string",
- "desc": "UTF-8코드페이지를 이용하여, Base 64형식의 바이트값을 문자열로 변환합니다."
- },
- "$number": {
- "args": "arg",
- "desc": "`arg`를 다음과 같은 규칙을 사요하여 숫자로 변환합니다. :\n\n - 숫자는 변경되지 않습니다.\n – 올바른 JSON의 숫자는 숫자 그대로 변환됩니다.\n – 그 외의 형식은 에러를 발생합니다."
- },
- "$abs": {
- "args": "number",
- "desc": "`number`의 절대값을 반환합니다."
- },
- "$floor": {
- "args": "number",
- "desc": "`number`를 `number`보다 같거나 작은 정수로 내림하여 반환합니다."
- },
- "$ceil": {
- "args": "number",
- "desc": "`number`를 `number`와 같거나 큰 정수로 올림하여 반환합니다."
- },
- "$round": {
- "args": "number [, precision]",
- "desc": "인수 `number`를 반올림한 값을 반환합니다. 임의의 인수 `precision`에는 반올립에서 사용할 소수점이하의 자릿수를 지정합니다."
- },
- "$power": {
- "args": "base, exponent",
- "desc": "기수 `base`의 값을 지수 `exponent`만큼의 거듭 제곱으로 반환합니다."
- },
- "$sqrt": {
- "args": "number",
- "desc": "인수 `number`의 제곱근을 반환합니다."
- },
- "$random": {
- "args": "",
- "desc": "0이상 1미만의 의사난수를 반환합니다."
- },
- "$millis": {
- "args": "",
- "desc": "Unix Epoch (1970 년 1 월 1 일 UTC)부터 경과된 밀리 초 수를 숫자로 반환합니다. 평가대상식에 포함되는 $millis()의 모든 호출은 모두 같은 값을 반환합니다."
- },
- "$sum": {
- "args": "array",
- "desc": "숫자 배열 `array`의 합계를 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
- },
- "$max": {
- "args": "array",
- "desc": "숫자 배열 `array`에서 최대값을 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
- },
- "$min": {
- "args": "array",
- "desc": "숫자 배열 `array`에서 최소값을 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
- },
- "$average": {
- "args": "array",
- "desc": "숫자 배열 `array`에서 평균값을 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
- },
- "$boolean": {
- "args": "arg",
- "desc": "`arg` 값을 다음의 규칙에 의해 Boolean으로 변환합니다::\n\n - `Boolean` : 변환하지 않음\n - `string`: 비어있음 : `false`\n - `string`: 비어있지 않음 : `true`\n - `number`: `0` : `false`\n - `number`: 0이 아님 : `true`\n - `null` : `false`\n - `array`: 비어있음 : `false`\n - `array`: `true`로 변환된 요소를 가짐 : `true`\n - `array`: 모든 요소가 `false`로 변환 : `false`\n - `object`: 비어있음 : `false`\n - `object`: 비어있지 않음 : `true`\n - `function` : `false`"
- },
- "$not": {
- "args": "arg",
- "desc": "인수의 부정을 Boolean으로 변환합니다. `arg`는 가장먼저boolean으로 변환됩니다."
- },
- "$exists": {
- "args": "arg",
- "desc": "`arg` 식의 평가값이 존재하는 경우 `true`, 식의 평가결과가 미정의인 경우 (예: 존재하지 않는 참조필드로의 경로)는 `false`를 반환합니다."
- },
- "$count": {
- "args": "array",
- "desc": "`array`의 요소 갯수를 반환합니다."
- },
- "$append": {
- "args": "array, array",
- "desc": "두개의 `array`를 병합합니다."
- },
- "$sort": {
- "args": "array [, function]",
- "desc": "배열 `array`의 모든 값을 순서대로 정렬하여 반환합니다. \n\n 비교함수 `function`을 이용하는 경우, 비교함수는 아래와 같은 두개의 인수를 가져야 합니다. \n\n `function(left,right)` \n\n 비교함수는 left와 right의 두개의 값을 비교하기에, 값을 정렬하는 처리에서 호출됩니다. 만약 요구되는 정렬에서 left값을 right값보다 뒤로 두고싶은 경우에는, 비교함수는 치환을 나타내는 Boolean형의 ``true`를, 그렇지 않은 경우에는 `false`를 반환해야 합니다."
- },
- "$reverse": {
- "args": "array",
- "desc": "`array`에 포함된 모든 값의 순서를 역순으로 변환하여 반환합니다."
- },
- "$shuffle": {
- "args": "array",
- "desc": "`array`에 포함된 모든 값의 순서를 랜덤으로 반환합니다."
- },
- "$zip": {
- "args": "array, ...",
- "desc": "배열 `array1` ... arrayN`의 위치 0, 1, 2…. 의 값으로 구성된 convolved (zipped) 배열을 반환합니다."
- },
- "$keys": {
- "args": "object",
- "desc": "`object` 키를 포함하는 배열을 반환합니다. 인수가 오브젝트의 배열이면 반환되는 배열은 모든 오브젝트에있는 모든 키의 중복되지 않은 목록이 됩니다."
- },
- "$lookup": {
- "args": "object, key",
- "desc": "`object` 내의 `key`가 갖는 값을 반환합니다. 최초의 인수가 객체의 배열 인 경우, 배열 내의 모든 오브젝트를 검색하여, 존재하는 모든 키가 갖는 값을 반환합니다."
- },
- "$spread": {
- "args": "object",
- "desc": "`object`의 키/값 쌍별로 각 요소가 하나인 오브젝트 배열로 분할합니다. 만일 오브젝트 배열인 경우, 배열의 결과는 각 오브젝트에서 얻은 키/값 쌍의 오브젝트를 갖습니다."
- },
- "$merge": {
- "args": "array<object>",
- "desc": "`object`배열을 하나의 `object`로 병합합니다. 병합결과의 오브젝트는 입력배열내의 각 오브젝트의 키/값 쌍을 포함합니다. 입력 오브젝트가 같은 키를 가질경우, 반환 된 `object`에는 배열 마지막의 오브젝트의 키/값이 격납됩니다. 입력 배열이 오브젝트가 아닌 요소를 포함하는 경우, 에러가 발생합니다."
- },
- "$sift": {
- "args": "object, function",
- "desc": "함수 `function`을 충족시키는 `object` 인수 키/값 쌍만 포함하는 오브젝트를 반환합니다. \n\n 함수 `function` 다음과 같은 인수를 가져야 합니다 : \n\n `function(value [, key [, object]])`"
- },
- "$each": {
- "args": "object, function",
- "desc": "`object`의 각 키/값 쌍에, 함수`function`을 적용한 값의 배열을 반환합니다."
- },
- "$map": {
- "args": "array, function",
- "desc": "`array`의 각 값에 `function`을 적용한 결과로 이루어진 배열을 반환합니다. \n\n 함수 `function`은 다음과 같은 인수를 가져야 합니다. \n\n `function(value[, index[, array]])`"
- },
- "$filter": {
- "args": "array, function",
- "desc": "`array`의 값중, 함수 `function`의 조건을 만족하는 값으로 이루어진 배열을 반환합니다. \n\n 함수 `function`은 다음과 같은 형식을 가져야 합니다. \n\n `function(value[, index[, array]])`"
- },
- "$reduce": {
- "args": "array, function [, init]",
- "desc": "배열의 각 요소값에 함수 `function`을 연속적으로 적용하여 얻어지는 집계값을 반환합니다. `function`의 적용에는 직전의 `function`의 적용결과와 요소값이 인수로 주어집니다. \n\n 함수 `function`은 인수를 두개 뽑아, 배열의 각 요소 사이에 배치하는 중치연산자처럼 작용해야 합니다. \n\n 임의의 인수 `init`에는 집약시의 초기값을 설정합니다."
- },
- "$flowContext": {
- "args": "string[, string]",
- "desc": "플로우 컨텍스트 속성을 취득합니다."
- },
- "$globalContext": {
- "args": "string[, string]",
- "desc": "플로우의 글로벌 컨텍스트 속성을 취득합니다."
- },
- "$pad": {
- "args": "string, width [, char]",
- "desc": "문자수가 인수 `width`의 절대값이상이 되도록, 필요한 경우 여분의 패딩을 사용하여 `string`의 복사본을 반환합니다. \n\n `width`가 양수인 경우, 오른쪽으로 채워지고, 음수이면 왼쪽으로 채워집니다. \n\n 임의의 `char`인수에는 이 함수에서 사용할 패딩을 지정합니다. 지정하지 않는 경우에는, 기본값으로 공백을 사용합니다."
- },
- "$fromMillis": {
- "args": "number",
- "desc": "Unix Epoch (1970 년 1 월 1 일 UTC) 이후의 밀리 초를 나타내는 숫자를 ISO 8601 형식의 타임 스탬프 문자열로 변환합니다."
- },
- "$formatNumber": {
- "args": "number, picture [, options]",
- "desc": "`number`를 문자열로 변환하고 `picture` 문자열에 지정된 표현으로 서식을 변경합니다. \n\n 이 함수의 동작은 XPath F&O 3.1사양에 정의된 XPath/XQuery함수의 fn:format-number의 동작과 같습니다. 인수의 문자열 picture은 fn:format-number 과 같은 구문으로 수치의 서식을 정의합니다. \n\n 임의의 제3 인수 `option`은 소수점기호와 같은 기본 로케일 고유의 서식설정문자를 덮어쓰는데에 사용됩니다. 이 인수를 지정할 경우, XPath F&O 3.1사양의 수치형식에 기술되어있는 name/value 쌍을 포함하는 오브젝트여야 합니다."
- },
- "$formatBase": {
- "args": "number [, radix]",
- "desc": "`number`를 인수 `radix`에 지정한 값을 기수로하는 문자열로 변환합니다. `radix`가 지정되지 않은 경우, 기수 10이 기본값으로 설정됩니다. `radix`에는 2~36의 값을 설정할 수 있고, 그 외의 값의 경우에는 에러가 발생합니다."
- },
- "$toMillis": {
- "args": "timestamp",
- "desc": "ISO 8601 형식의 `timestamp`를 Unix Epoch (1970 년 1 월 1 일 UTC) 이후의 밀리 초 수로 변환합니다. 문자열이 올바른 형식이 아닌 경우 에러가 발생합니다."
- },
- "$env": {
- "args": "arg",
- "desc": "환경변수를 값으로 반환합니다.\n\n 이 함수는 Node-RED 정의 함수입니다."
- }
-}
\ No newline at end of file
+{
+ "$string": {
+ "args": "arg",
+ "desc": "다음과 같은 규칙을 사용하여 인수 *arg*를 문자열로 변환합니다.\n\n - 문자열은 변경되지 않습니다.\n - 함수는 빈 문자열로 변환됩니다.\n - 무한대와 NaN은 JSON수치로 표현할 수 없기 때문에 오류처리 됩니다.\n - 다른 모든 값은 `JSON.stringify` 함수를 사용하여 JSON 문자열로 변환됩니다."
+ },
+ "$length": {
+ "args": "str",
+ "desc": "문자열 `str`의 문자 수를 반환합니다. `str`가 문자열이 아닌 경우 에러를 반환합니다."
+ },
+ "$substring": {
+ "args": "str, start[, length]",
+ "desc": "(zero-offset)의 `start`에서 시작하는 첫번째 인수 `str`의 문자열을 반환합니다. 만약 `length`가 지정된 경우, 부분 문자열은 최대 `length`의 크기를 갖습니다. 만약 `start` 인수가 음수이면 `str`의 끝에서부터의 문자수를 나타냅니다."
+ },
+ "$substringBefore": {
+ "args": "str, chars",
+ "desc": "`str`에 `chars`문자가 처음으로 나오기 전까지의 부분문자열을 반환합니다. 만약 `chars`가 없으면 `str`을 반환합니다."
+ },
+ "$substringAfter": {
+ "args": "str, chars",
+ "desc": "`str`에 `chars`문자가 처음으로 나온 이후의 부분문자열을 반환합니다. 만약 `chars`가 없으면 `str`을 반환합니다."
+ },
+ "$uppercase": {
+ "args": "str",
+ "desc": "`str`의 문자를 대문자로 반환합니다."
+ },
+ "$lowercase": {
+ "args": "str",
+ "desc": "`str`의 문자를 소문자로 반환합니다."
+ },
+ "$trim": {
+ "args": "str",
+ "desc": "다음의 순서대로 `str`의 모든 공백을 자르고 정규화 합니다:\n\n - 모든 탭, 캐리지 리턴 및 줄 바꿈은 공백으로 대체됩니다.\n- 연속된 공백은 하나로 줄입니다.\n- 후행 및 선행 공백은 삭제됩니다.\n\n 만일 `str`이 지정되지 않으면 (예: 이 함수를 인수없이 호출), context값을 `str`의 값으로 사용합니다. `str`이 문자열이 아니면 에러가 발생합니다."
+ },
+ "$contains": {
+ "args": "str, pattern",
+ "desc": "`str`이 `pattern`과 일치하면 `true`를, 일치하지 않으면 `false`를 반환합니다. 만약 `str`이 지정되지 않으면 (예: 이 함수를 인수없이 호출), context값을 `str`의 값으로 사용합니다. `pattern` 인수는 문자열이나 정규표현으로 할 수 있습니다."
+ },
+ "$split": {
+ "args": "str[, separator][, limit]",
+ "desc": "`str`인수를 분할하여 부분문자열로 배열합니다. `str`이 문자열이 아니면 에러가 발생합니다. 생략가능한 인수 `separator`는 `str`을 분할하는 문자를 문자열 또는 정규표현으로 지정합니다. `separator`를 지정하지 않은 경우, 공백의 문자열로 간주하여 `str`은 단일 문자의 배열로 분리됩니다. `separator`가 문자열이 아니면 에러가 발생합니다. 생략가능한 인수 'limit`는 결과의 배열이 갖는 부분문자열의 최대수를 지정합니다. 이 수를 넘는 부분문자열은 파기됩니다. `limit`가 지정되지 않으면`str`은 결과 배열의 크기의 제한없이 완전히 분리됩니다. `limit`이 음수인 경우 에러가 발생합니다."
+ },
+ "$join": {
+ "args": "array[, separator]",
+ "desc": "문자열의 배열을 생략가능한 인수 `separator`로 구분한 하나의 문자열로 연결합니다. 배열 `array`가 문자열이 아닌 요소를 포함하는 경우, 에러가 발생합니다. `separator`를 지정하지 않은 경우, 공백의 문자열로 간주합니다(예: 문자열간의 `separator`없음). `separator`가 문자열이 아닌 경우, 에러가 발생합니다."
+ },
+ "$match": {
+ "args": "str, pattern [, limit]",
+ "desc": "`str`문자열에 `pattern`를 적용하여, 오브젝트 배열을 반환합니다. 배열요소의 오브젝트는 `str`중 일치하는 부분의 정보를 보유합니다."
+ },
+ "$replace": {
+ "args": "str, pattern, replacement [, limit]",
+ "desc": "`str`문자열에서 `pattern` 패턴을 검색하여, `replacement`로 대체합니다.\n\n임의이ㅡ 인수 `limit`는 대체 횟수의 상한값을 지정합니다."
+ },
+ "$now": {
+ "args": "",
+ "desc": "ISO 8601 호환 형식으로 타임 스탬프를 생성하고 이를 문자열로 반환합니다."
+ },
+ "$base64encode": {
+ "args": "string",
+ "desc": "ASCII 문자열을 base 64 표현으로 변환합니다. 문자열의 각 문자는 이진 데이터의 바이트로 처리됩니다. 이렇게 하려면 문자열의 모든 문자가 URI로 인코딩 된 문자열을 포함하고, 0x00에서 0xFF 범위에 있어야합니다. 해당 범위를 벗어난 유니 코드 문자는 지원되지 않습니다"
+ },
+ "$base64decode": {
+ "args": "string",
+ "desc": "UTF-8코드페이지를 이용하여, Base 64형식의 바이트값을 문자열로 변환합니다."
+ },
+ "$number": {
+ "args": "arg",
+ "desc": "`arg`를 다음과 같은 규칙을 사요하여 숫자로 변환합니다. :\n\n - 숫자는 변경되지 않습니다.\n – 올바른 JSON의 숫자는 숫자 그대로 변환됩니다.\n – 그 외의 형식은 에러를 발생합니다."
+ },
+ "$abs": {
+ "args": "number",
+ "desc": "`number`의 절대값을 반환합니다."
+ },
+ "$floor": {
+ "args": "number",
+ "desc": "`number`를 `number`보다 같거나 작은 정수로 내림하여 반환합니다."
+ },
+ "$ceil": {
+ "args": "number",
+ "desc": "`number`를 `number`와 같거나 큰 정수로 올림하여 반환합니다."
+ },
+ "$round": {
+ "args": "number [, precision]",
+ "desc": "인수 `number`를 반올림한 값을 반환합니다. 임의의 인수 `precision`에는 반올립에서 사용할 소수점이하의 자릿수를 지정합니다."
+ },
+ "$power": {
+ "args": "base, exponent",
+ "desc": "기수 `base`의 값을 지수 `exponent`만큼의 거듭 제곱으로 반환합니다."
+ },
+ "$sqrt": {
+ "args": "number",
+ "desc": "인수 `number`의 제곱근을 반환합니다."
+ },
+ "$random": {
+ "args": "",
+ "desc": "0이상 1미만의 의사난수를 반환합니다."
+ },
+ "$millis": {
+ "args": "",
+ "desc": "Unix Epoch (1970 년 1 월 1 일 UTC)부터 경과된 밀리 초 수를 숫자로 반환합니다. 평가대상식에 포함되는 $millis()의 모든 호출은 모두 같은 값을 반환합니다."
+ },
+ "$sum": {
+ "args": "array",
+ "desc": "숫자 배열 `array`의 합계를 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
+ },
+ "$max": {
+ "args": "array",
+ "desc": "숫자 배열 `array`에서 최대값을 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
+ },
+ "$min": {
+ "args": "array",
+ "desc": "숫자 배열 `array`에서 최소값을 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
+ },
+ "$average": {
+ "args": "array",
+ "desc": "숫자 배열 `array`에서 평균값을 반환합니다. `array`에 숫자가 아닌 요소가 있는 경우, 에러가 발생합니다."
+ },
+ "$boolean": {
+ "args": "arg",
+ "desc": "`arg` 값을 다음의 규칙에 의해 Boolean으로 변환합니다::\n\n - `Boolean` : 변환하지 않음\n - `string`: 비어있음 : `false`\n - `string`: 비어있지 않음 : `true`\n - `number`: `0` : `false`\n - `number`: 0이 아님 : `true`\n - `null` : `false`\n - `array`: 비어있음 : `false`\n - `array`: `true`로 변환된 요소를 가짐 : `true`\n - `array`: 모든 요소가 `false`로 변환 : `false`\n - `object`: 비어있음 : `false`\n - `object`: 비어있지 않음 : `true`\n - `function` : `false`"
+ },
+ "$not": {
+ "args": "arg",
+ "desc": "인수의 부정을 Boolean으로 변환합니다. `arg`는 가장먼저boolean으로 변환됩니다."
+ },
+ "$exists": {
+ "args": "arg",
+ "desc": "`arg` 식의 평가값이 존재하는 경우 `true`, 식의 평가결과가 미정의인 경우 (예: 존재하지 않는 참조필드로의 경로)는 `false`를 반환합니다."
+ },
+ "$count": {
+ "args": "array",
+ "desc": "`array`의 요소 갯수를 반환합니다."
+ },
+ "$append": {
+ "args": "array, array",
+ "desc": "두개의 `array`를 병합합니다."
+ },
+ "$sort": {
+ "args": "array [, function]",
+ "desc": "배열 `array`의 모든 값을 순서대로 정렬하여 반환합니다.\n\n 비교함수 `function`을 이용하는 경우, 비교함수는 아래와 같은 두개의 인수를 가져야 합니다.\n\n `function(left,right)`\n\n 비교함수는 `left`와 `right`의 두개의 값을 비교하기에, 값을 정렬하는 처리에서 호출됩니다. 만약 요구되는 정렬에서 left값을 `right`값보다 뒤로 두고싶은 경우에는, 비교함수는 치환을 나타내는 Boolean형의 `true`를, 그렇지 않은 경우에는 `false`를 반환해야 합니다."
+ },
+ "$reverse": {
+ "args": "array",
+ "desc": "`array`에 포함된 모든 값의 순서를 역순으로 변환하여 반환합니다."
+ },
+ "$shuffle": {
+ "args": "array",
+ "desc": "`array`에 포함된 모든 값의 순서를 랜덤으로 반환합니다."
+ },
+ "$zip": {
+ "args": "array, ...",
+ "desc": "배열 `array1` ... arrayN`의 위치 0, 1, 2…. 의 값으로 구성된 convolved (zipped) 배열을 반환합니다."
+ },
+ "$keys": {
+ "args": "object",
+ "desc": "`object` 키를 포함하는 배열을 반환합니다. 인수가 오브젝트의 배열이면 반환되는 배열은 모든 오브젝트에있는 모든 키의 중복되지 않은 목록이 됩니다."
+ },
+ "$lookup": {
+ "args": "object, key",
+ "desc": "`object` 내의 `key`가 갖는 값을 반환합니다. 최초의 인수가 객체의 배열 인 경우, 배열 내의 모든 오브젝트를 검색하여, 존재하는 모든 키가 갖는 값을 반환합니다."
+ },
+ "$spread": {
+ "args": "object",
+ "desc": "`object`의 키/값 쌍별로 각 요소가 하나인 오브젝트 배열로 분할합니다. 만일 오브젝트 배열인 경우, 배열의 결과는 각 오브젝트에서 얻은 키/값 쌍의 오브젝트를 갖습니다."
+ },
+ "$merge": {
+ "args": "array<object>",
+ "desc": "`object`배열을 하나의 `object`로 병합합니다. 병합결과의 오브젝트는 입력배열내의 각 오브젝트의 키/값 쌍을 포함합니다. 입력 오브젝트가 같은 키를 가질경우, 반환 된 `object`에는 배열 마지막의 오브젝트의 키/값이 격납됩니다. 입력 배열이 오브젝트가 아닌 요소를 포함하는 경우, 에러가 발생합니다."
+ },
+ "$sift": {
+ "args": "object, function",
+ "desc": "함수 `function`을 충족시키는 `object` 인수 키/값 쌍만 포함하는 오브젝트를 반환합니다.\n\n 함수 `function` 다음과 같은 인수를 가져야 합니다 :\n\n `function(value [, key [, object]])`"
+ },
+ "$each": {
+ "args": "object, function",
+ "desc": "`object`의 각 키/값 쌍에, 함수`function`을 적용한 값의 배열을 반환합니다."
+ },
+ "$map": {
+ "args": "array, function",
+ "desc": "`array`의 각 값에 `function`을 적용한 결과로 이루어진 배열을 반환합니다.\n\n 함수 `function`은 다음과 같은 인수를 가져야 합니다.\n\n `function(value[, index[, array]])`"
+ },
+ "$filter": {
+ "args": "array, function",
+ "desc": "`array`의 값중, 함수 `function`의 조건을 만족하는 값으로 이루어진 배열을 반환합니다.\n\n 함수 `function`은 다음과 같은 형식을 가져야 합니다.\n\n `function(value[, index[, array]])`"
+ },
+ "$reduce": {
+ "args": "array, function [, init]",
+ "desc": "배열의 각 요소값에 함수 `function`을 연속적으로 적용하여 얻어지는 집계값을 반환합니다. `function`의 적용에는 직전의 `function`의 적용결과와 요소값이 인수로 주어집니다.\n\n 함수 `function`은 인수를 두개 뽑아, 배열의 각 요소 사이에 배치하는 중치연산자처럼 작용해야 합니다.\n\n 임의의 인수 `init`에는 집약시의 초기값을 설정합니다."
+ },
+ "$flowContext": {
+ "args": "string[, string]",
+ "desc": "플로우 컨텍스트 속성을 취득합니다."
+ },
+ "$globalContext": {
+ "args": "string[, string]",
+ "desc": "플로우의 글로벌 컨텍스트 속성을 취득합니다."
+ },
+ "$pad": {
+ "args": "string, width [, char]",
+ "desc": "문자수가 인수 `width`의 절대값이상이 되도록, 필요한 경우 여분의 패딩을 사용하여 `string`의 복사본을 반환합니다.\n\n `width`가 양수인 경우, 오른쪽으로 채워지고, 음수이면 왼쪽으로 채워집니다.\n\n 임의의 `char`인수에는 이 함수에서 사용할 패딩을 지정합니다. 지정하지 않는 경우에는, 기본값으로 공백을 사용합니다."
+ },
+ "$fromMillis": {
+ "args": "number",
+ "desc": "Unix Epoch (1970 년 1 월 1 일 UTC) 이후의 밀리 초를 나타내는 숫자를 ISO 8601 형식의 타임 스탬프 문자열로 변환합니다."
+ },
+ "$formatNumber": {
+ "args": "number, picture [, options]",
+ "desc": "`number`를 문자열로 변환하고 `picture` 문자열에 지정된 표현으로 서식을 변경합니다.\n\n 이 함수의 동작은 XPath F&O 3.1사양에 정의된 XPath/XQuery함수의 `fn:format-number`의 동작과 같습니다. 인수의 문자열 `picture`은 `fn:format-number` 과 같은 구문으로 수치의 서식을 정의합니다.\n\n 임의의 제3 인수 `option`은 소수점기호와 같은 기본 로케일 고유의 서식설정문자를 덮어쓰는데에 사용됩니다. 이 인수를 지정할 경우, XPath F&O 3.1사양의 수치형식에 기술되어있는 name/value 쌍을 포함하는 오브젝트여야 합니다."
+ },
+ "$formatBase": {
+ "args": "number [, radix]",
+ "desc": "`number`를 인수 `radix`에 지정한 값을 기수로하는 문자열로 변환합니다. `radix`가 지정되지 않은 경우, 기수 10이 기본값으로 설정됩니다. `radix`에는 2~36의 값을 설정할 수 있고, 그 외의 값의 경우에는 에러가 발생합니다."
+ },
+ "$toMillis": {
+ "args": "timestamp",
+ "desc": "ISO 8601 형식의 `timestamp`를 Unix Epoch (1970 년 1 월 1 일 UTC) 이후의 밀리 초 수로 변환합니다. 문자열이 올바른 형식이 아닌 경우 에러가 발생합니다."
+ },
+ "$env": {
+ "args": "arg",
+ "desc": "환경변수를 값으로 반환합니다.\n\n 이 함수는 Node-RED 정의 함수입니다."
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/pt-BR/editor.json b/packages/node_modules/@node-red/editor-client/locales/pt-BR/editor.json
new file mode 100644
index 000000000..f65ec62e9
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/locales/pt-BR/editor.json
@@ -0,0 +1,1205 @@
+{
+ "common": {
+ "label": {
+ "name": "Nome",
+ "ok": "O.K.",
+ "done": "Feito",
+ "cancel": "Cancelar",
+ "delete": "Deletar",
+ "close": "Fechar",
+ "load": "Carregar",
+ "save": "Salvar",
+ "import": "Importar",
+ "export": "Exportar",
+ "back": "Voltar",
+ "next": "Próximo",
+ "clone": "Clonar",
+ "cont": "Continuar",
+ "style": "Estilo",
+ "line": "Contorno",
+ "fill": "Preenchido",
+ "label": "Etiqueta",
+ "color": "Cor",
+ "position": "Posição",
+ "enable": "Habilitado",
+ "disable": "Desabilitado",
+ "upload": "Subir"
+ },
+ "type": {
+ "string": "cadeia de caracteres",
+ "number": "numero",
+ "boolean": "booliano",
+ "array": "matriz",
+ "buffer": "armazenamento temporário",
+ "object": "objeto",
+ "jsonString": "cadeia de caracteres JSON",
+ "undefined": "indefinido",
+ "null": "nulo"
+ }
+ },
+ "event": {
+ "loadPlugins": "Carregando programas adicionais",
+ "loadPalette": "Carregando Paleta",
+ "loadNodeCatalogs": "Carregando Catálogo de Nós",
+ "loadNodes": "Carregando Nós __count__",
+ "loadFlows": "Carregando Fluxos",
+ "importFlows": "Adicionar Fluxos ao espaço de trabalho",
+ "importError": "Erro ao adicionar fluxos
__message__
",
+ "loadingProject": "Carregando projeto"
+ },
+ "workspace": {
+ "defaultName": "Fluxo __number__",
+ "editFlow": "Editar Fluxo: __name__",
+ "confirmDelete": "Confirmar exclusão",
+ "delete": "Tem certeza de que deseja excluir '__label__'?",
+ "dropFlowHere": "Solte o fluxo aqui",
+ "addFlow": "Adicionar fluxo",
+ "addFlowToRight": "Adicionar fluxo à direita",
+ "hideFlow": "Esconder fluxo",
+ "hideOtherFlows": "Esconder outros fluxos",
+ "showAllFlows": "Mostrar todos os fluxos",
+ "hideAllFlows": "Esconder todos os fluxos",
+ "hiddenFlows": "Listar __count__ fluxo escondido",
+ "hiddenFlows_plural": "Listar __count__ fluxos escondidos",
+ "showLastHiddenFlow": "Mostrar último fluxo escondido",
+ "listFlows": "Listar Fluxos",
+ "listSubflows": "Listar subfluxos",
+ "status": "Estado",
+ "enabled": "Habilitar",
+ "disabled": "Desabilitar",
+ "info": "Descrição",
+ "selectNodes": "Clique em nós para selecionar"
+ },
+ "menu": {
+ "label": {
+ "view": {
+ "view": "Visão",
+ "grid": "Grade",
+ "storeZoom": "Restaura nível do zoom ao carregar",
+ "storePosition": "Restaura posição de rolamento ao carregar",
+ "showGrid": "Mostre as grades",
+ "snapGrid": "Ajustar à grade",
+ "gridSize": "Tamanho da grade",
+ "textDir": "Direção do texto",
+ "defaultDir": "Padrão",
+ "ltr": "Esquerta-para-direita",
+ "rtl": "Direita-para-esquerda",
+ "auto": "Contextual",
+ "language": "Linguagem",
+ "browserDefault": "Padrão do navegador"
+ },
+ "sidebar": {
+ "show": "Mostrar barra lateral"
+ },
+ "palette": {
+ "show": "Mostrar paleta"
+ },
+ "edit": "Editar",
+ "settings": "Configurações",
+ "userSettings": "Configurações do usuário",
+ "nodes": "Nós",
+ "displayStatus": "Mostrar estados do nó",
+ "displayConfig": "Configuração dos nós",
+ "import": "Importar",
+ "export": "Exportar",
+ "search": "Procurar fluxos",
+ "searchInput": "procure seus fluxos",
+ "subflows": "subfluxos",
+ "createSubflow": "Criar Subfluxo",
+ "selectionToSubflow": "Seleção para subfluxo",
+ "flows": "Fluxos",
+ "add": "Adicionar",
+ "rename": "Renomear",
+ "delete": "Apagar",
+ "keyboardShortcuts": "Atalhos do teclado",
+ "login": "Ingressar",
+ "logout": "Sair",
+ "editPalette": "Gerenciar paleta",
+ "other": "Outro",
+ "showTips": "Mostre as dicas",
+ "showWelcomeTours": "Mostrar excursão guiada para novas versões",
+ "help": "sítio do Node-RED",
+ "projects": "Projetos",
+ "projects-new": "Novo",
+ "projects-open": "Abrir",
+ "projects-settings": "Configurações do projeto",
+ "showNodeLabelDefault": "Mostrar rótulo de nós recém-adicionados",
+ "codeEditor": "Editor de código",
+ "groups": "Grupos",
+ "groupSelection": "Agrupar seleção",
+ "ungroupSelection": "Desagrupar seleção",
+ "groupMergeSelection": "Mesclar seleção",
+ "groupRemoveSelection": "Remover do grupo",
+ "arrange": "Organizar",
+ "alignLeft": "Alinhar à esquerda",
+ "alignCenter": "Alinhar ao centro",
+ "alignRight": "Alinhar à direita",
+ "alignTop": "Alinhar ao início",
+ "alignMiddle": "Alinhar ao meio",
+ "alignBottom": "Alinhar ao final ",
+ "distributeHorizontally": "Distribuir horizontalmente",
+ "distributeVertically": "Distribuir verticalmente",
+ "moveToBack": "Mover para detrás",
+ "moveToFront": "Mover para a frente",
+ "moveBackwards": "Volta",
+ "moveForwards": "Avança"
+ }
+ },
+ "actions": {
+ "toggle-navigator": "Alternar navegador",
+ "zoom-out": "Diminuir zoom ",
+ "zoom-reset": "Reiniciar zoom",
+ "zoom-in": "Aumentar zoom",
+ "search-flows": "Procura fluxos",
+ "search-prev": "Anterior",
+ "search-next": "Próximo",
+ "search-counter": "\"__term__\" __result__ of __count__"
+ },
+ "user": {
+ "loggedInAs": "Acessado como __name__",
+ "username": "Nome do Usuário",
+ "password": "Senha",
+ "login": "Ingressar",
+ "loginFailed": "Falha ao ingressar",
+ "notAuthorized": "Não autorizado",
+ "errors": {
+ "settings": "Você deve ingressar para acessar as configurações",
+ "deploy": "Você deve ingressar para implementar mudanças",
+ "notAuthorized": "Você precisa ter ingressado para realizar esta ação"
+ }
+ },
+ "notification": {
+ "state": {
+ "flowsStopped": "Fluxos parados",
+ "flowsStarted": "Fluxos iniciados"
+ },
+ "warning": "Aviso : __message__",
+ "warnings": {
+ "undeployedChanges": "o nó tem mudanças não implementadas",
+ "nodeActionDisabled": "ações do nó desabilitadas",
+ "nodeActionDisabledSubflow": "ações do nó desabilitadas dentro do subfluxo",
+ "missing-types": "Fluxos parados devido a tipos de nós ausentes.
",
+ "missing-modules": "Os fluxos pararam devido à falta de módulos.
",
+ "safe-mode": "Fluxos parados no modo de segurança.
Você pode modificar seus fluxos e implementar as mudanças para reiniciar.
",
+ "restartRequired": "O Node-RED deve ser reiniciado para habilitar os módulos atualizados",
+ "credentials_load_failed": "Os fluxos pararam porque as credenciais não puderam ser descriptografadas.
O arquivo de credencial de fluxo está criptografado, mas a chave de criptografia do projeto está ausente ou é inválida.
",
+ "credentials_load_failed_reset": "As credenciais não puderam ser descriptografadas
O arquivo de credencial do fluxo está criptografado, mas a chave de criptografia do projeto está ausente ou é inválida.
O arquivo de credencial de fluxo será redefinido na próxima implantação. Todas as credenciais de fluxo existentes serão apagadas.
",
+ "missing_flow_file": "Arquivo de fluxo de projeto não encontrado.
O projeto não está configurado com um arquivo de fluxo.
",
+ "missing_package_file": "Arquivo de pacote de projeto não encontrado.
O projeto está sem um arquivo package.json.
",
+ "project_empty": "O projeto está vazio.
Você deseja criar um conjunto padrão de arquivos de projeto? Caso contrário, você terá que adicionar arquivos manualmente ao projeto fora do editor.
",
+ "project_not_found": "Projeto '__project__' não encontrado.
",
+ "git_merge_conflict": "A mesclagem automática de alterações falhou.
Corrija os conflitos não mesclados e confirme os resultados.
"
+ },
+ "error": "Erro : __message__",
+ "errors": {
+ "lostConnection": "Conexão perdida com o servidor, reconectando...",
+ "lostConnectionReconnect": "Conexão perdida com o servidor, reconectando em __time__s.",
+ "lostConnectionTry": "Tentar novamente",
+ "cannotAddSubflowToItself": "Não é possível adicionar subfluxo a si mesmo",
+ "cannotAddCircularReference": "Não é possível adicionar subfluxo - referência circular detectada",
+ "unsupportedVersion": "Usando uma versão não suportada do Node.js
Você deve atualizar para a versão mais recente do Node.js LTS
",
+ "failedToAppendNode": "Falha ao carregar '__module__'
__error__
"
+ },
+ "project": {
+ "change-branch": "Mudar para ramo local'__project__'",
+ "merge-abort": "Mesclagem Git abortada",
+ "loaded": "Projeto '__project__' carregado",
+ "updated": "Projeto '__project__' atualizado",
+ "pull": "Projeto '__project__' recarregado",
+ "revert": "Projeto '__project__' revertido",
+ "merge-complete": "Mesclagem Git completa",
+ "setupCredentials": "Configurar credenciais",
+ "setupProjectFiles": "Configurar arquivos de projeto",
+ "no": "Não obrigado",
+ "createDefault": "Criar arquivos de projeto padrão",
+ "mergeConflict": "Mostrar conflitos de mesclagem"
+ },
+ "label": {
+ "manage-project-dep": "Gerenciar dependências do projeto",
+ "setup-cred": "Configurar credenciais",
+ "setup-project": "Arquivos de projeto de instalação",
+ "create-default-package": "Criar arquivo de pacote padrão",
+ "no-thanks": "Não obrigado",
+ "create-default-project": "Crie arquivos de projeto padrão",
+ "show-merge-conflicts": "Mostrar conflitos de mesclagem",
+ "unknownNodesButton": "Procura por nós desconhecidos"
+ }
+ },
+ "clipboard": {
+ "clipboard": "Área de transferência",
+ "nodes": "Nós",
+ "node": "__count__ nó",
+ "node_plural": "__count__ nós",
+ "configNode": "__count__ nó de configuração",
+ "configNode_plural": "__count__ nós de configuração",
+ "group": "__count__ grupo",
+ "group_plural": "__count__ grupos",
+ "flow": "__count__ fluxo",
+ "flow_plural": "__count__ fluxos",
+ "subflow": "__count__ subfluxo",
+ "subflow_plural": "__count__ subfluxos",
+ "replacedNodes": "__count__ nó substituído",
+ "replacedNodes_plural": "__count__ nós substituídos",
+ "pasteNodes": "Colar fluxo JSON ou",
+ "selectFile": "selecione um arquivo para importar",
+ "importNodes": "Importar nós",
+ "exportNodes": "Exportar nós",
+ "download": "Baixar",
+ "importUnrecognised": "Tipo não reconhecido importado:",
+ "importUnrecognised_plural": "Tipos não reconhecidos importados:",
+ "importDuplicate": "Nó duplicado importado:",
+ "importDuplicate_plural": "Nós duplicados importados:",
+ "nodesExported": "Nós exportados para a área de transferência",
+ "nodesImported": "Importado:",
+ "nodeCopied": "__count__ nó copiado",
+ "nodeCopied_plural": "__count__ nós copiados",
+ "groupCopied": "__count__ grupo copiado",
+ "groupCopied_plural": "__count__ grupos copiados",
+ "groupStyleCopied": "Estilo de grupo copiado",
+ "invalidFlow": "Fluxo inválido: __message__",
+ "recoveredNodes": "Nós recuperados",
+ "recoveredNodesInfo": "Os nós neste fluxo não tinham um ID de fluxo válido quando foram importados. Eles foram adicionados a este fluxo para que você possa restaurá-los ou excluí-los.",
+ "recoveredNodesNotification": "Nós importados sem um ID de fluxo válido
Eles foram adicionados a um novo fluxo chamado '__flowName__'.
",
+ "export": {
+ "selected": "nós selecionados",
+ "current": "fluxo corrente",
+ "all": "todos os fluxos",
+ "compact": "compactar",
+ "formatted": "formatado",
+ "copy": "Copiar para área de transferência",
+ "export": "Exportar biblioteca",
+ "exportAs": "Exportar como",
+ "overwrite": "Substituir",
+ "exists": "\"__file__\" já existe.
Deseja substituir?
"
+ },
+ "import": {
+ "import": "Importar para",
+ "importSelected": "Importar selecionado",
+ "importCopy": "Importar cópia",
+ "viewNodes": "Ver nós...",
+ "newFlow": "novo fluxo",
+ "replace": "substituir",
+ "errors": {
+ "notArray": "A entrada não é uma matriz JSON",
+ "itemNotObject": "A entrada não é um fluxo válido - o item __index__ não é um objeto de nó",
+ "missingId": "A entrada não é um fluxo válido - item __index__ faltando propriedade 'id'",
+ "missingType": "A entrada não é um fluxo válido - item __index__ faltando propriedade 'type'"
+ },
+ "conflictNotification1": "Alguns dos nós que você está importando já existem em sua área de trabalho.",
+ "conflictNotification2": "Selecione quais nós importar e se deseja substituir os nós existentes ou importar uma cópia deles."
+ },
+ "copyMessagePath": "Caminho copiado",
+ "copyMessageValue": "Valor copiado",
+ "copyMessageValue_truncated": "Valor truncado copiado"
+ },
+ "deploy": {
+ "deploy": "implementar",
+ "full": "Cheio",
+ "fullDesc": "Implementar tudo no espaço de trabalho",
+ "modifiedFlows": "Fluxos Modificados",
+ "modifiedFlowsDesc": "Implantar apenas fluxos que contêm nós alterados",
+ "modifiedNodes": "Nós Modificados",
+ "modifiedNodesDesc": "Implantar apenas nós que mudaram",
+ "startFlows": "Iniciar",
+ "startFlowsDesc": "Iniciar Fluxos",
+ "stopFlows": "Parar",
+ "stopFlowsDesc": "Parar Fluxos",
+ "restartFlows": "Reiniciar Fluxos",
+ "restartFlowsDesc": "Reinicia os fluxos atuais implantados",
+ "successfulDeploy": "Implementado com sucesso",
+ "successfulRestart": "Fluxos reiniciados com sucesso",
+ "deployFailed": "Implementação falhou: __message__",
+ "unusedConfigNodes": "Você tem alguns nós de configuração não utilizados.",
+ "unusedConfigNodesButton": "Procurar por nós de configuração não utilizados",
+ "unknownNodesButton": "Procurar por nós desconhecidos",
+ "invalidNodesButton": "Procurar por nós inválidos",
+ "errors": {
+ "noResponse": "sem resposta do servidor"
+ },
+ "confirm": {
+ "button": {
+ "ignore": "Ignorar",
+ "confirm": "Confirmar implantação",
+ "review": "Rever alterações",
+ "cancel": "Cancelar",
+ "merge": "Mesclar",
+ "overwrite": "Ignorar e implantar"
+ },
+ "undeployedChanges": "Você tem alterações não implementadas. \n\n Se sair desta página, essas alterações serão perdidas.",
+ "improperlyConfigured": "O espaço de trabalho contém alguns nós que não estão configurados corretamente:",
+ "unknown": "O espaço de trabalho contém alguns tipos de nós desconhecidos:",
+ "confirm": "Tem certeza que deseja implantar?",
+ "doNotWarn": "não avisar sobre isso de novo ",
+ "conflict": "O servidor está executando um conjunto de fluxos mais recente.",
+ "backgroundUpdate": "Os fluxos no servidor foram atualizados.",
+ "conflictChecking": "Verificando se as alterações podem ser mescladas automaticamente",
+ "conflictAutoMerge": "As alterações não incluem conflitos e podem ser mescladas automaticamente.",
+ "conflictManualMerge": "As mudanças incluem conflitos que devem ser resolvidos antes de serem implantados.",
+ "plusNMore": "+ __count__ mais"
+ }
+ },
+ "eventLog": {
+ "title": "Registro de Eventos",
+ "view": "Registro de visão"
+ },
+ "diff": {
+ "unresolvedCount": "__count__ conflito não resolvido ",
+ "unresolvedCount_plural": "__count__ conflitos não resolvidos ",
+ "globalNodes": "Nós globais ",
+ "flowProperties": "Propriedades de fluxo ",
+ "type": {
+ "added": "adicionado",
+ "changed": "alterado",
+ "unchanged": "inalterado ",
+ "deleted": "Excluído",
+ "flowDeleted": "fluxo excluído ",
+ "flowAdded": "fluxo adicionado ",
+ "movedTo": "movido para __id__ ",
+ "movedFrom": "movido de __id__"
+ },
+ "nodeCount": "__count__ nó",
+ "nodeCount_plural": "__count__ nós",
+ "local": "Mudanças locais ",
+ "remote": "Mudanças remotas ",
+ "reviewChanges": "Rever alterações ",
+ "noBinaryFileShowed": "Não é possível mostrar o conteúdo do arquivo binário ",
+ "viewCommitDiff": "Ver alterações de confirmação ",
+ "compareChanges": "Compare as alterações ",
+ "saveConflict": "Salvar resolução de conflito ",
+ "conflictHeader": "__resolved__ of __unresolved__ conflitos resolvidos",
+ "commonVersionError": "A versão comum não contém JSON válido: ",
+ "oldVersionError": "A versão antiga não contém JSON válido: ",
+ "newVersionError": "A nova versão não contém JSON válido: "
+ },
+ "subflow": {
+ "editSubflowInstance": "Editar instância de subfluxo: __name__",
+ "editSubflow": "Editar modelo de subfluxo: __name__",
+ "edit": "Editar modelo de subfluxo",
+ "subflowInstances": "Existe uma instância __count__ deste modelo de subfluxo",
+ "subflowInstances_plural": "Existem __count__ instâncias deste modelo de subfluxo",
+ "editSubflowProperties": "editar propriedades",
+ "input": "entradas:",
+ "output": "saídas:",
+ "status": "estados do nó",
+ "deleteSubflow": "excluir subfluxo",
+ "confirmDelete": "Tem certeza de que deseja excluir este subfluxo?",
+ "info": "Descrição",
+ "category": "Categoria",
+ "module": "Módulo",
+ "license": "Licença",
+ "licenseNone": "Nenhum",
+ "licenseOther": "Outro",
+ "type": "Tipo de nó",
+ "version": "Versão",
+ "versionPlaceholder": "x.y.z",
+ "keys": "Palavras-chave",
+ "keysPlaceholder": "Palavras-chave separadas por vírgulas",
+ "author": "Autor",
+ "authorPlaceholder": "Seu nome ",
+ "desc": "Descrição",
+ "env": {
+ "restore": "Restaurar para o subfluxo padrão",
+ "remove": "Remover variável de ambiente"
+ },
+ "errors": {
+ "noNodesSelected": "Não é possível criar subfluxo : nenhum nó selecionado",
+ "multipleInputsToSelection": "Não é possível criar subfluxo : várias entradas para seleção"
+ }
+ },
+ "group": {
+ "editGroup": "Editar grupo: __name__",
+ "errors": {
+ "cannotCreateDiffGroups": "Não é possível criar grupo usando nós de grupos diferentes",
+ "cannotAddSubflowPorts": "Não é possível adicionar portas de subfluxo a um grupo"
+ }
+ },
+ "editor": {
+ "configEdit": "Editar",
+ "configAdd": "Adicionar",
+ "configUpdate": "Atualizar",
+ "configDelete": "Excluir",
+ "nodesUse": "__count__ o nó usa esta configuração",
+ "nodesUse_plural": "__count__ os nós usam esta configuração",
+ "addNewConfig": "Adicionar novo __type__ configuração de nó",
+ "editNode": "Editar __type__ nó",
+ "editConfig": "Editar __type__ configuração de nó",
+ "addNewType": "Adicionar novo __type__...",
+ "nodeProperties": "propriedades do nó",
+ "label": "Etiqueta",
+ "color": "Cor",
+ "portLabels": "Rótulo da porta",
+ "labelInputs": "Entradas",
+ "labelOutputs": "Saídas",
+ "settingIcon": "Ícone",
+ "default": "padrão",
+ "noDefaultLabel": "nenhum",
+ "defaultLabel": "usar etiqueta padrão",
+ "searchIcons": "Procurar ícones",
+ "useDefault": "usar padrão",
+ "description": "Descrição",
+ "show": "Mostrar",
+ "hide": "Esconder",
+ "locale": "Selecione o idioma da interface",
+ "icon": "Ícone",
+ "inputType": "Tipo de entrada",
+ "selectType": "selecione os tipos...",
+ "loadCredentials": "Carregando credenciais de nó",
+ "inputs": {
+ "input": "entrada",
+ "select": "seleção",
+ "checkbox": "caixa de seleção",
+ "spinner": "caixa de mostruário giratório",
+ "none": "nenhum",
+ "hidden": "ocultar propriedade"
+ },
+ "types": {
+ "str": "cadeia de caracteres",
+ "num": "numero",
+ "bool": "booliano",
+ "json": "JSON",
+ "bin": "armazenamento temporário",
+ "env": "variável de ambiente",
+ "cred": "credencial"
+ },
+ "menu": {
+ "input": "entrada",
+ "select": "seleção",
+ "checkbox": "caixa de seleção",
+ "spinner": "roleta",
+ "hidden": "Somente etiqueta"
+ },
+ "select": {
+ "label": "Etiqueta",
+ "value": "Valor"
+ },
+ "spinner": {
+ "min": "Mínimo",
+ "max": "Máximo"
+ },
+ "errors": {
+ "scopeChange": "Alterar o escopo o tornará indisponível para nós em outros fluxos que o utilizam",
+ "invalidProperties": "Propriedades inválidas:",
+ "credentialLoadFailed": "Falha ao carregar credenciais de nó"
+ }
+ },
+ "keyboard": {
+ "title": "Atalhos do teclado",
+ "keyboard": "Teclado",
+ "filterActions": "ações de filtro",
+ "shortcut": "atalho",
+ "scope": "escopo",
+ "unassigned": "Não atribuído",
+ "global": "global",
+ "workspace": "área de trabalho",
+ "selectAll": "Selecionar todos",
+ "selectNone": "Selecionar nenhum",
+ "selectAllConnected": "Selecione todos os nós conectados",
+ "addRemoveNode": "Adicionar / remover nó da seleção",
+ "editSelected": "Editar nó selecionado",
+ "deleteSelected": "Excluir nós selecionados ou link",
+ "importNode": "Importar nós",
+ "exportNode": "Exportar nós",
+ "nudgeNode": "Mover nós selecionados (1px)",
+ "moveNode": "Mover nós selecionados (20px)",
+ "toggleSidebar": "Alternar barra lateral",
+ "togglePalette": "Alternar paleta",
+ "copyNode": "Copiar nós selecionados",
+ "cutNode": "Cortar nós selecionados",
+ "pasteNode": "Colar nós",
+ "copyGroupStyle": "Copiar estilo de grupo",
+ "pasteGroupStyle": "Colar estilo de grupo",
+ "undoChange": "Desfazer",
+ "redoChange": "Refazer",
+ "searchBox": "Abrir caixa de pesquisa",
+ "managePalette": "Gerenciar paleta",
+ "actionList": "Lista de Ação",
+ "splitWireWithLinks": "Separa a seleção com os nós de ligação"
+ },
+ "library": {
+ "library": "Biblioteca",
+ "openLibrary": "Biblioteca aberta ...",
+ "saveToLibrary": "Salvar na biblioteca ...",
+ "typeLibrary": "__type__ biblioteca",
+ "unnamedType": "Sem nome __tipo__",
+ "exportedToLibrary": "Nós exportados para a biblioteca",
+ "dialogSaveOverwrite": "Já existe um __libraryType__ chamado __libraryName__. Substituir?",
+ "invalidFilename": "Nome de arquivo inválido",
+ "savedNodes": "Nós salvos",
+ "savedType": "Salvo __tipo__",
+ "saveFailed": "Falha ao salvar: __message__",
+ "newFolder": "Nova pasta",
+ "types": {
+ "local": "Local",
+ "examples": "Exemplos"
+ }
+ },
+ "palette": {
+ "noInfo": "sem informação disponível",
+ "filter": "filtrar nós",
+ "search": "procurar módulos",
+ "addCategory": "Adicionar novo...",
+ "label": {
+ "subflows": "subfluxos",
+ "network": "rede",
+ "common": "comum",
+ "input": "entrada",
+ "output": "saída",
+ "function": "função",
+ "sequence": "sequencia",
+ "parser": "analisador sintático",
+ "social": "social",
+ "storage": "armazenar",
+ "analysis": "análise",
+ "advanced": "avançado"
+ },
+ "actions": {
+ "collapse-all": "Recolher todas as categorias",
+ "expand-all": "Expandir todas as categorias"
+ },
+ "event": {
+ "nodeAdded": "Nó adicionado à paleta:",
+ "nodeAdded_plural": "Nós adicionados à paleta:",
+ "nodeRemoved": "Nó removido da paleta:",
+ "nodeRemoved_plural": "Nós removidos da paleta:",
+ "nodeEnabled": "Nó habilitado:",
+ "nodeEnabled_plural": "Nós habilitados:",
+ "nodeDisabled": "Nó desativado:",
+ "nodeDisabled_plural": "Nós desativados:",
+ "nodeUpgraded": "Módulo de nó __module__ atualizado para a versão __version__",
+ "unknownNodeRegistered": "Erro carregando o nó: "
+ },
+ "editor": {
+ "title": "Gerenciar paleta",
+ "palette": "Paleta",
+ "times": {
+ "seconds": "segundos atrás",
+ "minutes": "minutos atrás",
+ "minutesV": "__count__ minutos atrás",
+ "hoursV": "__count__ hora atrás",
+ "hoursV_plural": "__count__ horas atrás",
+ "daysV": "__count__ dia atrás",
+ "daysV_plural": "__count__ dias atrás",
+ "weeksV": "__count__ semana atrás",
+ "weeksV_plural": "__count__ semanas atrás",
+ "monthsV": "__count__ mês atrás",
+ "monthsV_plural": "__count__ meses atrás",
+ "yearsV": "__count__ ano atrás",
+ "yearsV_plural": "__count__ anos atrás",
+ "yearMonthsV": "__y__ ano, __count__ mês atrás",
+ "yearMonthsV_plural": "__y__ ano, __count__ meses atrás",
+ "yearsMonthsV": "__y__ anos, __count__ mês atrás",
+ "yearsMonthsV_plural": "__y__ anos, __count__ meses atrás"
+ },
+ "nodeCount": "__label__ node",
+ "nodeCount_plural": "__label__ nodes",
+ "moduleCount": "módulo __count__ disponível",
+ "moduleCount_plural": "__count__ módulos disponíveis",
+ "inuse": "em uso",
+ "enableall": "habilitar todos",
+ "disableall": "desabilitar todos",
+ "enable": "habilitar",
+ "disable": "desabilitar",
+ "remove": "remover",
+ "update": "atualizar para __version__",
+ "updated": "atualizado",
+ "install": "instalar",
+ "installed": "instalado",
+ "conflict": "conflito",
+ "conflictTip": " Este módulo não pode ser instalado porque inclui um tipo de nó que já foi instalado
Conflitos com __module__
" ,
+ "loading": "Carregando catálogos ...",
+ "tab-nodes": "Nós",
+ "tab-install": "Instalar",
+ "sort": "ordenar:",
+ "sortAZ": "a-z",
+ "sortRecent": "recente",
+ "more": "+ __count__ mais",
+ "upload": "Carregar arquivo tgz do módulo",
+ "refresh": "Atualizar lista de módulos",
+ "errors": {
+ "catalogLoadFailed": " Falha ao carregar o catálogo de nós.
Verifique o console do navegador para obter mais informações
",
+ "installFailed": " Falha ao instalar: __module__
__message__
Verifique o log para obter mais informações
",
+ "removeFailed": " Falha ao remover: __module__
__message__
Verifique o log para obter mais informações
",
+ "updateFailed": " Falha ao atualizar: __module__
__message__
Verifique o log para obter mais informações
",
+ "enableFailed": " Falha ao ativar: __module__
__message__
Verifique o log para obter mais informações
",
+ "disableFailed": " Falha ao desativar: __module__
__message__
Verifique o log para obter mais informações
"
+ },
+ "confirm": {
+ "install": {
+ "body": " Instalando '__module__'
Antes de instalar, leia a documentação do nó. Alguns nós têm dependências que não podem ser resolvidas automaticamente e podem exigir a reinicialização do Node-RED.
",
+ "title": "Instalar nós"
+ },
+ "remove": {
+ "body": " Remover '__module__'
Remover o nó irá desinstalá-lo do Node-RED. O nó pode continuar a usar recursos até que o Node-RED seja reiniciado.
",
+ "title": "Remover nós"
+ },
+ "update": {
+ "body": " Atualizar '__module__'
Atualizar o nó exigirá a reinicialização do Node-RED para concluir a atualização. Isso deve ser feito manualmente.
",
+ "title": "Atualizar nós"
+ },
+ "cannotUpdate": {
+ "body": "Uma atualização para este nó está disponível, mas não está instalada em um local que o gerenciador de paletas possa atualizar. Consulte a documentação para saber como atualizar este nó."
+ },
+ "button": {
+ "review": "Abrir informação do nó",
+ "install": "Instalar",
+ "remove": "Remover",
+ "update": "Atualizar"
+ }
+ }
+ }
+ },
+ "sidebar": {
+ "info": {
+ "name": "Informação",
+ "tabName": "Nome",
+ "label": "informações",
+ "node": "Nó",
+ "type": "Tipo",
+ "group": "Grupo",
+ "module": "Módulo",
+ "id": "ID",
+ "status": "Estado",
+ "enabled": "Habilitado",
+ "disabled": "Desabilitado",
+ "subflow": "Subfluxo",
+ "instances": "Instâncias",
+ "properties": "Propriedades",
+ "info": "Informação",
+ "desc": "Descrição",
+ "blank": "branco",
+ "null": "nulo",
+ "showMore": "mostrar mais",
+ "showLess": "mostrar menos",
+ "flow": "Fluxo",
+ "selection": "Seleção",
+ "nodes": "__count__ nós",
+ "flowDesc": "Descrição do Fluxo",
+ "subflowDesc": "Descrição do Subfluxo",
+ "nodeHelp": "Ajuda do Nó",
+ "none": "Nenhum",
+ "arrayItems": "__count__ items",
+ "showTips": "Você pode abrir as dicas a partir do painel de configurações",
+ "outline": "Contorno",
+ "empty": "vazio",
+ "globalConfig": "Nós de configuração global",
+ "triggerAction": "Ação de gatilho",
+ "find": "Encontre no espaço de trabalho"
+ },
+ "help": {
+ "name": "Ajuda",
+ "label": "ajuda",
+ "search": "Ajuda sobre a procura",
+ "nodeHelp": "Ajuda sobre o nó",
+ "showHelp": "Mostrar ajuda",
+ "showInOutline": "Mostrar no contorno",
+ "showTopics": "Mostrar tópicos",
+ "noHelp": "Nenhum tópico de ajuda selecionado",
+ "changeLog": "Log de alteração"
+ },
+ "config": {
+ "name": "Configuração dos nós",
+ "label": "configuração",
+ "global": "Em todos os fluxos",
+ "none": "nenhum",
+ "subflows": "subfluxos",
+ "flows": "fluxos",
+ "filterAll": "todos",
+ "showAllConfigNodes": "Ver todas as configurações dos nós",
+ "filterUnused": "não utilizados",
+ "showAllUnusedConfigNodes": "Mostrar todas os nós de configuração não usados",
+ "filtered": "__count__ hidden"
+ },
+ "context": {
+ "name": "Contexto dos Dados",
+ "label": "contexto",
+ "none": "nenhum selecionado",
+ "refresh": "atualize para carregar",
+ "empty": "vazio",
+ "node": "Nó",
+ "flow": "Fluxo",
+ "global": "Global",
+ "deleteConfirm": "Você tem certeza que deseja remover este item?",
+ "autoRefresh": "Atualizar na mudança de seleção",
+ "refrsh": "Atualizar",
+ "delete": "Remover"
+ },
+ "palette": {
+ "name": "Gerenciamento de paleta",
+ "label": "paleta"
+ },
+ "project": {
+ "label": "projeto",
+ "name": "Projeto",
+ "description": "Descrição",
+ "dependencies": "Dependências",
+ "settings": "Configurações",
+ "noSummaryAvailable": "Nenhum resumo disponível",
+ "editDescription": "Editar a descrição do projeto",
+ "editDependencies": "Editar dependências do projeto",
+ "noDescriptionAvailable": "Descrição não disponível",
+ "editReadme": "Editar README.md",
+ "showProjectSettings": "Mostrar configurações do projeto",
+ "projectSettings": {
+ "title": "Configurações do Projeto",
+ "edit": "editar",
+ "none": "Nenhum",
+ "install": "instalar",
+ "removeFromProject": "remover do projeto",
+ "addToProject": "adicionar ao projeto",
+ "files": "Arquivos",
+ "flow": "Fluxos",
+ "credentials": "Credenciais",
+ "package": "Pacote",
+ "packageCreate": "O arquivo será criado quando as alterações forem salvas",
+ "fileNotExist": "Arquivo não existe",
+ "selectFile": "Selecione o arquivo",
+ "invalidEncryptionKey": "Chave de criptografia inválida",
+ "encryptionEnabled": "Criptografia habilitada",
+ "encryptionDisabled": "Criptografia desabilitada",
+ "setTheEncryptionKey": "Defina a chave de criptografia",
+ "resetTheEncryptionKey": "Redefina a chave de criptografia",
+ "changeTheEncryptionKey": "Troque a chave de criptografia",
+ "currentKey": "Chave atual",
+ "newKey": "Nova chave",
+ "credentialsAlert": "Isso excluirá todas as credenciais existentes",
+ "versionControl": "Controle de versão",
+ "branches": "Ramos",
+ "noBranches": "Sem ramos",
+ "deleteConfirm": "Tem certeza de que deseja excluir o ramo local '__name__'? Isto não pode ser desfeito.",
+ "unmergedConfirm": "O ramo local '__name__' tem alterações não mescladas que serão perdidas. Tem certeza que deseja excluir?",
+ "deleteUnmergedBranch": "Excluir ramo não mesclado",
+ "gitRemotes": "Git remoto",
+ "addRemote": "adicionar remoto",
+ "addRemote2": "Adicionar remoto",
+ "remoteName": "Nome do remoto",
+ "nameRule": "Deve conter apenas A-Z 0-9 _ -",
+ "url": "URL",
+ "urlRule": "https://, ssh:// ou file://",
+ "urlRule2": "Não inclua o nome de usuário / senha na URL",
+ "noRemotes": "Sem remotos",
+ "deleteRemoteConfrim": "Tem certeza de que deseja excluir o remoto '__name__'?",
+ "deleteRemote": "Excluir remoto"
+ },
+ "userSettings": {
+ "committerDetail": "Detalhes do Cometedor",
+ "committerTip": "Deixe em branco para usar o padrão do sistema",
+ "userName": "Nome de usuário",
+ "email": "Email",
+ "workflow": "Fluxo de trabalho",
+ "workfowTip": "Escolha seu fluxo de trabalho git preferido",
+ "workflowManual": "Manual",
+ "workflowManualTip": "Todas as alterações devem ser confirmadas manualmente na barra lateral 'histórico'",
+ "workflowAuto": "Automático",
+ "workflowAutoTip": "As alterações são confirmadas automaticamente a cada implantação",
+ "sshKeys": "Chaves SSH",
+ "sshKeysTip": "Permite que você crie conexões seguras para repositórios git remotos.",
+ "add": "adicionar chave",
+ "addSshKey": "Adicionar chave SSH",
+ "addSshKeyTip": "Gerar um novo par de chaves públicas / privadas",
+ "name": "Nome",
+ "nameRule": "Deve conter apenas A-Z 0-9 _ -",
+ "passphrase": "Frase de passe",
+ "passphraseShort": "Frase de passe muito curta",
+ "optional": "Opcional",
+ "cancel": "Cancelar",
+ "generate": "Gerar chave",
+ "noSshKeys": "Sem chaves SSH",
+ "copyPublicKey": "Copiar chave pública para a área de transferência",
+ "delete": "Excluir chave key",
+ "gitConfig": "Configuração do Git",
+ "deleteConfirm": "Tem certeza de que deseja excluir a chave SSH __name__? Isso não pode ser desfeito."
+ },
+ "versionControl": {
+ "unstagedChanges": "Alterações não realizadas",
+ "stagedChanges": "Alterações realizadas",
+ "unstageChange": "Desfazer alteração",
+ "stageChange": "Realizar alteração",
+ "unstageAllChange": "Desfazer todas as alterações",
+ "stageAllChange": "Realizar todas as alterações",
+ "commitChanges": "Cometer alterações",
+ "resolveConflicts": "Resolver conflitos",
+ "head": "CABEÇA",
+ "staged": "Alterado",
+ "unstaged": "Desfeita Alteração",
+ "local": "Local",
+ "remote": "Remoto",
+ "revert": "Tem certeza de que deseja reverter as alterações para '__file__'? Essa ação não poderá ser desfeita.",
+ "revertChanges": "Reverter alterações",
+ "localChanges": "Mudanças locais",
+ "none": "Nenhum",
+ "conflictResolve": "Todos os conflitos resolvidos. Cometa as alterações para concluir a mesclagem.",
+ "localFiles": "Arquivos locais",
+ "all": "todos",
+ "unmergedChanges": "Alterações não mescladas",
+ "abortMerge": "interromper mesclagem",
+ "commit": "cometer",
+ "changeToCommit": "Alterações para cometer",
+ "commitPlaceholder": "Digite sua mensagem de cometimento",
+ "cancelCapital": "Cancelar",
+ "commitCapital": "Cometer",
+ "commitHistory": "Histórico do cometimento",
+ "branch": "Ramo:",
+ "moreCommits": "mais cometimentos",
+ "changeLocalBranch": "Alterar ramo local",
+ "createBranchPlaceholder": "Encontrar ou criar um ramo",
+ "upstream": "subir do cliente ao servidor",
+ "localOverwrite": "Você tem alterações locais que seriam sobrescritas alterando o ramo. Você deve cometer ou desfazer essas alterações primeiro.",
+ "manageRemoteBranch": "Gerenciar ramo remoto",
+ "unableToAccess": "Incapaz de acessar o repositório remoto",
+ "retry": "Tentar novamente",
+ "setUpstreamBranch": "Definir como ramo de subida do cliente para o servidor",
+ "createRemoteBranchPlaceholder": "Encontrar ou criar um ramo remoto",
+ "trackedUpstreamBranch": "O ramo criado será definido como o ramo de subida do cliente para o servidor rastreado.",
+ "selectUpstreamBranch": "O ramo será criado. Selecione abaixo para defini-lo como o ramo de subida do cliente para o servidor rastreado.",
+ "pushFailed": "falha ao empurrar porque o remoto tem cometimentos mais recentes. Puxe e mescle primeiro, depois empurre novamente.",
+ "push": "empurrar",
+ "pull": "puxar",
+ "unablePull": "Incapaz de puxar as alterações remotas; suas alterações locais não realizadas seriam sobrescritas.
Cometa suas alterações e tente novamente.
",
+ "showUnstagedChanges": "Mostrar alterações não realizadas",
+ "connectionFailed": "Não foi possível conectar ao repositório remoto:",
+ "pullUnrelatedHistory": " O remoto tem um histórico não relacionado de cometimentos.
Tem certeza que deseja puxar as mudanças para o seu repositório local?
",
+ "pullChanges": "Puxar modificações",
+ "history": "histórico",
+ "projectHistory": "Histórico do Projeto",
+ "daysAgo": "__count__ dia atrás",
+ "daysAgo_plural": "__count__ dias atrás",
+ "hoursAgo": "__count__ hora atrás",
+ "hoursAgo_plural": "__count__ horas atrás",
+ "minsAgo": "__count__ min ago",
+ "minsAgo_plural": "__count__ minutos atrás",
+ "secondsAgo": "Segundos atrás",
+ "notTracking": "Seu ramo local não está atualmente rastreando um ramo remoto.",
+ "statusUnmergedChanged": "Seu repositório tem alterações não mescladas. Você precisa corrigir os conflitos e enviar o resultado.",
+ "repositoryUpToDate": "Seu repositório está atualizado.",
+ "commitsAhead": "Seu repositório está __count__ cometimento à frente do remoto. Você pode empurrar este cometimento agora.",
+ "commitsAhead_plural": "Seu repositório está __count__ cometimentos à frente do remoto. Você pode empurrar estes cometimentos agora.",
+ "commitsBehind": "Seu repositório está __count__ cometimento atrás do remoto. Você pode puxar este cometimento agora.",
+ "commitsBehind_plural": "Seu repositório está __count__ cometimentos atrás do remoto. Você pode puxar esses cometimentos agora.",
+ "commitsAheadAndBehind1": "Seu repositório está __count__ cometimento atrás e",
+ "commitsAheadAndBehind1_plural": "Seu repositório está __count__ cometimentos atrás e",
+ "commitsAheadAndBehind2": "__count__ cometimento à frente do remoto.",
+ "commitsAheadAndBehind2_plural": "__count__ cometimentos à frente do remoto.",
+ "commitsAheadAndBehind3": "Você deve baixar o cometimento remoto antes de empurrar.",
+ "commitsAheadAndBehind3_plural": "Você deve baixar os cometimentos remotos antes de empurrar.",
+ "refreshCommitHistory": "Atualizar histórico de cometimentos",
+ "refreshChanges": "Atualizar alterações"
+ }
+ }
+ },
+ "typedInput": {
+ "type": {
+ "str": "cadeia de caracteres",
+ "num": "número",
+ "re": "expressão regular",
+ "bool": "booliano",
+ "json": "JSON",
+ "bin": "armazenamento temporário",
+ "date": "registro de tempo",
+ "jsonata": "expressão",
+ "env": "variável de ambiente",
+ "cred": "credencial"
+ }
+ },
+ "editableList": {
+ "add": "adicionar",
+ "addTitle": "adicionar um item"
+ },
+ "search": {
+ "history": "Histórico da procura",
+ "clear": "limpar tudo",
+ "empty": "Nenhuma equivalência encontrada",
+ "addNode": "adicionar um nó...",
+ "options": {
+ "configNodes": "Configuração de nós",
+ "unusedConfigNodes": "Configuração de nós não utilizadas",
+ "invalidNodes": "Nós inválidos",
+ "uknownNodes": "Nós desconhecidos",
+ "unusedSubflows": "Subfluxos não utilizados",
+ "hiddenFlows": "Flux escondidos",
+ "modifiedNodes": "Nós e Fluxos Modificados",
+ "thisFlow": "Fluxo atual"
+ }
+ },
+ "expressionEditor": {
+ "functions": "Funções",
+ "functionReference": "Referência de função",
+ "insert": "Inserir",
+ "title": "Editor de Expressões JSONata",
+ "test": "Teste",
+ "data": "Mensagem de exemplo",
+ "result": "Resultado",
+ "format": "expressão de formato",
+ "compatMode": "Modo de compatibilidade habilitado",
+ "compatModeDesc": " Modo de compatibilidade JSONata A expressão atual parece ainda fazer referência a msg
, então será avaliada no modo de compatibilidade. Atualize a expressão para não usar msg
, pois este modo será removido no futuro.
Quando o suporte JSONata foi adicionado pela primeira vez ao Node-RED, era necessária a expressão para fazer referência ao objeto msg
. Por exemplo, msg.payload
seria usado para acessar a carga útil.
Isso não é mais necessário, pois a expressão será avaliada em relação à mensagem diretamente. Para acessar a carga útil, a expressão deve ser apenas payload
.
",
+ "noMatch": "Nenhum resultado correspondente",
+ "errors": {
+ "invalid-expr": "Expressão JSONata inválida:\n __message__",
+ "invalid-msg": "Exemplo de mensagem JSON inválida:\n __message__",
+ "context-unsupported": "Não é possível testar funções de contexto\n $flowContext or $globalContext",
+ "eval": "Erro ao avaliar a expressão:\n __message__"
+ }
+ },
+ "monaco": {
+ "setTheme": "Definir tema"
+ },
+ "jsEditor": {
+ "title": "Editor JavaScript"
+ },
+ "textEditor": {
+ "title": "Editor de texto"
+ },
+ "jsonEditor": {
+ "title": "editor JSON",
+ "format": "formatar JSON",
+ "rawMode": "Editar JSON",
+ "uiMode": "Editor visual",
+ "rawMode-readonly": "JSON",
+ "uiMode-readonly": "Visual",
+ "insertAbove": "Inserir acima",
+ "insertBelow": "Inserir abaixo",
+ "addItem": "Adicionar item",
+ "copyPath": "Copiar caminho para o item",
+ "expandItems": "Expandir itens",
+ "collapseItems": "Recolher itens",
+ "duplicate": "Duplicar",
+ "error": {
+ "invalidJSON": "JSON inválido: "
+ }
+ },
+ "markdownEditor": {
+ "title": "Editor de Remarcação",
+ "expand": "Expandir",
+ "format": "Formatado com Remarcação",
+ "heading1": "Cabeçalho 1",
+ "heading2": "Cabeçalho 2",
+ "heading3": "Cabeçalho 3",
+ "bold": "Negrito",
+ "italic": "Itálico",
+ "code": "Código",
+ "ordered-list": "Lista ordenada",
+ "unordered-list": "Lista não-ordenada",
+ "quote": "Citar",
+ "link": "criar atalho",
+ "horizontal-rule": "Régua Horizontal",
+ "toggle-preview": "Alternar visualização"
+ },
+ "bufferEditor": {
+ "title": "Editor de armazenamento temporário",
+ "modeString": "Tratar como cadeia de caracteres UTF-8",
+ "modeArray": "Manipular como matriz JSON",
+ "modeDesc": " Editor de armazenamento temporário O tipo de armazenamento temporário é armazenado como uma matriz JSON de valores de bytes. O editor tentará analisar o valor inserido como uma matriz JSON. Se não for um JSON válido, será tratada como uma cadeia de caracteres UTF-8 e convertida em uma matriz de pontos de código de caractere individual.
Por exemplo, um valor de Hello World
será convertido na matriz JSON:
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100] "
+ },
+ "projects": {
+ "config-git": "Configurar cliente Git",
+ "welcome": {
+ "hello": "Olá! Introduzimos 'projetos' no Node-RED.",
+ "desc0": "Esta é uma nova maneira de gerenciar seus arquivos de fluxo e incluir controle de versão de seus fluxos.",
+ "desc1": "Para começar, você pode criar seu primeiro projeto ou clonar um projeto existente de um repositório git.",
+ "desc2": "Se você não tiver certeza, pode pular isso por enquanto. Você ainda poderá criar seu primeiro projeto a partir do menu 'Projetos' a qualquer momento.",
+ "create": "Criar Projeto",
+ "clone": "Repositório de clones",
+ "openExistingProject": "Abrir projeto existente",
+ "not-right-now": "Não nesse exato momento"
+ },
+ "git-config": {
+ "setup": "Configure seu cliente de controle de versão",
+ "desc0": "O Node-RED usa a ferramenta de código aberto Git para controle de versão. Ele rastreia as alterações em seus arquivos de projeto e permite enviá-los para repositórios remotos.",
+ "desc1": "Quando você confirma um conjunto de alterações, o Git registra quem fez as alterações com um nome de usuário e endereço de e-mail. O nome de usuário pode ser o que você quiser - não precisa ser seu nome real.",
+ "desc2": "Seu cliente Git já está configurado com os detalhes abaixo.",
+ "desc3": "Você pode alterar essas configurações mais tarde na guia 'Git config' da caixa de diálogo de configurações.",
+ "username": "Nome do usuário",
+ "email": "E-mail"
+ },
+ "project-details": {
+ "create": "Crie seu projeto",
+ "desc0": "Um projeto é mantido como um repositório Git. Isso torna muito mais fácil compartilhar seus fluxos com outras pessoas e colaborar neles.",
+ "desc1": "Você pode criar vários projetos e alternar rapidamente entre eles no editor.",
+ "desc2": "Para começar, seu projeto precisa de um nome e uma descrição opcional.",
+ "already-exists": "Projeto já existe",
+ "must-contain": "Deve conter apenas A-Z 0-9 _ -",
+ "project-name": "Nome do Projeto",
+ "desc": "Descrição",
+ "opt": "Opcional"
+ },
+ "clone-project": {
+ "clone": "Clonar um projeto",
+ "desc0": "Se você já tem um repositório git contendo um projeto, pode cloná-lo para começar.",
+ "already-exists": "Projeto já existe",
+ "must-contain": "Deve conter apenas A-Z 0-9 _ -",
+ "project-name": "Nome do projeto",
+ "no-info-in-url": "Não inclua o nome de usuário / senha no url",
+ "git-url": "Git repository URL",
+ "protocols": "https: //, ssh: // ou file://",
+ "auth-failed": "Autenticação falhou",
+ "username": "Nome de usuário",
+ "passwd": "Senha",
+ "ssh-key": "Chave SSH",
+ "passphrase": "Frase de Passe",
+ "ssh-key-desc": "Antes de clonar um repositório usando ssh, você deve adicionar uma chave SSH para acessá-lo.",
+ "ssh-key-add": "Adicionar uma chave ssh",
+ "credential-key": "Chave de criptografia de credenciais",
+ "cant-get-ssh-key": "Erro! Não é possível obter o caminho da chave SSH selecionada.",
+ "already-exists2": "já existe",
+ "git-error": "git error",
+ "connection-failed": "Conexão falhou",
+ "not-git-repo": "Não é um repositório git",
+ "repo-not-found": "Repositório não encontrado"
+ },
+ "default-files": {
+ "create": "Crie seus arquivos de projeto",
+ "desc0": "Um projeto contém seus arquivos de fluxo, um arquivo README e um arquivo package.json.",
+ "desc1": "Pode conter quaisquer outros arquivos que você deseja manter no repositório Git.",
+ "desc2": "Seus arquivos de fluxo e credenciais existentes serão copiados para o projeto.",
+ "flow-file": "Arquivo de fluxo",
+ "credentials-file": "Arquivo de credenciais"
+ },
+ "encryption-config": {
+ "setup": "Configure a criptografia do seu arquivo de credenciais",
+ "desc0": "Seu arquivo de credenciais de fluxo pode ser criptografado para manter seu conteúdo seguro.",
+ "desc1": "Se você deseja armazenar essas credenciais em um repositório Git público, deve criptografá-las fornecendo uma frase-chave secreta.",
+ "desc2": "Seu arquivo de credenciais de fluxo não está criptografado no momento.",
+ "desc3": "Isso significa que seu conteúdo, como senhas e fichas de acesso, pode ser lido por qualquer pessoa com acesso ao arquivo.",
+ "desc4": "Se você deseja armazenar essas credenciais em um repositório Git público, deve criptografá-las fornecendo uma frase-chave secreta.",
+ "desc5": "Seu arquivo de credenciais de fluxo está atualmente criptografado usando a propriedade credentialSecret de seu arquivo de configurações como a chave.",
+ "desc6": "Seu arquivo de credenciais de fluxo está criptografado usando uma chave gerada pelo sistema. Você deve fornecer uma nova chave secreta para este projeto.",
+ "desc7": "A chave será armazenada separadamente dos arquivos do seu projeto. Você precisará fornecer a chave para usar este projeto em outra instância do Node-RED.",
+ "credentials": "Credenciais",
+ "enable": "Habilitar criptografia",
+ "disable": "Desabilitar criptografia",
+ "disabled": "desabilitado",
+ "copy": "Copiar sobre a chave existente",
+ "use-custom": "Usar chave personalizada",
+ "desc8": "O arquivo de credenciais não será criptografado e seu conteúdo será lido facilmente",
+ "create-project-files": "Criar arquivos de projeto",
+ "create-project": "Criar projeto",
+ "already-exists": "já existe",
+ "git-error": "erro no git",
+ "git-auth-error": "git erro de autenticação"
+ },
+ "create-success": {
+ "success": "Você criou com sucesso o seu primeiro projeto!",
+ "desc0": "Agora você pode continuar usando o Node-RED como sempre fez.",
+ "desc1": "A guia 'informações' na barra lateral mostra qual é o seu projeto ativo atual. O botão ao lado do nome pode ser usado para acessar a visualização das configurações do projeto.",
+ "desc2": "A guia 'histórico' na barra lateral pode ser usada para ver os arquivos que foram alterados no seu projeto e para submetê-los. Ela mostra um histórico completo de seus cometimentos e permite que você envie suas alterações para um repositório remoto . "
+ },
+ "create": {
+ "projects": "Projetos",
+ "already-exists": "Projeto já existe",
+ "must-contain": "Deve conter apenas A-Z 0-9 _ -",
+ "no-info-in-url": "Não inclua o nome de usuário/senha no url",
+ "open": "Abrir projeto",
+ "create": "Criar Projeto",
+ "clone": "Clone Repositório",
+ "project-name": "Nome do projeto",
+ "desc": "Descrição",
+ "opt": "Opcional",
+ "flow-file": "Arquivo de fluxo",
+ "credentials": "Credenciais",
+ "enable-encryption": "Habilitar criptografia",
+ "disable-encryption": "Desabilitar criptografia",
+ "encryption-key": "Chave de criptografia",
+ "desc0": "Uma frase para proteger suas credenciais com",
+ "desc1": "O arquivo de credenciais não será criptografado e seu conteúdo poderá ser lido facilmente",
+ "git-url": "URL do repositório Git",
+ "protocols": "https://, ssh:// or file://",
+ "auth-failed": "Falha na autenticação",
+ "username": "Nome do usuário",
+ "password": "Senha",
+ "ssh-key": "Chave SSH",
+ "passphrase": "Frase de Passe",
+ "desc2": "Antes de clonar um repositório usando ssh, você deve adicionar uma chave SSH para acessá-lo.",
+ "add-ssh-key": "Adicionar uma chave ssh",
+ "credentials-encryption-key": "Chave de criptografia de credenciais",
+ "already-exists-2": "já existe",
+ "git-error": "erro de git",
+ "con-failed": "Conexão falhou",
+ "not-git": "Não é um repositório git",
+ "no-resource": "Repositório não encontrado",
+ "cant-get-ssh-key-path": "Erro! Não é possível obter o caminho da chave SSH selecionado.",
+ "unexpected_error": "erro_inesperado",
+ "clearContext": "Limpar contexto quando ocorrer troca de projetos"
+ },
+ "delete": {
+ "confirm": "Tem certeza de que deseja excluir este projeto?"
+ },
+ "create-project-list": {
+ "search": "procure seus projetos",
+ "current": "atual"
+ },
+ "require-clean": {
+ "confirm": "Você tem alterações não implantadas que serão perdidas.
Deseja continuar?
"
+ },
+ "send-req": {
+ "auth-req": "Autenticação necessária para repositório",
+ "username": "Nome do usuário",
+ "password": "Senha",
+ "passphrase": "Frase de Passe",
+ "retry": "Tentar novamente",
+ "update-failed": "Falha ao atualizar autenticação",
+ "unhandled": "Resposta de erro não tratada",
+ "host-key-verify-failed": "Falha na verificação da chave do servidor anfitrião.
A chave do servidor anfitrião do repositório não pôde ser verificada. Atualize seu arquivo known_hosts
e tente novamente.
"
+ },
+ "create-branch-list": {
+ "invalid": "Ramo inválido",
+ "create": "Criar ramo",
+ "current": "atual"
+ },
+ "create-default-file-set": {
+ "no-active": "Não é possível criar um conjunto de arquivos padrão sem um projeto ativo",
+ "no-empty": "Não é possível criar um arquivo padrão definido em um projeto não vazio",
+ "git-error": "erro no git"
+ },
+ "errors": {
+ "no-username-email": "Seu cliente Git não está configurado com um nome de usuário / e-mail.",
+ "unexpected": "Um erro inesperado ocorreu",
+ "code": "código"
+ }
+ },
+ "editor-tab": {
+ "properties": "Propriedades",
+ "envProperties": "Variáveis de Ambiente",
+ "module": "Propriedades do Módulo",
+ "description": "Descrição",
+ "appearance": "Aparência",
+ "preview": "Visualização da IU",
+ "defaultValue": "Valor padrão"
+ },
+ "tourGuide": {
+ "takeATour": "Faça um tour",
+ "start": "Inicio",
+ "next": "Próximo",
+ "welcomeTours": "Tour de Boas-vindas"
+ },
+ "diagnostics": {
+ "title": "informações do Sistema"
+ },
+ "languages": {
+ "de": "Alemão",
+ "en-US": "Inglês",
+ "ja": "Japonês",
+ "ko": "Coreano",
+ "pt-BR": "Português(Brasil)",
+ "ru": "Russo",
+ "zh-CN": "Chinês(Simplificado)",
+ "zh-TW": "Chinês(Tradicional)"
+ },
+ "validator": {
+ "errors": {
+ "invalid-json": "Dados JSON inválidos: __error__",
+ "invalid-prop": "Expressão de propriedade inválida",
+ "invalid-num": "Número inválido",
+ "invalid-regexp": "Padrão de entrada inválido",
+ "invalid-regex-prop": "__prop__: Padrão de entrada inválido",
+ "missing-required-prop": "__prop__: valor de propriedade ausente",
+ "invalid-config": "__prop__: nó de configuração inválido",
+ "missing-config": "__prop__: nó de Configuração ausente",
+ "validation-error": "__prop__: erro de validação: __node__, __id__: __error__"
+ }
+ },
+ "contextMenu": {
+ "insert": "Inserir",
+ "node": "Nó",
+ "junction": "Junção",
+ "linkNodes": "Nós de Ligação"
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/pt-BR/infotips.json b/packages/node_modules/@node-red/editor-client/locales/pt-BR/infotips.json
new file mode 100644
index 000000000..7ac7502c1
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/locales/pt-BR/infotips.json
@@ -0,0 +1,23 @@
+{
+ "info": {
+ "tip0": "Você pode remover os nós ou links selecionados com {{core:delete-selection}}",
+ "tip1": "Procure por nós usando {{core:search}}",
+ "tip2": "{{core:toggle-sidebar}} irá alternar a visualização desta barra lateral",
+ "tip3": "Você pode gerenciar sua paleta de nós com {{core:manage-palette}}",
+ "tip4": "Seus nós de configuração de fluxo são listados no painel da barra lateral. Pode ser acessado a partir do menu ou com{{core:show-config-tab}}",
+ "tip5": "Habilite ou desabilite essas dicas na opção nas configurações",
+ "tip6": "Mova os nós selecionados usando o [left] [up] [down] e [right] chaves. Segure [shift] para empurrá-los ainda mais",
+ "tip7": "Arrastar um nó para um fio o unirá no link",
+ "tip8": "Exporte os nós selecionados ou a guia atual com {{core:show-export-dialog}}",
+ "tip9": "Importe um fluxo arrastando seu JSON para o editor ou com {{core:show-import-dialog}}",
+ "tip10": "[shift] [click] e arraste em uma porta de nó para mover todos os fios conectados ou apenas o selecionado",
+ "tip11": "Mostre a guia Informações com {{core:show-info-tab}} ou a guia Depurar com {{core:show-debug-tab}}",
+ "tip12": "[ctrl] [click] na área de trabalho para abrir a caixa de diálogo de adição rápida",
+ "tip13": "Mantenha pressionado [ctrl] enquanto você [click] em uma porta de nó para habilitar a ligação rápida",
+ "tip14": "Mantenha pressionado [shift] enquanto você [click] em um nó para também selecionar todos os seus nós conectados",
+ "tip15": "Mantenha pressionado [ctrl] enquanto você [click] em um nó para adicioná-lo ou removê-lo da seleção atual",
+ "tip16": "Alternar guias de fluxo com {{core:show-previous-tab}} e {{core:show-next-tab}}",
+ "tip17": "Você pode confirmar suas alterações na bandeja de edição do nó com {{core:confirm-edit-tray}} ou cancele-os com {{core:cancel-edit-tray}}",
+ "tip18": "Pressionando {{core:edit-selected-node}} irá editar o primeiro nó na seleção atual"
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/pt-BR/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/pt-BR/jsonata.json
new file mode 100644
index 000000000..9d948335c
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/locales/pt-BR/jsonata.json
@@ -0,0 +1,274 @@
+{
+ "$string": {
+ "args": "arg[, prettify]",
+ "desc": "Converte o tipo do parâmetro `arg` em uma cadeia de caracteres usando as seguintes regras de conversão de tipo:\n\n - Cadeia de caracteres não são alteradas\n - As funções são convertidas para uma cadeia de caracteres vazia\n - os tipos numérico infinito e NaN geram um erro porque não podem ser representados como um número JSON\n - Todos os outros valores são convertidos para uma cadeia de caracteres JSON usando a função `JSON.stringify`. Se `prettify` for verdadeira, então o JSON \"prettified\" é produzido. Isto é, uma linha por campo e as linhas serão indentadas com base na profundidade do campo."
+ },
+ "$length": {
+ "args": "str",
+ "desc": "Retorna o número de caracteres na cadeia de caracteres `str`. Um erro é gerado se `str` não for uma cadeia de caracteres."
+ },
+ "$substring": {
+ "args": "str, start[, length]",
+ "desc": "Retorna uma cadeia de caracteres contendo os caracteres no primeiro parâmetro `str` começando na posição `start` (deslocamento zero). Se` length` for especificado, então a sub cadeia de caracteres conterá o máximo `length` de caracteres. Se` start` for negativo isso indica o número de caracteres a partir do fim de `str`."
+ },
+ "$substringBefore": {
+ "args": "str, chars",
+ "desc": "Retorna a sub cadeia de caracteres antes da primeira ocorrência da sequência de caracteres `chars` em `string`. Se` string` não contiver `chars`, então retorna `str`."
+ },
+ "$substringAfter": {
+ "args": "str, chars",
+ "desc": "Retorna a sub cadeia de caracteres após a primeira ocorrência da sequência de caracteres `chars` em `string`. Se `string` não contiver `chars`, então retorna `str`."
+ },
+ "$uppercase": {
+ "args": "str",
+ "desc": "Retorna uma cadeia de caracteres com todos os caracteres de `string` convertidos em maiúsculas."
+ },
+ "$lowercase": {
+ "args": "str",
+ "desc": "Retorna uma cadeia de caracteres com todos os caracteres de `string` convertidos em minúsculas."
+ },
+ "$trim": {
+ "args": "str",
+ "desc": "Normaliza e retira todos os caracteres de espaço em branco em `str` aplicando as seguintes etapas:\n\n - Todas as tabulações, retornos de carro e avanços de linha são substituídos por espaços.\n- Sequências contíguas de espaços são reduzidas a um único espaço.\n- Espaços à direita e à esquerda são removidos.\n\n Se `str` não for especificado (isto é, esta função é chamada sem argumentos), então o valor do contexto é usado como o valor de `str`. Um erro é gerado se `str` não for uma cadeia de caracteres."
+ },
+ "$contains": {
+ "args": "str, pattern",
+ "desc": "Retorna `true` se `str` tiver correspondente em `pattern`, caso contrário, retorna `false`. Se `str` não for especificado (isto é, esta função é chamada com um argumento), então o valor do contexto é usado como o valor de `str`. O parâmetro `pattern` pode ser uma cadeia de caracteres ou uma expressão regular."
+ },
+ "$split": {
+ "args": "str[, separator][, limit]",
+ "desc": "Divide o parâmetro `str` em uma matriz de sub cadeia de caracteres. É um erro se `str` não for uma cadeia de caracteres. O parâmetro opcional `separator` especifica os caracteres dentro de `str` sobre os quais devem ser divididos como uma cadeia de caracteres ou expressão regular. Se `separator` não for especificado, a cadeia de caracteres vazia será assumida e `str` será dividido em uma matriz de caracteres únicos. É um erro se `separador` não for uma cadeia de caracteres. O parâmetro opcional `limit` é um número que especifica o número máximo de sub cadeia de caracteres a serem incluídas na matriz resultante. Quaisquer sub cadeia de caracteres adicionais são descartadas. Se `limit` não for especificado, então `str` será totalmente dividido sem limite para o tamanho da matriz resultante . É um erro se `limit` não for um número não negativo."
+ },
+ "$join": {
+ "args": "array[, separator]",
+ "desc": "Une uma matriz de cadeias de caracteres de componentes em uma única cadeia de caracteres concatenada com cada cadeia de caracteres de componente separada pelo parâmetro opcional `separator`. É um erro se a `matriz` de entrada contiver um item que não seja uma cadeia de caracteres. Se `separator` for não especificado, assume-se que é uma cadeia de caracteres vazia, ou seja, nenhum `separator` entre as cadeias de caracteres do componente. É um erro se `separator` não for uma cadeia de caracteres."
+ },
+ "$match": {
+ "args": "str, pattern [, limit]",
+ "desc": "Aplica a cadeia de caracteres `str` à expressão regular `pattern` e retorna uma matriz de objetos, com cada objeto contendo informações sobre cada ocorrência de uma correspondência dentro de `str`."
+ },
+ "$replace": {
+ "args": "str, pattern, replacement [, limit]",
+ "desc": "Encontra ocorrências de `pattern` dentro de `str` e as substitui por `replacement`.\n\nO parâmetro opcional `limit` é o número máximo de substituições."
+ },
+ "$now": {
+ "args": "$[picture [, timezone]]",
+ "desc": "Gera um carimbo de data/hora em formato compatível com ISO 8601 e o retorna como uma cadeia de caracteres. Se os parâmetros opcionais de imagem e fuso horário forem fornecidos, o carimbo de data/hora atual é formatado conforme descrito pela função `$fromMillis()`"
+ },
+ "$base64encode": {
+ "args": "string",
+ "desc": "Converte uma cadeia de caracteres ASCII em uma representação de base 64. Cada caractere na cadeia de caracteres é tratado como um byte de dados binários. Isso requer que todos os caracteres na cadeia de caracteres estejam no intervalo de 0x00 a 0xFF, o que inclui todos os caracteres em cadeias de caracteres codificadas em URI. Caracteres Unicode fora desse intervalo não são suportados."
+ },
+ "$base64decode": {
+ "args": "string",
+ "desc": "Converte bytes codificados de base 64 em uma cadeia de caracteres, usando uma página de código UTF-8 Unicode."
+ },
+ "$number": {
+ "args": "arg",
+ "desc": "Converte o parâmetro `arg` em um número usando as seguintes regras de conversão:\n\n - Os números permanecem inalterados\n - Cadeias de caracteres que contêm uma sequência de caracteres que representam um número JSON válido são convertidos para esse número\n - Todos os outros valores causam a geração de um erro."
+ },
+ "$abs": {
+ "args": "number",
+ "desc": "Retorna o valor absoluto do parâmetro `number`."
+ },
+ "$floor": {
+ "args": "number",
+ "desc": "Retorna o valor de `number` arredondado para baixo para o inteiro mais próximo que seja menor ou igual a `number`."
+ },
+ "$ceil": {
+ "args": "number",
+ "desc": "Retorna o valor de `number` arredondado para o número inteiro mais próximo que é maior ou igual a `number`."
+ },
+ "$round": {
+ "args": "number [, precision]",
+ "desc": "Retorna o valor do parâmetro `number` arredondado para o número de casas decimais especificado pelo parâmetro opcional `precision`."
+ },
+ "$power": {
+ "args": "base, exponent",
+ "desc": "Retorna o valor de `base` elevado à potência de `exponent`."
+ },
+ "$sqrt": {
+ "args": "number",
+ "desc": "Retorna a raiz quadrada do valor do parâmetro `number`."
+ },
+ "$random": {
+ "args": "",
+ "desc": "Retorna um número pseudoaleatório maior ou igual a zero e menor que um."
+ },
+ "$millis": {
+ "args": "",
+ "desc": "Retorna o número de milissegundos desde o Unix Epoch (1º de janeiro de 1970 UTC) como um número. Todas as invocações de `$millis()` dentro de uma avaliação de uma expressão retornarão todas o mesmo valor."
+ },
+ "$sum": {
+ "args": "array",
+ "desc": "Retorna a soma aritmética de uma `array` de números. É um erro se o `array` de entrada contiver um item que não seja um número."
+ },
+ "$max": {
+ "args": "array",
+ "desc": "Retorna o número máximo em uma `array` de números. É um erro se o `array` de entrada contiver um item que não seja um número."
+ },
+ "$min": {
+ "args": "array",
+ "desc": "Retorna o número mínimo em uma `array` de números. É um erro se o `array` de entrada contiver um item que não seja um número."
+ },
+ "$average": {
+ "args": "array",
+ "desc": "Retorna o valor médio de uma `array` de números. É um erro se o `array` de entrada contiver um item que não seja um número."
+ },
+ "$boolean": {
+ "args": "arg",
+ "desc": "Converte o argumento em um booliano usando as seguintes regras:\n\n - `Boolean` : inalterado\n - `string`: vazio : `false`\n - `string`: não-vazio : `true`\n - `number`: `0` : `false`\n - `number`: não-zero : `true`\n - `null` : `false`\n - `array`: vazio : `false`\n - `array`: contém um membro que converte de tipo para `true` : `true`\n - `array`: todos os membros convertidos de tipo para `false` : `false`\n - `object`: vazio : `false`\n - `object`: não-vazio : `true`\n - `function` : `false`"
+ },
+ "$not": {
+ "args": "arg",
+ "desc": "Retorna booliano NOT no argumento. `Arg` é convertido de tipo primeiro para um booliano"
+ },
+ "$exists": {
+ "args": "arg",
+ "desc": "Retorna booliano `true` se a expressão `arg` for avaliada como um valor, ou `false` se a expressão não corresponder a nada (por exemplo, um caminho para uma referência de campo inexistente)."
+ },
+ "$count": {
+ "args": "array",
+ "desc": "Retorna o número de itens na matriz"
+ },
+ "$append": {
+ "args": "array, array",
+ "desc": "Anexa duas matrizes"
+ },
+ "$sort": {
+ "args": "array [, function]",
+ "desc": "Retorna uma matriz contendo todos os valores no parâmetro `array`, mas classificados em ordem.\n\nSe um comparador `function` for fornecido, então deve ser uma função que leva dois parâmetros:\n\n`function(left, right)`\n\nEsta função é invocada pelo algoritmo de classificação para comparar dois valores à esquerda e à direita. Se o valor de esquerda deve ser colocado após o valor de direita na ordem de classificação desejada, a função deve retornar o booliano `true` para indicar uma troca. Caso contrário, deve retornar `false`."
+ },
+ "$reverse": {
+ "args": "array",
+ "desc": "Retorna uma matriz contendo todos os valores do parâmetro `array`, mas na ordem reversa."
+ },
+ "$shuffle": {
+ "args": "array",
+ "desc": "Retorna uma matriz contendo todos os valores do parâmetro `array`, mas misturados em ordem aleatória."
+ },
+ "$zip": {
+ "args": "array, ...",
+ "desc": "Retorna uma matriz convolucional (compactada) contendo matrizes agrupadas de valores dos argumentos `array1`… `arrayN` do índice 0, 1, 2 ...."
+ },
+ "$keys": {
+ "args": "object",
+ "desc": "Retorna uma matriz contendo as chaves do objeto. Se o argumento for uma matriz de objetos, então a matriz retornada contém uma lista não duplicada de todas as chaves em todos os objetos."
+ },
+ "$lookup": {
+ "args": "object, key",
+ "desc": "Retorna o valor associado à chave no objeto. Se o primeiro argumento for uma matriz de objetos, todos os objetos na matriz são pesquisados e os valores associados a todas as ocorrências da chave são retornados."
+ },
+ "$spread": {
+ "args": "object",
+ "desc": "Divide um objeto que contém pares de chave/valor em uma matriz de objetos, cada um com um único par de chave/valor do objeto de entrada. Se o parâmetro for uma matriz de objetos, a matriz resultante conterá um objeto para cada par de chave/valor em todo objeto na matriz fornecida."
+ },
+ "$merge": {
+ "args": "array<object>",
+ "desc": "Mescla uma matriz de `objects` em um único `object` contendo todos os pares de chave/valor de cada um dos objetos na matriz de entrada. Se qualquer um dos objetos de entrada contiver a mesma chave, então o `object` retornado conterá o valor do último na matriz. É um erro se a matriz de entrada contiver um item que não seja um objeto."
+ },
+ "$sift": {
+ "args": "object, function",
+ "desc": "Retorna um objeto que contém apenas os pares de chave/valor do parâmetro `object` que satisfazem o predicado `function` passado como o segundo parâmetro.\n\nA `function` que é fornecida como o segundo parâmetro deve ter o seguinte assinatura:\n\n`function(value [, key [, object]])`"
+ },
+ "$each": {
+ "args": "object, function",
+ "desc": "Retorna uma matriz contendo os valores retornados por `function` quando aplicado a cada par chave/valor no `object`."
+ },
+ "$map": {
+ "args": "array, function",
+ "desc": "Retorna uma matriz contendo os resultados da aplicação do parâmetro `function` a cada valor no parâmetro `array`.\n\nA `function` que é fornecido como o segundo parâmetro deve ter a seguinte assinatura:\n\n`function(value [, index [, array]])`"
+ },
+ "$filter": {
+ "args": "array, function",
+ "desc": "Retorna uma matriz contendo apenas os valores no parâmetro `array` que satisfazem o predicado `function`.\n\nThe `function` que é fornecido como o segundo parâmetro deve ter a seguinte assinatura:\n\n`function(value [, index [, array]])`"
+ },
+ "$reduce": {
+ "args": "array, function [, init]",
+ "desc": "Retorna um valor agregado derivado da aplicação do parâmetro `function` sucessivamente a cada valor em `array` em combinação com o resultado da aplicação anterior da função.\n\nA função deve aceitar dois argumentos e se comportar como um operador inserido entre cada valor dentro de `array`. A assinatura da `function` deve estar no formato: `myfunc($accumulator, $value[, $index[, $array]])`\n\nO parâmetro opcional `init` é usado como o valor inicial na agregação."
+ },
+ "$flowContext": {
+ "args": "string[, string]",
+ "desc": "Recupera uma propriedade de contexto de fluxo.\n\nEsta é uma função definida pelo Node-RED."
+ },
+ "$globalContext": {
+ "args": "string[, string]",
+ "desc": "Recupera uma propriedade de contexto global.\n\nEsta é uma função definida pelo Node-RED."
+ },
+ "$pad": {
+ "args": "string, width [, char]",
+ "desc": "Retorna uma cópia da `string` com preenchimento extra, se necessário, de forma que seu número total de caracteres seja pelo menos o valor absoluto do parâmetro `width`.\n\nSe `width` for um número positivo, a cadeia de caracteres será preenchida à direita; se negativo, é preenchida à esquerda.\n\nO argumento opcional `char` especifica os caracteres de preenchimento a serem usados. Se não for especificado, o padrão é o caractere de espaço."
+ },
+ "$fromMillis": {
+ "args": "number, [, picture [, timezone]]",
+ "desc": "Converta o `number` que representa os milissegundos desde a época do Unix (1 January, 1970 UTC) em uma representação de cadeia de caracteres formatada do carimbo de data/hora conforme especificado pela cadeia de caracteres de imagem.\n\nSe o parâmetro opcional `image` for omitido, o carimbo de data/hora será formatado no formato ISO 8601.\n\nSe a cadeia de caracteresopcional `picture` for fornecida, o carimbo de data/hora é formatado de acordo com a representação especificada nessa cadeia de caracteres. O comportamento desta função é consistente com a versão de dois argumentos da função XPath/XQuery `format-dateTime` conforme definido na especificação XPath F&O 3.1. O parâmetro de cadeia de caracteres de imagem define como o carimbo de data/hora é formatado e tem a mesma sintaxe de `format-dateTime`.\n\nSe a cadeia de caracteres opcional `timezone` for fornecida, o carimbo de data/hora formatado estará nesse fuso horário. A cadeia de caracteres `timezone` deve estar no formato '± HHMM', onde ± é o sinal de mais ou menos e HHMM é o deslocamento em horas e minutos do UTC. Deslocamento positivo para fusos horários a leste do UTC, deslocamento negativo para fusos horários a oeste do UTC."
+ },
+ "$formatNumber": {
+ "args": "number, picture [, options]",
+ "desc": "Converte o tipo de `number` em uma cadeia de caracteres e o formata em uma representação decimal conforme especificado pela cadeia de caracteres `picture`.\n\n O comportamento desta função é consistente com a função XPath/XQuery `fn:format-number` conforme definido na especificação XPath F&O 3.1. O parâmetro de cadeia de caracteres de imagem define como o número é formatado e tem a mesma sintaxe de `fn:format-number`.\n\nO terceiro argumento opcional `options` é usado para substituir os caracteres de formatação específicos da localidade padrão, como o separador decimal. Se fornecido, este argumento deve ser um objeto contendo pares de nome/valor especificados na seção de formato decimal da especificação XPath F&O 3.1."
+ },
+ "$formatBase": {
+ "args": "number [, radix]",
+ "desc": "Converte o `number` em uma cadeia de caracteres e o formata em um inteiro representado na base do número especificada pelo argumento `radix`. Se `radix` não for especificado, o padrão é a base 10. `radix` pode estar entre 2 e 36, caso contrário, um erro será gerado."
+ },
+ "$toMillis": {
+ "args": "timestamp",
+ "desc": "Converta o tipo de uma cadeia de caracteres `timestamp` no formato ISO 8601 para o número de milissegundos desde a época do Unix (1 January, 1970 UTC) como um número. Um erro é gerado se a cadeia de caracteres não estiver no formato correto."
+ },
+ "$env": {
+ "args": "arg",
+ "desc": "Retorna o valor de uma variável de ambiente.\n\nEsta é uma função definida pelo Node-RED."
+ },
+ "$eval": {
+ "args": "expr [, context]",
+ "desc": "Analisa e avalia a cadeia de caracteres `expr` que contém um JSON literal ou uma expressão JSONata usando o contexto atual como o contexto para avaliação."
+ },
+ "$formatInteger": {
+ "args": "number, picture",
+ "desc": "Converte o tipo de `number` em uma cadeia de caracteres e o formata em uma representação inteira conforme especificado pela cadeia de caracteres `picture`. O parâmetro da cadeia de caracteres de imagem define como o número é formatado e tem a mesma sintaxe de `fn:format-integer` do Especificação XPath F&O 3.1."
+ },
+ "$parseInteger": {
+ "args": "string, picture",
+ "desc": "Examina e troca o conteúdo do parâmetro `string` para um inteiro (como um número JSON) usando o formato especificado pela cadeia de caracteres `picture`. O parâmetro da cadeia de caracteres `picture` tem o mesmo formato que `$formatInteger`."
+ },
+ "$error": {
+ "args": "[str]",
+ "desc": "Gera um erro com uma mensagem. O (parâmetro) opcional `str` substituirá a mensagem padrão de `$error() function evaluated`"
+ },
+ "$assert": {
+ "args": "arg, str",
+ "desc": "Se `arg` for verdadeiro, a função retorna indefinido. Se `arg` for falso, uma exceção é gerada com `str` como a mensagem da exceção."
+ },
+ "$single": {
+ "args": "array, function",
+ "desc": "Retorna o único valor no parâmetro `array` que satisfaz o predicado `function` (isto é, O (parâmetro) `function` retorna o booliano `true` quando passado o valor). Gera uma exceção se o número de valores correspondentes não for exatamente um .\n\nA função deve ser fornecida na seguinte assinatura: `function(value [, index [, array]])` onde 'value' é cada entrada da matriz, 'index' é a posição desse valor e toda a matriz é passada como o terceiro argumento"
+ },
+ "$encodeUrlComponent": {
+ "args": "str",
+ "desc": "Codifica um componente Localizador Uniforme de Recursos (URL) substituindo cada instância de certos caracteres por uma, duas, três ou quatro sequências de escape que representam a codificação UTF-8 do caractere.\n\nExemplo: `$encodeUrlComponent(\"?x=test\")` => `\"%3Fx%3Dtest\"`"
+ },
+ "$encodeUrl": {
+ "args": "str",
+ "desc": "Codifica um Localizador Uniforme de Recursos (URL) substituindo cada instância de certos caracteres por uma, duas, três ou quatro sequências de escape que representam a codificação UTF-8 do caractere.\n\nExemplo: `$encodeUrl(\"https://mozilla.org/?x=шеллы\")` => `\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\"`"
+ },
+ "$decodeUrlComponent": {
+ "args": "str",
+ "desc": "Decodifica um componente Localizador Uniforme de Recursos (URL) criado anteriormente por encodeUrlComponent.\n\nExemplo: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
+ },
+ "$decodeUrl": {
+ "args": "str",
+ "desc": "Decodifica um Localizador Uniforme de Recursos (URL) criado anteriormente por encodeUrl.\n\nExemplo: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ },
+ "$distinct": {
+ "args": "array",
+ "desc": "Retorna uma matriz com valores duplicados removidos da `array`"
+ },
+ "$type": {
+ "args": "value",
+ "desc": "Retorna o tipo de `value` como uma cadeia de caracteres. Se `value` for indefinido, retornará `undefined`"
+ },
+ "$moment": {
+ "args": "[str]",
+ "desc": "Obtém um objeto de dados usando a biblioteca 'Moment'."
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/locales/ru/editor.json b/packages/node_modules/@node-red/editor-client/locales/ru/editor.json
old mode 100755
new mode 100644
index d669b3f09..8cfea1bde
--- a/packages/node_modules/@node-red/editor-client/locales/ru/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ru/editor.json
@@ -1133,8 +1133,10 @@
"languages" : {
"de": "Немецкий",
"en-US": "Английский",
+ "fr": "Французский",
"ja": "Японский",
"ko": "Корейский",
+ "pt-BR":"португальский",
"ru": "Русский",
"zh-CN": "Китайский (упрощенный)",
"zh-TW": "Китайский (традиционный)"
diff --git a/packages/node_modules/@node-red/editor-client/locales/ru/infotips.json b/packages/node_modules/@node-red/editor-client/locales/ru/infotips.json
old mode 100755
new mode 100644
diff --git a/packages/node_modules/@node-red/editor-client/locales/ru/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/ru/jsonata.json
old mode 100755
new mode 100644
index 920042c25..4871aa69e
--- a/packages/node_modules/@node-red/editor-client/locales/ru/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/ru/jsonata.json
@@ -52,52 +52,52 @@
"desc": "Находит вхождения шаблона `pattern` в строке `str` и заменяет их на строку `replacement`.\n\nНеобязательный параметр `limit` - это максимальное количество замен."
},
"$now": {
- "args":"",
- "desc":"Создает отметку времени в формате, совместимом с ISO 8601, и возвращает ее как строку."
+ "args": "",
+ "desc": "Создает отметку времени в формате, совместимом с ISO 8601, и возвращает ее как строку."
},
"$base64encode": {
- "args":"string",
- "desc":"Преобразует ASCII-строку в base-64 кодировку. Каждый символ в строке обрабатывается как байт двоичных данных. Для этого необходимо, чтобы все символы в строке находились в диапазоне от 0x00 до 0xFF, который включает все символы строк в URI-кодировке. Символы Юникода за пределами этого диапазона не поддерживаются."
+ "args": "string",
+ "desc": "Преобразует ASCII-строку в base-64 кодировку. Каждый символ в строке обрабатывается как байт двоичных данных. Для этого необходимо, чтобы все символы в строке находились в диапазоне от 0x00 до 0xFF, который включает все символы строк в URI-кодировке. Символы Юникода за пределами этого диапазона не поддерживаются."
},
"$base64decode": {
- "args":"string",
- "desc":"Преобразует байты в кодировке base-64 в строку, используя кодовую страницу Юникод UTF-8."
+ "args": "string",
+ "desc": "Преобразует байты в кодировке base-64 в строку, используя кодовую страницу Юникод UTF-8."
},
"$number": {
"args": "arg",
"desc": "Преобразует параметр `arg` в число с использованием следующих правил приведения:\n\n - Числа возвращаются как есть\n - Строки, которые содержат последовательность символов, представляющих допустимое в JSON число, преобразуются в это число\n - Все остальные значения вызывают ошибку."
},
"$abs": {
- "args":"number",
- "desc":"Возвращает абсолютное значение числа `number`."
+ "args": "number",
+ "desc": "Возвращает абсолютное значение числа `number`."
},
"$floor": {
- "args":"number",
- "desc":"Возвращает значение числа `number`, округленное до ближайшего целого числа, которое меньше или равно `number`."
+ "args": "number",
+ "desc": "Возвращает значение числа `number`, округленное до ближайшего целого числа, которое меньше или равно `number`."
},
"$ceil": {
- "args":"number",
- "desc":"Возвращает значение числа `number`, округленное до ближайшего целого числа, которое больше или равно `number`."
+ "args": "number",
+ "desc": "Возвращает значение числа `number`, округленное до ближайшего целого числа, которое больше или равно `number`."
},
"$round": {
- "args":"number [, precision]",
- "desc":"Возвращает значение числа `number`, округленное до количества десятичных знаков, указанных необязательным параметром `precision`."
+ "args": "number [, precision]",
+ "desc": "Возвращает значение числа `number`, округленное до количества десятичных знаков, указанных необязательным параметром `precision`."
},
"$power": {
- "args":"base, exponent",
- "desc":"Возвращает значение числа `base`, возведенное в степень `exponent`."
+ "args": "base, exponent",
+ "desc": "Возвращает значение числа `base`, возведенное в степень `exponent`."
},
"$sqrt": {
- "args":"number",
- "desc":"Возвращает квадратный корень из значения числа `number`."
+ "args": "number",
+ "desc": "Возвращает квадратный корень из значения числа `number`."
},
"$random": {
- "args":"",
- "desc":"Возвращает псевдослучайное число, которе больше или равно нулю и меньше единицы."
+ "args": "",
+ "desc": "Возвращает псевдослучайное число, которе больше или равно нулю и меньше единицы."
},
"$millis": {
- "args":"",
- "desc":"Возвращает число миллисекунд с начала Unix-эпохи (1 января 1970 года по Гринвичу) в виде числа. Все вызовы `$millis()` в пределах выполнения выражения будут возвращать одно и то же значение."
+ "args": "",
+ "desc": "Возвращает число миллисекунд с начала Unix-эпохи (1 января 1970 года по Гринвичу) в виде числа. Все вызовы `$millis()` в пределах выполнения выражения будут возвращать одно и то же значение."
},
"$sum": {
"args": "array",
@@ -117,7 +117,7 @@
},
"$boolean": {
"args": "arg",
- "desc": "Приводит аргумент к логическому значению, используя следующие правила: \n\n - Логические значения возвращаются как есть\n - пустая строка: `false`\n - непустая строка: `true`\n - число равное `0`: `false`\n - ненулевое число: `true`\n - `null` : `false`\n - пустой массив: `false`\n - массив, который содержит хотя бы один элемент, приводимый к `true`: `true`\n - массив, все элементы которого приводятся к `false`: `false`\n - пустой объект: `false`\n - непустой объект: `true`\n - функция: `false`"
+ "desc": "Приводит аргумент к логическому значению, используя следующие правила:\n\n - Логические значения возвращаются как есть\n - пустая строка: `false`\n - непустая строка: `true`\n - число равное `0`: `false`\n - ненулевое число: `true`\n - `null` : `false`\n - пустой массив: `false`\n - массив, который содержит хотя бы один элемент, приводимый к `true`: `true`\n - массив, все элементы которого приводятся к `false`: `false`\n - пустой объект: `false`\n - непустой объект: `true`\n - функция: `false`"
},
"$not": {
"args": "arg",
@@ -136,20 +136,20 @@
"desc": "Присоединяет один массив к другому"
},
"$sort": {
- "args":"array [, function]",
- "desc":"Возвращает массив, содержащий все значения параметра `array`, но отсортированные по порядку.\n\nЕсли указан компаратор `function`, то это должна быть функция, которая принимает два параметра:\n\n`function(val1, val2)`\n\nЭту функцию вызывает алгоритм сортировки для сравнения двух значений: val1 и val2. Если значение val1 следует поместить после значения val2 в желаемом порядке сортировки, то функция должна возвращать логическое значение `true`, чтобы обозначить замену. В противном случае она должна вернуть `false`."
+ "args": "array [, function]",
+ "desc": "Возвращает массив, содержащий все значения параметра `array`, но отсортированные по порядку.\n\nЕсли указан компаратор `function`, то это должна быть функция, которая принимает два параметра:\n\n`function(val1, val2)`\n\nЭту функцию вызывает алгоритм сортировки для сравнения двух значений: val1 и val2. Если значение val1 следует поместить после значения val2 в желаемом порядке сортировки, то функция должна возвращать логическое значение `true`, чтобы обозначить замену. В противном случае она должна вернуть `false`."
},
"$reverse": {
- "args":"array",
- "desc":"Возвращает массив, содержащий все значения из параметра `array`, но в обратном порядке."
+ "args": "array",
+ "desc": "Возвращает массив, содержащий все значения из параметра `array`, но в обратном порядке."
},
"$shuffle": {
- "args":"array",
- "desc":"Возвращает массив, содержащий все значения из параметра `array`, но перемешанный в случайном порядке."
+ "args": "array",
+ "desc": "Возвращает массив, содержащий все значения из параметра `array`, но перемешанный в случайном порядке."
},
"$zip": {
- "args":"array, ...",
- "desc":"Возвращает свернутый (сжатый) массив, содержащий сгруппированные массивы значений из аргументов `array1` … `arrayN` по индексам 0, 1, 2...."
+ "args": "array, ...",
+ "desc": "Возвращает свернутый (сжатый) массив, содержащий сгруппированные массивы значений из аргументов `array1` … `arrayN` по индексам 0, 1, 2...."
},
"$keys": {
"args": "object",
@@ -168,24 +168,24 @@
"desc": "Объединяет массив объектов в один объект, содержащий все пары ключ / значение каждого из объектов входного массива. Если какой-либо из входных объектов содержит один и тот же ключ, возвращаемый объект будет содержать значение последнего в массиве. Вызывает ошибку, если входной массив содержит элемент, который не является объектом."
},
"$sift": {
- "args":"object, function",
- "desc":"Возвращает объект, который содержит только пары ключ / значение из параметра `object`, которые удовлетворяют предикату `function`, переданному в качестве второго параметра.\n\n`function`, которая передается в качестве второго параметра, должна иметь следующую сигнатуру:\n\n`function(value [, key [, object]])`"
+ "args": "object, function",
+ "desc": "Возвращает объект, который содержит только пары ключ / значение из параметра `object`, которые удовлетворяют предикату `function`, переданному в качестве второго параметра.\n\n`function`, которая передается в качестве второго параметра, должна иметь следующую сигнатуру:\n\n`function(value [, key [, object]])`"
},
"$each": {
- "args":"object, function",
- "desc":"Возвращает массив, который содержит значения, возвращаемые функцией `function` при применении к каждой паре ключ/значение из объекта `object`."
+ "args": "object, function",
+ "desc": "Возвращает массив, который содержит значения, возвращаемые функцией `function` при применении к каждой паре ключ/значение из объекта `object`."
},
"$map": {
- "args":"array, function",
- "desc":"Возвращает массив, содержащий результаты применения функции `function` к каждому значению массива `array`.\n\nФункция `function`, указанная в качестве второго параметра, должна иметь следующую сигнатуру:\n\n`function(value [, index [, array]])`"
+ "args": "array, function",
+ "desc": "Возвращает массив, содержащий результаты применения функции `function` к каждому значению массива `array`.\n\nФункция `function`, указанная в качестве второго параметра, должна иметь следующую сигнатуру:\n\n`function(value [, index [, array]])`"
},
"$filter": {
- "args":"array, function",
- "desc":"Возвращает массив, содержащий только те значения из массива `array`, которые удовлетворяют предикату `function`.\n\nФункция `function`, указанная в качестве второго параметра, должна иметь следующую сигнатуру:\n\n`function(value [, index [, array]])`"
+ "args": "array, function",
+ "desc": "Возвращает массив, содержащий только те значения из массива `array`, которые удовлетворяют предикату `function`.\n\nФункция `function`, указанная в качестве второго параметра, должна иметь следующую сигнатуру:\n\n`function(value [, index [, array]])`"
},
"$reduce": {
- "args":"array, function [, init]",
- "desc":"Возвращает агрегированное значение, полученное в результате последовательного применения функции `function` к каждому значению в массиве в сочетании с результатом от предыдущего применения функции.\n\nФункция должна принимать два аргумента и вести себя как инфиксный оператор между каждым значением в массиве `array`. Сигнатура `function` должна иметь форму: `myfunc($accumulator, $value[, $index[, $array]])`\n\nНеобязательный параметр `init` используется в качестве начального значения в агрегации."
+ "args": "array, function [, init]",
+ "desc": "Возвращает агрегированное значение, полученное в результате последовательного применения функции `function` к каждому значению в массиве в сочетании с результатом от предыдущего применения функции.\n\nФункция должна принимать два аргумента и вести себя как инфиксный оператор между каждым значением в массиве `array`. Сигнатура `function` должна иметь форму: `myfunc($accumulator, $value[, $index[, $array]])`\n\nНеобязательный параметр `init` используется в качестве начального значения в агрегации."
},
"$flowContext": {
"args": "string[, string]",
@@ -237,7 +237,7 @@
},
"$assert": {
"args": "arg, str",
- "desc": "Если значение `arg` равно true, функция возвращает значение undefined. Если значение `arg` равно false, генерируется исключение с `str` в качестве сообщения об исключении."
+ "desc": "Если значение `arg` равно `true`, функция возвращает значение undefined. Если значение `arg` равно `false`, генерируется исключение с `str` в качестве сообщения об исключении."
},
"$single": {
"args": "array, function",
@@ -257,7 +257,7 @@
},
"$decodeUrl": {
"args": "str",
- "desc": "Декодирует компонент Uniform Resource Locator (URL), ранее созданный с помощью encodeUrl. \n\nПример: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ "desc": "Декодирует компонент Uniform Resource Locator (URL), ранее созданный с помощью encodeUrl.\n\nПример: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
},
"$distinct": {
"args": "array",
diff --git a/packages/node_modules/@node-red/editor-client/locales/zh-CN/editor.json b/packages/node_modules/@node-red/editor-client/locales/zh-CN/editor.json
index eca5878ae..afc63e4cb 100644
--- a/packages/node_modules/@node-red/editor-client/locales/zh-CN/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/zh-CN/editor.json
@@ -1,1095 +1,1218 @@
{
- "common": {
- "label": {
- "name": "姓名",
- "ok": "确认",
- "done": "完成",
- "cancel": "取消",
- "delete": "删除",
- "close": "关闭",
- "load": "读取",
- "save": "保存",
- "import": "导入",
- "export": "导出",
- "back": "后退",
- "next": "下一个",
- "clone": "克隆项目",
- "cont": "继续",
- "style": "风格",
- "line": "大纲",
- "fill": "填充",
- "label": "标签",
- "color": "颜色",
- "position": "位置",
- "enable": "启用",
- "disable": "禁用",
- "upload": "上传"
- },
- "type": {
- "string": "字符串",
- "number": "数字",
- "boolean": "布尔值",
- "array": "数组",
- "buffer": "buffer",
- "object": "对象",
- "jsonString": "JSON字符串",
- "undefined": "未定义",
- "null": "空"
- }
+ "common": {
+ "label": {
+ "name": "名称",
+ "ok": "确认",
+ "done": "完成",
+ "cancel": "取消",
+ "delete": "删除",
+ "close": "关闭",
+ "load": "读取",
+ "save": "保存",
+ "import": "导入",
+ "export": "导出",
+ "back": "后退",
+ "next": "下一个",
+ "clone": "克隆项目",
+ "cont": "继续",
+ "style": "样式",
+ "line": "大纲",
+ "fill": "填充",
+ "label": "标签",
+ "color": "颜色",
+ "position": "位置",
+ "enable": "启用",
+ "disable": "禁用",
+ "upload": "上传"
},
- "event": {
- "loadPalette": "加载控制板",
- "loadNodeCatalogs": "加载节点目录",
- "loadNodes": "加载 __count__ 个节点",
- "loadFlows": "加载流程",
- "importFlows": "往工作区中加载流程"
+ "type": {
+ "string": "字符串",
+ "number": "数字",
+ "boolean": "布尔值",
+ "array": "数组",
+ "buffer": "buffer",
+ "object": "对象",
+ "jsonString": "JSON字符串",
+ "undefined": "未定义",
+ "null": "空"
+ }
+ },
+ "event": {
+ "loadPlugins": "加载插件",
+ "loadPalette": "加载控制板",
+ "loadNodeCatalogs": "加载节点目录",
+ "loadNodes": "加载 __count__ 个节点",
+ "loadFlows": "加载流程",
+ "importFlows": "往工作区中加载流程",
+ "importError": "加载流程错误
__message__
",
+ "loadingProject": "加载项目"
+ },
+ "workspace": {
+ "defaultName": "流程 __number__",
+ "editFlow": "编辑流程: __name__",
+ "confirmDelete": "确认删除",
+ "delete": "你确定要删除 __label__ ?",
+ "dropFlowHere": "把流程放到这里",
+ "addFlow": "添加流程",
+ "addFlowToRight": "在右侧新增流程",
+ "hideFlow": "隐藏流程",
+ "hideOtherFlows": "隐藏其它流程",
+ "showAllFlows": "显示所有流程",
+ "hideAllFlows": "隐藏所有流程",
+ "hiddenFlows": "列出 __count__ 个隐藏流程",
+ "hiddenFlows_plural": "列出 __count__ 个隐藏流程",
+ "showLastHiddenFlow": "显示最后一个隐藏流程",
+ "listFlows": "流程一览",
+ "listSubflows": "列出子流程",
+ "status": "状态",
+ "enabled": "有效",
+ "disabled": "无效",
+ "info": "详细描述",
+ "selectNodes": "点击节点来选择"
+ },
+ "menu": {
+ "label": {
+ "view": {
+ "view": "显示",
+ "grid": "网格",
+ "storeZoom": "加载时还原缩放尺寸",
+ "storePosition": "加载时还原滚动位置",
+ "showGrid": "显示网格",
+ "snapGrid": "对齐网格",
+ "gridSize": "网格尺寸",
+ "textDir": "文本方向",
+ "defaultDir": "默认方向",
+ "ltr": "从左到右",
+ "rtl": "从右到左",
+ "auto": "上下文",
+ "language": "语言",
+ "browserDefault": "浏览器默认"
+ },
+ "sidebar": {
+ "show": "显示侧边栏"
+ },
+ "palette": {
+ "show": "显示控制板"
+ },
+ "edit": "编辑",
+ "settings": "设置",
+ "userSettings": "用户设置",
+ "nodes": "节点",
+ "displayStatus": "显示节点状态",
+ "displayConfig": "修改节点配置",
+ "import": "导入",
+ "export": "导出",
+ "search": "查找流程",
+ "searchInput": "查找流程",
+ "subflows": "子流程",
+ "createSubflow": "新建子流程",
+ "selectionToSubflow": "将选择部分更改为子流程",
+ "flows": "流程",
+ "add": "增加",
+ "rename": "重命名",
+ "delete": "删除",
+ "keyboardShortcuts": "键盘快捷方式",
+ "login": "登录",
+ "logout": "退出",
+ "editPalette": "节点管理",
+ "other": "其他",
+ "showTips": "显示小提示",
+ "showWelcomeTours": "显示新版本向导",
+ "help": "Node-RED 文档主页",
+ "projects": "项目",
+ "projects-new": "新建",
+ "projects-open": "打开",
+ "projects-settings": "项目设定",
+ "showNodeLabelDefault": "显示新添加的节点的标签",
+ "codeEditor": "代码编辑器",
+ "groups": "组",
+ "groupSelection": "选择组",
+ "ungroupSelection": "取消选择组",
+ "groupMergeSelection": "合并选择",
+ "groupRemoveSelection": "从组中移除",
+ "arrange": "布局",
+ "alignLeft": "左对齐",
+ "alignCenter": "居中对齐",
+ "alignRight": "右对齐",
+ "alignTop": "顶部对齐",
+ "alignMiddle": "垂直居中对齐",
+ "alignBottom": "底部对齐",
+ "distributeHorizontally": "横向分布",
+ "distributeVertically": "垂直分布",
+ "moveToBack": "置于底层",
+ "moveToFront": "置于顶层",
+ "moveBackwards": "向后移动",
+ "moveForwards": "向前移动"
+ }
+ },
+ "actions": {
+ "toggle-navigator": "切换导航器",
+ "zoom-out": "缩小",
+ "zoom-reset": "重设缩放",
+ "zoom-in": "放大",
+ "search-flows": "搜索流程",
+ "search-prev": "上一个",
+ "search-next": "下一个",
+ "search-counter": "\"__term__\" __result__ of __count__"
+ },
+ "user": {
+ "loggedInAs": "作为 __name__ 登录",
+ "username": "账号",
+ "password": "密码",
+ "login": "登录",
+ "loginFailed": "登录失败",
+ "notAuthorized": "未授权",
+ "errors": {
+ "settings": "设置信息需要登录后才能访问",
+ "deploy": "改动需要登录后才能部署",
+ "notAuthorized": "此操作需要登录后才能执行"
+ }
+ },
+ "notification": {
+ "state": {
+ "flowsStopped": "流程已停止",
+ "flowsStarted": "流程已启动"
},
- "workspace": {
- "defaultName": "流程 __number__",
- "editFlow": "编辑流程: __name__",
- "confirmDelete": "确认删除",
- "delete": "你确定要删除 __label__ ?",
- "dropFlowHere": "把流程放到这里",
- "addFlow": "添加流程",
- "listFlows": "流程一览",
- "status": "状态",
- "enabled": "有效",
- "disabled": "无效",
- "info": "详细描述",
- "selectNodes": "点击节点来选择"
+ "warning": "警告 : __message__",
+ "warnings": {
+ "undeployedChanges": "节点中存在未部署的更改",
+ "nodeActionDisabled": "节点操作已禁用",
+ "nodeActionDisabledSubflow": "节点动作在子流程中被禁用",
+ "missing-types": "流程由于缺少节点类型而停止。请检查日志的详细信息",
+ "missing-modules": "流程因缺少模块而停止。
",
+ "safe-mode": "流程以安全模式停止。
您可以修改流程并部署更改以重新启动。
",
+ "restartRequired": "Node-RED必须重新启动,以启用升级的模块",
+ "credentials_load_failed": "由于无法解密凭据,因此流程停止。
流程凭据文件已加密,但是项目的加密密钥丢失或无效。
",
+ "credentials_load_failed_reset": "凭据无法解密
流凭据文件已加密,但是项目的加密密钥丢失或无效。
流凭据文件将在下一次部署时重置。任何现有的流凭证将被清除。
",
+ "missing_flow_file": "找不到项目流程文件。
该项目未配置流程文件。
",
+ "missing_package_file": "找不到项目包文件。
项目缺少package.json文件。
",
+ "project_empty": "该项目为空。
是否要创建一组默认的项目文件? 否则,您将必须在编辑器外部手动将文件添加到项目中。
",
+ "project_not_found": "未找到项目 __project__ 。
",
+ "git_merge_conflict": "自动合并更改失败。
修复未合并的冲突,然后提交结果。
"
+ },
+ "error": "错误 : __message__",
+ "errors": {
+ "lostConnection": "丢失与服务器的连接,重新连接...",
+ "lostConnectionReconnect": "丢失与服务器的连接, __time__ 秒后重新连接",
+ "lostConnectionTry": "现在尝试",
+ "cannotAddSubflowToItself": "无法向其自身添加子流程",
+ "cannotAddCircularReference": "无法添加子流程 - 循环引用",
+ "unsupportedVersion": "您正在使用不受支持的Node.js版本 请升级到最新版本的Node.js LTS",
+ "failedToAppendNode": "'__module__'加载失败
__error__
"
+ },
+ "project": {
+ "change-branch": "转到本地分支'__project__'",
+ "merge-abort": "Git合并中止",
+ "loaded": "项目'__project__'已加载",
+ "updated": "项目'__project__'已更新",
+ "pull": "项目'__project__'已重新加载",
+ "revert": "项目 '__project__'已还原",
+ "merge-complete": "Git合并完成",
+ "setupCredentials": "设定证书",
+ "setupProjectFiles": "设置项目文件",
+ "no": "不了,谢谢",
+ "createDefault": "创建默认项目文件",
+ "mergeConflict": "显示合并冲突"
+ },
+ "label": {
+ "manage-project-dep": "管理项目依赖性",
+ "setup-cred": "设定证书",
+ "setup-project": "设置项目文件",
+ "create-default-package": "创建默认的包文件",
+ "no-thanks": "不了,谢谢",
+ "create-default-project": "创建默认项目文件",
+ "show-merge-conflicts": "显示合并冲突",
+ "unknownNodesButton": "搜索未知节点"
+ }
+ },
+ "clipboard": {
+ "clipboard": "剪贴板",
+ "nodes": "节点",
+ "node": "__count__ 个节点",
+ "node_plural": "__count__ 个节点",
+ "configNode": "__count__ 个配置节点",
+ "configNode_plural": "__count__ 个配置节点",
+ "group": "__count__ 个组",
+ "group_plural": "__count__ 个组",
+ "flow": "__count__ 个流程",
+ "flow_plural": "__count__ 个流程",
+ "subflow": "__count__ 个子流程",
+ "subflow_plural": "__count__ 子流程",
+ "replacedNodes": "__count__ 个节点被置换",
+ "replacedNodes_plural": "__count__ 个节点被置换",
+ "pasteNodes": "在下方粘贴节点 ",
+ "selectFile": "导入节点文件",
+ "importNodes": "导入节点",
+ "exportNodes": "导出节点至剪贴板",
+ "download": "下载",
+ "importUnrecognised": "导入了无法识别的类型:",
+ "importUnrecognised_plural": "导入了无法识别的类型:",
+ "importDuplicate": "导入了重复节点:",
+ "importDuplicate_plural": "导入了重复节点:",
+ "nodesExported": "节点导出到了剪贴板",
+ "nodesImported": "导入:",
+ "nodeCopied": "已复制 __count__ 个节点",
+ "nodeCopied_plural": "已复制 __count__ 个节点",
+ "groupCopied": "复制 __count__ 个组",
+ "groupCopied_plural": "已复制 __count__ 个groups",
+ "groupStyleCopied": "已复制组风格",
+ "invalidFlow": "无效的流程: __message__",
+ "recoveredNodes": "复原的节点",
+ "recoveredNodesInfo": "导入节点时,此流上的节点缺少有效的流ID。 它们已被添加到此流中,您可以复原或删除它们。",
+ "recoveredNodesNotification": "导入的节点缺少有效的流ID
已将它们添加到名为 '__flowName__'的新流中。
",
+ "export": {
+ "selected": "已选择的节点",
+ "current": "当前节点",
+ "all": "所有流程",
+ "compact": "紧凑",
+ "formatted": "已格式化",
+ "copy": "导出到剪贴板",
+ "export": "导出到库",
+ "exportAs": "导出为",
+ "overwrite": "替换",
+ "exists": "\"__file__\" 已存在
是否要替换它?
"
+ },
+ "import": {
+ "import": "导入到",
+ "importSelected": "导入所选项",
+ "importCopy": "导入副本",
+ "viewNodes": "查看节点",
+ "newFlow": "新流程",
+ "replace": "置换",
+ "errors": {
+ "notArray": "输入的不是JSON数组",
+ "itemNotObject": "输入的流无效 - 项目 __index__ 不是节点对象",
+ "missingId": "输入的流无效-项 __index__ 缺少'id'属性",
+ "missingType": "输入的流程无效-项 __index__ 缺少'类型'属性"
+ },
+ "conflictNotification1": "您要导入的某些节点已经存在于工作空间中。",
+ "conflictNotification2": "选择要导入的节点,并确认要替换现有的节点还是导入它们的副本"
+ },
+ "copyMessagePath": "已复制路径",
+ "copyMessageValue": "已复制数值",
+ "copyMessageValue_truncated": "已复制舍弃的数值"
+ },
+ "deploy": {
+ "deploy": "部署",
+ "full": "全部",
+ "fullDesc": "在工作区中部署所有内容",
+ "modifiedFlows": "已修改的流程",
+ "modifiedFlowsDesc": "只部署包含已更改节点的流",
+ "modifiedNodes": "已更改的节点",
+ "modifiedNodesDesc": "只部署已经更改的节点",
+ "startFlows": "启动",
+ "startFlowsDesc": "启动流程",
+ "stopFlows": "停止",
+ "stopFlowsDesc": "停止流程",
+ "restartFlows": "重启流程",
+ "restartFlowsDesc": "重新启动当前部署的流程",
+ "successfulDeploy": "部署成功",
+ "successfulRestart": "成功重启流程",
+ "deployFailed": "部署失败: __message__",
+ "unusedConfigNodes": "您有一些未使用的配置节点",
+ "unusedConfigNodesButton": "搜索未使用的配置节点",
+ "unknownNodesButton": "查找未知节点",
+ "invalidNodesButton": "查找无效节点",
+ "errors": {
+ "noResponse": "服务器没有响应"
+ },
+ "confirm": {
+ "button": {
+ "ignore": "忽略",
+ "confirm": "确认部署",
+ "review": "查看更改",
+ "cancel": "取消",
+ "merge": "合并",
+ "overwrite": "忽略 & 部署"
+ },
+ "undeployedChanges": "您有未部署的更改。\n\n离开此页面将丢失这些更改。",
+ "improperlyConfigured": "工作区包含一些未正确配置的节点:",
+ "unknown": "工作区包含一些未知的节点类型:",
+ "confirm": "你确定要部署吗?",
+ "doNotWarn": "不要再对此发出警告",
+ "conflict": "服务器正在运行较新的一组流程。",
+ "backgroundUpdate": "服务器上的流程已更新。",
+ "conflictChecking": "检查是否可以自动合并更改",
+ "conflictAutoMerge": "此更改不包括冲突,可以自动合并",
+ "conflictManualMerge": "这些更改包括了在部署之前必须解决的冲突。",
+ "plusNMore": "+ __count__ 更多"
+ }
+ },
+ "eventLog": {
+ "title": "事件记录日志",
+ "view": "查看日志"
+ },
+ "diff": {
+ "unresolvedCount": "__count__个未解决的冲突",
+ "unresolvedCount_plural": "__count__个未解决的冲突",
+ "globalNodes": "全局节点",
+ "flowProperties": "流程属性",
+ "type": {
+ "added": "已添加",
+ "changed": "已更改",
+ "unchanged": "未更改",
+ "deleted": "已删除",
+ "flowDeleted": "已删除流程",
+ "flowAdded": "已添加流程",
+ "movedTo": "移动至__id__",
+ "movedFrom": "从__id__移动"
+ },
+ "nodeCount": "__count__个节点",
+ "nodeCount_plural": "__count__个节点",
+ "local": "本地",
+ "remote": "远程",
+ "reviewChanges": "查看变更",
+ "noBinaryFileShowed": "无法显示二进制文件内容",
+ "viewCommitDiff": "查看提交更改",
+ "compareChanges": "比较变更",
+ "saveConflict": "保存冲突解决",
+ "conflictHeader": "已解决__unresolved__ 中的__resolved__ 个冲突",
+ "commonVersionError": "通用版本不包含有效的JSON:",
+ "oldVersionError": "旧版本不包含有效的JSON:",
+ "newVersionError": "新版本不包含有效的JSON:"
+ },
+ "subflow": {
+ "editSubflowInstance": "编辑子流实例: __name__",
+ "editSubflow": "编辑流程模板: __name__",
+ "edit": "编辑流程模板",
+ "subflowInstances": "这个子流程模板有 __count__ 个实例",
+ "subflowInstances_plural": "这个子流程模板有 __count__ 个实例",
+ "editSubflowProperties": "编辑属性",
+ "input": "输入:",
+ "output": "输出:",
+ "status": "状态节点",
+ "deleteSubflow": "删除子流程",
+ "confirmDelete": "您确定要删除此子流程?",
+ "info": "详细描述",
+ "category": "类别",
+ "module": "模块",
+ "license": "许可",
+ "licenseNone": "无",
+ "licenseOther": "其它",
+ "type": "节点类型",
+ "version": "版本",
+ "versionPlaceholder": "x.y.z",
+ "keys": "关键字",
+ "keysPlaceholder": "使用英文逗号分隔关键字",
+ "author": "作者",
+ "authorPlaceholder": "名字 ",
+ "desc": "描述",
+ "env": {
+ "restore": "恢复为默认子流",
+ "remove": "删除环境变量"
+ },
+ "errors": {
+ "noNodesSelected": "无法创建子流程 : 未选择节点",
+ "multipleInputsToSelection": "无法创建子流程 : 多个输入到了选择"
+ }
+ },
+ "group": {
+ "editGroup": "编辑组: __name__",
+ "errors": {
+ "cannotCreateDiffGroups": "无法使用来自不同组的节点创建组",
+ "cannotAddSubflowPorts": "无法将子流程的端口添加到组"
+ }
+ },
+ "editor": {
+ "configEdit": "编辑",
+ "configAdd": "添加",
+ "configUpdate": "更新",
+ "configDelete": "删除",
+ "nodesUse": "__count__ 个节点使用此配置",
+ "nodesUse_plural": "__count__ 个节点使用此配置",
+ "addNewConfig": "添加新的 __type__ 配置",
+ "editNode": "编辑 __type__ 节点",
+ "editConfig": "编辑 __type__ 配置",
+ "addNewType": "添加新的 __type__ 节点",
+ "nodeProperties": "节点属性",
+ "label": "标签",
+ "color": "颜色",
+ "portLabels": "端口标签",
+ "labelInputs": "输入",
+ "labelOutputs": "输出",
+ "settingIcon": "图标",
+ "default": "默认",
+ "noDefaultLabel": "无",
+ "defaultLabel": "使用默认标签",
+ "searchIcons": "搜索图标",
+ "useDefault": "使用默认",
+ "description": "描述",
+ "show": "显示",
+ "hide": "隐藏",
+ "locale": "选择界面语言",
+ "icon": "图标",
+ "inputType": "输入类型",
+ "selectType": "选择类型...",
+ "loadCredentials": "加载节点凭证",
+ "inputs": {
+ "input": "输入",
+ "select": "选择",
+ "checkbox": "复选框",
+ "spinner": "微调器",
+ "none": "空",
+ "hidden": "隐藏属性"
+ },
+ "types": {
+ "str": "字符串",
+ "num": "数字",
+ "bool": "布尔",
+ "json": "JSON",
+ "bin": "buffer",
+ "env": "环境变量",
+ "cred": "证书"
},
"menu": {
- "label": {
- "view": {
- "view": "显示",
- "grid": "网格",
- "showGrid": "显示网格",
- "snapGrid": "对齐网格",
- "gridSize": "网格尺寸",
- "textDir": "文本方向",
- "defaultDir": "默认方向",
- "ltr": "从左到右",
- "rtl": "从右到左",
- "auto": "上下文",
- "language": "语言",
- "browserDefault": "浏览器默认"
- },
- "sidebar": {
- "show": "显示侧边栏"
- },
- "palette": {
- "show": "显示控制板"
- },
- "settings": "设置",
- "userSettings": "用户设置",
- "nodes": "节点",
- "displayStatus": "显示节点状态",
- "displayConfig": "修改节点配置",
- "import": "导入",
- "export": "导出",
- "search": "查找流程",
- "searchInput": "查找流程",
- "subflows": "子流程",
- "createSubflow": "新建子流程",
- "selectionToSubflow": "将选择部分更改为子流程",
- "flows": "流程",
- "add": "增加",
- "rename": "重命名",
- "delete": "删除",
- "keyboardShortcuts": "键盘快捷方式",
- "login": "登录",
- "logout": "退出",
- "editPalette": "节点管理",
- "other": "其他",
- "showTips": "显示小提示",
- "help": "Node-RED网页",
- "projects": "项目",
- "projects-new": "新建",
- "projects-open": "打开",
- "projects-settings": "项目设定",
- "showNodeLabelDefault": "显示新添加的节点的标签",
- "groups": "组",
- "groupSelection": "选择组",
- "ungroupSelection": "取消选择组",
- "groupMergeSelection": "合并选择",
- "groupRemoveSelection": "从组中移除"
- }
+ "input": "输入",
+ "select": "选择",
+ "checkbox": "复选框",
+ "spinner": "微调器",
+ "hidden": "仅标签"
+ },
+ "select": {
+ "label": "标签",
+ "value": "值"
+ },
+ "spinner": {
+ "min": "最小值",
+ "max": "最大值"
+ },
+ "errors": {
+ "scopeChange": "更改范围将使其他流中的节点无法使用",
+ "invalidProperties": "无效的属性:",
+ "credentialLoadFailed": "无法加载节点凭据"
+ }
+ },
+ "keyboard": {
+ "title": "键盘快捷键",
+ "keyboard": "键盘",
+ "filterActions": "筛选动作",
+ "shortcut": "快捷键",
+ "scope": "范围",
+ "unassigned": "未分配",
+ "global": "全局",
+ "workspace": "工作区",
+ "selectAll": "选择所有节点",
+ "selectNone": "取消所有选择",
+ "selectAllConnected": "选择所有连接的节点",
+ "addRemoveNode": "从选择中添加/删除节点",
+ "editSelected": "编辑选定节点",
+ "deleteSelected": "删除选定节点或链接",
+ "importNode": "导入节点",
+ "exportNode": "导出节点",
+ "nudgeNode": "移动所选节点(1px)",
+ "moveNode": "移动所选节点(20px)",
+ "toggleSidebar": "切换侧边栏",
+ "togglePalette": "切换控制板",
+ "copyNode": "复制所选节点",
+ "cutNode": "剪切所选节点",
+ "pasteNode": "粘贴节点",
+ "copyGroupStyle": "复制组样式",
+ "pasteGroupStyle": "粘贴组样式",
+ "undoChange": "撤消",
+ "redoChange": "重做",
+ "searchBox": "打开搜索框",
+ "managePalette": "管理面板",
+ "actionList": "动作列表",
+ "splitWireWithLinks": "使用Link节点拆分已选项"
+ },
+ "library": {
+ "library": "库",
+ "openLibrary": "打开库...",
+ "saveToLibrary": "保存到库...",
+ "typeLibrary": "__type__类型库",
+ "unnamedType": "无名__type__",
+ "exportedToLibrary": "节点导出到库",
+ "dialogSaveOverwrite": "一个叫做__libraryName__的__libraryType__已经存在,您需要覆盖么?",
+ "invalidFilename": "无效的文件名",
+ "savedNodes": "保存的节点",
+ "savedType": "已保存__type__",
+ "saveFailed": "保存失败: __message__",
+ "newFolder": "新文件夹",
+ "types": {
+ "local": "本地存储",
+ "examples": "示例"
+ }
+ },
+ "palette": {
+ "noInfo": "无可用信息",
+ "filter": "过滤已安装模块",
+ "search": "搜索模块",
+ "addCategory": "添加新的...",
+ "label": {
+ "subflows": "子流程",
+ "network": "网络",
+ "common": "通用",
+ "input": "输入",
+ "output": "输出",
+ "function": "功能",
+ "sequence": "序列化",
+ "parser": "解析",
+ "social": "社交",
+ "storage": "存储",
+ "analysis": "分析",
+ "advanced": "高级"
},
"actions": {
- "toggle-navigator": "切换导航器",
- "zoom-out": "缩小",
- "zoom-reset": "重设缩放",
- "zoom-in": "放大"
+ "collapse-all": "收起所有类别",
+ "expand-all": "展开所有类别"
},
- "user": {
- "loggedInAs": "作为 __name__ 登录",
- "username": "账号",
- "password": "密码",
- "login": "登录",
- "loginFailed": "登录失败",
- "notAuthorized": "未授权",
- "errors": {
- "settings": "设置信息需要登录后才能访问",
- "deploy": "改动需要登录后才能部署",
- "notAuthorized": "此操作需要登录后才能执行"
- }
- },
- "notification": {
- "warning": "警告 : __message__",
- "warnings": {
- "undeployedChanges": "节点中存在未部署的更改",
- "nodeActionDisabled": "节点操作已禁用",
- "nodeActionDisabledSubflow": "节点动作在子流程中被禁用",
- "missing-types": "流程由于缺少节点类型而停止。请检查日志的详细信息",
- "safe-mode": "流程以安全模式停止。
您可以修改流程并部署更改以重新启动。
",
- "restartRequired": "Node-RED必须重新启动,以启用升级的模块",
- "credentials_load_failed": "由于无法解密凭据,因此流程停止。
流程凭据文件已加密,但是项目的加密密钥丢失或无效。
",
- "credentials_load_failed_reset": "凭据无法解密
流凭据文件已加密,但是项目的加密密钥丢失或无效。
流凭据文件将在下一次部署时重置。任何现有的流凭证将被清除。
",
- "missing_flow_file": "找不到项目流程文件。
该项目未配置流程文件。
",
- "missing_package_file": "找不到项目包文件。
项目缺少package.json文件。
",
- "project_empty": "该项目为空。
是否要创建一组默认的项目文件? 否则,您将必须在编辑器外部手动将文件添加到项目中。
",
- "project_not_found": "未找到项目 __project__ 。
",
- "git_merge_conflict": "自动合并更改失败。
修复未合并的冲突,然后提交结果。
"
- },
- "error": "错误 : __message__",
- "errors": {
- "lostConnection": "丢失与服务器的连接,重新连接...",
- "lostConnectionReconnect": "丢失与服务器的连接, __time__ 秒后重新连接",
- "lostConnectionTry": "现在尝试",
- "cannotAddSubflowToItself": "无法向其自身添加子流程",
- "cannotAddCircularReference": "无法添加子流程 - 循环引用",
- "unsupportedVersion": "您正在使用不受支持的Node.js版本 请升级到最新版本的Node.js LTS",
- "failedToAppendNode": "'__module__'加载失败
__error__
"
- },
- "project": {
- "change-branch": "转到本地分支'__project__'",
- "merge-abort": "Git合并中止",
- "loaded": "项目'__project__'已加载",
- "updated": "项目'__project__'已更新",
- "pull": "项目'__project__'已重新加载",
- "revert": "项目 '__project__'已还原",
- "merge-complete": "Git合并完成",
- "setupCredentials": "设定证书",
- "setupProjectFiles": "设置项目文件",
- "no": "不了,谢谢",
- "createDefault": "创建默认项目文件",
- "mergeConflict": "显示合并冲突"
- },
- "label": {
- "manage-project-dep": "管理项目依赖性",
- "setup-cred": "设定证书",
- "setup-project": "设置项目文件",
- "create-default-package": "创建默认的包文件",
- "no-thanks": "不了,谢谢",
- "create-default-project": "创建默认项目文件",
- "show-merge-conflicts": "显示合并冲突",
- "unknownNodesButton": "搜索未知节点"
- }
- },
- "clipboard": {
- "clipboard": "剪贴板",
- "nodes": "节点",
- "node": "__count__ 个节点",
- "node_plural": "__count__ 个节点",
- "configNode": "__count__ 个配置节点",
- "configNode_plural": "__count__ 个配置节点",
- "group": "__count__ 个组",
- "group_plural": "__count__ 个组",
- "flow": "__count__ 个流程",
- "flow_plural": "__count__ 个流程",
- "subflow": "__count__ 个子流程",
- "subflow_plural": "__count__ 子流程",
- "replacedNodes": "__count__ 个节点被置换",
- "replacedNodes_plural": "__count__ 个节点被置换",
- "pasteNodes": "在这里粘贴节点",
- "selectFile": "选择要导入的文件",
- "importNodes": "导入节点",
- "exportNodes": "导出节点至剪贴板",
- "download": "下载",
- "importUnrecognised": "导入了无法识别的类型:",
- "importUnrecognised_plural": "导入了无法识别的类型:",
- "nodesExported": "节点导出到了剪贴板",
- "nodesImported": "导入:",
- "nodeCopied": "已复制 __count__ 个节点",
- "nodeCopied_plural": "已复制 __count__ 个节点",
- "groupCopied": "复制 __count__ 个组",
- "groupCopied_plural": "已复制 __count__ 个groups",
- "groupStyleCopied": "已复制组风格",
- "invalidFlow": "无效的流程: __message__",
- "recoveredNodes": "复原的节点",
- "recoveredNodesInfo": "导入节点时,此流上的节点缺少有效的流ID。 它们已被添加到此流中,您可以复原或删除它们。",
- "recoveredNodesNotification": "导入的节点缺少有效的流ID
已将它们添加到名为 '__flowName__'的新流中。
",
- "export": {
- "selected": "已选择的节点",
- "current": "现在的节点",
- "all": "所有流程",
- "compact": "紧凑",
- "formatted": "已格式化",
- "copy": "导出到剪贴板",
- "export": "导出到库",
- "exportAs": "导出为",
- "overwrite": "替换",
- "exists": "\"__file__\" 已存在
是否要替换它?
"
- },
- "import": {
- "import": "导入到",
- "importSelected": "导入所选项",
- "importCopy": "导入副本",
- "viewNodes": "查看节点",
- "newFlow": "新流程",
- "replace": "置换",
- "errors": {
- "notArray": "输入的不是JSON数组",
- "itemNotObject": "输入的流无效 - 项目 __index__ 不是节点对象",
- "missingId": "输入的流无效-项 __index__ 缺少'id'属性",
- "missingType": "输入的流程无效-项 __index__ 缺少'类型'属性"
- },
- "conflictNotification1": "您要导入的某些节点已经存在于工作空间中。",
- "conflictNotification2": "选择要导入的节点,并确认要替换现有的节点还是导入它们的副本"
- },
- "copyMessagePath": "已复制路径",
- "copyMessageValue": "已复制数值",
- "copyMessageValue_truncated": "已复制舍弃的数值"
- },
- "deploy": {
- "deploy": "部署",
- "full": "全面",
- "fullDesc": "在工作区中部署所有内容",
- "modifiedFlows": "已修改的流程",
- "modifiedFlowsDesc": "只部署包含已更改节点的流",
- "modifiedNodes": "已更改的节点",
- "modifiedNodesDesc": "只部署已经更改的节点",
- "restartFlows": "重启流程",
- "restartFlowsDesc": "重新启动当前部署的流程",
- "successfulDeploy": "部署成功",
- "successfulRestart": "成功重启流程",
- "deployFailed": "部署失败: __message__",
- "unusedConfigNodes": "您有一些未使用的配置节点",
- "unusedConfigNodesButton":"搜索未使用的配置节点",
- "unknownNodesButton":"搜索未知节点",
- "invalidNodesButton":"搜索无效节点",
- "errors": {
- "noResponse": "服务器没有响应"
- },
- "confirm": {
- "button": {
- "ignore": "忽略",
- "confirm": "确认部署",
- "review": "查看更改",
- "cancel": "取消",
- "merge": "合并",
- "overwrite": "忽略 & 部署"
- },
- "undeployedChanges": "您有未部署的更改。\n\n离开此页面将丢失这些更改。",
- "improperlyConfigured": "工作区包含一些未正确配置的节点:",
- "unknown": "工作区包含一些未知的节点类型:",
- "confirm": "你确定要部署吗?",
- "doNotWarn": "不要再对此发出警告",
- "conflict": "服务器正在运行较新的一组流程。",
- "backgroundUpdate": "服务器上的流程已更新。",
- "conflictChecking": "检查是否可以自动合并更改",
- "conflictAutoMerge": "此更改不包括冲突,可以自动合并",
- "conflictManualMerge": "这些更改包括了在部署之前必须解决的冲突。",
- "plusNMore": "+ __count__ 更多"
- }
- },
- "eventLog": {
- "title": "事件记录日志",
- "view": "查看日志"
- },
- "diff": {
- "unresolvedCount": "__count__个未解决的冲突",
- "unresolvedCount_plural": "__count__个未解决的冲突",
- "globalNodes": "全局节点",
- "flowProperties": "流程属性",
- "type": {
- "added": "已添加",
- "changed": "已更改",
- "unchanged": "未更改",
- "deleted": "已删除",
- "flowDeleted": "已删除流程",
- "flowAdded": "已添加流程",
- "movedTo": "移动至__id__",
- "movedFrom": "从__id__移动"
- },
- "nodeCount": "__count__个节点",
- "nodeCount_plural": "__count__个节点",
- "local": "本地",
- "remote": "远程",
- "reviewChanges": "查看变更",
- "noBinaryFileShowed": "无法显示二进制文件内容",
- "viewCommitDiff": "查看提交更改",
- "compareChanges": "比较变更",
- "saveConflict": "保存冲突解决",
- "conflictHeader": "已解决__unresolved__ 中的__resolved__ 个冲突",
- "commonVersionError": "通用版本不包含有效的JSON:",
- "oldVersionError": "旧版本不包含有效的JSON:",
- "newVersionError": "新版本不包含有效的JSON:"
- },
- "subflow": {
- "editSubflowInstance": "编辑子流实例: __name__",
- "editSubflow": "编辑流程模板: __name__",
- "edit": "编辑流程模板",
- "subflowInstances": "这个子流程模板有 __count__ 个实例",
- "subflowInstances_plural": "这个子流程模板有 __count__ 个实例",
- "editSubflowProperties": "编辑属性",
- "input": "输入:",
- "output": "输出:",
- "status": "状态节点",
- "deleteSubflow": "删除子流程",
- "info": "详细描述",
- "category": "类别",
- "env": {
- "restore": "恢复为默认子流",
- "remove": "删除环境变量"
- },
- "errors": {
- "noNodesSelected": "无法创建子流程 : 未选择节点",
- "multipleInputsToSelection": "无法创建子流程 : 多个输入到了选择"
- }
- },
- "group": {
- "editGroup": "编辑组: __name__",
- "errors": {
- "cannotCreateDiffGroups": "无法使用来自不同组的节点创建组",
- "cannotAddSubflowPorts": "无法将子流程的端口添加到组"
- }
+ "event": {
+ "nodeAdded": "添加到面板中的节点:",
+ "nodeAdded_plural": "添加到面板中的多个节点",
+ "nodeRemoved": "从面板中删除的节点:",
+ "nodeRemoved_plural": "从面板中删除的多个节点:",
+ "nodeEnabled": "启用节点:",
+ "nodeEnabled_plural": "启用多个节点:",
+ "nodeDisabled": "禁用节点:",
+ "nodeDisabled_plural": "禁用多个节点:",
+ "nodeUpgraded": "节点模块__module__升级到__version__版本",
+ "unknownNodeRegistered": "加载节点错误: "
},
"editor": {
- "configEdit": "编辑",
- "configAdd": "添加",
- "configUpdate": "更新",
- "configDelete": "删除",
- "nodesUse": "__count__ 个节点使用此配置",
- "nodesUse_plural": "__count__ 个节点使用此配置",
- "addNewConfig": "添加新的 __type__ 配置",
- "editNode": "编辑 __type__ 节点",
- "editConfig": "编辑 __type__ 配置",
- "addNewType": "添加新的 __type__ 节点",
- "nodeProperties": "节点属性",
- "label": "标签",
- "color": "颜色",
- "portLabels": "端口标签",
- "labelInputs": "输入",
- "labelOutputs": "输出",
- "settingIcon": "图标",
- "default": "默认",
- "noDefaultLabel": "无",
- "defaultLabel": "使用默认标签",
- "searchIcons": "搜索图标",
- "useDefault": "使用默认",
- "description": "描述",
- "show": "显示",
- "hide": "隐藏",
- "locale": "选择界面语言",
- "icon": "图标",
- "inputType": "输入类型",
- "selectType": "选择类型...",
- "inputs": {
- "input": "输入",
- "select": "选择",
- "checkbox": "复选框",
- "spinner": "微调器",
- "none": "空",
- "hidden": "隐藏属性"
+ "title": "面板管理",
+ "palette": "控制板",
+ "times": {
+ "seconds": "秒前",
+ "minutes": "分前",
+ "minutesV": "__count__ 分前",
+ "hoursV": "__count__ 小时前",
+ "hoursV_plural": "__count__ 小时前",
+ "daysV": "__count__ 天前",
+ "daysV_plural": "__count__ 天前",
+ "weeksV": "__count__ 周前",
+ "weeksV_plural": "__count__ 周前",
+ "monthsV": "__count__ 月前",
+ "monthsV_plural": "__count__ 月前",
+ "yearsV": "__count__ 年前",
+ "yearsV_plural": "__count__ 年前",
+ "yearMonthsV": "__y__ 年, __count__ 月前",
+ "yearMonthsV_plural": "__y__ 年, __count__ 月前",
+ "yearsMonthsV": "__y__ 年, __count__ 月前",
+ "yearsMonthsV_plural": "__y__ 年, __count__ 月前"
+ },
+ "nodeCount": "__label__ 个节点",
+ "nodeCount_plural": "__label__ 个节点",
+ "moduleCount": "__count__ 个可用模块",
+ "moduleCount_plural": "__count__ 个可用模块",
+ "inuse": "使用中",
+ "enableall": "全部启用",
+ "disableall": "全部禁用",
+ "enable": "启用",
+ "disable": "禁用",
+ "remove": "移除",
+ "update": "更新至 __version__ 版本",
+ "updated": "已更新",
+ "install": "安装",
+ "installed": "已安装",
+ "conflict": "冲突",
+ "conflictTip": "无法安装此模块,因为它包含已安装的 节点类型
与__module__
冲突
",
+ "loading": "加载目录...",
+ "tab-nodes": "节点",
+ "tab-install": "安装",
+ "sort": "排序:",
+ "sortAZ": "a-z顺序",
+ "sortRecent": "日期顺序",
+ "more": "增加 __count__ 个",
+ "upload": "上传模块tgz文件",
+ "refresh": "更新模块列表",
+ "errors": {
+ "catalogLoadFailed": "无法加载节点目录。 查看浏览器控制台了解更多信息",
+ "installFailed": "无法安装: __module__ __message__ 查看日志了解更多信息",
+ "removeFailed": "无法删除: __module__ __message__ 查看日志了解更多信息",
+ "updateFailed": "无法更新: __module__ __message__ 查看日志了解更多信息",
+ "enableFailed": "无法启用: __module__ __message__ 查看日志了解更多信息",
+ "disableFailed": "无法禁用: __module__ __message__ 查看日志了解更多信息"
+ },
+ "confirm": {
+ "install": {
+ "body": "在安装之前,请阅读节点的文档,某些节点的依赖关系不能自动解决,可能需要重新启动Node-RED。",
+ "title": "安装节点"
},
- "types": {
- "str": "字符串",
- "num": "数字",
- "bool": "布尔",
- "json": "JSON",
- "bin": "buffer",
- "env": "环境变量",
- "cred": "证书"
+ "remove": {
+ "body": "删除节点将从Node-RED卸载它。节点可能会继续使用资源,直到重新启动Node-RED。",
+ "title": "删除节点"
},
- "menu": {
- "input": "输入",
- "select": "选择",
- "checkbox": "复选框",
- "spinner": "微调器",
- "hidden": "仅标签"
+ "update": {
+ "body": "更新节点将需要重新启动Node-RED来完成更新,该过程必须由手动完成。",
+ "title": "更新节点"
},
- "select": {
- "label": "标签",
- "value": "值"
+ "cannotUpdate": {
+ "body": "此节点的更新可用,但不会安装在面板管理器可以更新的位置。 请参阅有关如何更新此节点的文档。"
},
- "spinner": {
- "min": "最小值",
- "max": "最大值"
- },
- "errors": {
- "scopeChange": "更改范围将使其他流中的节点无法使用",
- "invalidProperties": "无效的属性:"
+ "button": {
+ "review": "打开节点信息",
+ "install": "安装",
+ "remove": "删除",
+ "update": "更新"
}
+ }
+ }
+ },
+ "sidebar": {
+ "info": {
+ "name": "节点信息",
+ "tabName": "名称",
+ "label": "信息",
+ "node": "节点",
+ "type": "类型",
+ "group": "组",
+ "module": "模组",
+ "id": "ID",
+ "status": "状态",
+ "enabled": "启用",
+ "disabled": "禁用",
+ "subflow": "子流程",
+ "instances": "实例",
+ "properties": "属性",
+ "info": "信息",
+ "desc": "描述",
+ "blank": "空白",
+ "null": "空",
+ "showMore": "展开",
+ "showLess": "收起",
+ "flow": "流程",
+ "selection": "选择",
+ "nodes": "__count__ 个节点",
+ "flowDesc": "流程描述",
+ "subflowDesc": "子流程描述",
+ "nodeHelp": "节点帮助",
+ "none": "无",
+ "arrayItems": "__count__ 个项目",
+ "showTips": "您可以从设置面板启用提示信息",
+ "outline": "大纲",
+ "empty": "空的",
+ "globalConfig": "全局配置节点",
+ "triggerAction": "触发动作",
+ "find": "在工作区中查找"
},
- "keyboard": {
- "title": "键盘快捷键",
- "keyboard": "键盘",
- "filterActions": "筛选动作",
- "shortcut": "快捷键",
- "scope": "范围",
- "unassigned": "未分配",
- "global": "全局",
- "workspace": "工作区",
- "selectAll": "选择所有节点",
- "selectAllConnected": "选择所有连接的节点",
- "addRemoveNode": "从选择中添加/删除节点",
- "editSelected": "编辑选定节点",
- "deleteSelected": "删除选定节点或链接",
- "importNode": "导入节点",
- "exportNode": "导出节点",
- "nudgeNode": "移动所选节点(1px)",
- "moveNode": "移动所选节点(20px)",
- "toggleSidebar": "切换侧边栏",
- "togglePalette": "切换控制板",
- "copyNode": "复制所选节点",
- "cutNode": "剪切所选节点",
- "pasteNode": "粘贴节点",
- "undoChange": "撤消上次执行的更改",
- "searchBox": "打开搜索框",
- "managePalette": "管理面板",
- "actionList": "动作列表"
+ "help": {
+ "name": "帮助",
+ "label": "帮助",
+ "search": "搜索帮助",
+ "nodeHelp": "节点帮助",
+ "showHelp": "显示帮助",
+ "showInOutline": "在大纲中显示",
+ "showTopics": "显示主题",
+ "noHelp": "未选择帮助主题",
+ "changeLog": "更新日志"
},
- "library": {
- "library": "库",
- "openLibrary": "打开库...",
- "saveToLibrary": "保存到库...",
- "typeLibrary": "__type__类型库",
- "unnamedType": "无名__type__",
- "exportedToLibrary": "节点导出到库",
- "dialogSaveOverwrite": "一个叫做__libraryName__的__libraryType__已经存在,您需要覆盖么?",
- "invalidFilename": "无效的文件名",
- "savedNodes": "保存的节点",
- "savedType": "已保存__type__",
- "saveFailed": "保存失败: __message__",
- "newFolder": "新文件夹",
- "types": {
- "local": "本地的",
- "examples": "例子"
- },
- "exportToLibrary": "将节点导出到库"
+ "config": {
+ "name": "配置节点",
+ "label": "配置",
+ "global": "所有流程",
+ "none": "无",
+ "subflows": "子流程",
+ "flows": "流程",
+ "filterAll": "所有",
+ "showAllConfigNodes": "显示所有配置节点",
+ "filterUnused": "未使用",
+ "showAllUnusedConfigNodes": "显示所有未使用的配置节点",
+ "filtered": "__count__ 个隐藏"
+ },
+ "context": {
+ "name": "上下文数据",
+ "label": "上下文",
+ "none": "未选择",
+ "refresh": "刷新以加载",
+ "empty": "空",
+ "node": "节点",
+ "flow": "流程",
+ "global": "全局",
+ "deleteConfirm": "确定要删除这个项目吗?",
+ "autoRefresh": "刷新选择更改",
+ "refrsh": "刷新",
+ "delete": "删除"
},
"palette": {
- "noInfo": "无可用信息",
- "filter": "过滤节点",
- "search": "搜索模块",
- "addCategory": "添加新的...",
- "label": {
- "subflows": "子流程",
- "network": "网络",
- "common": "共通",
- "input": "输入",
- "output": "输出",
- "function": "功能",
- "sequence": "序列",
- "parser": "解析",
- "social": "社交",
- "storage": "存储",
- "analysis": "分析",
- "advanced": "高级"
- },
- "actions": {
- "collapse-all": "收起所有类别",
- "expand-all": "展开所有类别"
- },
- "event": {
- "nodeAdded": "添加到面板中的节点:",
- "nodeAdded_plural": "添加到面板中的多个节点",
- "nodeRemoved": "从面板中删除的节点:",
- "nodeRemoved_plural": "从面板中删除的多个节点:",
- "nodeEnabled": "启用节点:",
- "nodeEnabled_plural": "启用多个节点:",
- "nodeDisabled": "禁用节点:",
- "nodeDisabled_plural": "禁用多个节点:",
- "nodeUpgraded": "节点模块__module__升级到__version__版本"
- },
- "editor": {
- "title": "面板管理",
- "palette": "控制板",
- "times": {
- "seconds": "秒前",
- "minutes": "分前",
- "minutesV": "__count__ 分前",
- "hoursV": "__count__ 小时前",
- "hoursV_plural": "__count__ 小时前",
- "daysV": "__count__ 天前",
- "daysV_plural": "__count__ 天前",
- "weeksV": "__count__ 周前",
- "weeksV_plural": "__count__ 周前",
- "monthsV": "__count__ 月前",
- "monthsV_plural": "__count__ 月前",
- "yearsV": "__count__ 年前",
- "yearsV_plural": "__count__ 年前",
- "yearMonthsV": "__y__ 年, __count__ 月前",
- "yearMonthsV_plural": "__y__ 年, __count__ 月前",
- "yearsMonthsV": "__y__ 年, __count__ 月前",
- "yearsMonthsV_plural": "__y__ 年, __count__ 月前"
- },
- "nodeCount": "__label__ 个节点",
- "nodeCount_plural": "__label__ 个节点",
- "moduleCount": "__count__ 个可用模块",
- "moduleCount_plural": "__count__ 个可用模块",
- "inuse": "使用中",
- "enableall": "全部启用",
- "disableall": "全部禁用",
- "enable": "启用",
- "disable": "禁用",
- "remove": "移除",
- "update": "更新至 __version__ 版本",
- "updated": "已更新",
- "install": "安装",
- "installed": "已安装",
- "conflict": "冲突",
- "conflictTip": "无法安装此模块,因为它包含已安装的 节点类型
与__module__
冲突
",
- "loading": "加载目录...",
- "tab-nodes": "节点",
- "tab-install": "安装",
- "sort": "排序:",
- "sortAZ": "a-z顺序",
- "sortRecent": "日期顺序",
- "more": "增加 __count__ 个",
- "upload": "上传模块tgz文件",
- "errors": {
- "catalogLoadFailed": "无法加载节点目录。 查看浏览器控制台了解更多信息",
- "installFailed": "无法安装: __module__ __message__ 查看日志了解更多信息",
- "removeFailed": "无法删除: __module__ __message__ 查看日志了解更多信息",
- "updateFailed": "无法更新: __module__ __message__ 查看日志了解更多信息",
- "enableFailed": "无法启用: __module__ __message__ 查看日志了解更多信息",
- "disableFailed": "无法禁用: __module__ __message__ 查看日志了解更多信息"
- },
- "confirm": {
- "install": {
- "body": "在安装之前,请阅读节点的文档,某些节点的依赖关系不能自动解决,可能需要重新启动Node-RED。",
- "title": "安装节点"
- },
- "remove": {
- "body": "删除节点将从Node-RED卸载它。节点可能会继续使用资源,直到重新启动Node-RED。",
- "title": "删除节点"
- },
- "update": {
- "body": "更新节点将需要重新启动Node-RED来完成更新,该过程必须由手动完成。",
- "title": "更新节点"
- },
- "cannotUpdate": {
- "body": "此节点的更新可用,但不会安装在面板管理器可以更新的位置。 请参阅有关如何更新此节点的文档。"
- },
- "button": {
- "review": "打开节点信息",
- "install": "安装",
- "remove": "删除",
- "update": "更新"
- }
- }
- }
+ "name": "模块管理",
+ "label": "模块"
},
- "sidebar": {
- "info": {
- "name": "节点信息",
- "tabName": "名称",
- "label": "信息",
- "node": "节点",
- "type": "类型",
- "group": "组",
- "module": "模组",
- "id": "ID",
- "status": "状态",
- "enabled": "启用",
- "disabled": "禁用",
- "subflow": "子流程",
- "instances": "实例",
- "properties": "属性",
- "info": "信息",
- "desc": "描述",
- "blank": "空白",
- "null": "空",
- "showMore": "展开",
- "showLess": "收起",
- "flow": "流程",
- "selection": "选择",
- "nodes": "__count__ 个节点",
- "flowDesc": "流程描述",
- "subflowDesc": "子流程描述",
- "nodeHelp": "节点帮助",
- "none": "无",
- "arrayItems": "__count__ 个项目",
- "showTips": "您可以从设置面板启用提示信息",
- "outline": "大纲",
- "empty": "空的",
- "globalConfig": "全局配置节点",
- "triggerAction": "触发动作",
- "find": "在工作区中查找"
- },
- "help": {
- "name": "帮助",
- "label": "帮助",
- "search": "搜索帮助",
- "nodeHelp": "节点帮助",
- "showHelp": "显示帮助",
- "showInOutline": "在大纲中显示",
- "showTopics": "显示主题",
- "noHelp": "未选择帮助主题"
- },
- "config": {
- "name": "配置节点",
- "label": "配置",
- "global": "所有流程",
- "none": "无",
- "subflows": "子流程",
- "flows": "流程",
- "filterAll": "所有",
- "showAllConfigNodes": "显示所有配置节点",
- "filterUnused": "未使用",
- "showAllUnusedConfigNodes": "显示所有未使用的配置节点",
- "filtered": "__count__ 个隐藏"
- },
- "context": {
- "name": "上下文数据",
- "label": "上下文",
- "none": "未选择",
- "refresh": "刷新以加载",
- "empty": "空",
- "node": "节点",
- "flow": "流程",
- "global": "全局",
- "deleteConfirm": "你确定要删除这个项目吗?",
- "autoRefresh": "刷新选择更改",
- "refrsh": "刷新",
- "delete": "删除"
- },
- "palette": {
- "name": "节点管理",
- "label": "节点"
- },
- "project": {
- "label": "项目",
- "name": "项目",
- "description": "描述",
- "dependencies": "依赖",
- "settings": "设置",
- "noSummaryAvailable": "无可用摘要",
- "editDescription": "编辑项目描述",
- "editDependencies": "编辑项目依赖",
- "noDescriptionAvailable": "没有可用的描述",
- "editReadme": "编辑README.md",
- "showProjectSettings": "显示项目设置",
- "projectSettings": {
- "title": "项目设置",
- "edit": "编辑",
- "none": "空",
- "install": "安装",
- "removeFromProject": "从项目中删除",
- "addToProject": "添加到项目",
- "files": "文件",
- "flow": "流程",
- "credentials": "证书",
- "package": "包",
- "packageCreate": "保存更改后将创建文件",
- "fileNotExist": "文件不存在",
- "selectFile": "选择文件",
- "invalidEncryptionKey": "无效的加密密钥",
- "encryptionEnabled": "启用加密",
- "encryptionDisabled": "加密已禁用",
- "setTheEncryptionKey": "设置加密密钥",
- "resetTheEncryptionKey": "重置加密密钥",
- "changeTheEncryptionKey": "更改加密密钥",
- "currentKey": "当前密钥",
- "newKey": "新密钥",
- "credentialsAlert": "这将删除所有现有证书",
- "versionControl": "版本控制",
- "branches": "分支",
- "noBranches": "没有分支",
- "deleteConfirm": "您确定要删除本地分支'__name__'吗? 这不能被撤消。",
- "unmergedConfirm": "本地分支'__name__'具有未合并的更改,这些更改将丢失。你确定要删除吗?",
- "deleteUnmergedBranch": "删除未合并的分支",
- "gitRemotes": "Git远程仓库",
- "addRemote": "添加远程仓库",
- "addRemote2": "添加远程仓库",
- "remoteName": "远程仓库名",
- "nameRule": "只能包含A-Z 0-9 _ -",
- "url": "URL",
- "urlRule": "https://, ssh:// or file://",
- "urlRule2": "网址中不能包含用户名/密码",
- "noRemotes": "没有远程仓库",
- "deleteRemoteConfrim": "您确定要删除远程仓库'__name__'吗?",
- "deleteRemote": "删除远程仓库"
- },
- "userSettings": {
- "committerDetail": "提交者详细信息",
- "committerTip": "保留空白以使用系统默认值",
- "userName": "用户名",
- "email": "电子邮件",
- "workflow": "工作流",
- "workfowTip": "选择您偏好的工作流",
- "workflowManual": "手动",
- "workflowManualTip": "所有更改都必须在“历史记录”侧边栏中手动提交",
- "workflowAuto": "自动",
- "workflowAutoTip": "每次部署后都会自动提交更改",
- "sshKeys": "SSH密钥",
- "sshKeysTip": "允许您创建到远程git存储库的安全连接。",
- "add": "添加密钥",
- "addSshKey": "添加SSH密钥",
- "addSshKeyTip": "生成新的公钥/私钥对",
- "name": "名字",
- "nameRule": "只能包含A-Z 0-9 _ -",
- "passphrase": "密码短语",
- "passphraseShort": "密码短语过短",
- "optional": "可选的",
- "cancel": "取消",
- "generate": "生成密钥",
- "noSshKeys": "没有SSH密钥",
- "copyPublicKey": "将公钥复制到剪贴板",
- "delete": "删除密钥",
- "gitConfig": "Git配置",
- "deleteConfirm": "您确定要删除SSH密钥 __name__ 吗?这不能被撤消。"
- },
- "versionControl": {
- "unstagedChanges": "未暂存的变更",
- "stagedChanges": "暂存的变更",
- "unstageChange": "取消变更的暂存",
- "stageChange": "暂存变更",
- "unstageAllChange": "取消所有变更的暂存",
- "stageAllChange": "暂存所有变更",
- "commitChanges": "提交变更",
- "resolveConflicts": "解决冲突",
- "head": "HEAD",
- "staged": "暂存的",
- "unstaged": "未暂存的",
- "local": "本地的",
- "remote": "远程的",
- "revert": "您确定要将更改恢复为'__file__'吗?这不能被撤消。",
- "revertChanges": "还原变更",
- "localChanges": "本地变更",
- "none": "None",
- "conflictResolve": "解决所有冲突。提交更改以完成合并。",
- "localFiles": "本地文件",
- "all": "所有的",
- "unmergedChanges": "未合并的更改",
- "abortMerge": "中止合并",
- "commit": "提交",
- "changeToCommit": "提交变更",
- "commitPlaceholder": "输入您的提交信息",
- "cancelCapital": "取消",
- "commitCapital": "提交",
- "commitHistory": "提交历史",
- "branch": "分支:",
- "moreCommits": "更多提交",
- "changeLocalBranch": "变更本地分支",
- "createBranchPlaceholder": "查找或创建分支",
- "upstream": "上游",
- "localOverwrite": "切换分支会覆盖您现有的本地更改。您必须先提交或撤消那些更改。",
- "manageRemoteBranch": "管理远程分支",
- "unableToAccess": "无法访问远程存储库",
- "retry": "重试",
- "setUpstreamBranch": "设置为上游分支",
- "createRemoteBranchPlaceholder": "查找或创建远程分支",
- "trackedUpstreamBranch": "创建的分支将被设置为跟踪的上游分支。",
- "selectUpstreamBranch": "分支将被创建。 在下面选择以将其设置为被跟踪的上游分支。",
- "pushFailed": "推送失败,因为远程具有更多的最新提交。请先拉取并合并,然后再尝试推送。",
- "push": "推送",
- "pull": "拉取",
- "unablePull": "无法提取远程更改;您未暂存的本地更改将被覆盖。
请先提交更改,然后重试。
",
- "showUnstagedChanges": "显示未暂存的更改",
- "connectionFailed": "无法连接到远程存储库:",
- "pullUnrelatedHistory": "远程有无关的提交历史
您确定要将这些更改拉入本地仓库吗?
",
- "pullChanges": "拉取更改",
- "history": "历史",
- "projectHistory": "项目历史",
- "daysAgo": "__count__ 天前",
- "daysAgo_plural": "__count__ 天前",
- "hoursAgo": "__count__ 小时前",
- "hoursAgo_plural": "__count__ 小时前",
- "minsAgo": "__count__ 分钟前",
- "minsAgo_plural": "__count__ 分钟前",
- "secondsAgo": "秒前",
- "notTracking": "您的本地分支当前未跟踪一个远程分支。",
- "statusUnmergedChanged": "您的仓库中有未合并的更改。您需要解决冲突并提交结果。",
- "repositoryUpToDate": "您的仓库是最新的。",
- "commitsAhead": "您的存储库领先远程仓库 __count__ 次提交。您现在可以推送这些提交。",
- "commitsAhead_plural": "您的存储库领先远程仓库 __count__ 次提交。您现在可以推送这些提交。",
- "commitsBehind": "您的存储库落后远程仓库 __count__ 次提交。您现在可以拉取这些提交。",
- "commitsBehind_plural": "您的存储库落后远程仓库 __count__ 次提交。您现在可以拉取这些提交。",
- "commitsAheadAndBehind1": "您的存储库落后远程仓库 __count__ 次提交",
- "commitsAheadAndBehind1_plural": "您的存储库落后远程仓库 __count__ 次提交",
- "commitsAheadAndBehind2": "领先远程仓库 __count__ 次提交。",
- "commitsAheadAndBehind2_plural": "领先远程仓库 __count__ 次提交。",
- "commitsAheadAndBehind3": "您必须先拉取远程提交,然后才能进行推送。",
- "commitsAheadAndBehind3_plural": "您必须先拉取远程提交,然后才能进行推送。",
- "refreshCommitHistory": "刷新提交历史",
- "refreshChanges": "刷新更改"
- }
- }
+ "project": {
+ "label": "项目",
+ "name": "项目",
+ "description": "描述",
+ "dependencies": "依赖",
+ "settings": "设置",
+ "noSummaryAvailable": "无可用摘要",
+ "editDescription": "编辑项目描述",
+ "editDependencies": "编辑项目依赖",
+ "noDescriptionAvailable": "没有可用的描述",
+ "editReadme": "编辑README.md",
+ "showProjectSettings": "显示项目设置",
+ "projectSettings": {
+ "title": "项目设置",
+ "edit": "编辑",
+ "none": "空",
+ "install": "安装",
+ "removeFromProject": "从项目中删除",
+ "addToProject": "添加到项目",
+ "files": "文件",
+ "flow": "流程",
+ "credentials": "证书",
+ "package": "包",
+ "packageCreate": "保存更改后将创建文件",
+ "fileNotExist": "文件不存在",
+ "selectFile": "选择文件",
+ "invalidEncryptionKey": "无效的加密密钥",
+ "encryptionEnabled": "启用加密",
+ "encryptionDisabled": "加密已禁用",
+ "setTheEncryptionKey": "设置加密密钥",
+ "resetTheEncryptionKey": "重置加密密钥",
+ "changeTheEncryptionKey": "更改加密密钥",
+ "currentKey": "当前密钥",
+ "newKey": "新密钥",
+ "credentialsAlert": "将删除所有现有证书",
+ "versionControl": "版本控制",
+ "branches": "分支",
+ "noBranches": "没有分支",
+ "deleteConfirm": "您确定要删除本地分支'__name__'吗? 这不能被撤消。",
+ "unmergedConfirm": "本地分支'__name__'具有未合并的更改,这些更改将丢失。你确定要删除吗?",
+ "deleteUnmergedBranch": "删除未合并的分支",
+ "gitRemotes": "Git远程仓库",
+ "addRemote": "添加远程仓库",
+ "addRemote2": "添加远程仓库",
+ "remoteName": "远程仓库名",
+ "nameRule": "只能包含A-Z 0-9 _ -",
+ "url": "URL",
+ "urlRule": "https://, ssh:// 或 file://",
+ "urlRule2": "网址中不能包含用户名/密码",
+ "noRemotes": "没有远程仓库",
+ "deleteRemoteConfrim": "您确定要删除远程仓库'__name__'吗?",
+ "deleteRemote": "删除远程仓库"
+ },
+ "userSettings": {
+ "committerDetail": "提交者详细信息",
+ "committerTip": "保留空白以使用系统默认值",
+ "userName": "用户名",
+ "email": "电子邮件",
+ "workflow": "工作流",
+ "workfowTip": "选择您偏好的工作流",
+ "workflowManual": "手动",
+ "workflowManualTip": "所有更改都必须在“历史记录”侧边栏中手动提交",
+ "workflowAuto": "自动",
+ "workflowAutoTip": "每次部署后都会自动提交更改",
+ "sshKeys": "SSH密钥",
+ "sshKeysTip": "允许您创建到远程git存储库的安全连接。",
+ "add": "添加密钥",
+ "addSshKey": "添加SSH密钥",
+ "addSshKeyTip": "生成新的公钥/私钥对",
+ "name": "名字",
+ "nameRule": "只能包含A-Z 0-9 _ -",
+ "passphrase": "密码短语",
+ "passphraseShort": "密码短语过短",
+ "optional": "可选的",
+ "cancel": "取消",
+ "generate": "生成密钥",
+ "noSshKeys": "没有SSH密钥",
+ "copyPublicKey": "将公钥复制到剪贴板",
+ "delete": "删除密钥",
+ "gitConfig": "Git配置",
+ "deleteConfirm": "您确定要删除SSH密钥 __name__ 吗?这不能被撤消。"
+ },
+ "versionControl": {
+ "unstagedChanges": "未暂存的变更",
+ "stagedChanges": "暂存的变更",
+ "unstageChange": "取消变更的暂存",
+ "stageChange": "暂存变更",
+ "unstageAllChange": "取消所有变更的暂存",
+ "stageAllChange": "暂存所有变更",
+ "commitChanges": "提交变更",
+ "resolveConflicts": "解决冲突",
+ "head": "HEAD",
+ "staged": "暂存的",
+ "unstaged": "未暂存的",
+ "local": "本地的",
+ "remote": "远程的",
+ "revert": "您确定要将更改恢复为'__file__'吗?这不能被撤消。",
+ "revertChanges": "还原变更",
+ "localChanges": "本地变更",
+ "none": "None",
+ "conflictResolve": "解决所有冲突。提交更改以完成合并。",
+ "localFiles": "本地文件",
+ "all": "所有的",
+ "unmergedChanges": "未合并的更改",
+ "abortMerge": "中止合并",
+ "commit": "提交",
+ "changeToCommit": "提交变更",
+ "commitPlaceholder": "输入您的提交信息",
+ "cancelCapital": "取消",
+ "commitCapital": "提交",
+ "commitHistory": "提交历史",
+ "branch": "分支:",
+ "moreCommits": "更多提交",
+ "changeLocalBranch": "变更本地分支",
+ "createBranchPlaceholder": "查找或创建分支",
+ "upstream": "上游",
+ "localOverwrite": "切换分支会覆盖您现有的本地更改。您必须先提交或撤消那些更改。",
+ "manageRemoteBranch": "管理远程分支",
+ "unableToAccess": "无法访问远程存储库",
+ "retry": "重试",
+ "setUpstreamBranch": "设置为上游分支",
+ "createRemoteBranchPlaceholder": "查找或创建远程分支",
+ "trackedUpstreamBranch": "创建的分支将被设置为跟踪的上游分支。",
+ "selectUpstreamBranch": "分支将被创建。 在下面选择以将其设置为被跟踪的上游分支。",
+ "pushFailed": "推送失败,因为远程具有更多的最新提交。请先拉取并合并,然后再尝试推送。",
+ "push": "推送",
+ "pull": "拉取",
+ "unablePull": "无法提取远程更改;您未暂存的本地更改将被覆盖。
请先提交更改,然后重试。
",
+ "showUnstagedChanges": "显示未暂存的更改",
+ "connectionFailed": "无法连接到远程存储库:",
+ "pullUnrelatedHistory": "远程有无关的提交历史
您确定要将这些更改拉入本地仓库吗?
",
+ "pullChanges": "拉取更改",
+ "history": "历史",
+ "projectHistory": "项目历史",
+ "daysAgo": "__count__ 天前",
+ "daysAgo_plural": "__count__ 天前",
+ "hoursAgo": "__count__ 小时前",
+ "hoursAgo_plural": "__count__ 小时前",
+ "minsAgo": "__count__ 分钟前",
+ "minsAgo_plural": "__count__ 分钟前",
+ "secondsAgo": "秒前",
+ "notTracking": "您的本地分支当前未跟踪一个远程分支。",
+ "statusUnmergedChanged": "您的仓库中有未合并的更改。您需要解决冲突并提交结果。",
+ "repositoryUpToDate": "您的仓库是最新的。",
+ "commitsAhead": "您的存储库领先远程仓库 __count__ 次提交。您现在可以推送这些提交。",
+ "commitsAhead_plural": "您的存储库领先远程仓库 __count__ 次提交。您现在可以推送这些提交。",
+ "commitsBehind": "您的存储库落后远程仓库 __count__ 次提交。您现在可以拉取这些提交。",
+ "commitsBehind_plural": "您的存储库落后远程仓库 __count__ 次提交。您现在可以拉取这些提交。",
+ "commitsAheadAndBehind1": "您的存储库落后远程仓库 __count__ 次提交",
+ "commitsAheadAndBehind1_plural": "您的存储库落后远程仓库 __count__ 次提交",
+ "commitsAheadAndBehind2": "领先远程仓库 __count__ 次提交。",
+ "commitsAheadAndBehind2_plural": "领先远程仓库 __count__ 次提交。",
+ "commitsAheadAndBehind3": "您必须先拉取远程提交,然后才能进行推送。",
+ "commitsAheadAndBehind3_plural": "您必须先拉取远程提交,然后才能进行推送。",
+ "refreshCommitHistory": "刷新提交历史",
+ "refreshChanges": "刷新更改"
+ }
+ }
+ },
+ "typedInput": {
+ "type": {
+ "str": "文本",
+ "num": "数字",
+ "re": "正则表达式",
+ "bool": "布尔值",
+ "json": "JSON",
+ "bin": "二进制流",
+ "date": "时间戳",
+ "jsonata": "表达式",
+ "env": "环境变量",
+ "cred": "证书"
+ }
+ },
+ "editableList": {
+ "add": "添加",
+ "addTitle": "添加项"
+ },
+ "search": {
+ "history": "搜索历史",
+ "clear": "清除所有",
+ "empty": "找不到匹配项",
+ "addNode": "添加节点...",
+ "options": {
+ "configNodes": "配置节点",
+ "unusedConfigNodes": "未使用的配置节点",
+ "invalidNodes": "无效的节点",
+ "uknownNodes": "未知的节点",
+ "unusedSubflows": "未使用的子流程",
+ "hiddenFlows": "隐藏的流程",
+ "modifiedNodes": "已修改的节点或流程",
+ "thisFlow": "当前流程"
+ }
+ },
+ "expressionEditor": {
+ "functions": "函数",
+ "functionReference": "函数引用",
+ "insert": "插入",
+ "title": "JSONata 表达式编辑器",
+ "test": "测试",
+ "data": "示例消息",
+ "result": "结果",
+ "format": "格式表达式",
+ "compatMode": "兼容模式启用",
+ "compatModeDesc": "JSONata的兼容模式 目前的表达式仍然参考msg
,所以将以兼容性模式进行评估。请更新表达式,使其不使用msg
,因为此模式将在将来删除。
当JSONata支持首次添加到Node-RED时,它需要表达式引用msg
对象。例如msg.payload
将用于访问有效负载。
这样便不再需要表达式直接针对消息进行评估。要访问有效负载,表达式应该只是payload
.
",
+ "noMatch": "无匹配结果",
+ "errors": {
+ "invalid-expr": "无效的JSONata表达式:\n __message__",
+ "invalid-msg": "无效的示例JSON消息:\n __message__",
+ "context-unsupported": "无法测试上下文函数\n $flowContext 或 $globalContext",
+ "env-unsupported": "无法测试 $env 函数",
+ "moment-unsupported": "无法测试 $moment 函数",
+ "clone-unsupported": "无法测试 $clone 函数",
+ "eval": "计算表达式错误:\n __message__"
+ }
+ },
+ "monaco": {
+ "setTheme": "设置主题"
+ },
+ "jsEditor": {
+ "title": "JavaScript 编辑器"
+ },
+ "textEditor": {
+ "title": "文本编辑器"
+ },
+ "jsonEditor": {
+ "title": "JSON 编辑器",
+ "format": "格式化JSON",
+ "rawMode": "编辑 JSON",
+ "uiMode": "可视化编辑器",
+ "rawMode-readonly": "原始JSON",
+ "uiMode-readonly": "可视化",
+ "insertAbove": "在上方插入",
+ "insertBelow": "在下方插入",
+ "addItem": "添加项目",
+ "copyPath": "复制路径到项目",
+ "expandItems": "展开项目",
+ "collapseItems": "折叠项目",
+ "duplicate": "重复",
+ "error": {
+ "invalidJSON": "无效的JSON: "
+ }
+ },
+ "markdownEditor": {
+ "title": "Markdown 编辑器",
+ "expand": "展开",
+ "format": "格式化为markdown",
+ "heading1": "标题 1",
+ "heading2": "标题 2",
+ "heading3": "标题 3",
+ "bold": "粗体",
+ "italic": "斜体",
+ "code": "代码",
+ "ordered-list": "排序的列表",
+ "unordered-list": "非排序的列表",
+ "quote": "引用",
+ "link": "链接",
+ "horizontal-rule": "水平线",
+ "toggle-preview": "切换预览"
+ },
+ "bufferEditor": {
+ "title": "Buffer 编辑器",
+ "modeString": "作为UTF-8字符串处理",
+ "modeArray": "作为JSON数组处理",
+ "modeDesc": "Buffer 编辑器 Buffer类型被存储为字节值的JSON数组。编辑器将尝试将输入的数值解析为JSON数组。如果它不是有效的JSON,它将被视为UTF-8字符串,并被转换为单个字符代码点的数组。
例如,Hello World
的值会被转换为JSON数组:
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100] "
+ },
+ "projects": {
+ "config-git": "配置Git客户端",
+ "welcome": {
+ "hello": "你好! 我们已经将“项目”引入了Node-RED。",
+ "desc0": "这是一种用于管理流程文件的新方法,并且包括对流程的版本控制。",
+ "desc1": "首先,您可以创建您的第一个项目或从git存储库克隆现有项目。",
+ "desc2": "如果不确定,可以暂时跳过此步骤。您仍然可以随时通过“项目”菜单创建第一个项目。",
+ "create": "建立专案",
+ "clone": "克隆仓库",
+ "openExistingProject": "打开现有项目",
+ "not-right-now": "稍后"
},
- "typedInput": {
- "type": {
- "str": "文字列",
- "num": "数字",
- "re": "正则表达式",
- "bool": "布尔值",
- "json": "JSON",
- "bin": "二进制流",
- "date": "时间戳",
- "jsonata": "表达式",
- "env": "环境变量",
- "cred": "证书"
- }
+ "git-config": {
+ "setup": "设置您的版本控制客户端",
+ "desc0": "Node-RED使用开源工具Git进行版本控制。它跟踪对项目文件的更改,并允许您将其推送到远程存储库。",
+ "desc1": "提交一组更改时,Git会使用用户名和电子邮件地址记录谁进行了更改。用户名可以是您想要的任何名称-不必是您的真实姓名。",
+ "desc2": "您的Git客户端已经配置了以下详细信息。",
+ "desc3": "您可以稍后在设置对话框的'Git config'标签下更改这些设置。",
+ "username": "用户名",
+ "email": "电子邮件"
},
- "editableList": {
- "add": "添加"
+ "project-details": {
+ "create": "创建你的项目",
+ "desc0": "项目被维护为Git仓库。与他人一起共享您的流程",
+ "desc1": "您可以创建多个项目,并通过编辑器在它们之间快速切换。",
+ "desc2": "首先,您的项目需要一个名称和一个可选的描述。",
+ "already-exists": "项目已存在",
+ "must-contain": "只能包含A-Z 0-9 _ -",
+ "project-name": "项目名",
+ "desc": "描述",
+ "opt": "可选的"
},
- "search": {
- "empty": "找不到匹配",
- "addNode": "添加一个节点...",
- "options": {
- "configNodes": "配置节点",
- "unusedConfigNodes": "未使用的配置节点",
- "invalidNodes": "无效的节点",
- "uknownNodes": "未知的节点",
- "unusedSubflows": "未使用的子流程"
- }
+ "clone-project": {
+ "clone": "克隆一个项目",
+ "desc0": "如果您已经有一个包含项目的git仓库,则可以对其进行克隆以开始使用。",
+ "already-exists": "项目已存在",
+ "must-contain": "只能包含A-Z 0-9 _ -",
+ "project-name": "项目名",
+ "no-info-in-url": "网址中不要包含用户名/密码",
+ "git-url": "Git仓库的url",
+ "protocols": "https://, ssh:// or file://",
+ "auth-failed": "认证失败",
+ "username": "用户名",
+ "passwd": "秘密啊",
+ "ssh-key": "SSH密钥",
+ "passphrase": "密码短语",
+ "ssh-key-desc": "在通过ssh克隆仓库之前,必须添加SSH密钥才能访问它。",
+ "ssh-key-add": "添加一个ssh密钥",
+ "credential-key": "证书加密密钥",
+ "cant-get-ssh-key": "错误! 无法获取所选的SSH密钥路径。",
+ "already-exists2": "已存在",
+ "git-error": "git错误",
+ "connection-failed": "连接失败",
+ "not-git-repo": "不是一个git仓库",
+ "repo-not-found": "未发现仓库"
},
- "expressionEditor": {
- "functions": "功能",
- "functionReference": "功能reference",
- "insert": "插入",
- "title": "JSONata表达式编辑器",
- "test": "测试",
- "data": "示例消息",
- "result": "结果",
- "format": "格式表达方法",
- "compatMode": "兼容模式启用",
- "compatModeDesc": "JSONata的兼容模式 目前的表达式仍然参考msg
,所以将以兼容性模式进行评估。请更新表达式,使其不使用msg
,因为此模式将在将来删除。
当JSONata支持首次添加到Node-RED时,它需要表达式引用msg
对象。例如msg.payload
将用于访问有效负载。
这样便不再需要表达式直接针对消息进行评估。要访问有效负载,表达式应该只是payload
.
",
- "noMatch": "无匹配结果",
- "errors": {
- "invalid-expr": "无效的JSONata表达式:\n __message__",
- "invalid-msg": "无效的示例JSON消息:\n __message__",
- "context-unsupported": "无法测试上下文函数\n $flowContext 或 $globalContext",
- "eval": "评估表达式错误:\n __message__"
- }
+ "default-files": {
+ "create": "创建您的项目文件",
+ "desc0": "一个包含您的流程文件,Readme文件和package.json文件的项目。",
+ "desc1": "它可以包含您要在Git仓库中维护的任何其他文件。",
+ "desc2": "您现有的流程和凭证文件将被复制到项目中。",
+ "flow-file": "流程文件",
+ "credentials-file": "证书文件"
},
- "jsEditor": {
- "title": "JavaScript编辑器"
+ "encryption-config": {
+ "setup": "设置证书文件的加密",
+ "desc0": "您的流程证书文件可以被加密以确保其内容安全。",
+ "desc1": "如果要将这些证书存储在公共Git存储库中,则必须通过提供密钥短语来对它们进行加密。",
+ "desc2": "您的流程证书文件当前未加密。",
+ "desc3": "这意味着任何有权访问该文件的人都可以读取其内容,例如密码和访问令牌。",
+ "desc4": "如果要将这些证书存储在公共Git仓库中,则必须通过提供密钥短语来对它们进行加密。",
+ "desc5": "当前,使用设置文件中的credentialSecret属性作为密钥来加密流程证书文件。",
+ "desc6": "您的流程证书文件当前使用系统生成的密钥加密。您应该为此项目提供一个新的密钥。",
+ "desc7": "密钥将与项目文件分开存储。您将需要提供在另一个Node-RED实例中使用该项目的密钥。",
+ "credentials": "证书",
+ "enable": "启用加密",
+ "disable": "禁用加密",
+ "disabled": "禁用的",
+ "copy": "复制现有密钥",
+ "use-custom": "使用自定义密钥",
+ "desc8": "证书文件不会被加密,其内容很容易阅读",
+ "create-project-files": "创建项目文件",
+ "create-project": "创建项目",
+ "already-exists": "已存在",
+ "git-error": "git错误",
+ "git-auth-error": "git认证错误"
},
- "textEditor": {
- "title": "文本编辑器"
+ "create-success": {
+ "success": "您已经成功创建了第一个项目!",
+ "desc0": "现在,您可以像往常一样继续使用Node-RED。",
+ "desc1": "侧栏中的“信息”标签显示了您当前的活动项目。名称旁边的按钮可用于访问项目设置视图。",
+ "desc2": "侧栏中的“历史记录”标签可用于查看项目中已更改的文件并提交。它向您显示了提交的完整历史记录,并允许您将更改推送到远程存储库。"
},
- "jsonEditor": {
- "title": "JSON编辑器",
- "format": "格式化JSON",
- "rawMode": "编辑 JSON",
- "uiMode": "Visual编辑器",
- "insertAbove": "在上方插入",
- "insertBelow": "在下方插入",
- "addItem": "添加项目",
- "copyPath": "复制路径到项目",
- "expandItems": "展开项目",
- "collapseItems": "收合项目",
- "duplicate": "重复",
- "error": {
- "invalidJSON": "无效的JSON: "
- }
+ "create": {
+ "projects": "项目",
+ "already-exists": "项目已存在",
+ "must-contain": "只能包含A-Z 0-9 _ -",
+ "no-info-in-url": "网址中不要包含用户名/密码",
+ "open": "打开项目",
+ "create": "创建项目",
+ "clone": "克隆仓库",
+ "project-name": "项目名",
+ "desc": "描述",
+ "opt": "可选的",
+ "flow-file": "流程文件",
+ "credentials": "证书",
+ "enable-encryption": "启用加密",
+ "disable-encryption": "禁用加密",
+ "encryption-key": "加密密钥",
+ "desc0": "用来保护您的凭证的短语",
+ "desc1": "凭证文件不会被加密,其内容很容易阅读",
+ "git-url": "Git存储库URL",
+ "protocols": "https://, ssh:// 或 file://",
+ "auth-failed": "验证失败",
+ "username": "用户名",
+ "password": "密码",
+ "ssh-key": "SSH密钥",
+ "passphrase": "密码短语",
+ "desc2": "在通过ssh克隆存储库之前,必须添加SSH密钥才能访问它。",
+ "add-ssh-key": "添加一个ssh密钥",
+ "credentials-encryption-key": "证书加密密钥",
+ "already-exists-2": "已存在",
+ "git-error": "git错误",
+ "con-failed": "连接失败",
+ "not-git": "不是git仓库",
+ "no-resource": "找不到存储库",
+ "cant-get-ssh-key-path": "错误!无法获取所选的SSH密钥路径。",
+ "unexpected_error": "意外的错误",
+ "clearContext": "更改项目时清除上下文"
},
- "markdownEditor": {
- "title": "Markdown编辑器",
- "expand": "展开",
- "format": "格式化为markdown",
- "heading1": "标题 1",
- "heading2": "标题 2",
- "heading3": "标题 3",
- "bold": "粗体",
- "italic": "斜体",
- "code": "代码",
- "ordered-list": "排序的列表",
- "unordered-list": "非排序的列表",
- "quote": "引用",
- "link": "链接",
- "horizontal-rule": "水平线",
- "toggle-preview": "切换预览"
+ "delete": {
+ "confirm": "您确定要删除此项目吗?"
},
- "bufferEditor": {
- "title": "缓冲区编辑器",
- "modeString": "作为UTF-8字符串处理",
- "modeArray": "作为JSON数组处理",
- "modeDesc": "缓冲区编辑器 缓冲区类型被存储为字节值的JSON数组。编辑器将尝试将输入的数值解析为JSON数组。如果它不是有效的JSON,它将被视为UTF-8字符串,并被转换为单个字符代码点的数组。
例如,Hello World
的值会被转换为JSON数组:
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100] "
+ "create-project-list": {
+ "search": "搜索您的项目",
+ "current": "当前的"
},
- "projects": {
- "config-git": "配置Git客户端",
- "welcome": {
- "hello": "你好! 我们已经将“项目”引入了Node-RED。",
- "desc0": "这是一种用于管理流程文件的新方法,并且包括对流程的版本控制。",
- "desc1": "首先,您可以创建您的第一个项目或从git存储库克隆现有项目。",
- "desc2": "如果不确定,可以暂时跳过此步骤。您仍然可以随时通过“项目”菜单创建第一个项目。",
- "create": "建立专案",
- "clone": "克隆仓库",
- "openExistingProject": "打开现有项目",
- "not-right-now": "不是现在"
- },
- "git-config": {
- "setup": "设置您的版本控制客户端",
- "desc0": "Node-RED使用开源工具Git进行版本控制。它跟踪对项目文件的更改,并允许您将其推送到远程存储库。",
- "desc1": "提交一组更改时,Git会使用用户名和电子邮件地址记录谁进行了更改。用户名可以是您想要的任何名称-不必是您的真实姓名。",
- "desc2": "您的Git客户端已经配置了以下详细信息。",
- "desc3": "您可以稍后在设置对话框的'Git config'标签下更改这些设置。",
- "username": "用户名",
- "email": "电子邮件"
- },
- "project-details": {
- "create": "创建你的项目",
- "desc0": "项目被维护为Git仓库。与他人一起共享您的流程",
- "desc1": "您可以创建多个项目,并通过编辑器在它们之间快速切换。",
- "desc2": "首先,您的项目需要一个名称和一个可选的描述。",
- "already-exists": "项目已存在",
- "must-contain": "只能包含A-Z 0-9 _ -",
- "project-name": "项目名",
- "desc": "描述",
- "opt": "可选的"
- },
- "clone-project": {
- "clone": "克隆一个项目",
- "desc0": "如果您已经有一个包含项目的git仓库,则可以对其进行克隆以开始使用。",
- "already-exists": "项目已存在",
- "must-contain": "只能包含A-Z 0-9 _ -",
- "project-name": "项目名",
- "no-info-in-url": "网址中不要包含用户名/密码",
- "git-url": "Git仓库的url",
- "protocols": "https://, ssh:// or file://",
- "auth-failed": "认证失败",
- "username": "用户名",
- "passwd": "秘密啊",
- "ssh-key": "SSH密钥",
- "passphrase": "密码短语",
- "ssh-key-desc": "在通过ssh克隆仓库之前,必须添加SSH密钥才能访问它。",
- "ssh-key-add": "添加一个ssh密钥",
- "credential-key": "证书加密密钥",
- "cant-get-ssh-key": "错误! 无法获取所选的SSH密钥路径。",
- "already-exists2": "已存在",
- "git-error": "git错误",
- "connection-failed": "连接失败",
- "not-git-repo": "不是一个git仓库",
- "repo-not-found": "未发现仓库"
- },
- "default-files": {
- "create": "创建您的项目文件",
- "desc0": "一个包含您的流程文件,Readme文件和package.json文件的项目。",
- "desc1": "它可以包含您要在Git仓库中维护的任何其他文件。",
- "desc2": "您现有的流程和凭证文件将被复制到项目中。",
- "flow-file": "流程文件",
- "credentials-file": "证书文件"
- },
- "encryption-config": {
- "setup": "设置证书文件的加密",
- "desc0": "您的流程证书文件可以被加密以确保其内容安全。",
- "desc1": "如果要将这些证书存储在公共Git存储库中,则必须通过提供密钥短语来对它们进行加密。",
- "desc2": "您的流程证书文件当前未加密。",
- "desc3": "这意味着任何有权访问该文件的人都可以读取其内容,例如密码和访问令牌。",
- "desc4": "如果要将这些证书存储在公共Git仓库中,则必须通过提供密钥短语来对它们进行加密。",
- "desc5": "当前,使用设置文件中的credentialSecret属性作为密钥来加密流程证书文件。",
- "desc6": "您的流程证书文件当前使用系统生成的密钥加密。您应该为此项目提供一个新的密钥。",
- "desc7": "密钥将与项目文件分开存储。您将需要提供在另一个Node-RED实例中使用该项目的密钥。",
- "credentials": "证书",
- "enable": "启用加密",
- "disable": "禁用加密",
- "disabled": "禁用的",
- "copy": "复制现有密钥",
- "use-custom": "使用自定义密钥",
- "desc8": "证书文件不会被加密,其内容很容易阅读",
- "create-project-files": "创建项目文件",
- "create-project": "创建项目",
- "already-exists": "已存在",
- "git-error": "git错误",
- "git-auth-error": "git认证错误"
- },
- "create-success": {
- "success": "您已经成功创建了第一个项目!",
- "desc0": "现在,您可以像往常一样继续使用Node-RED。",
- "desc1": "侧栏中的“信息”标签显示了您当前的活动项目。名称旁边的按钮可用于访问项目设置视图。",
- "desc2": "侧栏中的“历史记录”标签可用于查看项目中已更改的文件并提交。它向您显示了提交的完整历史记录,并允许您将更改推送到远程存储库。"
- },
- "create": {
- "projects": "项目",
- "already-exists": "项目已存在",
- "must-contain": "只能包含A-Z 0-9 _ -",
- "no-info-in-url": "网址中不要包含用户名/密码",
- "open": "打开项目",
- "create": "创建项目",
- "clone": "克隆仓库",
- "project-name": "项目名",
- "desc": "描述",
- "opt": "可选的",
- "flow-file": "流程文件",
- "credentials": "证书",
- "enable-encryption": "启用加密",
- "disable-encryption": "禁用加密",
- "encryption-key": "加密密钥",
- "desc0": "用来保护您的凭证的短语",
- "desc1": "凭证文件不会被加密,其内容很容易阅读",
- "git-url": "Git存储库URL",
- "protocols": "https://, ssh:// or file://",
- "auth-failed": "验证失败",
- "username": "用户名",
- "password": "密码",
- "ssh-key": "SSH密钥",
- "passphrase": "密码短语",
- "desc2": "在通过ssh克隆存储库之前,必须添加SSH密钥才能访问它。",
- "add-ssh-key": "添加一个ssh密钥",
- "credentials-encryption-key": "证书加密密钥",
- "already-exists-2": "已存在",
- "git-error": "git错误",
- "con-failed": "连接失败",
- "not-git": "不是git仓库",
- "no-resource": "找不到存储库",
- "cant-get-ssh-key-path": "错误!无法获取所选的SSH密钥路径。",
- "unexpected_error": "意外的错误"
- },
- "delete": {
- "confirm": "您确定要删除此项目吗?"
- },
- "create-project-list": {
- "search": "搜索您的项目",
- "current": "当前的"
- },
- "require-clean": {
- "confirm": "您有未部署的更改,这些更改将丢失。
您要继续吗?
"
- },
- "send-req": {
- "auth-req": "存储库需要认证",
- "username": "用户名",
- "password": "秘密",
- "passphrase": "密码短语",
- "retry": "重试",
- "update-failed": "无法更新身份验证",
- "unhandled": "未处理的错误响应",
- "host-key-verify-failed": "主机密钥验证失败。
无法验证存储库主机密钥。请更新您的known_hosts
文件,然后重试。
"
- },
- "create-branch-list": {
- "invalid": "无效的分支",
- "create": "创建分支",
- "current": "当前的"
- },
- "create-default-file-set": {
- "no-active": "没有活动项目就无法创建默认文件集",
- "no-empty": "无法在非空项目上创建默认文件集",
- "git-error": "git错误"
- },
- "errors": {
- "no-username-email": "您的Git客户端未配置用户名/电子邮件。",
- "unexpected": "发生了一个意料之外的问题",
- "code": "代码"
- }
+ "require-clean": {
+ "confirm": "您有未部署的更改,这些更改将丢失。
您要继续吗?
"
},
- "editor-tab": {
- "properties": "属性",
- "envProperties": "环境变量",
- "description": "描述",
- "appearance": "外观",
- "preview": "UI预览",
- "defaultValue": "默认值"
+ "send-req": {
+ "auth-req": "存储库需要认证",
+ "username": "用户名",
+ "password": "秘密",
+ "passphrase": "密码短语",
+ "retry": "重试",
+ "update-failed": "无法更新身份验证",
+ "unhandled": "未处理的错误响应",
+ "host-key-verify-failed": "主机密钥验证失败。
无法验证存储库主机密钥。请更新您的known_hosts
文件,然后重试。
"
+ },
+ "create-branch-list": {
+ "invalid": "无效的分支",
+ "create": "创建分支",
+ "current": "当前的"
},
"languages": {
"de": "德语",
"en-US": "英文",
+ "fr": "法语",
"ja": "日语",
"ko": "韩文",
+ "pt-BR":"葡萄牙语",
+ "ru":"俄語",
"zh-CN": "简体中文",
"zh-TW": "繁体中文"
+ },
+ "create-default-file-set": {
+ "no-active": "没有活动项目就无法创建默认文件集",
+ "no-empty": "无法在非空项目上创建默认文件集",
+ "git-error": "git错误"
+ },
+ "errors": {
+ "no-username-email": "您的Git客户端未配置用户名/电子邮件。",
+ "unexpected": "发生了一个意料之外的问题",
+ "code": "代码"
}
+ },
+ "editor-tab": {
+ "properties": "属性",
+ "envProperties": "环境变量",
+ "module": "模块属性",
+ "description": "描述",
+ "appearance": "外观",
+ "preview": "UI预览",
+ "defaultValue": "默认值"
+ },
+ "tourGuide": {
+ "takeATour": "查看更新内容",
+ "start": "开始",
+ "next": "下一个",
+ "welcomeTours": "欢迎使用 Node-RED"
+ },
+ "diagnostics": {
+ "title": "系统信息"
+ },
+ "languages": {
+ "de": "德语-Deutsch",
+ "en-US": "英文-English",
+ "ja": "日语-日本",
+ "ko": "韩文-한국인",
+ "ru": "俄语-Русский",
+ "zh-CN": "简体中文",
+ "zh-TW": "繁體中文"
+ },
+ "validator": {
+ "errors": {
+ "invalid-json": "无效的 JSON 数据: __error__",
+ "invalid-prop": "无效的属性表达式",
+ "invalid-num": "无效的数字",
+ "invalid-regexp": "输入格式无效",
+ "invalid-regex-prop": "__prop__: 输入格式无效",
+ "missing-required-prop": "__prop__: 缺少属性值",
+ "invalid-config": "__prop__: 无效的配置节点",
+ "missing-config": "__prop__: 缺少配置节点",
+ "validation-error": "__prop__: 验证错误: __node__, __id__: __error__"
+ }
+ },
+ "contextMenu": {
+ "insert": "插入",
+ "node": "节点",
+ "junction": "连接点",
+ "linkNodes": "链接节点"
+ }
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/zh-CN/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/zh-CN/jsonata.json
index b4403e318..db4be6d10 100644
--- a/packages/node_modules/@node-red/editor-client/locales/zh-CN/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/zh-CN/jsonata.json
@@ -117,7 +117,7 @@
},
"$boolean": {
"args": "arg",
- "desc": "用下述规则将数据转换成布尔值。:\n\n - 不转换布尔值 `Boolean` 。\n – 将空的字符串 `string` 转换为 `false` \n – 将不为空的字符串 `string` 转换为 `true` \n – 将为0的数字 `number` 转换成 `false` \n –将不为0的数字 `number` 转换成 `true` \n –将 `null` 转换成 `false` \n –将空的数组 `array` 转换成 `false` \n –如果数组 `array` 中含有可以转换成 `true` 的要素则转换成 `true` \n –如果 `array` 中没有可转换成 `true` 的要素则转换成 `false` \n – 空的对象 `object` 转换成 `false` \n – 非空的对象 `object` 转换成 `true` \n –将函数 `function` 转换成 `false` "
+ "desc": "用下述规则将数据转换成布尔值。:\n\n - 不转换布尔值 `Boolean` 。\n – 将空的字符串 `string` 转换为 `false`\n – 将不为空的字符串 `string` 转换为 `true`\n – 将为0的数字 `number` 转换成 `false`\n –将不为0的数字 `number` 转换成 `true`\n –将 `null` 转换成 `false`\n –将空的数组 `array` 转换成 `false`\n –如果数组 `array` 中含有可以转换成 `true` 的要素则转换成 `true`\n –如果 `array` 中没有可转换成 `true` 的要素则转换成 `false`\n – 空的对象 `object` 转换成 `false`\n – 非空的对象 `object` 转换成 `true`\n –将函数 `function` 转换成 `false`"
},
"$not": {
"args": "arg",
@@ -137,7 +137,7 @@
},
"$sort": {
"args": "array [, function]",
- "desc": "输出排序后的数组 `array` 。\n\n如果使用了比较函数 `function` ,则下述两个参数需要被指定。\n\n `function(left, right)` \n\n该比较函数是为了比较left和right两个值而被排序算法调用的。如果用户希望left的值被置于right的值之后,那么该函数必须输出布尔值 `true` 来表示位置交换。而在不需要位置交换时函数必须输出 `false` 。"
+ "desc": "输出排序后的数组 `array` 。\n\n如果使用了比较函数 `function` ,则下述两个参数需要被指定。\n\n `function(left, right)`\n\n该比较函数是为了比较`left`和`right`两个值而被排序算法调用的。如果用户希望`left`的值被置于`right`的值之后,那么该函数必须输出布尔值 `true` 来表示位置交换。而在不需要位置交换时函数必须输出 `false` 。"
},
"$reverse": {
"args": "array",
@@ -169,7 +169,7 @@
},
"$sift": {
"args": "object, function",
- "desc": "输出参数 `object` 中符合 `function` 的键值对。\n\n `function` 必须含有下述参数。\n\n `function(value [, key [, object]])` "
+ "desc": "输出参数 `object` 中符合 `function` 的键值对。\n\n `function` 必须含有下述参数。\n\n `function(value [, key [, object]])`"
},
"$each": {
"args": "object, function",
@@ -177,7 +177,7 @@
},
"$map": {
"args": "array, function",
- "desc": "将函数 `function` 应用于数组 `array` 中所有的值并输出由返回值组成的数组。\n\n `function` 中必须含有下述参数。\n\n`function(value [, index [, array]])` "
+ "desc": "将函数 `function` 应用于数组 `array` 中所有的值并输出由返回值组成的数组。\n\n `function` 中必须含有下述参数。\n\n`function(value [, index [, array]])`"
},
"$filter": {
"args": "array, function",
@@ -237,7 +237,7 @@
},
"$assert": {
"args": "arg, str",
- "desc": "如果 `arg` 为真,则该函数返回。 如果arg为假,则抛出带有str的异常作为异常消息。"
+ "desc": "如果 `arg` 为真,则该函数返回。 如果`arg`为假,则抛出带有`str`的异常作为异常消息。"
},
"$single": {
"args": "array, function",
@@ -253,11 +253,11 @@
},
"$decodeUrlComponent": {
"args": "str",
- "desc": "解码以前由encodeUrlComponent创建的统一资源定位器(URL)组件。 \n\n示例: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
+ "desc": "解码以前由encodeUrlComponent创建的统一资源定位器(URL)组件。\n\n示例: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
},
"$decodeUrl": {
"args": "str",
- "desc": "解码先前由encodeUrl创建的统一资源定位符(URL)。 \n\n示例: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ "desc": "解码先前由encodeUrl创建的统一资源定位符(URL)。\n\n示例: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
},
"$distinct": {
"args": "array",
@@ -265,7 +265,7 @@
},
"$type": {
"args": "value",
- "desc": "以字符串形式返回 `值` 的类型。 如果该 `值` 未定义,则将返回 `未定义` "
+ "desc": "以字符串形式返回 `值` 的类型。 如果该 `值` 未定义,则将返回 `未定义`"
},
"$moment": {
"args": "[str]",
diff --git a/packages/node_modules/@node-red/editor-client/locales/zh-TW/editor.json b/packages/node_modules/@node-red/editor-client/locales/zh-TW/editor.json
index 42316176f..3646f0c9e 100644
--- a/packages/node_modules/@node-red/editor-client/locales/zh-TW/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/zh-TW/editor.json
@@ -1088,8 +1088,11 @@
"languages": {
"de": "德語",
"en-US": "英語",
+ "fr": "法語",
"ja": "日語",
"ko": "韓語",
+ "pt-BR":"葡萄牙语",
+ "ru":"俄語",
"zh-CN": "簡體中文",
"zh-TW": "繁體中文"
}
diff --git a/packages/node_modules/@node-red/editor-client/locales/zh-TW/jsonata.json b/packages/node_modules/@node-red/editor-client/locales/zh-TW/jsonata.json
index 2b47c1af7..29d3b7ed1 100644
--- a/packages/node_modules/@node-red/editor-client/locales/zh-TW/jsonata.json
+++ b/packages/node_modules/@node-red/editor-client/locales/zh-TW/jsonata.json
@@ -137,7 +137,7 @@
},
"$sort": {
"args": "array [, function]",
- "desc": "輸出排序後的陣列`array`。\n\n如果使用了比較函數`function`,則下述兩個參數需要被指定。\n\n`function(left, right)`\n\n該比較函數是為了比較left和right兩個值而被排序演算法調用的。如果使用者希望left的值被置於right的值之後,那麼該函數必須輸出布林值`true`來表示位置交換。而在不需要位置交換時函數必須輸出`false`。"
+ "desc": "輸出排序後的陣列`array`。\n\n如果使用了比較函數`function`,則下述兩個參數需要被指定。\n\n`function(left, right)`\n\n該比較函數是為了比較`left`和`right`兩個值而被排序演算法調用的。如果使用者希望left的值被置於`right`的值之後,那麼該函數必須輸出布林值`true`來表示位置交換。而在不需要位置交換時函數必須輸出`false`。"
},
"$reverse": {
"args": "array",
@@ -237,7 +237,7 @@
},
"$assert": {
"args": "arg, str",
- "desc": "如果`arg`為真,則該函數返回。 如果arg為假,則拋出帶有str的異常作為異常消息。"
+ "desc": "如果`arg`為真,則該函數返回。 如果`arg`為假,則拋出帶有`str`的異常作為異常消息。"
},
"$single": {
"args": "array, function",
@@ -253,11 +253,11 @@
},
"$decodeUrlComponent": {
"args": "str",
- "desc": "解碼以前由encodeUrlComponent創建的統一資源定位器(URL)組件。 \n\n示例: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
+ "desc": "解碼以前由encodeUrlComponent創建的統一資源定位器(URL)組件。\n\n示例: `$decodeUrlComponent(\"%3Fx%3Dtest\")` => `\"?x=test\"`"
},
"$decodeUrl": {
"args": "str",
- "desc": "解碼先前由encodeUrl創建的統一資源定位符(URL)。 \n\n示例: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
+ "desc": "解碼先前由encodeUrl創建的統一資源定位符(URL)。\n\n示例: `$decodeUrl(\"https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B\")` => `\"https://mozilla.org/?x=шеллы\"`"
},
"$distinct": {
"args": "array",
diff --git a/packages/node_modules/@node-red/editor-client/package.json b/packages/node_modules/@node-red/editor-client/package.json
index 1041c9745..f3d5200b4 100644
--- a/packages/node_modules/@node-red/editor-client/package.json
+++ b/packages/node_modules/@node-red/editor-client/package.json
@@ -1,6 +1,6 @@
{
"name": "@node-red/editor-client",
- "version": "3.0.0-beta.4",
+ "version": "3.1.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
diff --git a/packages/node_modules/@node-red/editor-client/src/js/history.js b/packages/node_modules/@node-red/editor-client/src/js/history.js
index b23071239..c3a966890 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/history.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/history.js
@@ -14,7 +14,7 @@
* limitations under the License.
**/
-/**
+/**
* An API for undo / redo history buffer
* @namespace RED.history
*/
@@ -378,7 +378,8 @@ RED.history = (function() {
if (ev.addToGroup) {
RED.group.removeFromGroup(ev.addToGroup,ev.nodes.map(function(n) { return n.n }),false);
inverseEv.removeFromGroup = ev.addToGroup;
- } else if (ev.removeFromGroup) {
+ }
+ if (ev.removeFromGroup) {
RED.group.addToGroup(ev.removeFromGroup,ev.nodes.map(function(n) { return n.n }));
inverseEv.addToGroup = ev.removeFromGroup;
}
@@ -421,6 +422,9 @@ RED.history = (function() {
ev.node[i] = ev.changes[i];
}
}
+ ev.node.dirty = true;
+ ev.node.changed = ev.changed;
+
var eventType;
switch(ev.node.type) {
case 'tab': eventType = "flows"; break;
@@ -434,7 +438,9 @@ RED.history = (function() {
if (ev.node.type === 'tab' && ev.changes.hasOwnProperty('disabled')) {
$("#red-ui-tab-"+(ev.node.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!ev.node.disabled);
- $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!ev.node.disabled);
+ }
+ if (ev.node.type === 'tab' && ev.changes.hasOwnProperty('locked')) {
+ $("#red-ui-tab-"+(ev.node.id.replace(".","-"))).toggleClass('red-ui-workspace-locked',!!ev.node.locked);
}
if (ev.subflow) {
inverseEv.subflow = {};
@@ -509,8 +515,6 @@ RED.history = (function() {
inverseEv.links.push(ev.createdLinks[i]);
}
}
- ev.node.dirty = true;
- ev.node.changed = ev.changed;
} else if (ev.t == "createSubflow") {
inverseEv = {
t: "deleteSubflow",
@@ -646,6 +650,12 @@ RED.history = (function() {
ev.groups[i].nodes = [];
RED.nodes.addGroup(ev.groups[i]);
RED.group.addToGroup(ev.groups[i],nodes);
+ if (ev.groups[i].g) {
+ const parentGroup = RED.nodes.group(ev.groups[i].g)
+ if (parentGroup) {
+ RED.group.addToGroup(parentGroup, ev.groups[i])
+ }
+ }
}
}
} else if (ev.t == "addToGroup") {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js
index 9da5aad05..8814ee39a 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js
@@ -19,7 +19,6 @@
* @namespace RED.nodes
*/
RED.nodes = (function() {
-
var PORT_TYPE_INPUT = 1;
var PORT_TYPE_OUTPUT = 0;
@@ -47,6 +46,9 @@ RED.nodes = (function() {
function setDirty(d) {
dirty = d;
+ if (!d) {
+ allNodes.clearState()
+ }
RED.events.emit("workspace:dirty",{dirty:dirty});
}
@@ -63,12 +65,12 @@ RED.nodes = (function() {
defaults: {
label: {value:""},
disabled: {value: false},
+ locked: {value: false},
info: {value: ""},
env: {value: []}
}
};
-
var exports = {
setModulePendingUpdated: function(module,version) {
moduleList[module].pending_version = version;
@@ -238,22 +240,72 @@ RED.nodes = (function() {
// allNodes holds information about the Flow nodes.
var allNodes = (function() {
+ // Map node.id -> node
var nodes = {};
+ // Map tab.id -> Array of nodes on that tab
var tabMap = {};
+ // Map tab.id -> Set of dirty object ids on that tab
+ var tabDirtyMap = {};
+ // Map tab.id -> Set of object ids of things deleted from the tab that weren't otherwise dirty
+ var tabDeletedNodesMap = {};
+ // Set of object ids of things added to a tab after initial import
+ var addedDirtyObjects = new Set()
+
+ function changeCollectionDepth(tabNodes, toMove, direction, singleStep) {
+ const result = []
+ const moved = new Set();
+ const startIndex = direction ? tabNodes.length - 1 : 0
+ const endIndex = direction ? -1 : tabNodes.length
+ const step = direction ? -1 : 1
+ let target = startIndex // Only used for all-the-way moves
+ for (let i = startIndex; i != endIndex; i += step) {
+ if (toMove.size === 0) {
+ break;
+ }
+ const n = tabNodes[i]
+ if (toMove.has(n)) {
+ if (singleStep) {
+ if (i !== startIndex && !moved.has(tabNodes[i - step])) {
+ tabNodes.splice(i, 1)
+ tabNodes.splice(i - step, 0, n)
+ n._reordered = true
+ result.push(n)
+ }
+ } else {
+ if (i !== target) {
+ tabNodes.splice(i, 1)
+ tabNodes.splice(target, 0, n)
+ n._reordered = true
+ result.push(n)
+ }
+ target += step
+ }
+ toMove.delete(n);
+ moved.add(n);
+ }
+ }
+ return result
+ }
+
var api = {
addTab: function(id) {
tabMap[id] = [];
+ tabDirtyMap[id] = new Set();
+ tabDeletedNodesMap[id] = new Set();
},
hasTab: function(z) {
return tabMap.hasOwnProperty(z)
},
removeTab: function(id) {
delete tabMap[id];
+ delete tabDirtyMap[id];
+ delete tabDeletedNodesMap[id];
},
addNode: function(n) {
nodes[n.id] = n;
if (tabMap.hasOwnProperty(n.z)) {
tabMap[n.z].push(n);
+ api.addObjectToWorkspace(n.z, n.id, n.changed || n.moved)
} else {
console.warn("Node added to unknown tab/subflow:",n);
tabMap["_"] = tabMap["_"] || [];
@@ -267,8 +319,37 @@ RED.nodes = (function() {
if (i > -1) {
tabMap[n.z].splice(i,1);
}
+ api.removeObjectFromWorkspace(n.z, n.id)
}
},
+ /**
+ * Add an object to our dirty/clean tracking state
+ * @param {String} z
+ * @param {String} id
+ * @param {Boolean} isDirty
+ */
+ addObjectToWorkspace: function (z, id, isDirty) {
+ if (isDirty) {
+ addedDirtyObjects.add(id)
+ }
+ if (tabDeletedNodesMap[z].has(id)) {
+ tabDeletedNodesMap[z].delete(id)
+ }
+ api.markNodeDirty(z, id, isDirty)
+ },
+ /**
+ * Remove an object from our dirty/clean tracking state
+ * @param {String} z
+ * @param {String} id
+ */
+ removeObjectFromWorkspace: function (z, id) {
+ if (!addedDirtyObjects.has(id)) {
+ tabDeletedNodesMap[z].add(id)
+ } else {
+ addedDirtyObjects.delete(id)
+ }
+ api.markNodeDirty(z, id, false)
+ },
hasNode: function(id) {
return nodes.hasOwnProperty(id);
},
@@ -280,152 +361,54 @@ RED.nodes = (function() {
n.z = newZ;
api.addNode(n)
},
- moveNodesForwards: function(nodes) {
- var result = [];
+ /**
+ * @param {array} nodes
+ * @param {boolean} direction true:forwards false:back
+ * @param {boolean} singleStep true:single-step false:all-the-way
+ */
+ changeDepth: function(nodes, direction, singleStep) {
if (!Array.isArray(nodes)) {
nodes = [nodes]
}
- // Can only do this for nodes on the same tab.
- // Use nodes[0] to get the z
- var tabNodes = tabMap[nodes[0].z];
- var toMove = new Set(nodes.filter(function(n) { return n.type !== "group" && n.type !== "subflow" }));
- var moved = new Set();
- for (var i = tabNodes.length-1; i >= 0; i--) {
- if (toMove.size === 0) {
- break;
- }
- var n = tabNodes[i];
- if (toMove.has(n)) {
- // This is a node to move.
- if (i < tabNodes.length-1 && !moved.has(tabNodes[i+1])) {
- // Remove from current position
- tabNodes.splice(i,1);
- // Add it back one position higher
- tabNodes.splice(i+1,0,n);
- n._reordered = true;
- result.push(n);
- }
- toMove.delete(n);
- moved.add(n);
+ let result = []
+ const tabNodes = tabMap[nodes[0].z];
+ const toMove = new Set(nodes.filter(function(n) { return n.type !== "group" && n.type !== "subflow" }));
+ if (toMove.size > 0) {
+ result = result.concat(changeCollectionDepth(tabNodes, toMove, direction, singleStep))
+ if (result.length > 0) {
+ RED.events.emit('nodes:reorder',{
+ z: nodes[0].z,
+ nodes: result
+ });
}
}
- if (result.length > 0) {
- RED.events.emit('nodes:reorder',{
- z: nodes[0].z,
- nodes: result
- });
+
+ const groupNodes = groupsByZ[nodes[0].z] || []
+ const groupsToMove = new Set(nodes.filter(function(n) { return n.type === 'group'}))
+ if (groupsToMove.size > 0) {
+ const groupResult = changeCollectionDepth(groupNodes, groupsToMove, direction, singleStep)
+ if (groupResult.length > 0) {
+ result = result.concat(groupResult)
+ RED.events.emit('groups:reorder',{
+ z: nodes[0].z,
+ nodes: groupResult
+ });
+ }
}
- return result;
+ RED.view.redraw(true)
+ return result
+ },
+ moveNodesForwards: function(nodes) {
+ return api.changeDepth(nodes, true, true)
},
moveNodesBackwards: function(nodes) {
- var result = [];
- if (!Array.isArray(nodes)) {
- nodes = [nodes]
- }
- // Can only do this for nodes on the same tab.
- // Use nodes[0] to get the z
- var tabNodes = tabMap[nodes[0].z];
- var toMove = new Set(nodes.filter(function(n) { return n.type !== "group" && n.type !== "subflow" }));
- var moved = new Set();
- for (var i = 0; i < tabNodes.length; i++) {
- if (toMove.size === 0) {
- break;
- }
- var n = tabNodes[i];
- if (toMove.has(n)) {
- // This is a node to move.
- if (i > 0 && !moved.has(tabNodes[i-1])) {
- // Remove from current position
- tabNodes.splice(i,1);
- // Add it back one position lower
- tabNodes.splice(i-1,0,n);
- n._reordered = true;
- result.push(n);
- }
- toMove.delete(n);
- moved.add(n);
- }
- }
- if (result.length > 0) {
- RED.events.emit('nodes:reorder',{
- z: nodes[0].z,
- nodes: result
- });
- }
- return result;
+ return api.changeDepth(nodes, false, true)
},
moveNodesToFront: function(nodes) {
- var result = [];
- if (!Array.isArray(nodes)) {
- nodes = [nodes]
- }
- // Can only do this for nodes on the same tab.
- // Use nodes[0] to get the z
- var tabNodes = tabMap[nodes[0].z];
- var toMove = new Set(nodes.filter(function(n) { return n.type !== "group" && n.type !== "subflow" }));
- var target = tabNodes.length-1;
- for (var i = tabNodes.length-1; i >= 0; i--) {
- if (toMove.size === 0) {
- break;
- }
- var n = tabNodes[i];
- if (toMove.has(n)) {
- // This is a node to move.
- if (i < target) {
- // Remove from current position
- tabNodes.splice(i,1);
- tabNodes.splice(target,0,n);
- n._reordered = true;
- result.push(n);
- }
- target--;
- toMove.delete(n);
- }
- }
- if (result.length > 0) {
- RED.events.emit('nodes:reorder',{
- z: nodes[0].z,
- nodes: result
- });
- }
- return result;
+ return api.changeDepth(nodes, true, false)
},
moveNodesToBack: function(nodes) {
- var result = [];
- if (!Array.isArray(nodes)) {
- nodes = [nodes]
- }
- // Can only do this for nodes on the same tab.
- // Use nodes[0] to get the z
- var tabNodes = tabMap[nodes[0].z];
- var toMove = new Set(nodes.filter(function(n) { return n.type !== "group" && n.type !== "subflow" }));
- var target = 0;
- for (var i = 0; i < tabNodes.length; i++) {
- if (toMove.size === 0) {
- break;
- }
- var n = tabNodes[i];
- if (toMove.has(n)) {
- // This is a node to move.
- if (i > target) {
- // Remove from current position
- tabNodes.splice(i,1);
- // Add it back one position lower
- tabNodes.splice(target,0,n);
- n._reordered = true;
- result.push(n);
- }
- target++;
- toMove.delete(n);
- }
- }
- if (result.length > 0) {
- RED.events.emit('nodes:reorder',{
- z: nodes[0].z,
- nodes: result
- });
- }
- return result;
+ return api.changeDepth(nodes, false, false)
},
getNodes: function(z) {
return tabMap[z];
@@ -433,6 +416,33 @@ RED.nodes = (function() {
clear: function() {
nodes = {};
tabMap = {};
+ tabDirtyMap = {};
+ tabDeletedNodesMap = {};
+ addedDirtyObjects = new Set();
+ },
+ /**
+ * Clear all internal state on what is dirty.
+ */
+ clearState: function () {
+ // Called when a deploy happens, we can forget about added/remove
+ // items as they have now been deployed.
+ addedDirtyObjects = new Set()
+ const flowsToCheck = new Set()
+ for (const [z, set] of Object.entries(tabDeletedNodesMap)) {
+ if (set.size > 0) {
+ set.clear()
+ flowsToCheck.add(z)
+ }
+ }
+ for (const [z, set] of Object.entries(tabDirtyMap)) {
+ if (set.size > 0) {
+ set.clear()
+ flowsToCheck.add(z)
+ }
+ }
+ for (const z of flowsToCheck) {
+ api.checkTabState(z)
+ }
},
eachNode: function(cb) {
var nodeList,i,j;
@@ -498,7 +508,7 @@ RED.nodes = (function() {
return result;
},
getNodeOrder: function(z) {
- return tabMap[z].map(function(n) { return n.id })
+ return (groupsByZ[z] || []).concat(tabMap[z]).map(n => n.id)
},
setNodeOrder: function(z, order) {
var orderMap = {};
@@ -510,6 +520,41 @@ RED.nodes = (function() {
B._reordered = true;
return orderMap[A.id] - orderMap[B.id];
})
+ if (groupsByZ[z]) {
+ groupsByZ[z].sort(function(A,B) {
+ return orderMap[A.id] - orderMap[B.id];
+ })
+ }
+ },
+ /**
+ * Update our records if an object is dirty or not
+ * @param {String} z tab id
+ * @param {String} id object id
+ * @param {Boolean} dirty whether the object is dirty or not
+ */
+ markNodeDirty: function(z, id, dirty) {
+ if (tabDirtyMap[z]) {
+ if (dirty) {
+ tabDirtyMap[z].add(id)
+ } else {
+ tabDirtyMap[z].delete(id)
+ }
+ api.checkTabState(z)
+ }
+ },
+ /**
+ * Check if a tab should update its contentsChange flag
+ * @param {String} z tab id
+ */
+ checkTabState: function (z) {
+ const ws = workspaces[z]
+ if (ws) {
+ const contentsChanged = tabDirtyMap[z].size > 0 || tabDeletedNodesMap[z].size > 0
+ if (Boolean(ws.contentsChanged) !== contentsChanged) {
+ ws.contentsChanged = contentsChanged
+ RED.events.emit("flows:change", ws);
+ }
+ }
}
}
return api;
@@ -575,15 +620,53 @@ RED.nodes = (function() {
}
}
+ const nodeProxyHandler = {
+ get(node, prop) {
+ if (prop === '__isProxy__') {
+ return true
+ } else if (prop == '__node__') {
+ return node
+ }
+ return node[prop]
+ },
+ set(node, prop, value) {
+ if (node.z && (RED.nodes.workspace(node.z)?.locked || RED.nodes.subflow(node.z)?.locked)) {
+ if (
+ node._def.defaults[prop] ||
+ prop === 'z' ||
+ prop === 'l' ||
+ prop === 'd' ||
+ (prop === 'changed' && (!!node.changed) !== (!!value)) || // jshint ignore:line
+ ((prop === 'x' || prop === 'y') && !node.resize && node.type !== 'group')
+ ) {
+ throw new Error(`Cannot modified property '${prop}' of locked object '${node.type}:${node.id}'`)
+ }
+ }
+ if (node.z && (prop === 'changed' || prop === 'moved')) {
+ setTimeout(() => {
+ allNodes.markNodeDirty(node.z, node.id, node.changed || node.moved)
+ }, 0)
+ }
+ node[prop] = value;
+ return true
+ }
+ }
function addNode(n) {
+ let newNode
+ if (!n.__isProxy__) {
+ newNode = new Proxy(n, nodeProxyHandler)
+ } else {
+ newNode = n
+ }
+
if (n.type.indexOf("subflow") !== 0) {
n["_"] = n._def._;
} else {
var subflowId = n.type.substring(8);
var sf = RED.nodes.subflow(subflowId);
if (sf) {
- sf.instances.push(sf);
+ sf.instances.push(newNode);
}
n["_"] = RED._;
}
@@ -600,12 +683,13 @@ RED.nodes = (function() {
});
n.i = nextId+1;
}
- allNodes.addNode(n);
+ allNodes.addNode(newNode);
if (!nodeLinks[n.id]) {
nodeLinks[n.id] = {in:[],out:[]};
}
}
- RED.events.emit('nodes:add',n);
+ RED.events.emit('nodes:add',newNode);
+ return newNode
}
function addLink(l) {
if (nodeLinks[l.source.id]) {
@@ -632,10 +716,16 @@ RED.nodes = (function() {
}
if (l.source.z === l.target.z && linkTabMap[l.source.z]) {
linkTabMap[l.source.z].push(l);
+ allNodes.addObjectToWorkspace(l.source.z, getLinkId(l), true)
}
RED.events.emit("links:add",l);
}
+ function getLinkId(link) {
+ return link.source.id + ':' + link.sourcePort + ':' + link.target.id
+ }
+
+
function getNode(id) {
if (id in configNodes) {
return configNodes[id];
@@ -707,8 +797,8 @@ RED.nodes = (function() {
if (node && node._def.onremove) {
// Deprecated: never documented but used by some early nodes
- console.log("Deprecated API warning: node type ",node.type," has an onremove function - should be oneditremove - please report");
- node._def.onremove.call(n);
+ console.log("Deprecated API warning: node type ",node.type," has an onremove function - should be oneditdelete - please report");
+ node._def.onremove.call(node);
}
return {links:removedLinks,nodes:removedNodes};
}
@@ -830,6 +920,7 @@ RED.nodes = (function() {
if (index !== -1) {
linkTabMap[l.source.z].splice(index,1)
}
+ allNodes.removeObjectFromWorkspace(l.source.z, getLinkId(l))
}
}
RED.events.emit("links:remove",l);
@@ -868,14 +959,7 @@ RED.nodes = (function() {
var node;
if (allNodes.hasTab(id)) {
- removedNodes = allNodes.getNodes(id).filter(n => {
- if (n.type === 'junction') {
- removedJunctions.push(n)
- return false
- } else {
- return true
- }
- })
+ removedNodes = allNodes.getNodes(id).slice()
}
for (i in configNodes) {
if (configNodes.hasOwnProperty(i)) {
@@ -885,6 +969,7 @@ RED.nodes = (function() {
}
}
}
+ removedJunctions = RED.nodes.junctions(id)
for (i=0;i l.target))
+ return Array.from(downstreamNodes)
+ }
function getAllDownstreamNodes(node) {
return getAllFlowNodes(node,'down').filter(function(n) { return n !== node });
}
@@ -1052,6 +1142,9 @@ RED.nodes = (function() {
node.type = n.type;
for (var d in n._def.defaults) {
if (n._def.defaults.hasOwnProperty(d)) {
+ if (d === 'locked' && !n.locked) {
+ continue
+ }
node[d] = n[d];
}
}
@@ -1331,7 +1424,6 @@ RED.nodes = (function() {
} else {
nodeSet = [sf];
}
- console.log(nodeSet);
return createExportableNodeSet(nodeSet);
}
/**
@@ -1367,12 +1459,16 @@ RED.nodes = (function() {
exportedConfigNodes[n.id] = true;
}
});
+
+ subflowSet = subflowSet.concat(RED.nodes.junctions(subflowId))
+ subflowSet = subflowSet.concat(RED.nodes.groups(subflowId))
+
var exportableSubflow = createExportableNodeSet(subflowSet, exportedIds, exportedSubflows, exportedConfigNodes);
nns = exportableSubflow.concat(nns);
}
}
if (node.type !== "subflow") {
- var convertedNode = RED.nodes.convertNode(node);
+ var convertedNode = RED.nodes.convertNode(node, { credentials: false });
for (var d in node._def.defaults) {
if (node._def.defaults[d].type) {
var nodeList = node[d];
@@ -1405,7 +1501,7 @@ RED.nodes = (function() {
nns = nns.concat(createExportableNodeSet(node.nodes, exportedIds, exportedSubflows, exportedConfigNodes));
}
} else {
- var convertedSubflow = convertSubflow(node);
+ var convertedSubflow = convertSubflow(node, { credentials: false });
nns.push(convertedSubflow);
}
}
@@ -1654,6 +1750,7 @@ RED.nodes = (function() {
* Options:
* - generateIds - whether to replace all node ids
* - addFlow - whether to import nodes to a new tab
+ * - markChanged - whether to set changed=true on all newly imported objects
* - reimport - if node has a .z property, dont overwrite it
* Only applicible when `generateIds` is false
* - importMap - how to resolve any conflicts.
@@ -1662,7 +1759,7 @@ RED.nodes = (function() {
* - id:replace - import over the top of existing
*/
function importNodes(newNodesObj,options) { // createNewIds,createMissingWorkspace) {
- const defOpts = { generateIds: false, addFlow: false, reimport: false, importMap: {} }
+ const defOpts = { generateIds: false, addFlow: false, markChanged: false, reimport: false, importMap: {} }
options = Object.assign({}, defOpts, options)
options.importMap = options.importMap || {}
const createNewIds = options.generateIds;
@@ -1688,7 +1785,7 @@ RED.nodes = (function() {
newNodes = newNodesObj;
}
- if (!$.isArray(newNodes)) {
+ if (!Array.isArray(newNodes)) {
newNodes = [newNodes];
}
@@ -1968,7 +2065,7 @@ RED.nodes = (function() {
}
}
} else {
- const keepNodesCurrentZ = reimport && n.z && RED.workspaces.contains(n.z)
+ const keepNodesCurrentZ = reimport && n.z && (RED.workspaces.contains(n.z) || RED.nodes.subflow(n.z))
if (!keepNodesCurrentZ && n.z && !workspace_map[n.z] && !subflow_map[n.z]) {
n.z = activeWorkspace;
}
@@ -1986,6 +2083,9 @@ RED.nodes = (function() {
if (!n.z) {
delete configNode.z;
}
+ if (options.markChanged) {
+ configNode.changed = true
+ }
if (n.hasOwnProperty('d')) {
configNode.d = n.d;
}
@@ -2048,6 +2148,9 @@ RED.nodes = (function() {
if (n.hasOwnProperty('g')) {
node.g = n.g;
}
+ if (options.markChanged) {
+ node.changed = true
+ }
if (createNewIds || options.importMap[n.id] === "copy") {
if (subflow_denylist[n.z]) {
continue;
@@ -2070,7 +2173,7 @@ RED.nodes = (function() {
node.id = getID();
} else {
node.id = n.id;
- const keepNodesCurrentZ = reimport && node.z && RED.workspaces.contains(node.z)
+ const keepNodesCurrentZ = reimport && node.z && (RED.workspaces.contains(node.z) || RED.nodes.subflow(node.z))
if (!keepNodesCurrentZ && (node.z == null || (!workspace_map[node.z] && !subflow_map[node.z]))) {
if (createMissingWorkspace) {
if (missingWorkspace === null) {
@@ -2098,16 +2201,27 @@ RED.nodes = (function() {
} else if (n.type.substring(0,7) === "subflow") {
var parentId = n.type.split(":")[1];
var subflow = subflow_denylist[parentId]||subflow_map[parentId]||getSubflow(parentId);
- if (createNewIds || options.importMap[n.id] === "copy") {
- parentId = subflow.id;
- node.type = "subflow:"+parentId;
- node._def = registry.getNodeType(node.type);
- delete node.i;
+ if (!subflow){
+ node._def = {
+ color:"#fee",
+ defaults: {},
+ label: "unknown: "+n.type,
+ labelStyle: "red-ui-flow-node-label-italic",
+ outputs: n.outputs|| (n.wires && n.wires.length) || 0,
+ set: registry.getNodeSet("node-red/unknown")
+ }
+ } else {
+ if (createNewIds || options.importMap[n.id] === "copy") {
+ parentId = subflow.id;
+ node.type = "subflow:"+parentId;
+ node._def = registry.getNodeType(node.type);
+ delete node.i;
+ }
+ node.name = n.name;
+ node.outputs = subflow.out.length;
+ node.inputs = subflow.in.length;
+ node.env = n.env;
}
- node.name = n.name;
- node.outputs = subflow.out.length;
- node.inputs = subflow.in.length;
- node.env = n.env;
} else if (n.type === 'junction') {
node._def = {defaults:{}}
node._config.x = node.x
@@ -2268,7 +2382,7 @@ RED.nodes = (function() {
// get added
if (activeSubflow && /^link /.test(n.type) && n.links) {
n.links = n.links.filter(function(id) {
- var otherNode = RED.nodes.node(id);
+ const otherNode = node_map[id] || RED.nodes.node(id);
return (otherNode && otherNode.z === activeWorkspace)
});
}
@@ -2318,19 +2432,6 @@ RED.nodes = (function() {
if (n.g && !new_group_set.has(n.g)) {
delete n.g;
}
- n.nodes = n.nodes.map(function(id) {
- return node_map[id];
- })
- // Just in case the group references a node that doesn't exist for some reason
- n.nodes = n.nodes.filter(function(v) {
- if (v) {
- // Repair any nodes that have forgotten they are in this group
- if (v.g !== n.id) {
- v.g = n.id;
- }
- }
- return !!v
- });
if (!n.g) {
groupDepthMap[n.id] = 0;
}
@@ -2353,21 +2454,22 @@ RED.nodes = (function() {
return groupDepthMap[A.id] - groupDepthMap[B.id];
});
for (i=0;i {
+ const mappedNode = node_map[id]
+ if (!mappedNode) {
+ return null
+ }
+ if (mappedNode.__isProxy__) {
+ return mappedNode
+ } else {
+ return node_map[mappedNode.id]
+ }
+ }
+ // Update groups to reference proxy node objects
+ for (i=0;i g.id)
+ }
function addJunction(junction) {
+ if (!junction.__isProxy__) {
+ junction = new Proxy(junction, nodeProxyHandler)
+ }
junctionsByZ[junction.z] = junctionsByZ[junction.z] || []
junctionsByZ[junction.z].push(junction)
junctions[junction.id] = junction;
if (!nodeLinks[junction.id]) {
nodeLinks[junction.id] = {in:[],out:[]};
}
+ allNodes.addObjectToWorkspace(junction.z, junction.id, junction.changed || junction.moved)
RED.events.emit("junctions:add", junction)
+ return junction
}
function removeJunction(junction) {
var i = junctionsByZ[junction.z].indexOf(junction)
@@ -2568,6 +2723,7 @@ RED.nodes = (function() {
}
delete junctions[junction.id]
delete nodeLinks[junction.id];
+ allNodes.removeObjectFromWorkspace(junction.z, junction.id)
RED.events.emit("junctions:remove", junction)
var removedLinks = links.filter(function(l) { return (l.source === junction) || (l.target === junction); });
@@ -2743,6 +2899,7 @@ RED.nodes = (function() {
}
});
+ const nodeGroupMap = {}
var replaceNodeIds = Object.keys(replaceNodes);
if (replaceNodeIds.length > 0) {
var reimportList = [];
@@ -2753,6 +2910,12 @@ RED.nodes = (function() {
} else {
allNodes.removeNode(n);
}
+ if (n.g) {
+ // reimporting a node *without* including its group object
+ // will cause the g property to be cleared. Cache it
+ // here so we can restore it
+ nodeGroupMap[n.id] = n.g
+ }
reimportList.push(convertNode(n));
RED.events.emit('nodes:remove',n);
});
@@ -2774,6 +2937,18 @@ RED.nodes = (function() {
var newNodeMap = {};
result.nodes.forEach(function(n) {
newNodeMap[n.id] = n;
+ if (nodeGroupMap[n.id]) {
+ // This node is in a group - need to substitute the
+ // node reference inside the group
+ n.g = nodeGroupMap[n.id]
+ const group = RED.nodes.group(n.g)
+ if (group) {
+ var index = group.nodes.findIndex(gn => gn.id === n.id)
+ if (index > -1) {
+ group.nodes[index] = n
+ }
+ }
+ }
});
RED.nodes.eachLink(function(l) {
if (newNodeMap.hasOwnProperty(l.source.id)) {
@@ -2786,6 +2961,9 @@ RED.nodes = (function() {
RED.view.redraw(true);
}
});
+ RED.events.on('deploy', function () {
+ allNodes.clearState()
+ })
},
registry:registry,
setNodeList: registry.setNodeList,
@@ -2834,7 +3012,7 @@ RED.nodes = (function() {
},
addWorkspace: addWorkspace,
removeWorkspace: removeWorkspace,
- getWorkspaceOrder: function() { return workspacesOrder },
+ getWorkspaceOrder: function() { return [...workspacesOrder] },
setWorkspaceOrder: function(order) { workspacesOrder = order; },
workspace: getWorkspace,
@@ -2888,6 +3066,20 @@ RED.nodes = (function() {
}
}
},
+ eachGroup: function(cb) {
+ for (var group of Object.values(groups)) {
+ if (cb(group) === false) {
+ break
+ }
+ }
+ },
+ eachJunction: function(cb) {
+ for (var junction of Object.values(junctions)) {
+ if (cb(junction) === false) {
+ break
+ }
+ }
+ },
node: getNode,
@@ -2910,6 +3102,7 @@ RED.nodes = (function() {
getAllFlowNodes: getAllFlowNodes,
getAllUpstreamNodes: getAllUpstreamNodes,
getAllDownstreamNodes: getAllDownstreamNodes,
+ getDownstreamNodes: getDownstreamNodes,
getNodeIslands: getNodeIslands,
createExportableNodeSet: createExportableNodeSet,
createCompleteNodeSet: createCompleteNodeSet,
diff --git a/packages/node_modules/@node-red/editor-client/src/js/red.js b/packages/node_modules/@node-red/editor-client/src/js/red.js
index 55446418b..353c2effd 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/red.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/red.js
@@ -249,8 +249,37 @@ var RED = (function() {
RED.nodes.import(nodes.flows);
RED.nodes.dirty(false);
RED.view.redraw(true);
- if (/^#flow\/.+$/.test(currentHash)) {
- RED.workspaces.show(currentHash.substring(6),true);
+ if (/^#(flow|node|group)\/.+$/.test(currentHash)) {
+ const hashParts = currentHash.split('/')
+ const showEditDialog = hashParts.length > 2 && hashParts[2] === 'edit'
+ if (hashParts[0] === '#flow') {
+ RED.workspaces.show(hashParts[1], true);
+ if (showEditDialog) {
+ RED.workspaces.edit()
+ }
+ } else if (hashParts[0] === '#node') {
+ const nodeToShow = RED.nodes.node(hashParts[1])
+ if (nodeToShow) {
+ setTimeout(() => {
+ RED.view.reveal(nodeToShow.id)
+ window.location.hash = currentHash
+ RED.view.select(nodeToShow.id)
+ if (showEditDialog) {
+ RED.editor.edit(nodeToShow)
+ }
+ }, 50)
+ }
+ } else if (hashParts[0] === '#group') {
+ const nodeToShow = RED.nodes.group(hashParts[1])
+ if (nodeToShow) {
+ RED.view.reveal(nodeToShow.id)
+ window.location.hash = currentHash
+ RED.view.select(nodeToShow.id)
+ if (showEditDialog) {
+ RED.editor.editGroup(nodeToShow)
+ }
+ }
+ }
}
if (RED.workspaces.count() > 0) {
const hiddenTabs = JSON.parse(RED.settings.getLocal("hiddenTabs")||"{}");
@@ -321,6 +350,8 @@ var RED = (function() {
loader.end()
RED.notify($("").text(message));
RED.sidebar.info.refresh()
+ RED.menu.setDisabled('menu-item-projects-open',false);
+ RED.menu.setDisabled('menu-item-projects-settings',false);
});
});
return;
@@ -641,11 +672,6 @@ var RED = (function() {
]});
menuOptions.push({id:"menu-item-arrange-menu", label:RED._("menu.label.arrange"), options: [
- {id: "menu-item-view-tools-move-to-back", label:RED._("menu.label.moveToBack"), disabled: true, onselect: "core:move-selection-to-back"},
- {id: "menu-item-view-tools-move-to-front", label:RED._("menu.label.moveToFront"), disabled: true, onselect: "core:move-selection-to-front"},
- {id: "menu-item-view-tools-move-backwards", label:RED._("menu.label.moveBackwards"), disabled: true, onselect: "core:move-selection-backwards"},
- {id: "menu-item-view-tools-move-forwards", label:RED._("menu.label.moveForwards"), disabled: true, onselect: "core:move-selection-forwards"},
- null,
{id: "menu-item-view-tools-align-left", label:RED._("menu.label.alignLeft"), disabled: true, onselect: "core:align-selection-to-left"},
{id: "menu-item-view-tools-align-center", label:RED._("menu.label.alignCenter"), disabled: true, onselect: "core:align-selection-to-center"},
{id: "menu-item-view-tools-align-right", label:RED._("menu.label.alignRight"), disabled: true, onselect: "core:align-selection-to-right"},
@@ -655,7 +681,12 @@ var RED = (function() {
{id: "menu-item-view-tools-align-bottom", label:RED._("menu.label.alignBottom"), disabled: true, onselect: "core:align-selection-to-bottom"},
null,
{id: "menu-item-view-tools-distribute-horizontally", label:RED._("menu.label.distributeHorizontally"), disabled: true, onselect: "core:distribute-selection-horizontally"},
- {id: "menu-item-view-tools-distribute-veritcally", label:RED._("menu.label.distributeVertically"), disabled: true, onselect: "core:distribute-selection-vertically"}
+ {id: "menu-item-view-tools-distribute-veritcally", label:RED._("menu.label.distributeVertically"), disabled: true, onselect: "core:distribute-selection-vertically"},
+ null,
+ {id: "menu-item-view-tools-move-to-back", label:RED._("menu.label.moveToBack"), disabled: true, onselect: "core:move-selection-to-back"},
+ {id: "menu-item-view-tools-move-to-front", label:RED._("menu.label.moveToFront"), disabled: true, onselect: "core:move-selection-to-front"},
+ {id: "menu-item-view-tools-move-backwards", label:RED._("menu.label.moveBackwards"), disabled: true, onselect: "core:move-selection-backwards"},
+ {id: "menu-item-view-tools-move-forwards", label:RED._("menu.label.moveForwards"), disabled: true, onselect: "core:move-selection-forwards"}
]});
menuOptions.push(null);
@@ -700,7 +731,7 @@ var RED = (function() {
}
menuOptions.push({id:"menu-item-help",
label: RED.settings.theme("menu.menu-item-help.label",RED._("menu.label.help")),
- href: RED.settings.theme("menu.menu-item-help.url","http://nodered.org/docs")
+ href: RED.settings.theme("menu.menu-item-help.url","https://nodered.org/docs")
});
menuOptions.push({id:"menu-item-node-red-version", label:"v"+RED.settings.version, onselect: "core:show-about" });
@@ -748,6 +779,7 @@ var RED = (function() {
RED.deploy.init(RED.settings.theme("deployButton",null));
RED.keyboard.init(buildMainMenu);
+ RED.envVar.init();
RED.nodes.init();
RED.runtime.init()
@@ -766,7 +798,7 @@ var RED = (function() {
$('
').appendTo(header);
$(''+
'
'+
- '
'+
+ '
'+
'
'+
''+
''+
diff --git a/packages/node_modules/@node-red/editor-client/src/js/settings.js b/packages/node_modules/@node-red/editor-client/src/js/settings.js
index c9a24d636..85c930bfb 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/settings.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/settings.js
@@ -33,8 +33,8 @@ RED.settings = (function () {
if (!hasLocalStorage()) {
return;
}
- if (key === "auth-tokens") {
- localStorage.setItem(key, JSON.stringify(value));
+ if (key.startsWith("auth-tokens")) {
+ localStorage.setItem(key+this.authTokensSuffix, JSON.stringify(value));
} else {
RED.utils.setMessageProperty(userSettings,key,value);
saveUserSettings();
@@ -52,8 +52,8 @@ RED.settings = (function () {
if (!hasLocalStorage()) {
return undefined;
}
- if (key === "auth-tokens") {
- return JSON.parse(localStorage.getItem(key));
+ if (key.startsWith("auth-tokens")) {
+ return JSON.parse(localStorage.getItem(key+this.authTokensSuffix));
} else {
var v;
try { v = RED.utils.getMessageProperty(userSettings,key); } catch(err) {}
@@ -71,8 +71,8 @@ RED.settings = (function () {
if (!hasLocalStorage()) {
return;
}
- if (key === "auth-tokens") {
- localStorage.removeItem(key);
+ if (key.startsWith("auth-tokens")) {
+ localStorage.removeItem(key+this.authTokensSuffix);
} else {
delete userSettings[key];
saveUserSettings();
@@ -99,6 +99,8 @@ RED.settings = (function () {
var init = function (options, done) {
var accessTokenMatch = /[?&]access_token=(.*?)(?:$|&)/.exec(window.location.search);
+ var path=window.location.pathname.slice(0,-1);
+ RED.settings.authTokensSuffix=path.replace(/\//g, '-');
if (accessTokenMatch) {
var accessToken = accessTokenMatch[1];
RED.settings.set("auth-tokens",{access_token: accessToken});
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/actionList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/actionList.js
index 4886deabb..d949899ca 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/actionList.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/actionList.js
@@ -47,7 +47,7 @@ RED.actionList = (function() {
var searchDiv = $("
",{class:"red-ui-search-container"}).appendTo(dialog);
searchInput = $('
').appendTo(searchDiv).searchBox({
change: function() {
- filterTerm = $(this).val().trim();
+ filterTerm = $(this).val().trim().toLowerCase();
filterTerms = filterTerm.split(" ");
searchResults.editableList('filter');
searchResults.find("li.selected").removeClass("selected");
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js b/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js
index f547203d4..01a993a75 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js
@@ -37,13 +37,13 @@ RED.clipboard = (function() {
// IE11 workaround
// IE does not support data uri scheme for downloading data
var blob = new Blob([data], {
- type: "data:text/plain;charset=utf-8"
+ type: "data:application/json;charset=utf-8"
});
navigator.msSaveBlob(blob, file);
}
else {
var element = document.createElement('a');
- element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(data));
+ element.setAttribute('href', 'data:application/json;charset=utf-8,' + encodeURIComponent(data));
element.setAttribute('download', file);
element.style.display = 'none';
document.body.appendChild(element);
@@ -423,11 +423,10 @@ RED.clipboard = (function() {
}
}
- function showImportNodes(mode) {
+ function showImportNodes(library = 'clipboard') {
if (disabled) {
return;
}
- mode = mode || "clipboard";
dialogContainer.empty();
dialogContainer.append($(importNodesDialog));
@@ -504,7 +503,7 @@ RED.clipboard = (function() {
$("#red-ui-clipboard-dialog-import-text").on("keyup", validateImport);
$("#red-ui-clipboard-dialog-import-text").on('paste',function() { setTimeout(validateImport,10)});
- if (RED.workspaces.active() === 0) {
+ if (RED.workspaces.active() === 0 || RED.workspaces.isLocked()) {
$("#red-ui-clipboard-dialog-import-opt-current").addClass('disabled').removeClass("selected");
$("#red-ui-clipboard-dialog-import-opt-new").addClass("selected");
} else {
@@ -533,8 +532,8 @@ RED.clipboard = (function() {
$("#red-ui-clipboard-dialog-import-file-upload").trigger("click");
})
- tabs.activateTab("red-ui-clipboard-dialog-import-tab-"+mode);
- if (mode === 'clipboard') {
+ tabs.activateTab("red-ui-clipboard-dialog-import-tab-"+library);
+ if (library === 'clipboard') {
setTimeout(function() {
$("#red-ui-clipboard-dialog-import-text").trigger("focus");
},100)
@@ -558,13 +557,16 @@ RED.clipboard = (function() {
});
}
- function showExportNodes(mode) {
+ /**
+ * Show the export dialog
+ * @params library which export destination to show
+ * @params mode whether to default to 'auto' (default) or 'flow'
+ **/
+ function showExportNodes(library = 'clipboard', mode = 'auto' ) {
if (disabled) {
return;
}
- mode = mode || "clipboard";
-
dialogContainer.empty();
dialogContainer.append($(exportNodesDialog));
@@ -654,7 +656,12 @@ RED.clipboard = (function() {
$("#red-ui-clipboard-dialog-tab-library-name").val("flows.json").select();
dialogContainer.i18n();
+
var format = RED.settings.flowFilePretty ? "red-ui-clipboard-dialog-export-fmt-full" : "red-ui-clipboard-dialog-export-fmt-mini";
+ const userFormat = RED.settings.get("editor.dialog.export.pretty")
+ if (userFormat === false || userFormat === true) {
+ format = userFormat ? "red-ui-clipboard-dialog-export-fmt-full" : "red-ui-clipboard-dialog-export-fmt-mini";
+ }
$("#red-ui-clipboard-dialog-export-fmt-group > a").on("click", function(evt) {
evt.preventDefault();
@@ -670,7 +677,8 @@ RED.clipboard = (function() {
var nodes = JSON.parse(flow);
format = $(this).attr('id');
- if (format === 'red-ui-clipboard-dialog-export-fmt-full') {
+ const pretty = format === "red-ui-clipboard-dialog-export-fmt-full";
+ if (pretty) {
flow = JSON.stringify(nodes,null,4);
} else {
flow = JSON.stringify(nodes);
@@ -679,6 +687,7 @@ RED.clipboard = (function() {
setTimeout(function() { $("#red-ui-clipboard-dialog-export-text").scrollTop(0); },50);
$("#red-ui-clipboard-dialog-export-text").trigger("focus");
+ RED.settings.set("editor.dialog.export.pretty", pretty)
}
});
@@ -722,7 +731,7 @@ RED.clipboard = (function() {
nodes.unshift(parentNode);
nodes = RED.nodes.createExportableNodeSet(nodes);
} else if (type === 'full') {
- nodes = RED.nodes.createCompleteNodeSet(false);
+ nodes = RED.nodes.createCompleteNodeSet({ credentials: false });
}
if (nodes !== null) {
if (format === "red-ui-clipboard-dialog-export-fmt-full") {
@@ -766,12 +775,15 @@ RED.clipboard = (function() {
}
}
}
+ if (mode === 'flow' && !$("#red-ui-clipboard-dialog-export-rng-flow").hasClass('disabled')) {
+ $("#red-ui-clipboard-dialog-export-rng-flow").trigger("click");
+ }
if (format === "red-ui-clipboard-dialog-export-fmt-full") {
$("#red-ui-clipboard-dialog-export-fmt-full").trigger("click");
} else {
$("#red-ui-clipboard-dialog-export-fmt-mini").trigger("click");
}
- tabs.activateTab("red-ui-clipboard-dialog-export-tab-"+mode);
+ tabs.activateTab("red-ui-clipboard-dialog-export-tab-"+library);
var dialogHeight = 400;
var winHeight = $(window).height();
@@ -1266,15 +1278,17 @@ RED.clipboard = (function() {
RED.keyboard.add("#red-ui-drop-target", "escape" ,hideDropTarget);
$('#red-ui-workspace-chart').on("dragenter",function(event) {
- if ($.inArray("text/plain",event.originalEvent.dataTransfer.types) != -1 ||
- $.inArray("Files",event.originalEvent.dataTransfer.types) != -1) {
+ if (!RED.workspaces.isLocked() && (
+ $.inArray("text/plain",event.originalEvent.dataTransfer.types) != -1 ||
+ $.inArray("Files",event.originalEvent.dataTransfer.types) != -1)) {
$("#red-ui-drop-target").css({display:'table'}).focus();
}
});
$('#red-ui-drop-target').on("dragover",function(event) {
if ($.inArray("text/plain",event.originalEvent.dataTransfer.types) != -1 ||
- $.inArray("Files",event.originalEvent.dataTransfer.types) != -1) {
+ $.inArray("Files",event.originalEvent.dataTransfer.types) != -1 ||
+ RED.workspaces.isLocked()) {
event.preventDefault();
}
})
@@ -1282,27 +1296,29 @@ RED.clipboard = (function() {
hideDropTarget();
})
.on("drop",function(event) {
- try {
- if ($.inArray("text/plain",event.originalEvent.dataTransfer.types) != -1) {
- var data = event.originalEvent.dataTransfer.getData("text/plain");
- data = data.substring(data.indexOf('['),data.lastIndexOf(']')+1);
- importNodes(data);
- } else if ($.inArray("Files",event.originalEvent.dataTransfer.types) != -1) {
- var files = event.originalEvent.dataTransfer.files;
- if (files.length === 1) {
- var file = files[0];
- var reader = new FileReader();
- reader.onload = (function(theFile) {
- return function(e) {
- importNodes(e.target.result);
- };
- })(file);
- reader.readAsText(file);
+ if (!RED.workspaces.isLocked()) {
+ try {
+ if ($.inArray("text/plain",event.originalEvent.dataTransfer.types) != -1) {
+ var data = event.originalEvent.dataTransfer.getData("text/plain");
+ data = data.substring(data.indexOf('['),data.lastIndexOf(']')+1);
+ importNodes(data);
+ } else if ($.inArray("Files",event.originalEvent.dataTransfer.types) != -1) {
+ var files = event.originalEvent.dataTransfer.files;
+ if (files.length === 1) {
+ var file = files[0];
+ var reader = new FileReader();
+ reader.onload = (function(theFile) {
+ return function(e) {
+ importNodes(e.target.result);
+ };
+ })(file);
+ reader.readAsText(file);
+ }
}
+ } catch(err) {
+ // Ensure any errors throw above doesn't stop the drop target from
+ // being hidden.
}
- } catch(err) {
- // Ensure any errors throw above doesn't stop the drop target from
- // being hidden.
}
hideDropTarget();
event.preventDefault();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js
index ea1938e5c..8ee1f0e29 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js
@@ -160,7 +160,7 @@
this.element.css("maxHeight",null);
}
if (this.options.height !== 'auto') {
- this.uiContainer.css("overflow-y","scroll");
+ this.uiContainer.css("overflow-y","auto");
if (!isNaN(this.options.height)) {
this.uiHeight = this.options.height;
}
@@ -417,6 +417,9 @@
} else {
return null;
}
+ },
+ cancel: function() {
+ this.element.sortable("cancel");
}
});
})(jQuery);
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js
index 2d95f894a..8d0f1dbd3 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js
@@ -94,8 +94,8 @@ RED.menu = (function() {
var link = $(linkContent).appendTo(item);
opt.link = link;
- if (typeof opt.onselect === 'string') {
- var shortcut = RED.keyboard.getShortcut(opt.onselect);
+ if (typeof opt.onselect === 'string' || opt.shortcut) {
+ var shortcut = opt.shortcut || RED.keyboard.getShortcut(opt.onselect);
if (shortcut && shortcut.key) {
opt.shortcutSpan = $('
'+RED.keyboard.formatKey(shortcut.key, true)+' ').appendTo(link.find(".red-ui-menu-label"));
}
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js
index 8901cf11f..abb76e622 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js
@@ -141,7 +141,29 @@ RED.tabs = (function() {
})
}
-
+ if (options.contextmenu) {
+ wrapper.on('contextmenu', function(evt) {
+ let clickedTab
+ let target = evt.target
+ while(target.nodeName !== 'A' && target.nodeName !== 'UL' && target.nodeName !== 'BODY') {
+ target = target.parentNode
+ }
+ if (target.nodeName === 'A') {
+ const href = target.getAttribute('href')
+ if (href) {
+ clickedTab = tabs[href.slice(1)]
+ }
+ }
+ evt.preventDefault()
+ evt.stopPropagation()
+ RED.contextMenu.show({
+ x:evt.clientX-5,
+ y:evt.clientY-5,
+ options: options.contextmenu(clickedTab)
+ })
+ return false
+ })
+ }
var scrollLeft;
var scrollRight;
@@ -161,7 +183,7 @@ RED.tabs = (function() {
// Assume this is wheel event which might not trigger
// the scroll event, so do things manually
var sl = scrollContainer.scrollLeft();
- sl -= evt.originalEvent.deltaY;
+ sl += evt.originalEvent.deltaY;
scrollContainer.scrollLeft(sl);
}
})
@@ -807,23 +829,22 @@ RED.tabs = (function() {
event.preventDefault();
removeTab(tab.id);
});
- RED.popover.tooltip(closeLink,RED._("workspace.hideFlow"));
- }
- if (tab.hideable) {
- li.addClass("red-ui-tabs-closeable")
- var closeLink = $("
",{href:"#",class:"red-ui-tab-close red-ui-tab-hide"}).appendTo(li);
- closeLink.append('
');
- closeLink.append('
');
- closeLink.on("click",function(event) {
- event.preventDefault();
- hideTab(tab.id);
- });
- RED.popover.tooltip(closeLink,RED._("workspace.hideFlow"));
+ RED.popover.tooltip(closeLink,RED._("workspace.closeFlow"));
}
+ // if (tab.hideable) {
+ // li.addClass("red-ui-tabs-closeable")
+ // var closeLink = $("
",{href:"#",class:"red-ui-tab-close red-ui-tab-hide"}).appendTo(li);
+ // closeLink.append('
');
+ // closeLink.append('
');
+ // closeLink.on("click",function(event) {
+ // event.preventDefault();
+ // hideTab(tab.id);
+ // });
+ // RED.popover.tooltip(closeLink,RED._("workspace.hideFlow"));
+ // }
var badges = $('
').appendTo(li);
if (options.onselect) {
- $('
').appendTo(badges);
$('
').appendTo(badges);
}
@@ -938,6 +959,9 @@ RED.tabs = (function() {
activeIndex: function() {
return ul.find("li.active").index()
},
+ getTabIndex: function (id) {
+ return ul.find("a[href='#"+id+"']").parent().index()
+ },
contains: function(id) {
return ul.find("a[href='#"+id+"']").length > 0;
},
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js
index 549479d85..7440b464e 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js
@@ -90,10 +90,10 @@
optEl.append(generateSpans(srcMatch));
optEl.appendTo(element);
}
- matches.push({
- value: optVal,
- label: element,
- i: (valMatch.found ? valMatch.index : srcMatch.index)
+ matches.push({
+ value: optVal,
+ label: element,
+ i: (valMatch.found ? valMatch.index : srcMatch.index)
});
}
})
@@ -146,7 +146,7 @@
{ value: "reset", source: ["delay","trigger","join","rbe"] },
{ value: "responseCookies", source: ["http request"] },
{ value: "responseTopic", source: ["mqtt"] },
- { value: "responseURL", source: ["http request"] },
+ { value: "responseUrl", source: ["http request"] },
{ value: "restartTimeout", source: ["join"] },
{ value: "retain", source: ["mqtt"] },
{ value: "schema", source: ["json"] },
@@ -501,7 +501,7 @@
this.options.types = this.options.types||Object.keys(allOptions);
}
- this.selectTrigger = $('
').prependTo(this.uiSelect);
+ this.selectTrigger = $('
').prependTo(this.uiSelect);
$('
').toggle(this.options.types.length > 1).appendTo(this.selectTrigger);
this.selectLabel = $('
').appendTo(this.selectTrigger);
@@ -570,7 +570,7 @@
})
// explicitly set optionSelectTrigger display to inline-block otherwise jQ sets it to 'inline'
- this.optionSelectTrigger = $('
').appendTo(this.uiSelect);
+ this.optionSelectTrigger = $('
').appendTo(this.uiSelect);
this.optionSelectLabel = $('
').prependTo(this.optionSelectTrigger);
// RED.popover.tooltip(this.optionSelectLabel,function() {
// return that.optionValue;
@@ -591,7 +591,7 @@
that.uiSelect.addClass('red-ui-typedInput-focus');
});
- this.optionExpandButton = $('
').appendTo(this.uiSelect);
+ this.optionExpandButton = $('
').appendTo(this.uiSelect);
this.optionExpandButtonIcon = $('
').appendTo(this.optionExpandButton);
this.type(this.typeField.val() || this.options.default||this.typeList[0].value);
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/contextMenu.js b/packages/node_modules/@node-red/editor-client/src/js/ui/contextMenu.js
index a8b787ba5..f53e7458e 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/contextMenu.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/contextMenu.js
@@ -1,25 +1,6 @@
-RED.contextMenu = (function() {
+RED.contextMenu = (function () {
let menu;
- function createMenu() {
- // menu = RED.popover.menu({
- // options: [
- // {
- // label: 'delete selection',
- // onselect: function() {
- // RED.actions.invoke('core:delete-selection')
- // RED.view.focus()
- // }
- // },
- // { label: 'world' }
- // ],
- // width: 200,
- // })
-
-
-
-
- }
function disposeMenu() {
$(document).off("mousedown.red-ui-workspace-context-menu");
@@ -32,138 +13,193 @@ RED.contextMenu = (function() {
if (menu) {
menu.remove()
}
+ let menuItems = []
+ if (options.options) {
+ menuItems = options.options
+ } else if (options.type === 'workspace') {
+ const selection = RED.view.selection()
+ const noSelection = !selection || Object.keys(selection).length === 0
+ const hasSelection = (selection.nodes && selection.nodes.length > 0);
+ const hasMultipleSelection = hasSelection && selection.nodes.length > 1;
+ const virtulLinks = (selection.links && selection.links.filter(e => !!e.link)) || [];
+ const wireLinks = (selection.links && selection.links.filter(e => !e.link)) || [];
+ const hasLinks = wireLinks.length > 0;
+ const isSingleLink = !hasSelection && hasLinks && wireLinks.length === 1
+ const isMultipleLinks = !hasSelection && hasLinks && wireLinks.length > 1
+ const canDelete = hasSelection || hasLinks
+ const isGroup = hasSelection && selection.nodes.length === 1 && selection.nodes[0].type === 'group'
+ const canEdit = !RED.workspaces.isLocked()
+ const canRemoveFromGroup = hasSelection && !!selection.nodes[0].g
+ const isAllGroups = hasSelection && selection.nodes.filter(n => n.type !== 'group').length === 0
+ const hasGroup = hasSelection && selection.nodes.filter(n => n.type === 'group' ).length > 0
+ const offset = $("#red-ui-workspace-chart").offset()
- const selection = RED.view.selection()
- const hasSelection = (selection.nodes && selection.nodes.length > 0);
- const hasMultipleSelection = hasSelection && selection.nodes.length > 1;
- const hasLinks = selection.links && selection.links.length > 0;
- const isSingleLink = !hasSelection && hasLinks && selection.links.length === 1
- const isMultipleLinks = !hasSelection && hasLinks && selection.links.length > 1
- const canDelete = hasSelection || hasLinks
- const isGroup = hasSelection && selection.nodes.length === 1 && selection.nodes[0].type === 'group'
-
- const canRemoveFromGroup = hasSelection && !!selection.nodes[0].g
- const offset = $("#red-ui-workspace-chart").offset()
-
- let addX = options.x - offset.left + $("#red-ui-workspace-chart").scrollLeft()
- let addY = options.y - offset.top + $("#red-ui-workspace-chart").scrollTop()
-
- if (RED.view.snapGrid) {
- const gridSize = RED.view.gridSize()
- addX = gridSize*Math.floor(addX/gridSize)
- addY = gridSize*Math.floor(addY/gridSize)
- }
-
- const menuItems = [
- { onselect: 'core:show-action-list', onpostselect: function() {} },
- {
- label: RED._("contextMenu.insert"),
- options: [
- {
- label: RED._("contextMenu.node"),
- onselect: function() {
- RED.view.showQuickAddDialog({
- position: [ addX, addY ],
- touchTrigger: true,
- splice: isSingleLink?selection.links[0]:undefined,
- // spliceMultiple: isMultipleLinks
- })
- }
- },
- ( hasSelection || hasLinks ) ? {
- label: RED._("contextMenu.junction"),
- onselect: 'core:split-wires-with-junctions',
- disabled: !hasLinks
- } : {
- label: RED._("contextMenu.junction"),
- onselect: function() {
- const nn = {
- _def: {defaults:{}},
- type: 'junction',
- z: RED.workspaces.active(),
- id: RED.nodes.id(),
- x: addX,
- y: addY,
- w: 0, h: 0,
- outputs: 1,
- inputs: 1,
- dirty: true
- }
- const historyEvent = {
- dirty: RED.nodes.dirty(),
- t:'add',
- junctions:[nn]
- }
- RED.nodes.addJunction(nn);
- RED.history.push(historyEvent);
- RED.nodes.dirty(true);
- RED.view.redraw(true)
- }
- },
- {
- label: RED._("contextMenu.linkNodes"),
- onselect: 'core:split-wire-with-link-nodes',
- disabled: hasSelection || !hasLinks
- }
- ]
-
-
+ let addX = options.x - offset.left + $("#red-ui-workspace-chart").scrollLeft()
+ let addY = options.y - offset.top + $("#red-ui-workspace-chart").scrollTop()
+ if (RED.view.snapGrid) {
+ const gridSize = RED.view.gridSize()
+ addX = gridSize * Math.floor(addX / gridSize)
+ addY = gridSize * Math.floor(addY / gridSize)
}
- ]
- // menuItems.push(
- // {
- // label: (isSingleLink || isMultipleLinks)?'Insert into wire...':'Add node...',
- // onselect: function() {
- // RED.view.showQuickAddDialog({
- // position: [ options.x - offset.left, options.y - offset.top ],
- // touchTrigger: true,
- // splice: isSingleLink?selection.links[0]:undefined,
- // spliceMultiple: isMultipleLinks
- // })
- // }
- // },
- // )
- // if (hasLinks && !hasSelection) {
- // menuItems.push({ onselect: 'core:split-wires-with-junctions', label: 'Insert junction'})
- // }
- menuItems.push(
- null,
- { onselect: 'core:undo', disabled: RED.history.list().length === 0 },
- { onselect: 'core:redo', disabled: RED.history.listRedo().length === 0 },
- null,
- { onselect: 'core:cut-selection-to-internal-clipboard', label: RED._("keyboard.cutNode"), disabled: !hasSelection},
- { onselect: 'core:copy-selection-to-internal-clipboard', label: RED._("keyboard.copyNode"), disabled: !hasSelection },
- { onselect: 'core:paste-from-internal-clipboard', label: RED._("keyboard.pasteNode"), disabled: !RED.view.clipboard() },
- { onselect: 'core:delete-selection', disabled: !canDelete },
- { onselect: 'core:show-export-dialog', label: RED._("menu.label.export") },
- { onselect: 'core:select-all-nodes' }
- )
- if (hasSelection) {
+ menuItems.push(
+ { onselect: 'core:show-action-list', onpostselect: function () { } }
+ )
+
+ const insertOptions = []
+ menuItems.push({ label: RED._("contextMenu.insert"), options: insertOptions })
+ insertOptions.push(
+ {
+ label: RED._("contextMenu.node"),
+ onselect: function () {
+ RED.view.showQuickAddDialog({
+ position: [addX, addY],
+ touchTrigger: true,
+ splice: isSingleLink ? selection.links[0] : undefined,
+ // spliceMultiple: isMultipleLinks
+ })
+ },
+ disabled: !canEdit
+ },
+ (hasLinks) ? { // has least 1 wire selected
+ label: RED._("contextMenu.junction"),
+ onselect: 'core:split-wires-with-junctions',
+ disabled: !canEdit || !hasLinks
+ } : {
+ label: RED._("contextMenu.junction"),
+ onselect: function () {
+ const nn = {
+ _def: { defaults: {} },
+ type: 'junction',
+ z: RED.workspaces.active(),
+ id: RED.nodes.id(),
+ x: addX,
+ y: addY,
+ w: 0, h: 0,
+ outputs: 1,
+ inputs: 1,
+ dirty: true,
+ moved: true
+ }
+ const junction = RED.nodes.addJunction(nn);
+ const historyEvent = {
+ dirty: RED.nodes.dirty(),
+ t: 'add',
+ junctions: [junction]
+ }
+ RED.history.push(historyEvent);
+ RED.nodes.dirty(true);
+ RED.view.select({nodes: [junction] });
+ RED.view.redraw(true)
+ },
+ disabled: !canEdit
+ },
+ {
+ label: RED._("contextMenu.linkNodes"),
+ onselect: 'core:split-wire-with-link-nodes',
+ disabled: !canEdit || !hasLinks
+ },
+ null,
+ { onselect: 'core:show-import-dialog', label: RED._('common.label.import')},
+ { onselect: 'core:show-examples-import-dialog', label: RED._('menu.label.importExample') }
+ )
+ if (hasSelection && canEdit) {
+ const nodeOptions = []
+ if (!hasMultipleSelection && !isGroup) {
+ nodeOptions.push(
+ { onselect: 'core:show-node-help' },
+ null
+ )
+ }
+ nodeOptions.push(
+ { onselect: 'core:enable-selected-nodes' },
+ { onselect: 'core:disable-selected-nodes' },
+ null,
+ { onselect: 'core:show-selected-node-labels' },
+ { onselect: 'core:hide-selected-node-labels' }
+ )
+ menuItems.push({
+ label: RED._('sidebar.info.node'),
+ options: nodeOptions
+ })
+ menuItems.push({
+ label: RED._('sidebar.info.group'),
+ options: [
+ { onselect: 'core:group-selection' },
+ { onselect: 'core:ungroup-selection', disabled: !hasGroup },
+ ]
+ })
+ if (hasGroup) {
+ menuItems[menuItems.length - 1].options.push(
+ { onselect: 'core:merge-selection-to-group', label: RED._("menu.label.groupMergeSelection") }
+ )
+
+ }
+ if (canRemoveFromGroup) {
+ menuItems[menuItems.length - 1].options.push(
+ { onselect: 'core:remove-selection-from-group', label: RED._("menu.label.groupRemoveSelection") }
+ )
+ }
+ menuItems[menuItems.length - 1].options.push(
+ null,
+ { onselect: 'core:copy-group-style', disabled: !hasGroup },
+ { onselect: 'core:paste-group-style', disabled: !hasGroup}
+ )
+ }
+ if (canEdit && hasMultipleSelection) {
+ menuItems.push({
+ label: RED._('menu.label.arrange'),
+ options: [
+ { label:RED._("menu.label.alignLeft"), onselect: "core:align-selection-to-left"},
+ { label:RED._("menu.label.alignCenter"), onselect: "core:align-selection-to-center"},
+ { label:RED._("menu.label.alignRight"), onselect: "core:align-selection-to-right"},
+ null,
+ { label:RED._("menu.label.alignTop"), onselect: "core:align-selection-to-top"},
+ { label:RED._("menu.label.alignMiddle"), onselect: "core:align-selection-to-middle"},
+ { label:RED._("menu.label.alignBottom"), onselect: "core:align-selection-to-bottom"},
+ null,
+ { label:RED._("menu.label.distributeHorizontally"), onselect: "core:distribute-selection-horizontally"},
+ { label:RED._("menu.label.distributeVertically"), onselect: "core:distribute-selection-vertically"}
+ ]
+ })
+ }
+
+
menuItems.push(
null,
- isGroup ?
- { onselect: 'core:ungroup-selection', disabled: !isGroup }
- : { onselect: 'core:group-selection', disabled: !hasSelection }
+ { onselect: 'core:undo', label: RED._("keyboard.undoChange"), disabled: RED.history.list().length === 0 },
+ { onselect: 'core:redo', label: RED._("keyboard.redoChange"), disabled: RED.history.listRedo().length === 0 },
+ null,
+ { onselect: 'core:cut-selection-to-internal-clipboard', label: RED._("keyboard.cutNode"), disabled: !canEdit || !hasSelection },
+ { onselect: 'core:copy-selection-to-internal-clipboard', label: RED._("keyboard.copyNode"), disabled: !hasSelection },
+ { onselect: 'core:paste-from-internal-clipboard', label: RED._("keyboard.pasteNode"), disabled: !canEdit || !RED.view.clipboard() },
+ { onselect: 'core:delete-selection', disabled: !canEdit || !canDelete },
+ { onselect: 'core:delete-selection-and-reconnect', label: RED._('keyboard.deleteReconnect'), disabled: !canEdit || !canDelete },
+ { onselect: 'core:show-export-dialog', label: RED._("menu.label.export") },
+ { onselect: 'core:select-all-nodes', label: RED._("keyboard.selectAll") },
)
- if (canRemoveFromGroup) {
- menuItems.push({ onselect: 'core:remove-selection-from-group', label: RED._("menu.label.groupRemoveSelection") })
- }
-
}
+
+ var direction = "right";
+ var MENU_WIDTH = 500; // can not use menu width here
+ if ((options.x -$(document).scrollLeft()) >
+ ($(window).width() -MENU_WIDTH)) {
+ direction = "left";
+ }
+
menu = RED.menu.init({
- direction: 'right',
+ direction: direction,
onpreselect: function() {
disposeMenu()
},
- onpostselect: function() {
+ onpostselect: function () {
RED.view.focus()
},
options: menuItems
});
- menu.attr("id","red-ui-workspace-context-menu");
+ menu.attr("id", "red-ui-workspace-context-menu");
menu.css({
position: "absolute"
})
@@ -174,34 +210,35 @@ RED.contextMenu = (function() {
var top = options.y
var left = options.x
- if (top+menu.height()-$(document).scrollTop() > $(window).height()) {
- top -= (top+menu.height())-$(window).height() + 22;
+ if (top + menu.height() - $(document).scrollTop() > $(window).height()) {
+ top -= (top + menu.height()) - $(window).height() + 22;
}
- if (left+menu.width()-$(document).scrollLeft() > $(window).width()) {
- left -= (left+menu.width())-$(window).width() + 18;
+ if (left + menu.width() - $(document).scrollLeft() > $(window).width()) {
+ left -= (left + menu.width()) - $(window).width() + 18;
}
menu.css({
- top: top+"px",
- left: left+"px"
+ top: top + "px",
+ left: left + "px"
})
$(".red-ui-menu.red-ui-menu-dropdown").hide();
- $(document).on("mousedown.red-ui-workspace-context-menu", function(evt) {
+ $(document).on("mousedown.red-ui-workspace-context-menu", function (evt) {
if (menu && menu[0].contains(evt.target)) {
return
}
disposeMenu()
});
menu.show();
-
- // menu.show({
- // target: $('#red-ui-main-container'),
- // x: options.x,
- // y: options.y
- // })
-
+ // set focus to first item so that pressing escape key closes the menu
+ $("#red-ui-workspace-context-menu :first(ul) > a").trigger("focus")
}
-
+ // Allow escape key hook and other editor events to close context menu
+ RED.keyboard.add("red-ui-workspace-context-menu", "escape", function () { RED.contextMenu.hide() })
+ RED.events.on("editor:open", function () { RED.contextMenu.hide() });
+ RED.events.on("search:open", function () { RED.contextMenu.hide() });
+ RED.events.on("type-search:open", function () { RED.contextMenu.hide() });
+ RED.events.on("actionList:open", function () { RED.contextMenu.hide() });
+ RED.events.on("view:selection-changed", function () { RED.contextMenu.hide() });
return {
show: show,
hide: disposeMenu
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js
index 8a8df6837..a09fdeb01 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js
@@ -557,7 +557,17 @@ RED.deploy = (function() {
} else {
RED.notify('
' + RED._("deploy.successfulDeploy") + '
', "success");
}
+ const flowsToLock = new Set()
+ function ensureUnlocked(id) {
+ const flow = id && (RED.nodes.workspace(id) || RED.nodes.subflow(id) || null);
+ const isLocked = flow ? flow.locked : false;
+ if (flow && isLocked) {
+ flow.locked = false;
+ flowsToLock.add(flow)
+ }
+ }
RED.nodes.eachNode(function (node) {
+ ensureUnlocked(node.z)
if (node.changed) {
node.dirty = true;
node.changed = false;
@@ -570,7 +580,32 @@ RED.deploy = (function() {
delete node.credentials;
}
});
+ RED.nodes.eachGroup(function (node) {
+ ensureUnlocked(node.z)
+ if (node.changed) {
+ node.dirty = true;
+ node.changed = false;
+ }
+ if (node.moved) {
+ node.dirty = true;
+ node.moved = false;
+ }
+ })
+ RED.nodes.eachJunction(function (node) {
+ ensureUnlocked(node.z)
+ if (node.changed) {
+ node.dirty = true;
+ node.changed = false;
+ }
+ if (node.moved) {
+ node.dirty = true;
+ node.moved = false;
+ }
+ })
RED.nodes.eachConfig(function (confNode) {
+ if (confNode.z) {
+ ensureUnlocked(confNode.z)
+ }
confNode.changed = false;
if (confNode.credentials) {
delete confNode.credentials;
@@ -580,8 +615,16 @@ RED.deploy = (function() {
subflow.changed = false;
});
RED.nodes.eachWorkspace(function (ws) {
- ws.changed = false;
+ if (ws.changed || ws.added) {
+ ensureUnlocked(ws.z)
+ ws.changed = false;
+ delete ws.added
+ RED.events.emit("flows:change", ws)
+ }
});
+ flowsToLock.forEach(flow => {
+ flow.locked = true
+ })
// Once deployed, cannot undo back to a clean state
RED.history.markAllDirty();
RED.view.redraw();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js b/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js
index b6a069ab5..3f73e29aa 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js
@@ -989,9 +989,10 @@ RED.diff = (function() {
}
if (localNode && remoteNode && typeof localNode[d] === "string") {
if (/\n/.test(localNode[d]) || /\n/.test(remoteNode[d])) {
- $('
').on("click", function() {
+ var textDiff = $('
').on("click", function() {
showTextDiff(localNode[d],remoteNode[d]);
}).appendTo(propertyNameCell);
+ RED.popover.tooltip(textDiff, RED._("diff.compareChanges"));
}
}
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js
index fb4c200f5..62ce8dbe9 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js
@@ -45,11 +45,13 @@ RED.editor = (function() {
var hasChanged;
if (node.type.indexOf("subflow:")===0) {
subflow = RED.nodes.subflow(node.type.substring(8));
- isValid = subflow.valid;
- hasChanged = subflow.changed;
- if (isValid === undefined) {
- isValid = validateNode(subflow);
+ if (subflow){
+ isValid = subflow.valid;
hasChanged = subflow.changed;
+ if (isValid === undefined) {
+ isValid = validateNode(subflow);
+ hasChanged = subflow.changed;
+ }
}
validationErrors = validateNodeProperties(node, node._def.defaults, node);
node.valid = isValid && validationErrors.length === 0;
@@ -113,8 +115,9 @@ RED.editor = (function() {
var valid = validateNodeProperty(node, definition, prop, properties[prop]);
if ((typeof valid) === "string") {
result.push(valid);
- }
- else if(!valid) {
+ } else if (Array.isArray(valid)) {
+ result = result.concat(valid)
+ } else if(!valid) {
result.push(prop);
}
}
@@ -163,7 +166,7 @@ RED.editor = (function() {
// If the validator takes two arguments, it is a 3.x validator that
// can return a String to mean 'invalid' and provide a reason
if ((definition[property].validate.length === 2) &&
- ((typeof valid) === "string")) {
+ ((typeof valid) === "string") || Array.isArray(valid)) {
return valid;
} else {
// Otherwise, a 2.x returns a truth-like/false-like value that
@@ -238,6 +241,7 @@ RED.editor = (function() {
var valid = validateNodeProperty(node, defaults, property,value);
if (((typeof valid) === "string") || !valid) {
input.addClass("input-error");
+ input.next(".red-ui-typedInput-container").addClass("input-error");
if ((typeof valid) === "string") {
var tooltip = input.data("tooltip");
if (tooltip) {
@@ -250,6 +254,7 @@ RED.editor = (function() {
}
} else {
input.removeClass("input-error");
+ input.next(".red-ui-typedInput-container").removeClass("input-error");
var tooltip = input.data("tooltip");
if (tooltip) {
input.data("tooltip", null);
@@ -716,7 +721,10 @@ RED.editor = (function() {
if (typeof editing_node[d] === "string" || typeof editing_node[d] === "number") {
oldValues[d] = editing_node[d];
} else {
- oldValues[d] = $.extend(true,{},{v:editing_node[d]}).v;
+ // Dont clone the group node `nodes` array
+ if (editing_node.type !== 'group' || d !== "nodes") {
+ oldValues[d] = $.extend(true,{},{v:editing_node[d]}).v;
+ }
}
}
}
@@ -858,6 +866,7 @@ RED.editor = (function() {
function showEditDialog(node, defaultTab) {
if (buildingEditDialog) { return }
buildingEditDialog = true;
+ if (node.z && RED.workspaces.isLocked(node.z)) { return }
var editing_node = node;
var removeInfoEditorOnClose = false;
var skipInfoRefreshOnClose = false;
@@ -1043,6 +1052,13 @@ RED.editor = (function() {
var trayFooterLeft = $('').appendTo(trayFooter)
+ var helpButton = $('
').on("click", function(evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ RED.sidebar.help.show(editing_node.type);
+ }).appendTo(trayFooterLeft);
+ RED.popover.tooltip(helpButton, RED._("sidebar.help.showHelp"));
+
$('
').prop("checked",!!node.d).appendTo(trayFooterLeft).toggleButton({
enabledIcon: "fa-circle-thin",
disabledIcon: "fa-ban",
@@ -1105,6 +1121,10 @@ RED.editor = (function() {
if (editing_node) {
RED.sidebar.info.refresh(editing_node);
RED.sidebar.help.show(editing_node.type, false);
+ //ensure focused element is NOT body (for keyboard scope to operate correctly)
+ if (document.activeElement.tagName === 'BODY') {
+ $('#red-ui-editor-stack').trigger('focus')
+ }
}
}
}
@@ -1142,6 +1162,8 @@ RED.editor = (function() {
var editing_config_node = RED.nodes.node(id);
var activeEditPanes = [];
+ if (editing_config_node && editing_config_node.z && RED.workspaces.isLocked(editing_config_node.z)) { return }
+
var configNodeScope = ""; // default to global
var activeSubflow = RED.nodes.subflow(RED.workspaces.active());
if (activeSubflow) {
@@ -1184,6 +1206,13 @@ RED.editor = (function() {
var trayFooterLeft = $('').appendTo(trayFooter)
+ var helpButton = $('
').on("click", function(evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ RED.sidebar.help.show(editing_config_node.type);
+ }).appendTo(trayFooterLeft);
+ RED.popover.tooltip(helpButton, RED._("sidebar.help.showHelp"));
+
$('
').prop("checked",!!editing_config_node.d).appendTo(trayFooterLeft).toggleButton({
enabledIcon: "fa-circle-thin",
disabledIcon: "fa-ban",
@@ -1688,6 +1717,7 @@ RED.editor = (function() {
function showEditGroupDialog(group, defaultTab) {
if (buildingEditDialog) { return }
buildingEditDialog = true;
+ if (group.z && RED.workspaces.isLocked(group.z)) { return }
var editing_node = group;
editStack.push(group);
RED.view.state(RED.state.EDITING);
@@ -1847,11 +1877,15 @@ RED.editor = (function() {
workspace.disabled = disabled;
$("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!workspace.disabled);
- if (workspace.id === RED.workspaces.active()) {
- $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!workspace.disabled);
- }
}
+ var locked = $("#node-input-locked").prop("checked");
+ if (workspace.locked !== locked) {
+ editState.changes.locked = workspace.locked;
+ editState.changed = true;
+ workspace.locked = locked;
+ $("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-locked',!!workspace.locked);
+ }
if (editState.changed) {
var historyEvent = {
t: "edit",
@@ -1892,6 +1926,7 @@ RED.editor = (function() {
var trayBody = tray.find('.red-ui-tray-body');
trayBody.parent().css('overflow','hidden');
var trayFooterLeft = $('').appendTo(trayFooter)
+ var trayFooterRight = $('').appendTo(trayFooter)
var nodeEditPanes = [
'editor-tab-flow-properties',
@@ -1906,6 +1941,18 @@ RED.editor = (function() {
disabledIcon: "fa-ban",
invertState: true
})
+
+ if (!workspace.hasOwnProperty("locked")) {
+ workspace.locked = false;
+ }
+ $('
').prop("checked",workspace.locked).appendTo(trayFooterRight).toggleButton({
+ enabledLabel: RED._("common.label.unlocked"),
+ enabledIcon: "fa-unlock-alt",
+ disabledLabel: RED._("common.label.locked"),
+ disabledIcon: "fa-lock",
+ invertState: true
+ })
+
prepareEditDialog(trayBody, nodeEditPanes, workspace, {}, "node-input", defaultTab, function(_activeEditPanes) {
activeEditPanes = _activeEditPanes;
trayBody.i18n();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editor.js
index 7cee2026b..b92881764 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editor.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editor.js
@@ -45,6 +45,9 @@
selectedCodeEditor = RED.editor.codeEditor[defaultEditor];
initialised = selectedCodeEditor.init();
}
+
+ $('
').appendTo('#red-ui-editor');
+ $("#red-ui-image-drop-target").hide();
}
function create(options) {
@@ -64,6 +67,7 @@
options = {};
}
+ var editor = null;
if (this.editor.type === MONACO) {
// compatibility (see above note)
if (!options.element && !options.id) {
@@ -74,10 +78,14 @@
console.warn("createEditor() options.element or options.id is not valid", options);
$("#dialog-form").append('
');
}
- return this.editor.create(options);
+ editor = this.editor.create(options);
} else {
- return this.editor.create(options);//fallback to ACE
+ editor = this.editor.create(options);//fallback to ACE
}
+ if (options.mode === "ace/mode/markdown") {
+ RED.editor.customEditTypes['_markdown'].postInit(editor, options);
+ }
+ return editor;
}
return {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js
index 701e3da44..b18e01fbb 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js
@@ -59,18 +59,21 @@ RED.editor.codeEditor.monaco = (function() {
//TODO: get from externalModules.js For now this is enough for feature parity with ACE (and then some).
const knownModules = {
"assert": {package: "node", module: "assert", path: "node/assert.d.ts" },
+ "assert/strict": {package: "node", module: "assert/strict", path: "node/assert/strict.d.ts" },
"async_hooks": {package: "node", module: "async_hooks", path: "node/async_hooks.d.ts" },
"buffer": {package: "node", module: "buffer", path: "node/buffer.d.ts" },
"child_process": {package: "node", module: "child_process", path: "node/child_process.d.ts" },
"cluster": {package: "node", module: "cluster", path: "node/cluster.d.ts" },
"console": {package: "node", module: "console", path: "node/console.d.ts" },
- "constants": {package: "node", module: "constants", path: "node/constants.d.ts" },
"crypto": {package: "node", module: "crypto", path: "node/crypto.d.ts" },
"dgram": {package: "node", module: "dgram", path: "node/dgram.d.ts" },
+ "diagnostics_channel.d": {package: "node", module: "diagnostics_channel", path: "node/diagnostics_channel.d.ts" },
"dns": {package: "node", module: "dns", path: "node/dns.d.ts" },
+ "dns/promises": {package: "node", module: "dns/promises", path: "node/dns/promises.d.ts" },
"domain": {package: "node", module: "domain", path: "node/domain.d.ts" },
"events": {package: "node", module: "events", path: "node/events.d.ts" },
"fs": {package: "node", module: "fs", path: "node/fs.d.ts" },
+ "fs/promises": {package: "node", module: "fs/promises", path: "node/fs/promises.d.ts" },
"globals": {package: "node", module: "globals", path: "node/globals.d.ts" },
"http": {package: "node", module: "http", path: "node/http.d.ts" },
"http2": {package: "node", module: "http2", path: "node/http2.d.ts" },
@@ -84,8 +87,13 @@ RED.editor.codeEditor.monaco = (function() {
"querystring": {package: "node", module: "querystring", path: "node/querystring.d.ts" },
"readline": {package: "node", module: "readline", path: "node/readline.d.ts" },
"stream": {package: "node", module: "stream", path: "node/stream.d.ts" },
+ "stream/consumers": {package: "node", module: "stream/consumers", path: "node/stream/consumers.d.ts" },
+ "stream/promises": {package: "node", module: "stream/promises", path: "node/stream/promises.d.ts" },
+ "stream/web": {package: "node", module: "stream/web", path: "node/stream/web.d.ts" },
"string_decoder": {package: "node", module: "string_decoder", path: "node/string_decoder.d.ts" },
+ "test": {package: "node", module: "test", path: "node/test.d.ts" },
"timers": {package: "node", module: "timers", path: "node/timers.d.ts" },
+ "timers/promises": {package: "node", module: "timers/promises", path: "node/timers/promises.d.ts" },
"tls": {package: "node", module: "tls", path: "node/tls.d.ts" },
"trace_events": {package: "node", module: "trace_events", path: "node/trace_events.d.ts" },
"tty": {package: "node", module: "tty", path: "node/tty.d.ts" },
@@ -100,7 +108,7 @@ RED.editor.codeEditor.monaco = (function() {
"node-red-util": {package: "node-red", module: "util", path: "node-red/util.d.ts" },
"node-red-func": {package: "node-red", module: "func", path: "node-red/func.d.ts" },
}
- const defaultServerSideTypes = [ knownModules["node-red-util"], knownModules["node-red-func"], knownModules["globals"], knownModules["console"], knownModules["buffer"] ];
+ const defaultServerSideTypes = [ knownModules["node-red-util"], knownModules["node-red-func"], knownModules["globals"], knownModules["console"], knownModules["buffer"], knownModules["timers"] , knownModules["util"] ];
const modulesCache = {};
@@ -764,7 +772,7 @@ RED.editor.codeEditor.monaco = (function() {
if(!options.stateId && options.stateId !== false) {
- options.stateId = RED.editor.generateViewStateId("monaco", options, (options.mode || options.title).split("/").pop());
+ options.stateId = RED.editor.generateViewStateId("monaco", options, (options.mode || options.title || "").split("/").pop());
}
var el = options.element || $("#"+options.id)[0];
var toolbarRow = $("
").appendTo(el);
@@ -1160,19 +1168,19 @@ RED.editor.codeEditor.monaco = (function() {
// Warning: 4
// Error: 8
ed.getAnnotations = function getAnnotations() {
- var aceCompatibleMarkers = [];
+ let aceCompatibleMarkers;
try {
- var _model = ed.getModel();
+ const _model = ed.getModel();
if (_model !== null) {
- var id = _model._languageId; // e.g. javascript
- var ra = _model._associatedResource.authority; //e.g. model
- var rp = _model._associatedResource.path; //e.g. /18
- var rs = _model._associatedResource.scheme; //e.g. inmemory
- var modelMarkers = monaco.editor.getModelMarkers(_model) || [];
- var thisEditorsMarkers = modelMarkers.filter(function (marker) {
- var _ra = marker.resource.authority; //e.g. model
- var _rp = marker.resource.path; //e.g. /18
- var _rs = marker.resource.scheme; //e.g. inmemory
+ const id = _model.getLanguageId(); // e.g. javascript
+ const ra = _model.uri.authority; // e.g. model
+ const rp = _model.uri.path; // e.g. /18
+ const rs = _model.uri.scheme; // e.g. inmemory
+ const modelMarkers = monaco.editor.getModelMarkers(_model) || [];
+ const thisEditorsMarkers = modelMarkers.filter(function (marker) {
+ const _ra = marker.resource.authority; // e.g. model
+ const _rp = marker.resource.path; // e.g. /18
+ const _rs = marker.resource.scheme; // e.g. inmemory
return marker.owner == id && _ra === ra && _rp === rp && _rs === rs;
})
aceCompatibleMarkers = thisEditorsMarkers.map(function (marker) {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/colorPicker.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/colorPicker.js
index 4b2e19e5c..5b76d020b 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/colorPicker.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/colorPicker.js
@@ -76,6 +76,9 @@ RED.editor.colorPicker = RED.colorPicker = (function() {
var focusTarget = colorInput;
colorInput.on("change", function (e) {
var color = colorInput.val();
+ if (options.defaultValue && !color.match(/^([a-z]+|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3})$/)) {
+ color = options.defaultValue;
+ }
colorHiddenInput.val(color).trigger('change');
refreshDisplay(color);
});
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/envVarList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/envVarList.js
index 209e953e0..ba71e651f 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/envVarList.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/envVarList.js
@@ -2,7 +2,7 @@ RED.editor.envVarList = (function() {
var currentLocale = 'en-US';
var DEFAULT_ENV_TYPE_LIST = ['str','num','bool','json','bin','env'];
- var DEFAULT_ENV_TYPE_LIST_INC_CRED = ['str','num','bool','json','bin','env','cred'];
+ var DEFAULT_ENV_TYPE_LIST_INC_CRED = ['str','num','bool','json','bin','env','cred','jsonata'];
/**
* Create env var edit interface
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/expression.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/expression.js
index b3c4c3848..c887f3701 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/expression.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/expression.js
@@ -255,6 +255,9 @@
var currentExpression = expressionEditor.getValue();
var expr;
var usesContext = false;
+ var usesEnv = false;
+ var usesMoment = false;
+ var usesClone = false;
var legacyMode = /(^|[^a-zA-Z0-9_'".])msg([^a-zA-Z0-9_'"]|$)/.test(currentExpression);
$(".red-ui-editor-type-expression-legacy").toggle(legacyMode);
try {
@@ -267,6 +270,18 @@
usesContext = true;
return null;
});
+ expr.assign("env", function(name) {
+ usesEnv = true;
+ return null;
+ });
+ expr.assign("moment", function(name) {
+ usesMoment = true;
+ return null;
+ });
+ expr.assign("clone", function(name) {
+ usesClone = true;
+ return null;
+ });
} catch(err) {
testResultEditor.setValue(RED._("expressionEditor.errors.invalid-expr",{message:err.message}),-1);
return;
@@ -279,20 +294,37 @@
}
try {
- var result = expr.evaluate(legacyMode?{msg:parsedData}:parsedData);
- if (usesContext) {
- testResultEditor.setValue(RED._("expressionEditor.errors.context-unsupported"),-1);
- return;
- }
-
- var formattedResult;
- if (result !== undefined) {
- formattedResult = JSON.stringify(result,null,4);
- } else {
- formattedResult = RED._("expressionEditor.noMatch");
- }
- testResultEditor.setValue(formattedResult,-1);
- } catch(err) {
+ expr.evaluate(legacyMode?{msg:parsedData}:parsedData, null, (err, result) => {
+ if (err) {
+ testResultEditor.setValue(RED._("expressionEditor.errors.eval",{message:err.message}),-1);
+ } else {
+ if (usesContext) {
+ testResultEditor.setValue(RED._("expressionEditor.errors.context-unsupported"),-1);
+ return;
+ }
+ if (usesEnv) {
+ testResultEditor.setValue(RED._("expressionEditor.errors.env-unsupported"),-1);
+ return;
+ }
+ if (usesMoment) {
+ testResultEditor.setValue(RED._("expressionEditor.errors.moment-unsupported"),-1);
+ return;
+ }
+ if (usesClone) {
+ testResultEditor.setValue(RED._("expressionEditor.errors.clone-unsupported"),-1);
+ return;
+ }
+
+ var formattedResult;
+ if (result !== undefined) {
+ formattedResult = JSON.stringify(result,null,4);
+ } else {
+ formattedResult = RED._("expressionEditor.noMatch");
+ }
+ testResultEditor.setValue(formattedResult,-1);
+ }
+ });
+ } catch(err) {
testResultEditor.setValue(RED._("expressionEditor.errors.eval",{message:err.message}),-1);
}
}
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/markdown.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/markdown.js
index eeb8519e6..c4d7bf26d 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/markdown.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/markdown.js
@@ -14,6 +14,61 @@
* limitations under the License.
**/
(function() {
+ /**
+ * Converts dropped image file to date URL
+ */
+ function file2base64Image(file, cb) {
+ var reader = new FileReader();
+ reader.onload = (function (fd) {
+ return function (e) {
+ cb(e.target.result);
+ };
+ })(file);
+ reader.readAsDataURL(file);
+ }
+
+ var initialized = false;
+ var currentEditor = null;
+ /**
+ * Initialize handler for image file drag events
+ */
+ function initImageDrag(elem, editor) {
+ $(elem).on("dragenter", function (ev) {
+ ev.preventDefault();
+ $("#red-ui-image-drop-target").css({display:'table'}).focus();
+ currentEditor = editor;
+ });
+
+ if (!initialized) {
+ initialized = true;
+ $("#red-ui-image-drop-target").on("dragover", function (ev) {
+ ev.preventDefault();
+ }).on("dragleave", function (ev) {
+ $("#red-ui-image-drop-target").hide();
+ }).on("drop", function (ev) {
+ ev.preventDefault();
+ if ($.inArray("Files",ev.originalEvent.dataTransfer.types) != -1) {
+ var files = ev.originalEvent.dataTransfer.files;
+ if (files.length === 1) {
+ var file = files[0];
+ var name = file.name.toLowerCase();
+
+ if (name.match(/\.(apng|avif|gif|jpeg|png|svg|webp)$/)) {
+ file2base64Image(file, function (image) {
+ var session = currentEditor.getSession();
+ var img = `
\n`;
+ var pos = session.getCursorPosition();
+ session.insert(pos, img);
+ $("#red-ui-image-drop-target").hide();
+ });
+ return;
+ }
+ }
+ }
+ $("#red-ui-image-drop-target").hide();
+ });
+ }
+ }
var toolbarTemplate = '
'+
'
'+
@@ -114,6 +169,7 @@
var currentScrollTop = $(".red-ui-editor-type-markdown-panel-preview").scrollTop();
$(".red-ui-editor-type-markdown-panel-preview").html(RED.utils.renderMarkdown(expressionEditor.getValue()));
$(".red-ui-editor-type-markdown-panel-preview").scrollTop(currentScrollTop);
+ RED.editor.mermaid.render()
},200);
})
if (options.header) {
@@ -122,6 +178,7 @@
if (value) {
$(".red-ui-editor-type-markdown-panel-preview").html(RED.utils.renderMarkdown(expressionEditor.getValue()));
+ RED.editor.mermaid.render()
}
panels = RED.panels.create({
id:"red-ui-editor-type-markdown-panels",
@@ -148,10 +205,14 @@
});
RED.popover.tooltip($("#node-btn-markdown-preview"), RED._("markdownEditor.toggle-preview"));
- if (options.cursor && !expressionEditor._initState) {
- expressionEditor.gotoLine(options.cursor.row+1,options.cursor.column,false);
- }
-
+ if(!expressionEditor._initState) {
+ if (options.cursor) {
+ expressionEditor.gotoLine(options.cursor.row+1,options.cursor.column,false);
+ }
+ else {
+ expressionEditor.gotoLine(0, 0, false);
+ }
+ }
dialogForm.i18n();
},
close: function() {
@@ -215,7 +276,11 @@
}
})
return toolbar;
- }
+ },
+ postInit: function (editor, options) {
+ var elem = $("#"+options.id);
+ initImageDrag(elem, editor);
+ }
}
RED.editor.registerTypeEditor("_markdown", definition);
})();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/mermaid.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/mermaid.js
new file mode 100644
index 000000000..50b7a20a9
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/mermaid.js
@@ -0,0 +1,53 @@
+RED.editor.mermaid = (function () {
+ let initializing = false
+ let loaded = false
+ let pendingEvals = []
+ let diagramIds = 0
+
+ function render(selector = '.mermaid') {
+ // $(selector).hide()
+ if (!loaded) {
+ pendingEvals.push(selector)
+
+ if (!initializing) {
+ initializing = true
+ $.getScript(
+ 'vendor/mermaid/mermaid.min.js',
+ function (data, stat, jqxhr) {
+ mermaid.initialize({
+ startOnLoad: false
+ })
+ loaded = true
+ while(pendingEvals.length > 0) {
+ const pending = pendingEvals.shift()
+ render(pending)
+ }
+ }
+ )
+ }
+ } else {
+ const nodes = document.querySelectorAll(selector)
+
+ nodes.forEach(async node => {
+ if (!node.getAttribute('mermaid-processed')) {
+ const mermaidContent = node.innerText
+ node.setAttribute('mermaid-processed', true)
+ try {
+ const { svg } = await mermaid.render('mermaid-render-'+Date.now()+'-'+(diagramIds++), mermaidContent);
+ node.innerHTML = svg
+ } catch (err) {
+ $('').css({
+ fontSize: '0.8em',
+ border: '1px solid var(--red-ui-border-color-error)',
+ padding: '5px',
+ marginBottom: '10px',
+ }).text(err.toString()).prependTo(node)
+ }
+ }
+ })
+ }
+ }
+ return {
+ render: render,
+ };
+})();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/appearance.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/appearance.js
index 912fa3528..d6dd5112d 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/appearance.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/appearance.js
@@ -196,7 +196,7 @@
}
$('
'+
- ' '+
+ ' '+
' '+
' '+
'
').appendTo(dialogForm);
@@ -235,6 +235,7 @@
RED.editor.colorPicker.create({
id: "red-ui-editor-node-color",
value: color,
+ defaultValue: "#DDAA99",
palette: recommendedColors,
sortPalette: function (a, b) {return a.l - b.l;}
}).appendTo(colorRow);
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/flowProperties.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/flowProperties.js
index 2db4d0c85..214335f1b 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/flowProperties.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/flowProperties.js
@@ -52,8 +52,6 @@
node.info = info;
}
$("#red-ui-tab-"+(node.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!node.disabled);
- $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!node.disabled);
-
}
}
});
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js b/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js
new file mode 100644
index 000000000..998484858
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js
@@ -0,0 +1,189 @@
+RED.envVar = (function() {
+ function saveEnvList(list) {
+ const items = list.editableList("items")
+ const new_env = [];
+ items.each(function (i,el) {
+ var data = el.data('data');
+ var item;
+ if (data.nameField && data.valueField) {
+ item = {
+ name: data.nameField.val(),
+ value: data.valueField.typedInput("value"),
+ type: data.valueField.typedInput("type")
+ };
+ new_env.push(item);
+ }
+ });
+ return new_env;
+ }
+
+ function getGlobalConf(create) {
+ var gconf = null;
+ RED.nodes.eachConfig(function (conf) {
+ if (conf.type === "global-config") {
+ gconf = conf;
+ }
+ });
+ if ((gconf === null) && create) {
+ var cred = {
+ _ : {},
+ map: {}
+ };
+ gconf = {
+ id: RED.nodes.id(),
+ type: "global-config",
+ env: [],
+ name: "global-config",
+ label: "",
+ hasUsers: false,
+ users: [],
+ credentials: cred,
+ _def: RED.nodes.getType("global-config"),
+ };
+ RED.nodes.add(gconf);
+ }
+ return gconf;
+ }
+
+ function applyChanges(list) {
+ var gconf = getGlobalConf(false);
+ var new_env = [];
+ var items = list.editableList('items');
+ var credentials = gconf ? gconf.credentials : null;
+ if (!gconf && list.editableList('length') === 0) {
+ // No existing global-config node and nothing in the list,
+ // so no need to do anything more
+ return
+ }
+ if (!credentials) {
+ credentials = {
+ _ : {},
+ map: {}
+ };
+ }
+ items.each(function (i,el) {
+ var data = el.data('data');
+ if (data.nameField && data.valueField) {
+ var item = {
+ name: data.nameField.val(),
+ value: data.valueField.typedInput("value"),
+ type: data.valueField.typedInput("type")
+ };
+ if (item.name.trim() !== "") {
+ new_env.push(item);
+ if ((item.type === "cred") && (item.value !== "__PWRD__")) {
+ credentials.map[item.name] = item.value;
+ credentials.map["has_"+item.name] = (item.value !== "");
+ item.value = "__PWRD__";
+ }
+ }
+ }
+ });
+ if (gconf === null) {
+ gconf = getGlobalConf(true);
+ }
+ if (!gconf.credentials) {
+ gconf.credentials = {
+ _ : {},
+ map: {}
+ };
+ }
+ if ((JSON.stringify(new_env) !== JSON.stringify(gconf.env)) ||
+ (JSON.stringify(credentials) !== JSON.stringify(gconf.credentials))) {
+ gconf.env = new_env;
+ gconf.credentials = credentials;
+ RED.nodes.dirty(true);
+ }
+ }
+
+ function getSettingsPane() {
+ var gconf = getGlobalConf(false);
+ var env = gconf ? gconf.env : [];
+ var cred = gconf ? gconf.credentials : null;
+ if (!cred) {
+ cred = {
+ _ : {},
+ map: {}
+ };
+ }
+
+ var pane = $("
", {
+ id: "red-ui-settings-tab-envvar",
+ class: "form-horizontal"
+ });
+ var content = $("
", {
+ class: "form-row node-input-env-container-row"
+ }).css({
+ "margin": "10px"
+ }).appendTo(pane);
+
+ var label = $("
").css({
+ width: "100%"
+ }).appendTo(content);
+ $("
", {
+ class: "fa fa-list"
+ }).appendTo(label);
+ $("
").text(" "+RED._("env-var.header")).appendTo(label);
+
+ var list = $("
", {
+ id: "node-input-env-container"
+ }).appendTo(content);
+ var node = {
+ type: "",
+ env: env,
+ credentials: cred.map,
+ };
+ RED.editor.envVarList.create(list, node);
+
+ var buttons = $("
").css({
+ "text-align": "right",
+ }).appendTo(content);
+ var revertButton = $("
", {
+ class: "red-ui-button"
+ }).css({
+ }).text(RED._("env-var.revert")).appendTo(buttons);
+
+ var items = saveEnvList(list);
+ revertButton.on("click", function (ev) {
+ list.editableList("empty");
+ list.editableList("addItems", items);
+ });
+
+ return pane;
+ }
+
+ function init(done) {
+ if (!RED.user.hasPermission("settings.write")) {
+ RED.notify(RED._("user.errors.settings"),"error");
+ return;
+ }
+ RED.userSettings.add({
+ id:'envvar',
+ title: RED._("env-var.environment"),
+ get: getSettingsPane,
+ focus: function() {
+ var height = $("#red-ui-settings-tab-envvar").parent().height();
+ $("#node-input-env-container").editableList("height", (height -100));
+ },
+ close: function() {
+ var list = $("#node-input-env-container");
+ try {
+ applyChanges(list);
+ }
+ catch (e) {
+ console.log(e);
+ console.log(e.stack);
+ }
+ }
+ });
+
+ RED.actions.add("core:show-global-env", function() {
+ RED.userSettings.show('envvar');
+ });
+ }
+
+ return {
+ init: init,
+ };
+
+})();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/group.js b/packages/node_modules/@node-red/editor-client/src/js/ui/group.js
index e11a55660..13056f09b 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/group.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/group.js
@@ -101,6 +101,7 @@ RED.group = (function() {
RED.editor.colorPicker.create({
id:"node-input-style-stroke",
value: style.stroke || defaultGroupStyle.stroke || "#a4a4a4",
+ defaultValue: "#a4a4a4",
palette: colorPalette,
cellPerRow: colorCount,
cellWidth: 16,
@@ -112,6 +113,7 @@ RED.group = (function() {
RED.editor.colorPicker.create({
id:"node-input-style-fill",
value: style.fill || defaultGroupStyle.fill ||"none",
+ defaultValue: "none",
palette: colorPalette,
cellPerRow: colorCount,
cellWidth: 16,
@@ -129,6 +131,7 @@ RED.group = (function() {
RED.editor.colorPicker.create({
id:"node-input-style-color",
value: style.color || defaultGroupStyle.color ||"#a4a4a4",
+ defaultValue: "#a4a4a4",
palette: colorPalette,
cellPerRow: colorCount,
cellWidth: 16,
@@ -185,6 +188,8 @@ RED.group = (function() {
var activateMerge = false;
var activateRemove = false;
var singleGroupSelected = false;
+ var locked = RED.workspaces.isLocked()
+
if (activateGroup) {
singleGroupSelected = selection.nodes.length === 1 && selection.nodes[0].type === 'group';
selection.nodes.forEach(function (n) {
@@ -199,12 +204,12 @@ RED.group = (function() {
activateMerge = (selection.nodes.length > 1);
}
}
- RED.menu.setDisabled("menu-item-group-group", !activateGroup);
- RED.menu.setDisabled("menu-item-group-ungroup", !activateUngroup);
- RED.menu.setDisabled("menu-item-group-merge", !activateMerge);
- RED.menu.setDisabled("menu-item-group-remove", !activateRemove);
+ RED.menu.setDisabled("menu-item-group-group", locked || !activateGroup);
+ RED.menu.setDisabled("menu-item-group-ungroup", locked || !activateUngroup);
+ RED.menu.setDisabled("menu-item-group-merge", locked || !activateMerge);
+ RED.menu.setDisabled("menu-item-group-remove", locked || !activateRemove);
RED.menu.setDisabled("menu-item-edit-copy-group-style", !singleGroupSelected);
- RED.menu.setDisabled("menu-item-edit-paste-group-style", !activateUngroup);
+ RED.menu.setDisabled("menu-item-edit-paste-group-style", locked || !activateUngroup);
});
RED.actions.add("core:group-selection", function() { groupSelection() })
@@ -261,6 +266,7 @@ RED.group = (function() {
}
}
function pasteGroupStyle() {
+ if (RED.workspaces.isLocked()) { return }
if (RED.view.state() !== RED.state.DEFAULT) { return }
if (groupStyleClipboard) {
var selection = RED.view.selection();
@@ -295,6 +301,7 @@ RED.group = (function() {
}
function groupSelection() {
+ if (RED.workspaces.isLocked()) { return }
if (RED.view.state() !== RED.state.DEFAULT) { return }
var selection = RED.view.selection();
if (selection.nodes) {
@@ -308,15 +315,17 @@ RED.group = (function() {
RED.history.push(historyEvent);
RED.view.select({nodes:[group]});
RED.nodes.dirty(true);
+ RED.view.focus();
}
}
}
function ungroupSelection() {
+ if (RED.workspaces.isLocked()) { return }
if (RED.view.state() !== RED.state.DEFAULT) { return }
var selection = RED.view.selection();
if (selection.nodes) {
var newSelection = [];
- groups = selection.nodes.filter(function(n) { return n.type === "group" });
+ let groups = selection.nodes.filter(function(n) { return n.type === "group" });
var historyEvent = {
t:"ungroup",
@@ -330,10 +339,12 @@ RED.group = (function() {
RED.history.push(historyEvent);
RED.view.select({nodes:newSelection})
RED.nodes.dirty(true);
+ RED.view.focus();
}
}
function ungroup(g) {
+ if (RED.workspaces.isLocked()) { return }
var nodes = [];
var parentGroup = RED.nodes.group(g.g);
g.nodes.forEach(function(n) {
@@ -360,6 +371,7 @@ RED.group = (function() {
}
function mergeSelection() {
+ if (RED.workspaces.isLocked()) { return }
if (RED.view.state() !== RED.state.DEFAULT) { return }
var selection = RED.view.selection();
if (selection.nodes) {
@@ -389,7 +401,7 @@ RED.group = (function() {
}
}
var existingGroup;
-
+ var mergedEnv = {}
// Second pass, ungroup any groups in the selection and add their contents
// to the selection
for (var i=0; i
0) {
+ n.env.forEach(env => {
+ mergedEnv[env.name] = env
+ })
+ }
ungroupHistoryEvent.groups.push(n);
nodes = nodes.concat(ungroup(n));
} else {
@@ -415,6 +432,7 @@ RED.group = (function() {
group.style = existingGroup.style;
group.name = existingGroup.name;
}
+ group.env = Object.values(mergedEnv)
RED.view.select({nodes:[group]})
}
historyEvent.events.push({
@@ -424,10 +442,12 @@ RED.group = (function() {
});
RED.history.push(historyEvent);
RED.nodes.dirty(true);
+ RED.view.focus();
}
}
function removeSelection() {
+ if (RED.workspaces.isLocked()) { return }
if (RED.view.state() !== RED.state.DEFAULT) { return }
var selection = RED.view.selection();
if (selection.nodes) {
@@ -451,15 +471,25 @@ RED.group = (function() {
}
}
RED.view.select({nodes:selection.nodes})
+ RED.view.focus();
}
}
function createGroup(nodes) {
+ if (RED.workspaces.isLocked()) { return }
if (nodes.length === 0) {
return;
}
- if (nodes.filter(function(n) { return n.type === "subflow" }).length > 0) {
- RED.notify(RED._("group.errors.cannotAddSubflowPorts"),"error");
- return;
+ const existingGroup = nodes[0].g
+ for (let i = 0; i < nodes.length; i++) {
+ const n = nodes[i]
+ if (n.type === 'subflow') {
+ RED.notify(RED._("group.errors.cannotAddSubflowPorts"),"error");
+ return;
+ }
+ if (n.g !== existingGroup) {
+ console.warn("Cannot add nooes with different z properties")
+ return
+ }
}
// nodes is an array
// each node must be on the same tab (z)
@@ -472,11 +502,16 @@ RED.group = (function() {
y: Number.POSITIVE_INFINITY,
w: 0,
h: 0,
- _def: RED.group.def
+ _def: RED.group.def,
+ changed: true
}
group.z = nodes[0].z;
- RED.nodes.addGroup(group);
+ group = RED.nodes.addGroup(group);
+
+ if (existingGroup) {
+ addToGroup(RED.nodes.group(existingGroup), group)
+ }
try {
addToGroup(group,nodes);
@@ -501,7 +536,7 @@ RED.group = (function() {
if (!z) {
z = n.z;
} else if (z !== n.z) {
- throw new Error("Cannot add nooes with different z properties")
+ throw new Error("Cannot add nodes with different z properties")
}
if (n.g) {
// This is already in a group.
@@ -518,14 +553,10 @@ RED.group = (function() {
throw new Error(RED._("group.errors.cannotCreateDiffGroups"))
}
}
- // The nodes are already in a group. The assumption is they should be
- // wrapped in the newly provided group, and that group added to in their
- // place to the existing containing group.
+ // The nodes are already in a group - so we need to remove them first
if (g) {
g = RED.nodes.group(g);
- g.nodes.push(group);
g.dirty = true;
- group.g = g.id;
}
// Second pass - add them to the group
for (i=0;i ').appendTo(scope);
+ var scopeSelect = $(''+
+ ' '+
+ ' '+
+ ' '+
+ ' ').appendTo(scope);
scopeSelect.i18n();
if (object.scope === "workspace") {
object.scope = "red-ui-workspace";
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js
old mode 100755
new mode 100644
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js
index 34d3ba160..8d3815749 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js
@@ -16,15 +16,17 @@
RED.palette.editor = (function() {
var disabled = false;
-
+ let catalogues = []
+ const loadedCatalogs = []
var editorTabs;
- var filterInput;
- var searchInput;
- var nodeList;
- var packageList;
- var loadedList = [];
- var filteredList = [];
- var loadedIndex = {};
+ let filterInput;
+ let searchInput;
+ let nodeList;
+ let packageList;
+ let fullList = []
+ let loadedList = [];
+ let filteredList = [];
+ let loadedIndex = {};
var typesInUse = {};
var nodeEntries = {};
@@ -162,7 +164,6 @@ RED.palette.editor = (function() {
}
}
-
function getContrastingBorder(rgbColor){
var parts = /^rgba?\(\s*(\d+),\s*(\d+),\s*(\d+)[,)]/.exec(rgbColor);
if (parts) {
@@ -369,10 +370,10 @@ RED.palette.editor = (function() {
var activeSort = sortModulesRelevance;
function handleCatalogResponse(err,catalog,index,v) {
+ const url = catalog.url
catalogueLoadStatus.push(err||v);
if (!err) {
if (v.modules) {
- var a = false;
v.modules = v.modules.filter(function(m) {
if (RED.utils.checkModuleAllowed(m.id,m.version,installAllowList,installDenyList)) {
loadedIndex[m.id] = m;
@@ -389,13 +390,14 @@ RED.palette.editor = (function() {
m.timestamp = 0;
}
m.index = m.index.join(",").toLowerCase();
+ m.catalog = catalog;
+ m.catalogIndex = index;
return true;
}
return false;
})
loadedList = loadedList.concat(v.modules);
}
- searchInput.searchBox('count',loadedList.length);
} else {
catalogueLoadErrors = true;
}
@@ -404,7 +406,7 @@ RED.palette.editor = (function() {
}
if (catalogueLoadStatus.length === catalogueCount) {
if (catalogueLoadErrors) {
- RED.notify(RED._('palette.editor.errors.catalogLoadFailed',{url: catalog}),"error",false,8000);
+ RED.notify(RED._('palette.editor.errors.catalogLoadFailed',{url: url}),"error",false,8000);
}
var delta = 250-(Date.now() - catalogueLoadStart);
setTimeout(function() {
@@ -416,12 +418,13 @@ RED.palette.editor = (function() {
function initInstallTab() {
if (loadedList.length === 0) {
+ fullList = [];
loadedList = [];
loadedIndex = {};
packageList.editableList('empty');
$(".red-ui-palette-module-shade-status").text(RED._('palette.editor.loading'));
- var catalogues = RED.settings.theme('palette.catalogues')||['https://catalogue.nodered.org/catalogue.json'];
+
catalogueLoadStatus = [];
catalogueLoadErrors = false;
catalogueCount = catalogues.length;
@@ -431,27 +434,97 @@ RED.palette.editor = (function() {
$("#red-ui-palette-module-install-shade").show();
catalogueLoadStart = Date.now();
var handled = 0;
- catalogues.forEach(function(catalog,index) {
- $.getJSON(catalog, {_: new Date().getTime()},function(v) {
- handleCatalogResponse(null,catalog,index,v);
+ loadedCatalogs.length = 0; // clear the loadedCatalogs array
+ for (let index = 0; index < catalogues.length; index++) {
+ const url = catalogues[index];
+ $.getJSON(url, {_: new Date().getTime()},function(v) {
+ loadedCatalogs.push({ index: index, url: url, name: v.name, updated_at: v.updated_at, modules_count: (v.modules || []).length })
+ handleCatalogResponse(null,{ url: url, name: v.name},index,v);
refreshNodeModuleList();
}).fail(function(jqxhr, textStatus, error) {
- console.warn("Error loading catalog",catalog,":",error);
- handleCatalogResponse(jqxhr,catalog,index);
+ console.warn("Error loading catalog",url,":",error);
+ handleCatalogResponse(jqxhr,url,index);
}).always(function() {
handled++;
if (handled === catalogueCount) {
- searchInput.searchBox('change');
+ //sort loadedCatalogs by e.index ascending
+ loadedCatalogs.sort((a, b) => a.index - b.index)
+ updateCatalogFilter(loadedCatalogs)
}
})
- });
+ }
}
}
+ /**
+ * Refreshes the catalog filter dropdown and updates local variables
+ * @param {[{url:String, name:String, updated_at:String, modules_count:Number}]} catalogEntries
+ */
+ function updateCatalogFilter(catalogEntries, maxRetry = 3) {
+ // clean up existing filters
+ const catalogSelection = $('#red-catalogue-filter-select')
+ if (catalogSelection.length === 0) {
+ // sidebar not yet loaded (red-catalogue-filter-select is not in dom)
+ if (maxRetry > 0) {
+ // console.log("updateCatalogFilter: sidebar not yet loaded, retrying in 100ms")
+ // try again in 100ms
+ setTimeout(() => {
+ updateCatalogFilter(catalogEntries, maxRetry - 1)
+ }, 100);
+ return;
+ }
+ return; // give up
+ }
+ catalogSelection.off("change") // remove any existing event handlers
+ catalogSelection.attr('disabled', 'disabled')
+ catalogSelection.empty()
+ catalogSelection.append($('', { value: "loading", text: RED._('palette.editor.loading'), disabled: true, selected: true }));
+
+ fullList = loadedList.slice()
+ catalogSelection.empty() // clear the select list
+
+ // loop through catalogTypes, and an option entry per catalog
+ for (let index = 0; index < catalogEntries.length; index++) {
+ const catalog = catalogEntries[index];
+ catalogSelection.append(` ${catalog.name} `)
+ }
+ // select the 1st option in the select list
+ catalogSelection.val(catalogSelection.find('option:first').val())
+
+ // if there is only 1 catalog, hide the select
+ if (catalogEntries.length > 1) {
+ catalogSelection.prepend(`${RED._('palette.editor.allCatalogs')} `)
+ catalogSelection.val('all')
+ catalogSelection.removeAttr('disabled') // permit the user to select a catalog
+ }
+ // refresh the searchInput counter and trigger a change
+ filterByCatalog(catalogSelection.val())
+ searchInput.searchBox('change');
+
+ // hook up the change event handler
+ catalogSelection.on("change", function() {
+ const selectedCatalog = $(this).val();
+ filterByCatalog(selectedCatalog);
+ searchInput.searchBox('change');
+ })
+ }
+
+ function filterByCatalog(selectedCatalog) {
+ if (loadedCatalogs.length <= 1 || selectedCatalog === "all") {
+ loadedList = fullList.slice();
+ } else {
+ loadedList = fullList.filter(function(m) {
+ return (m.catalog.name === selectedCatalog);
+ })
+ }
+ refreshFilteredItems();
+ searchInput.searchBox('count',filteredList.length+" / "+loadedList.length);
+ }
+
function refreshFilteredItems() {
packageList.editableList('empty');
var currentFilter = searchInput.searchBox('value').trim();
- if (currentFilter === ""){
+ if (currentFilter === "" && loadedList.length > 20){
packageList.editableList('addItem',{count:loadedList.length})
return;
}
@@ -462,7 +535,6 @@ RED.palette.editor = (function() {
if (filteredList.length === 0) {
packageList.editableList('addItem',{});
}
-
if (filteredList.length > 10) {
packageList.editableList('addItem',{start:10,more:filteredList.length-10})
}
@@ -492,6 +564,7 @@ RED.palette.editor = (function() {
var updateDenyList = [];
function init() {
+ catalogues = RED.settings.theme('palette.catalogues')||['https://catalogue.nodered.org/catalogue.json']
if (RED.settings.get('externalModules.palette.allowInstall', true) === false) {
return;
}
@@ -669,7 +742,8 @@ RED.palette.editor = (function() {
});
- nodeList = $('',{id:"red-ui-palette-module-list", style:"position: absolute;top: 35px;bottom: 0;left: 0;right: 0px;"}).appendTo(modulesTab).editableList({
+ nodeList = $('',{id:"red-ui-palette-module-list"}).appendTo(modulesTab).editableList({
+ class: "scrollable",
addButton: false,
scrollOnAdd: false,
sort: function(A,B) {
@@ -800,28 +874,27 @@ RED.palette.editor = (function() {
$('',{class:"red-ui-search-empty"}).text(RED._('search.empty')).appendTo(container);
}
}
- });
+ })
}
function createInstallTab(content) {
- var installTab = $('
',{class:"red-ui-palette-editor-tab hide"}).appendTo(content);
-
+ const installTab = $('
',{class:"red-ui-palette-editor-tab", style: "display: none;"}).appendTo(content);
editorTabs.addTab({
id: 'install',
label: RED._('palette.editor.tab-install'),
content: installTab
})
- var toolBar = $('
',{class:"red-ui-palette-editor-toolbar"}).appendTo(installTab);
-
- var searchDiv = $('
',{class:"red-ui-palette-search"}).appendTo(installTab);
+ const toolBar = $('
',{class:"red-ui-palette-editor-toolbar"}).appendTo(installTab);
+
+ const searchDiv = $('
',{class:"red-ui-palette-search"}).appendTo(installTab);
searchInput = $('
')
.appendTo(searchDiv)
.searchBox({
delay: 300,
change: function() {
var searchTerm = $(this).val().trim().toLowerCase();
- if (searchTerm.length > 0) {
+ if (searchTerm.length > 0 || loadedList.length < 20) {
filteredList = loadedList.filter(function(m) {
return (m.index.indexOf(searchTerm) > -1);
}).map(function(f) { return {info:f}});
@@ -831,19 +904,26 @@ RED.palette.editor = (function() {
searchInput.searchBox('count',loadedList.length);
packageList.editableList('empty');
packageList.editableList('addItem',{count:loadedList.length});
-
}
}
});
- $('
').text(RED._("palette.editor.sort")+' ').appendTo(toolBar);
- var sortGroup = $(' ').appendTo(toolBar);
- var sortRelevance = $('').appendTo(sortGroup);
- var sortAZ = $('').appendTo(sortGroup);
- var sortRecent = $('').appendTo(sortGroup);
+ const catalogSelection = $('').appendTo(toolBar);
+ catalogSelection.addClass('red-ui-palette-editor-catalogue-filter');
+
+ const toolBarActions = $('',{class:"red-ui-palette-editor-toolbar-actions"}).appendTo(toolBar);
+
+ $('
').text(RED._("palette.editor.sort")+' ').appendTo(toolBarActions);
+ const sortGroup = $(' ').appendTo(toolBarActions);
+ const sortRelevance = $('').appendTo(sortGroup);
+ const sortAZ = $('').appendTo(sortGroup);
+ const sortRecent = $('').appendTo(sortGroup);
+ RED.popover.tooltip(sortRelevance,RED._("palette.editor.sortRelevance"));
+ RED.popover.tooltip(sortAZ,RED._("palette.editor.sortAZ"));
+ RED.popover.tooltip(sortRecent,RED._("palette.editor.sortRecent"));
- var sortOpts = [
+ const sortOpts = [
{button: sortRelevance, func: sortModulesRelevance},
{button: sortAZ, func: sortModulesAZ},
{button: sortRecent, func: sortModulesRecent}
@@ -861,7 +941,7 @@ RED.palette.editor = (function() {
});
});
- var refreshSpan = $('').appendTo(toolBar);
+ var refreshSpan = $('').appendTo(toolBarActions);
var refreshButton = $('').appendTo(refreshSpan);
refreshButton.on("click", function(e) {
e.preventDefault();
@@ -871,7 +951,8 @@ RED.palette.editor = (function() {
})
RED.popover.tooltip(refreshButton,RED._("palette.editor.refresh"));
- packageList = $('',{style:"position: absolute;top: 79px;bottom: 0;left: 0;right: 0px;"}).appendTo(installTab).editableList({
+ packageList = $('').appendTo(installTab).editableList({
+ class: "scrollable",
addButton: false,
scrollOnAdd: false,
addItem: function(container,i,object) {
@@ -906,6 +987,9 @@ RED.palette.editor = (function() {
var metaRow = $('
').appendTo(headerRow);
$(' '+entry.version+' ').appendTo(metaRow);
$(' '+formatUpdatedAt(entry.updated_at)+' ').appendTo(metaRow);
+ if (loadedCatalogs.length > 1) {
+ $(' ' + (entry.catalog.name || entry.catalog.url) + ' ').appendTo(metaRow);
+ }
var duplicateType = false;
if (entry.types && entry.types.length > 0) {
@@ -952,9 +1036,10 @@ RED.palette.editor = (function() {
}
}
});
+
if (RED.settings.get('externalModules.palette.allowUpload', true) !== false) {
- var uploadSpan = $('').prependTo(toolBar);
+ var uploadSpan = $('').prependTo(toolBarActions);
var uploadButton = $('').appendTo(uploadSpan);
var uploadInput = uploadButton.find('input[type="file"]');
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js b/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js
old mode 100755
new mode 100644
index 9f20cc674..db915fd8b
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js
@@ -171,13 +171,15 @@ RED.palette = (function() {
}
metaData += type;
+ const safeType = type.replace(/'/g,"\\'");
+ const searchType = type.indexOf(' ') > -1 ? '"' + type + '"' : type
+
if (/^subflow:/.test(type)) {
$(' ').appendTo(popOverContent)
}
- var safeType = type.replace(/'/g,"\\'");
+ $(' ').appendTo(popOverContent)
- $(' ').appendTo(popOverContent)
$(' ').appendTo(popOverContent)
$('',{style:"font-size: 0.8em"}).text(metaData).appendTo(popOverContent);
@@ -282,6 +284,7 @@ RED.palette = (function() {
var hoverGroup;
var paletteWidth;
var paletteTop;
+ var dropEnabled;
$(d).draggable({
helper: 'clone',
appendTo: '#red-ui-editor',
@@ -289,6 +292,7 @@ RED.palette = (function() {
revertDuration: 200,
containment:'#red-ui-main-container',
start: function() {
+ dropEnabled = !(RED.nodes.workspace(RED.workspaces.active())?.locked);
paletteWidth = $("#red-ui-palette").width();
paletteTop = $("#red-ui-palette").parent().position().top + $("#red-ui-palette-container").position().top;
hoverGroup = null;
@@ -299,96 +303,100 @@ RED.palette = (function() {
RED.view.focus();
},
stop: function() {
- d3.select('.red-ui-flow-link-splice').classed('red-ui-flow-link-splice',false);
- if (hoverGroup) {
- document.getElementById("group_select_"+hoverGroup.id).classList.remove("red-ui-flow-group-hovered");
+ if (dropEnabled) {
+ d3.select('.red-ui-flow-link-splice').classed('red-ui-flow-link-splice',false);
+ if (hoverGroup) {
+ document.getElementById("group_select_"+hoverGroup.id).classList.remove("red-ui-flow-group-hovered");
+ }
+ if (activeGroup) {
+ document.getElementById("group_select_"+activeGroup.id).classList.remove("red-ui-flow-group-active-hovered");
+ }
+ if (spliceTimer) { clearTimeout(spliceTimer); spliceTimer = null; }
+ if (groupTimer) { clearTimeout(groupTimer); groupTimer = null; }
}
- if (activeGroup) {
- document.getElementById("group_select_"+activeGroup.id).classList.remove("red-ui-flow-group-active-hovered");
- }
- if (spliceTimer) { clearTimeout(spliceTimer); spliceTimer = null; }
- if (groupTimer) { clearTimeout(groupTimer); groupTimer = null; }
},
drag: function(e,ui) {
var paletteNode = getPaletteNode(nt);
ui.originalPosition.left = paletteNode.offset().left;
- mouseX = ui.position.left - paletteWidth + (ui.helper.width()/2) + chart.scrollLeft();
- mouseY = ui.position.top - paletteTop + (ui.helper.height()/2) + chart.scrollTop() + 10;
- if (!groupTimer) {
- groupTimer = setTimeout(function() {
- var mx = mouseX / RED.view.scale();
- var my = mouseY / RED.view.scale();
- var group = RED.view.getGroupAtPoint(mx,my);
- if (group !== hoverGroup) {
- if (hoverGroup) {
- document.getElementById("group_select_"+hoverGroup.id).classList.remove("red-ui-flow-group-hovered");
- }
- if (group) {
- document.getElementById("group_select_"+group.id).classList.add("red-ui-flow-group-hovered");
- }
- hoverGroup = group;
- if (hoverGroup) {
- $(ui.helper).data('group',hoverGroup);
- } else {
- $(ui.helper).removeData('group');
- }
- }
- groupTimer = null;
-
- },200)
- }
- if (def.inputs > 0 && def.outputs > 0) {
- if (!spliceTimer) {
- spliceTimer = setTimeout(function() {
- var nodes = [];
- var bestDistance = Infinity;
- var bestLink = null;
- if (chartSVG.getIntersectionList) {
- var svgRect = chartSVG.createSVGRect();
- svgRect.x = mouseX;
- svgRect.y = mouseY;
- svgRect.width = 1;
- svgRect.height = 1;
- nodes = chartSVG.getIntersectionList(svgRect,chartSVG);
- } else {
- // Firefox doesn't do getIntersectionList and that
- // makes us sad
- nodes = RED.view.getLinksAtPoint(mouseX,mouseY);
- }
+ if (dropEnabled) {
+ mouseX = ui.position.left - paletteWidth + (ui.helper.width()/2) + chart.scrollLeft();
+ mouseY = ui.position.top - paletteTop + (ui.helper.height()/2) + chart.scrollTop() + 10;
+ if (!groupTimer) {
+ groupTimer = setTimeout(function() {
var mx = mouseX / RED.view.scale();
var my = mouseY / RED.view.scale();
- for (var i=0;i 0 && def.outputs > 0) {
+ if (!spliceTimer) {
+ spliceTimer = setTimeout(function() {
+ var nodes = [];
+ var bestDistance = Infinity;
+ var bestLink = null;
+ if (chartSVG.getIntersectionList) {
+ var svgRect = chartSVG.createSVGRect();
+ svgRect.x = mouseX;
+ svgRect.y = mouseY;
+ svgRect.width = 1;
+ svgRect.height = 1;
+ nodes = chartSVG.getIntersectionList(svgRect,chartSVG);
+ } else {
+ // Firefox doesn't do getIntersectionList and that
+ // makes us sad
+ nodes = RED.view.getLinksAtPoint(mouseX,mouseY);
+ }
+ var mx = mouseX / RED.view.scale();
+ var my = mouseY / RED.view.scale();
+ for (var i=0;i'+desc+'
')).appendTo(container);
description.find(".red-ui-text-bidi-aware").contents().filter(function() { return this.nodeType === 3 && this.textContent.trim() !== "" }).wrap( " " );
+ setTimeout(function () {
+ RED.editor.mermaid.render()
+ }, 200);
}
function editSummary(activeProject, summary, container, version, versionContainer) {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js
old mode 100755
new mode 100644
index 190561e15..f32e14c33
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js
@@ -545,7 +545,7 @@ RED.projects = (function() {
var sshwarningRow = $('
').hide().appendTo(subrow);
$(' '+RED._("projects.clone-project.ssh-key-desc")+'
').appendTo(sshwarningRow);
subrow = $('').appendTo(sshwarningRow);
- $('
'+RED._("projects.clone-project.ssh-key-add")+' ').appendTo(subrow).on("click", function(e) {
+ $('
'+RED._("projects.clone-project.ssh-key-add")+' ').appendTo(subrow).on("click", function(e) {
e.preventDefault();
dialog.dialog( "close" );
RED.userSettings.show('gitconfig');
@@ -747,14 +747,14 @@ RED.projects = (function() {
var row = $('
').appendTo(body);
$('
'+RED._("projects.default-files.flow-file")+' ').appendTo(row);
var subrow = $('
').appendTo(row);
- var defaultFlowFile = (createProjectOptions.files &&createProjectOptions.files.flow) || (RED.settings.files && RED.settings.files.flow)||"flow.json";
+ var defaultFlowFile = (createProjectOptions.files &&createProjectOptions.files.flow) || (RED.settings.files && RED.settings.files.flow) || "flows.json";
projectFlowFileInput = $('
').val(defaultFlowFile)
.on("change keyup paste",validateForm)
.appendTo(subrow);
$('
').appendTo(subrow);
$('
*.json ').appendTo(row);
- var defaultCredentialsFile = (createProjectOptions.files &&createProjectOptions.files.credentials) || (RED.settings.files && RED.settings.files.credentials)||"flow_cred.json";
+ var defaultCredentialsFile = (createProjectOptions.files &&createProjectOptions.files.credentials) || (RED.settings.files && RED.settings.files.credentials) || "flows_cred.json";
row = $('
').appendTo(body);
$('
'+RED._("projects.default-files.credentials-file")+' ').appendTo(row);
subrow = $('
').appendTo(row);
@@ -1171,11 +1171,11 @@ RED.projects = (function() {
row = $('
').appendTo(container);
- var openProject = $('
'+RED._("projects.create.open")+'').appendTo(row);
- var createAsEmpty = $('
'+RED._("projects.create.create")+'').appendTo(row);
- // var createAsCopy = $('
Copy existing').appendTo(row);
- var createAsClone = $('
'+RED._("projects.create.clone")+'').appendTo(row);
- // var createAsClone = $('
Clone Repository').appendTo(row);
+ var openProject = $('
'+RED._("projects.create.open")+'').appendTo(row);
+ var createAsEmpty = $('
'+RED._("projects.create.create")+'').appendTo(row);
+ // var createAsCopy = $('
Copy existing').appendTo(row);
+ var createAsClone = $('
'+RED._("projects.create.clone")+'').appendTo(row);
+ // var createAsClone = $('
Clone Repository').appendTo(row);
row.find(".red-ui-projects-dialog-screen-create-type").on("click", function(evt) {
evt.preventDefault();
container.find(".red-ui-projects-dialog-screen-create-type").removeClass('selected');
@@ -1257,7 +1257,7 @@ RED.projects = (function() {
row = $('
').appendTo(container);
$('
'+RED._("projects.create.flow-file")+' ').appendTo(row);
subrow = $('
').appendTo(row);
- projectFlowFileInput = $('
').val("flow.json")
+ projectFlowFileInput = $('
').val("flows.json")
.on("change keyup paste",validateForm)
.appendTo(subrow);
$('
').appendTo(subrow);
@@ -1271,7 +1271,7 @@ RED.projects = (function() {
var credentialsLeftBox = $('
').appendTo(credentialsBox);
var credentialsEnabledBox = $('
').appendTo(credentialsLeftBox);
- $('
'+RED._("projects.encryption-config.enable")+' ').appendTo(credentialsEnabledBox);
+ $('
'+RED._("projects.encryption-config.enable")+' ').appendTo(credentialsEnabledBox);
var credentialsDisabledBox = $('
').appendTo(credentialsLeftBox);
$('
'+RED._("projects.encryption-config.disable")+' ').appendTo(credentialsDisabledBox);
@@ -1397,7 +1397,7 @@ RED.projects = (function() {
var sshwarningRow = $('
').hide().appendTo(subrow);
$('
'+RED._("projects.create.desc2")+'
').appendTo(sshwarningRow);
subrow = $('
').appendTo(sshwarningRow);
- $('
'+RED._("projects.create.add-ssh-key")+' ').appendTo(subrow).on("click", function(e) {
+ $('
'+RED._("projects.create.add-ssh-key")+' ').appendTo(subrow).on("click", function(e) {
e.preventDefault();
$('#red-ui-projects-dialog-cancel').trigger("click");
RED.userSettings.show('gitconfig');
@@ -1631,14 +1631,14 @@ RED.projects = (function() {
function deleteProject(row,name,done) {
var cover = $('
').on("click", function(evt) { evt.stopPropagation(); }).appendTo(row);
$('
').text(RED._("projects.delete.confirm")).appendTo(cover);
- $(''+RED._("common.label.cancel")+' ')
+ $(''+RED._("common.label.cancel")+' ')
.appendTo(cover)
.on("click", function(e) {
e.stopPropagation();
cover.remove();
done(true);
});
- $(''+RED._("common.label.delete")+' ')
+ $(''+RED._("common.label.delete")+' ')
.appendTo(cover)
.on("click", function(e) {
e.stopPropagation();
@@ -1822,7 +1822,7 @@ RED.projects = (function() {
header.addClass("selectable");
var tools = $('
').appendTo(header);
- $(' ')
+ $(' ')
.appendTo(tools)
.on("click", function(e) {
e.stopPropagation();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/search.js b/packages/node_modules/@node-red/editor-client/src/js/ui/search.js
index 217fb5a4e..3903a4a0a 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/search.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/search.js
@@ -106,38 +106,51 @@ RED.search = (function() {
return val;
}
- function search(val) {
- var results = [];
- var typeFilter;
- var m = /(?:^| )type:([^ ]+)/.exec(val);
- if (m) {
- val = val.replace(/(?:^| )type:[^ ]+/,"");
- typeFilter = m[1];
+ function extractType(val, flags) {
+ // extracts: type:XYZ & type:"X Y Z"
+ const regEx = /(?:type):\s*(?:"([^"]+)"|([^" ]+))/;
+ let m
+ while ((m = regEx.exec(val)) !== null) {
+ // avoid infinite loops with zero-width matches
+ if (m.index === regEx.lastIndex) {
+ regEx.lastIndex++;
+ }
+ val = val.replace(m[0]," ").trim()
+ const flag = m[2] || m[1] // quoted entries in capture group 1, unquoted in capture group 2
+ flags.type = flags.type || [];
+ flags.type.push(flag);
}
- var flags = {};
+ return val;
+ }
+
+ function search(val) {
+ const results = [];
+ const flags = {};
val = extractFlag(val,"invalid",flags);
val = extractFlag(val,"unused",flags);
val = extractFlag(val,"config",flags);
val = extractFlag(val,"subflow",flags);
val = extractFlag(val,"hidden",flags);
val = extractFlag(val,"modified",flags);
- val = extractValue(val,"flow",flags);// flow:active or flow:
+ val = extractValue(val,"flow",flags);// flow:current or flow:
val = extractValue(val,"uses",flags);// uses:
+ val = extractType(val,flags);// type:
val = val.trim();
- var hasFlags = Object.keys(flags).length > 0;
+ const hasFlags = Object.keys(flags).length > 0;
+ const hasTypeFilter = flags.type && flags.type.length > 0
if (flags.flow && flags.flow.indexOf("current") >= 0) {
let idx = flags.flow.indexOf("current");
- flags.flow[idx] = RED.workspaces.active();//convert active to flow ID
+ flags.flow[idx] = RED.workspaces.active();//convert 'current' to active flow ID
}
if (flags.flow && flags.flow.length) {
flags.flow = [ ...new Set(flags.flow) ]; //deduplicate
}
- if (val.length > 0 || typeFilter || hasFlags) {
+ if (val.length > 0 || hasFlags) {
val = val.toLowerCase();
- var i;
- var j;
- var list = [];
- var nodes = {};
+ let i;
+ let j;
+ let list = [];
+ const nodes = {};
let keys = [];
if (flags.uses) {
keys = flags.uses;
@@ -145,10 +158,10 @@ RED.search = (function() {
keys = Object.keys(index);
}
for (i=0;i -1) {
- var ids = Object.keys(index[key]||{});
+ const key = keys[i];
+ const kpos = val ? keys[i].indexOf(val) : -1;
+ if (kpos > -1 || (val === "" && hasFlags)) {
+ const ids = Object.keys(index[key]||{});
for (j=0;j -1) {
+ nodes[node.node.id] = nodes[node.node.id] || {
node: node.node,
label: node.label
};
- nodes[node.node.id].index = Math.min(nodes[node.node.id].index||Infinity,kpos);
+ nodes[node.node.id].index = Math.min(nodes[node.node.id].index || Infinity, typeIndex > -1 ? typeIndex : kpos);
}
}
}
@@ -538,7 +555,7 @@ RED.search = (function() {
$(previousActiveElement).trigger("focus");
}
previousActiveElement = null;
- }
+ }
if(!keepSearchToolbar) {
clearActiveSearch();
}
@@ -630,7 +647,7 @@ RED.search = (function() {
$("#red-ui-sidebar-shade").on('mousedown',hide);
$("#red-ui-view-searchtools-close").on("click", function close() {
- clearActiveSearch();
+ clearActiveSearch();
updateSearchToolbar();
});
$("#red-ui-view-searchtools-close").trigger("click");
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js
index 3aeb7151f..a06f8bca4 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js
@@ -46,7 +46,9 @@ RED.subflow = (function() {
'';
function findAvailableSubflowIOPosition(subflow,isInput) {
- var pos = {x:50,y:30};
+ const scrollPos = RED.view.scroll()
+ const scaleFactor = RED.view.scale()
+ var pos = { x: (scrollPos[0]/scaleFactor)+50, y: (scrollPos[1]/scaleFactor)+30 };
if (!isInput) {
pos.x += 110;
}
@@ -273,6 +275,11 @@ RED.subflow = (function() {
var subflowInstances = [];
if (activeSubflow) {
RED.nodes.filterNodes({type:"subflow:"+activeSubflow.id}).forEach(function(n) {
+ const parentFlow = RED.nodes.workspace(n.z)
+ const wasLocked = parentFlow && parentFlow.locked
+ if (wasLocked) {
+ parentFlow.locked = false
+ }
subflowInstances.push({
id: n.id,
changed: n.changed
@@ -285,6 +292,9 @@ RED.subflow = (function() {
n.resize = true;
n.dirty = true;
RED.editor.updateNodeProperties(n);
+ if (wasLocked) {
+ parentFlow.locked = true
+ }
});
RED.editor.validateNode(activeSubflow);
return {
@@ -431,44 +441,7 @@ RED.subflow = (function() {
$("#red-ui-subflow-delete").on("click", function(event) {
event.preventDefault();
- var subflow = RED.nodes.subflow(RED.workspaces.active());
- if (subflow.instances.length > 0) {
- var msg = $('')
- $('
').text(RED._("subflow.subflowInstances",{count: subflow.instances.length})).appendTo(msg);
- $('
').text(RED._("subflow.confirmDelete")).appendTo(msg);
- var confirmDeleteNotification = RED.notify(msg, {
- modal: true,
- fixed: true,
- buttons: [
- {
- text: RED._('common.label.cancel'),
- click: function() {
- confirmDeleteNotification.close();
- }
- },
- {
- text: RED._('workspace.confirmDelete'),
- class: "primary",
- click: function() {
- confirmDeleteNotification.close();
- completeDelete();
- }
- }
- ]
- });
-
- return;
- } else {
- completeDelete();
- }
- function completeDelete() {
- var startDirty = RED.nodes.dirty();
- var historyEvent = removeSubflow(RED.workspaces.active());
- historyEvent.t = 'delete';
- historyEvent.dirty = startDirty;
- RED.history.push(historyEvent);
- }
-
+ RED.subflow.delete(RED.workspaces.active())
});
refreshToolbar(activeSubflow);
@@ -481,7 +454,51 @@ RED.subflow = (function() {
$("#red-ui-workspace-toolbar").hide().empty();
$("#red-ui-workspace-chart").css({"margin-top": "0"});
}
+ function deleteSubflow(id) {
+ const subflow = RED.nodes.subflow(id || RED.workspaces.active());
+ if (!subflow) {
+ return
+ }
+ if (subflow.instances.length > 0) {
+ if (subflow.instances.some(sf => { const ws = RED.nodes.workspace(sf.z); return ws?ws.locked:false })) {
+ return
+ }
+ const msg = $('
')
+ $('
').text(RED._("subflow.subflowInstances",{count: subflow.instances.length})).appendTo(msg);
+ $('
').text(RED._("subflow.confirmDelete")).appendTo(msg);
+ const confirmDeleteNotification = RED.notify(msg, {
+ modal: true,
+ fixed: true,
+ buttons: [
+ {
+ text: RED._('common.label.cancel'),
+ click: function() {
+ confirmDeleteNotification.close();
+ }
+ },
+ {
+ text: RED._('workspace.confirmDelete'),
+ class: "primary",
+ click: function() {
+ confirmDeleteNotification.close();
+ completeDelete();
+ }
+ }
+ ]
+ });
+ return;
+ } else {
+ completeDelete();
+ }
+ function completeDelete() {
+ const startDirty = RED.nodes.dirty();
+ const historyEvent = removeSubflow(subflow.id);
+ historyEvent.t = 'delete';
+ historyEvent.dirty = startDirty;
+ RED.history.push(historyEvent);
+ }
+ }
function removeSubflow(id, keepInstanceNodes) {
// TODO: A lot of this logic is common with RED.nodes.removeWorkspace
var removedNodes = [];
@@ -506,6 +523,13 @@ RED.subflow = (function() {
RED.nodes.groups(id).forEach(function(n) {
removedGroups.push(n);
})
+
+ var removedJunctions = RED.nodes.junctions(id)
+ for (var i=0;i
').appendTo(parent);
var header = $('').appendTo(container);
+ let lockIcon
if (label) {
+ lockIcon = $('
').appendTo(header)
+ lockIcon.toggle(!!isLocked)
$('
').text(label).appendTo(header);
} else {
$('
').appendTo(header);
@@ -62,6 +65,7 @@ RED.sidebar.config = (function() {
var icon = header.find("i");
var result = {
label: label,
+ lockIcon,
list: category,
size: function() {
return result.list.find("li:not(.red-ui-palette-node-config-none)").length
@@ -100,6 +104,9 @@ RED.sidebar.config = (function() {
});
categories[name] = result;
} else {
+ if (isLocked !== undefined && categories[name].lockIcon) {
+ categories[name].lockIcon.toggle(!!isLocked)
+ }
if (categories[name].label !== label) {
categories[name].list.parent().find('.red-ui-palette-node-config-label').text(label);
categories[name].label = label;
@@ -138,17 +145,19 @@ RED.sidebar.config = (function() {
} else {
var currentType = "";
nodes.forEach(function(node) {
- var label = RED.utils.getNodeLabel(node,node.id);
+ var labelText = RED.utils.getNodeLabel(node,node.id);
if (node.type != currentType) {
$(''+node.type+' ').appendTo(list);
currentType = node.type;
}
-
+ if (node.changed) {
+ labelText += "!!"
+ }
var entry = $(' ').appendTo(list);
var nodeDiv = $('
').appendTo(entry);
entry.data('node',node.id);
nodeDiv.data('node',node.id);
- var label = $('
').text(label).appendTo(nodeDiv);
+ var label = $('
').text(labelText).appendTo(nodeDiv);
if (node.d) {
nodeDiv.addClass("red-ui-palette-node-config-disabled");
$(' ').prependTo(label);
@@ -216,7 +225,7 @@ RED.sidebar.config = (function() {
RED.nodes.eachWorkspace(function(ws) {
validList[ws.id.replace(/\./g,"-")] = true;
- getOrCreateCategory(ws.id,flowCategories,ws.label);
+ getOrCreateCategory(ws.id,flowCategories,ws.label, ws.locked);
})
RED.nodes.eachSubflow(function(sf) {
validList[sf.id.replace(/\./g,"-")] = true;
@@ -274,6 +283,15 @@ RED.sidebar.config = (function() {
changes: {},
dirty: RED.nodes.dirty()
}
+ for (let i = 0; i < selectedNodes.length; i++) {
+ let node = RED.nodes.node(selectedNodes[i])
+ if (node.z) {
+ let ws = RED.nodes.workspace(node.z)
+ if (ws && ws.locked) {
+ return
+ }
+ }
+ }
selectedNodes.forEach(function(id) {
var node = RED.nodes.node(id);
try {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js
index 9994d5000..0d8ba103f 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js
@@ -218,11 +218,11 @@ RED.sidebar.context = (function() {
var obj = $(propRow.children()[0]);
obj.text(k);
var tools = $(' ');
-
+ const urlSafeK = encodeURIComponent(k)
var refreshItem = $(' ').appendTo(tools).on("click", function(e) {
e.preventDefault();
e.stopPropagation();
- $.getJSON(baseUrl+"/"+k+"?store="+v.store, function(data) {
+ $.getJSON(baseUrl+"/"+urlSafeK+"?store="+v.store, function(data) {
if (data.msg !== payload || data.format !== format) {
payload = data.msg;
format = data.format;
@@ -258,11 +258,12 @@ RED.sidebar.context = (function() {
$(' ').appendTo(bg).on("click", function(e) {
e.preventDefault();
popover.close();
+ const urlSafeK = encodeURIComponent(k)
$.ajax({
- url: baseUrl+"/"+k+"?store="+v.store,
+ url: baseUrl+"/"+urlSafeK+"?store="+v.store,
type: "DELETE"
}).done(function(data,textStatus,xhr) {
- $.getJSON(baseUrl+"/"+k+"?store="+v.store, function(data) {
+ $.getJSON(baseUrl+"/"+urlSafeK+"?store="+v.store, function(data) {
if (data.format === 'undefined') {
propRow.remove();
if (container.children().length === 0) {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js
index e5199b5bc..bf66611b1 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js
@@ -50,7 +50,7 @@ RED.sidebar.help = (function() {
tocPanel = $("", {class: "red-ui-sidebar-help-toc"}).appendTo(stackContainer);
var helpPanel = $("
").css({
- "overflow-y": "scroll"
+ "overflow-y": "auto"
}).appendTo(stackContainer);
panels = RED.panels.create({
@@ -141,7 +141,8 @@ RED.sidebar.help = (function() {
RED.events.on('registry:node-type-removed', queueRefresh);
RED.events.on('subflows:change', refreshSubflow);
- RED.actions.add("core:show-help-tab",show);
+ RED.actions.add("core:show-help-tab", show);
+ RED.actions.add("core:show-node-help", showNodeHelp)
}
@@ -338,6 +339,19 @@ RED.sidebar.help = (function() {
resizeStack();
}
+ function showNodeHelp(node) {
+ if (!node) {
+ const selection = RED.view.selection()
+ if (selection.nodes && selection.nodes.length > 0) {
+ node = selection.nodes.find(n => n.type !== 'group' && n.type !== 'junction')
+ }
+ }
+ if (node) {
+ show(node.type, true)
+ }
+ }
+
+
// TODO: DRY - projects.js
function addTargetToExternalLinks(el) {
$(el).find("a").each(function(el) {
@@ -369,6 +383,7 @@ RED.sidebar.help = (function() {
$(this).toggleClass('expanded',!isExpanded);
})
helpSection.parent().scrollTop(0);
+ RED.editor.mermaid.render()
}
function set(html,title) {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js
index 32491f297..7f2ed78be 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js
@@ -135,6 +135,10 @@ RED.sidebar.info.outliner = (function() {
RED.workspaces.show(n.id, null, true);
}
});
+ RED.popover.tooltip(toggleVisibleButton, function () {
+ var isHidden = !div.hasClass("red-ui-info-outline-item-hidden");
+ return RED._("sidebar.info." + (isHidden ? "hideFlow" : "showFlow"));
+ });
}
if (n.type !== 'subflow') {
var toggleButton = $('
').appendTo(controls).on("click",function(evt) {
@@ -221,6 +225,22 @@ RED.sidebar.info.outliner = (function() {
} else {
$('
').appendTo(controls)
}
+ if (n.type === 'tab') {
+ var lockToggleButton = $('
').appendTo(controls).on("click",function(evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ if (n.locked) {
+ RED.workspaces.unlock(n.id)
+ } else {
+ RED.workspaces.lock(n.id)
+ }
+ })
+ RED.popover.tooltip(lockToggleButton,function() {
+ return RED._("common.label."+(n.locked?"unlock":"lock"));
+ });
+ } else {
+ $('
').appendTo(controls)
+ }
controls.find("button").on("dblclick", function(evt) {
evt.preventDefault();
evt.stopPropagation();
@@ -364,6 +384,8 @@ RED.sidebar.info.outliner = (function() {
flowList.treeList.addChild(objects[ws.id])
objects[ws.id].element.toggleClass("red-ui-info-outline-item-disabled", !!ws.disabled)
objects[ws.id].treeList.container.toggleClass("red-ui-info-outline-item-disabled", !!ws.disabled)
+ objects[ws.id].element.toggleClass("red-ui-info-outline-item-locked", !!ws.locked)
+ objects[ws.id].treeList.container.toggleClass("red-ui-info-outline-item-locked", !!ws.locked)
updateSearch();
}
@@ -378,6 +400,8 @@ RED.sidebar.info.outliner = (function() {
existingObject.element.find(".red-ui-info-outline-item-label").text(label);
existingObject.element.toggleClass("red-ui-info-outline-item-disabled", !!n.disabled)
existingObject.treeList.container.toggleClass("red-ui-info-outline-item-disabled", !!n.disabled)
+ existingObject.element.toggleClass("red-ui-info-outline-item-locked", !!n.locked)
+ existingObject.treeList.container.toggleClass("red-ui-info-outline-item-locked", !!n.locked)
updateSearch();
}
function onFlowsReorder(order) {
@@ -613,6 +637,9 @@ RED.sidebar.info.outliner = (function() {
objects[n.id].children = missingParents[n.id];
delete missingParents[n.id]
}
+ if (objects[n.id].children.length === 0) {
+ objects[n.id].children.push(getEmptyItem(n.id));
+ }
}
var parent = n.g||n.z||"__global__";
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js
index dfd4b1e43..f72a7b3f2 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js
@@ -25,6 +25,7 @@ RED.sidebar.info = (function() {
var propertiesPanelHeaderLabel;
var propertiesPanelHeaderReveal;
var propertiesPanelHeaderHelp;
+ var propertiesPanelHeaderCopyLink;
var selectedObject;
@@ -67,10 +68,20 @@ RED.sidebar.info = (function() {
propertiesPanelHeaderIcon = $("
").appendTo(propertiesPanelHeader);
propertiesPanelHeaderLabel = $("").appendTo(propertiesPanelHeader);
- propertiesPanelHeaderHelp = $(' ').css({
+
+ propertiesPanelHeaderCopyLink = $(' ').css({
position: 'absolute',
top: '12px',
right: '32px'
+ }).on("click", function(evt) {
+ RED.actions.invoke('core:copy-item-url',selectedObject)
+ }).appendTo(propertiesPanelHeader);
+ RED.popover.tooltip(propertiesPanelHeaderCopyLink,RED._("sidebar.info.copyItemUrl"));
+
+ propertiesPanelHeaderHelp = $(' ').css({
+ position: 'absolute',
+ top: '12px',
+ right: '56px'
}).on("click", function(evt) {
evt.preventDefault();
evt.stopPropagation();
@@ -80,8 +91,7 @@ RED.sidebar.info = (function() {
}).appendTo(propertiesPanelHeader);
RED.popover.tooltip(propertiesPanelHeaderHelp,RED._("sidebar.help.showHelp"));
-
- propertiesPanelHeaderReveal = $(' ').css({
+ propertiesPanelHeaderReveal = $(' ').css({
position: 'absolute',
top: '12px',
right: '8px'
@@ -98,7 +108,7 @@ RED.sidebar.info = (function() {
propertiesPanelContent = $("").css({
"flex":"1 1 auto",
- "overflow-y":"scroll",
+ "overflow-y":"auto",
}).appendTo(propertiesPanel);
@@ -185,6 +195,7 @@ RED.sidebar.info = (function() {
propertiesPanelHeaderLabel.text("");
propertiesPanelHeaderReveal.hide();
propertiesPanelHeaderHelp.hide();
+ propertiesPanelHeaderCopyLink.hide();
return;
} else if (Array.isArray(node)) {
// Multiple things selected
@@ -196,6 +207,7 @@ RED.sidebar.info = (function() {
propertiesPanelHeaderLabel.text("Selection");
propertiesPanelHeaderReveal.hide();
propertiesPanelHeaderHelp.hide();
+ propertiesPanelHeaderCopyLink.hide();
selectedObject = null;
var types = {
@@ -277,9 +289,11 @@ RED.sidebar.info = (function() {
if (node.type === "tab" || node.type === "subflow") {
// If nothing is selected, but we're on a flow or subflow tab.
propertiesPanelHeaderHelp.hide();
+ propertiesPanelHeaderCopyLink.show();
} else if (node.type === "group") {
propertiesPanelHeaderHelp.hide();
+ propertiesPanelHeaderCopyLink.show();
propRow = $('
').appendTo(tableBody);
@@ -304,8 +318,10 @@ RED.sidebar.info = (function() {
}
} else if (node.type === 'junction') {
propertiesPanelHeaderHelp.hide();
+ propertiesPanelHeaderCopyLink.hide();
} else {
propertiesPanelHeaderHelp.show();
+ propertiesPanelHeaderCopyLink.show();
if (!subflowRegex) {
propRow = $('
'+RED._("sidebar.info.type")+' ').appendTo(tableBody);
@@ -447,7 +463,8 @@ RED.sidebar.info = (function() {
el = el.next();
}
$(this).toggleClass('expanded',!isExpanded);
- })
+ });
+ RED.editor.mermaid.render()
}
var tips = (function() {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js
index 913582c10..7d16e640b 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js
@@ -436,18 +436,23 @@ RED.tourGuide = (function() {
function listTour() {
return [
{
- id: "3_0",
- label: "3.0.0-beta.4",
+ id: "3_1",
+ label: "3.1",
path: "./tours/welcome.js"
},
+ {
+ id: "3_0",
+ label: "3.0",
+ path: "./tours/3.0/welcome.js"
+ },
{
id: "2_2",
- label: "2.2.0",
+ label: "2.2",
path: "./tours/2.2/welcome.js"
},
{
id: "2_1",
- label: "2.1.0",
+ label: "2.1",
path: "./tours/2.1/welcome.js"
}
];
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js b/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js
index fc5b8e99e..4f47d4674 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js
@@ -269,8 +269,8 @@ RED.typeSearch = (function() {
moveCallback = opts.move;
RED.events.emit("type-search:open");
//shade.show();
- if ($("#red-ui-main-container").height() - opts.y - 150 < 0) {
- opts.y = opts.y - 235;
+ if ($("#red-ui-main-container").height() - opts.y - 195 < 0) {
+ opts.y = opts.y - 275;
}
dialog.css({left:opts.x+"px",top:opts.y+"px"}).show();
searchResultsDiv.slideDown(300);
@@ -362,6 +362,7 @@ RED.typeSearch = (function() {
items.push({type:t,def: def, label:getTypeLabel(t,def)});
}
});
+ items.push({ type: 'junction', def: { inputs:1, outputs: 1, label: 'junction', type: 'junction'}, label: 'junction' })
items.sort(sortTypeLabels);
var commonCount = 0;
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js b/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js
index 2c4cdca6b..b08448e23 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js
@@ -96,6 +96,17 @@ RED.utils = (function() {
}
}
+ var mermaidIsInitialized = false;
+ var mermaidIsEnabled /* = undefined */;
+
+ renderer.code = function (code, lang) {
+ if(lang === "mermaid") {
+ return `
${code} `;
+ } else {
+ return "
" +code +"
";
+ }
+ };
+
window._marked.setOptions({
renderer: renderer,
gfm: true,
@@ -886,6 +897,51 @@ RED.utils = (function() {
}
}
+ /**
+ * Checks a typed property is valid according to the type.
+ * Returns true if valid.
+ * Return String error message if invalid
+ * @param {*} propertyType
+ * @param {*} propertyValue
+ * @returns true if valid, String if invalid
+ */
+ function validateTypedProperty(propertyValue, propertyType, opt) {
+
+ let error
+ if (propertyType === 'json') {
+ try {
+ JSON.parse(propertyValue);
+ } catch(err) {
+ error = RED._("validator.errors.invalid-json", {
+ error: err.message
+ })
+ }
+ } else if (propertyType === 'msg' || propertyType === 'flow' || propertyType === 'global' ) {
+ if (!RED.utils.validatePropertyExpression(propertyValue)) {
+ error = RED._("validator.errors.invalid-prop")
+ }
+ } else if (propertyType === 'num') {
+ if (!/^[+-]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$/.test(propertyValue)) {
+ error = RED._("validator.errors.invalid-num")
+ }
+ } else if (propertyType === 'jsonata') {
+ try {
+ jsonata(propertyValue)
+ } catch(err) {
+ error = RED._("validator.errors.invalid-expr", {
+ error: err.message
+ })
+ }
+ }
+ if (error) {
+ if (opt && opt.label) {
+ return opt.label+': '+error
+ }
+ return error
+ }
+ return true
+ }
+
function getMessageProperty(msg,expr) {
var result = null;
var msgPropParts;
@@ -1420,6 +1476,7 @@ RED.utils = (function() {
getDarkerColor: getDarkerColor,
parseModuleList: parseModuleList,
checkModuleAllowed: checkModuleAllowed,
- getBrowserInfo: getBrowserInfo
+ getBrowserInfo: getBrowserInfo,
+ validateTypedProperty: validateTypedProperty
}
})();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view-navigator.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view-navigator.js
index a3001e474..6450d45bd 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/view-navigator.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view-navigator.js
@@ -17,9 +17,9 @@
RED.view.navigator = (function() {
- var nav_scale = 25;
- var nav_width = 5000/nav_scale;
- var nav_height = 5000/nav_scale;
+ var nav_scale = 50;
+ var nav_width = 8000/nav_scale;
+ var nav_height = 8000/nav_scale;
var navContainer;
var navBox;
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js
index 2bec5669c..f503beecb 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js
@@ -15,7 +15,7 @@
**/
RED.view.tools = (function() {
-
+ 'use strict';
function selectConnected(type) {
var selection = RED.view.selection();
var visited = new Set();
@@ -39,6 +39,9 @@ RED.view.tools = (function() {
}
function alignToGrid() {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
var selection = RED.view.selection();
if (selection.nodes) {
var changedNodes = [];
@@ -87,6 +90,9 @@ RED.view.tools = (function() {
}
function moveSelection(dx,dy) {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
if (moving_set === null) {
moving_set = [];
var selection = RED.view.selection();
@@ -153,6 +159,9 @@ RED.view.tools = (function() {
}
function setSelectedNodeLabelState(labelShown) {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
var selection = RED.view.selection();
var historyEvents = [];
var nodes = [];
@@ -439,6 +448,9 @@ RED.view.tools = (function() {
}
function alignSelectionToEdge(direction) {
+ if (RED.workspaces.isLocked()) {
+ return;
+ }
var selection = RED.view.selection();
if (selection.nodes && selection.nodes.length > 1) {
@@ -539,8 +551,10 @@ RED.view.tools = (function() {
}
}
-
function distributeSelection(direction) {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
var selection = RED.view.selection();
if (selection.nodes && selection.nodes.length > 2) {
@@ -699,14 +713,16 @@ RED.view.tools = (function() {
}
function reorderSelection(dir) {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
var selection = RED.view.selection();
if (selection.nodes) {
var nodesToMove = [];
selection.nodes.forEach(function(n) {
if (n.type === "group") {
- nodesToMove = nodesToMove.concat(RED.group.getNodes(n, true).filter(function(n) {
- return n.type !== "group";
- }))
+ nodesToMove.push(n)
+ nodesToMove = nodesToMove.concat(RED.group.getNodes(n, true))
} else if (n.type !== "subflow"){
nodesToMove.push(n);
}
@@ -734,8 +750,10 @@ RED.view.tools = (function() {
}
}
-
function wireSeriesOfNodes() {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
var selection = RED.view.selection();
if (selection.nodes) {
if (selection.nodes.length > 1) {
@@ -776,6 +794,9 @@ RED.view.tools = (function() {
}
function wireNodeToMultiple() {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
var selection = RED.view.selection();
if (selection.nodes) {
if (selection.nodes.length > 1) {
@@ -818,12 +839,73 @@ RED.view.tools = (function() {
}
}
+ function wireMultipleToNode() {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
+ var selection = RED.view.selection();
+ if (selection.nodes) {
+ if (selection.nodes.length > 1) {
+ var targetNode = selection.nodes[selection.nodes.length - 1];
+ if (targetNode.inputs === 0) {
+ return;
+ }
+ var i = 0;
+ var newLinks = [];
+ for (i = 0; i < selection.nodes.length - 1; i++) {
+ var sourceNode = selection.nodes[i];
+ if (sourceNode.outputs > 0) {
+
+ // Wire the first output to the target that has no link to the target yet.
+ // This allows for connecting all combinations of inputs/outputs.
+ // The user may then delete links quickly that aren't needed.
+ var sourceConnectedOutports = RED.nodes.filterLinks({
+ source: sourceNode,
+ target: targetNode
+ });
+
+ // Get outport indices that have no link yet
+ var sourceOutportIndices = Array.from({ length: sourceNode.outputs }, (_, i) => i);
+ var sourceConnectedOutportIndices = sourceConnectedOutports.map( x => x.sourcePort );
+ var sourceFreeOutportIndices = sourceOutportIndices.filter(x => !sourceConnectedOutportIndices.includes(x));
+
+ // Does an unconnected source port exist?
+ if (sourceFreeOutportIndices.length == 0) {
+ continue;
+ }
+
+ // Connect the first free outport to the target
+ var newLink = {
+ source: sourceNode,
+ target: targetNode,
+ sourcePort: sourceFreeOutportIndices[0]
+ }
+ RED.nodes.addLink(newLink);
+ newLinks.push(newLink);
+ }
+ }
+ if (newLinks.length > 0) {
+ RED.history.push({
+ t: 'add',
+ links: newLinks,
+ dirty: RED.nodes.dirty()
+ })
+ RED.nodes.dirty(true);
+ RED.view.redraw(true);
+ }
+ }
+ }
+ }
+
/**
* Splits selected wires and re-joins them with link-out+link-in
* @param {Object || Object[]} wires The wire(s) to split and replace with link-out, link-in nodes.
*/
function splitWiresWithLinkNodes(wires) {
- let wiresToSplit = wires || RED.view.selection().links;
+ if (RED.workspaces.isLocked()) {
+ return
+ }
+ let wiresToSplit = wires || (RED.view.selection().links && RED.view.selection().links.filter(e => !e.link));
if (!wiresToSplit) {
return
}
@@ -877,7 +959,6 @@ RED.view.tools = (function() {
if(!nnLinkOut) {
const nLinkOut = RED.view.createNode("link out"); //create link node
nnLinkOut = nLinkOut.node;
- nodeSrcMap[linkOutMapId] = nnLinkOut;
let yOffset = 0;
if(nSrc.outputs > 1) {
@@ -892,7 +973,8 @@ RED.view.tools = (function() {
updateNewNodePosXY(nSrc, nnLinkOut, false, RED.view.snapGrid, yOffset);
}
//add created node
- RED.nodes.add(nnLinkOut);
+ nnLinkOut = RED.nodes.add(nnLinkOut);
+ nodeSrcMap[linkOutMapId] = nnLinkOut;
RED.editor.validateNode(nnLinkOut);
history.events.push(nLinkOut.historyEvent);
//connect node to link node
@@ -913,10 +995,10 @@ RED.view.tools = (function() {
if(!nnLinkIn) {
const nLinkIn = RED.view.createNode("link in"); //create link node
nnLinkIn = nLinkIn.node;
- nodeTrgMap[nTrg.id] = nnLinkIn;
updateNewNodePosXY(nTrg, nnLinkIn, true, RED.view.snapGrid, 0);
//add created node
- RED.nodes.add(nnLinkIn);
+ nnLinkIn = RED.nodes.add(nnLinkIn);
+ nodeTrgMap[nTrg.id] = nnLinkIn;
RED.editor.validateNode(nnLinkIn);
history.events.push(nLinkIn.historyEvent);
//connect node to link node
@@ -991,6 +1073,9 @@ RED.view.tools = (function() {
* @param {{ renameBlank: boolean, renameClash: boolean, generateHistory: boolean }} options Possible options are `renameBlank`, `renameClash` and `generateHistory`
*/
function generateNodeNames(node, options) {
+ if (RED.workspaces.isLocked()) {
+ return
+ }
options = Object.assign({
renameBlank: true,
renameClash: true,
@@ -1015,7 +1100,7 @@ RED.view.tools = (function() {
const nodeDef = n._def || RED.nodes.getType(n.type)
if (nodeDef && nodeDef.defaults && nodeDef.defaults.name) {
const paletteLabel = RED.utils.getPaletteLabel(n.type, nodeDef)
- const defaultNodeNameRE = new RegExp('^'+paletteLabel+' (\\d+)$')
+ const defaultNodeNameRE = new RegExp('^'+paletteLabel.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')+' (\\d+)$')
if (!typeIndex.hasOwnProperty(n.type)) {
const existingNodes = RED.nodes.filterNodes({type: n.type})
let maxNameNumber = 0;
@@ -1061,7 +1146,10 @@ RED.view.tools = (function() {
}
function addJunctionsToWires(wires) {
- let wiresToSplit = wires || RED.view.selection().links;
+ if (RED.workspaces.isLocked()) {
+ return
+ }
+ let wiresToSplit = wires || (RED.view.selection().links && RED.view.selection().links.filter(e => !e.link));
if (!wiresToSplit) {
return
}
@@ -1089,6 +1177,7 @@ RED.view.tools = (function() {
linkGroups.sort(function(A,B) {
return groupedLinks[B].length - groupedLinks[A].length
})
+ const wasDirty = RED.nodes.dirty()
linkGroups.forEach(function(gid) {
var links = groupedLinks[gid]
var junction = {
@@ -1101,7 +1190,8 @@ RED.view.tools = (function() {
w: 0, h: 0,
outputs: 1,
inputs: 1,
- dirty: true
+ dirty: true,
+ moved: true
}
links = links.filter(function(l) { return !removedLinks.has(l) })
if (links.length === 0) {
@@ -1130,7 +1220,7 @@ RED.view.tools = (function() {
var nodeGroups = new Set()
- RED.nodes.addJunction(junction)
+ junction = RED.nodes.addJunction(junction)
addedJunctions.push(junction)
let newLink
if (gid === links[0].source.id+":"+links[0].sourcePort) {
@@ -1179,16 +1269,75 @@ RED.view.tools = (function() {
})
if (addedJunctions.length > 0) {
RED.history.push({
+ dirty: wasDirty,
t: 'add',
links: addedLinks,
junctions: addedJunctions,
removedLinks: Array.from(removedLinks)
})
RED.nodes.dirty(true)
+ RED.view.select({nodes: addedJunctions });
}
RED.view.redraw(true);
}
+ function copyItemUrl(node, isEdit) {
+ if (!node) {
+ const selection = RED.view.selection();
+ if (selection.nodes && selection.nodes.length > 0) {
+ node = selection.nodes[0]
+ }
+ }
+ if (node) {
+ let thingType = 'node'
+ if (node.type === 'group') {
+ thingType = 'group'
+ } else if (node.type === 'tab' || node.type === 'subflow') {
+ thingType = 'flow'
+ }
+ let url = `${window.location.origin}${window.location.pathname}#${thingType}/${node.id}`
+ if (isEdit) {
+ url += '/edit'
+ }
+ if (RED.clipboard.copyText(url)) {
+ RED.notify(RED._("sidebar.info.copyURL2Clipboard"), { timeout: 2000 })
+ }
+ }
+ }
+
+ /**
+ * Determine if a point is within a node
+ * @param {*} node - A Node or Junction node
+ * @param {[Number,Number]} mouse_position The x,y position of the mouse
+ * @param {Number} [marginX=0] - A margin to add or deduct from the x position (to increase the hit area)
+ * @param {Number} [marginY=0] - A margin to add or deduct from the y position (to increase the hit area)
+ * @returns
+ */
+ function isPointInNode (node, [x, y], marginX, marginY) {
+ marginX = marginX || 0
+ marginY = marginY || 0
+
+ let w = node.w || 10 // junctions dont have any w or h value
+ let h = node.h || 10
+ let x1, x2, y1, y2
+
+ if (node.type === "junction" || node.type === "group") {
+ // x/y is the top left of the node
+ x1 = node.x
+ y1 = node.y
+ x2 = node.x + w
+ y2 = node.y + h
+ } else {
+ // x/y is the center of the node
+ const [xMid, yMid] = [w/2, h/2]
+ x1 = node.x - xMid
+ y1 = node.y - yMid
+ x2 = node.x + xMid
+ y2 = node.y + yMid
+ }
+ return (x >= (x1 - marginX) && x <= (x2 + marginX) && y >= (y1 - marginY) && y <= (y2 + marginY))
+ }
+
return {
init: function() {
RED.actions.add("core:show-selected-node-labels", function() { setSelectedNodeLabelState(true); })
@@ -1249,12 +1398,16 @@ RED.view.tools = (function() {
RED.actions.add("core:wire-series-of-nodes", function() { wireSeriesOfNodes() })
RED.actions.add("core:wire-node-to-multiple", function() { wireNodeToMultiple() })
+ RED.actions.add("core:wire-multiple-to-node", function() { wireMultipleToNode() })
RED.actions.add("core:split-wire-with-link-nodes", function () { splitWiresWithLinkNodes() });
RED.actions.add("core:split-wires-with-junctions", function () { addJunctionsToWires() });
RED.actions.add("core:generate-node-names", generateNodeNames )
+ RED.actions.add("core:copy-item-url", function (node) { copyItemUrl(node) })
+ RED.actions.add("core:copy-item-edit-url", function (node) { copyItemUrl(node, true) })
+
// RED.actions.add("core:add-node", function() { addNode() })
},
/**
@@ -1267,7 +1420,8 @@ RED.view.tools = (function() {
* @param {Number} dy
*/
moveSelection: moveSelection,
- calculateGridSnapOffsets: calculateGridSnapOffsets
+ calculateGridSnapOffsets: calculateGridSnapOffsets,
+ isPointInNode: isPointInNode
}
})();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js
old mode 100755
new mode 100644
index 70583d741..66c87b1a9
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js
@@ -30,8 +30,8 @@
*/
RED.view = (function() {
- var space_width = 5000,
- space_height = 5000,
+ var space_width = 8000,
+ space_height = 8000,
lineCurveScale = 0.75,
scaleFactor = 1,
node_width = 100,
@@ -54,14 +54,16 @@ RED.view = (function() {
var spliceTimer;
var groupHoverTimer;
+ var activeFlowLocked = false;
var activeSubflow = null;
var activeNodes = [];
var activeLinks = [];
var activeJunctions = [];
var activeFlowLinks = [];
var activeLinkNodes = {};
- var activeGroup = null;
var activeHoverGroup = null;
+ var groupAddActive = false;
+ var groupAddParentGroup = null;
var activeGroups = [];
var dirtyGroups = {};
@@ -99,7 +101,7 @@ RED.view = (function() {
// Note: these are the permitted status colour aliases. The actual RGB values
// are set in the CSS - flow.scss/colors.scss
- var status_colours = {
+ const status_colours = {
"red": "#c00",
"green": "#5a8",
"yellow": "#F9DF31",
@@ -108,25 +110,38 @@ RED.view = (function() {
"gray": "#d3d3d3"
}
- var PORT_TYPE_INPUT = 1;
- var PORT_TYPE_OUTPUT = 0;
+ const PORT_TYPE_INPUT = 1;
+ const PORT_TYPE_OUTPUT = 0;
- var chart;
- var outer;
+ /**
+ * The jQuery object for the workspace chart `#red-ui-workspace-chart` div element
+ * @type {JQuery
} #red-ui-workspace-chart HTML Element
+ */
+ let chart;
+ /**
+ * The d3 object `#red-ui-workspace-chart` svg element
+ * @type {d3.Selection}
+ */
+ let outer;
+ /**
+ * The d3 object `#red-ui-workspace-chart` svg element (specifically for events)
+ * @type {d3.Selection}
+ */
var eventLayer;
- var gridLayer;
- var linkLayer;
- var junctionLayer;
- var dragGroupLayer;
- var groupSelectLayer;
- var nodeLayer;
- var groupLayer;
+
+ /** @type {SVGGElement} */ let gridLayer;
+ /** @type {SVGGElement} */ let linkLayer;
+ /** @type {SVGGElement} */ let junctionLayer;
+ /** @type {SVGGElement} */ let dragGroupLayer;
+ /** @type {SVGGElement} */ let groupSelectLayer;
+ /** @type {SVGGElement} */ let nodeLayer;
+ /** @type {SVGGElement} */ let groupLayer;
var drag_lines;
- var movingSet = (function() {
+ const movingSet = (function() {
var setIds = new Set();
var set = [];
- var api = {
+ const api = {
add: function(node) {
if (Array.isArray(node)) {
for (var i=0;i n.n === node)
+ if (index > -1) {
+ const removed = set.splice(index, 1)
+ set.unshift(...removed)
+ }
+ },
+ find: function(func) { return set.find(func) },
+ dump: function () {
+ console.log('MovingSet Contents')
+ api.forEach((n, i) => {
+ console.log(`${i+1}\t${n.n.id}\t${n.n.type}`)
+ })
+ }
}
return api;
})();
- var selectedLinks = (function() {
+ const selectedLinks = (function() {
var links = new Set();
- return {
+ const api = {
add: function(link) {
links.add(link);
link.selected = true;
@@ -199,18 +233,94 @@ RED.view = (function() {
},
forEach: function(func) { links.forEach(func) },
has: function(link) { return links.has(link) },
- toArray: function() { return Array.from(links) }
+ toArray: function() { return Array.from(links) },
+ clearUnselected: function () {
+ api.forEach(l => {
+ if (!l.source.selected || !l.target.selected) {
+ api.remove(l)
+ }
+ })
+ }
}
+ return api
})();
+ const selectedGroups = (function() {
+ let groups = new Set()
+ const api = {
+ add: function(g, includeNodes, addToMovingSet) {
+ groups.add(g)
+ if (!g.selected) {
+ g.selected = true;
+ g.dirty = true;
+ }
+ if (addToMovingSet !== false) {
+ movingSet.add(g);
+ }
+ if (includeNodes) {
+ var currentSet = new Set(movingSet.nodes());
+ var allNodes = RED.group.getNodes(g,true);
+ allNodes.forEach(function(n) {
+ if (!currentSet.has(n)) {
+ movingSet.add(n)
+ }
+ n.dirty = true;
+ })
+ }
+ selectedLinks.clearUnselected()
+ },
+ remove: function(g) {
+ groups.delete(g)
+ if (g.selected) {
+ g.selected = false;
+ g.dirty = true;
+ }
+ const allNodes = RED.group.getNodes(g,true);
+ const nodeSet = new Set(allNodes);
+ nodeSet.add(g);
+ for (let i = movingSet.length()-1; i >= 0; i -= 1) {
+ const msn = movingSet.get(i);
+ if (nodeSet.has(msn.n) || msn.n === g) {
+ msn.n.selected = false;
+ msn.n.dirty = true;
+ movingSet.remove(msn.n,i)
+ }
+ }
+ selectedLinks.clearUnselected()
+ },
+ length: () => groups.length,
+ forEach: (func) => { groups.forEach(func) },
+ toArray: () => [...groups],
+ clear: function () {
+ groups.forEach(g => {
+ g.selected = false
+ g.dirty = true
+ })
+ groups.clear()
+ }
+ }
+ return api
+ })()
+
+ const isMac = RED.utils.getBrowserInfo().os === 'mac'
+ // 'Control' is the main modifier key for mouse actions. On Windows,
+ // that is the standard Ctrl key. On Mac that is the Cmd key.
+ function isControlPressed (event) {
+ return (isMac && event.metaKey) || (!isMac && event.ctrlKey)
+ }
function init() {
chart = $("#red-ui-workspace-chart");
chart.on('contextmenu', function(evt) {
+ if (RED.view.DEBUG) {
+ console.warn("contextmenu", { mouse_mode, event: d3.event });
+ }
+ mouse_mode = RED.state.DEFAULT
evt.preventDefault()
evt.stopPropagation()
RED.contextMenu.show({
+ type: 'workspace',
x:evt.clientX-5,
y:evt.clientY-5
})
@@ -242,6 +352,7 @@ RED.view = (function() {
d3.select(document).on('mouseup.red-ui-workspace-tracker', null)
if (lasso) {
if (d3.event.buttons !== 1) {
+ outer.classed('red-ui-workspace-lasso-active', false)
lasso.remove();
lasso = null;
}
@@ -303,16 +414,6 @@ RED.view = (function() {
touchStartTime = setTimeout(function() {
touchStartTime = null;
showTouchMenu(obj,pos);
- //lasso = eventLayer.append("rect")
- // .attr("ox",point[0])
- // .attr("oy",point[1])
- // .attr("rx",2)
- // .attr("ry",2)
- // .attr("x",point[0])
- // .attr("y",point[1])
- // .attr("width",0)
- // .attr("height",0)
- // .attr("class","nr-ui-view-lasso");
},touchLongPressTimeout);
}
d3.event.preventDefault();
@@ -376,6 +477,31 @@ RED.view = (function() {
}
d3.event.preventDefault();
});
+
+
+ const handleAltToggle = (event) => {
+ if (mouse_mode === RED.state.MOVING_ACTIVE && event.key === 'Alt' && groupAddParentGroup) {
+ RED.nodes.group(groupAddParentGroup).dirty = true
+ for (let n = 0; n 0);
var hasMultipleSelection = hasSelection && selection.nodes.length > 1;
- RED.menu.setDisabled("menu-item-edit-cut",!hasSelection);
- RED.menu.setDisabled("menu-item-edit-copy",!hasSelection);
- RED.menu.setDisabled("menu-item-edit-select-connected",!hasSelection);
- RED.menu.setDisabled("menu-item-view-tools-move-to-back",!hasSelection);
- RED.menu.setDisabled("menu-item-view-tools-move-to-front",!hasSelection);
- RED.menu.setDisabled("menu-item-view-tools-move-backwards",!hasSelection);
- RED.menu.setDisabled("menu-item-view-tools-move-forwards",!hasSelection);
+ var hasLinkSelected = selection.links && selection.links.length > 0;
+ var canEdit = !activeFlowLocked && hasSelection
+ var canEditMultiple = !activeFlowLocked && hasMultipleSelection
+ RED.menu.setDisabled("menu-item-edit-cut", !canEdit);
+ RED.menu.setDisabled("menu-item-edit-copy", !hasSelection);
+ RED.menu.setDisabled("menu-item-edit-select-connected", !hasSelection);
+ RED.menu.setDisabled("menu-item-view-tools-move-to-back", !canEdit);
+ RED.menu.setDisabled("menu-item-view-tools-move-to-front", !canEdit);
+ RED.menu.setDisabled("menu-item-view-tools-move-backwards", !canEdit);
+ RED.menu.setDisabled("menu-item-view-tools-move-forwards", !canEdit);
- RED.menu.setDisabled("menu-item-view-tools-align-left",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-align-center",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-align-right",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-align-top",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-align-middle",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-align-bottom",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-distribute-horizontally",!hasMultipleSelection);
- RED.menu.setDisabled("menu-item-view-tools-distribute-veritcally",!hasMultipleSelection);
+ RED.menu.setDisabled("menu-item-view-tools-align-left", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-align-center", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-align-right", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-align-top", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-align-middle", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-align-bottom", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-distribute-horizontally", !canEditMultiple);
+ RED.menu.setDisabled("menu-item-view-tools-distribute-veritcally", !canEditMultiple);
+
+ RED.menu.setDisabled("menu-item-edit-split-wire-with-links", activeFlowLocked || !hasLinkSelected);
})
RED.actions.add("core:delete-selection",deleteSelection);
@@ -666,7 +816,7 @@ RED.view = (function() {
if (/^subflow:/.test(node.type)) {
RED.workspaces.show(node.type.substring(8))
} else if (node.type === 'group') {
- enterActiveGroup(node);
+ // enterActiveGroup(node);
redraw();
}
}
@@ -854,16 +1004,31 @@ RED.view = (function() {
});
activeJunctions = RED.nodes.junctions(activeWorkspace) || [];
activeGroups = RED.nodes.groups(activeWorkspace)||[];
- activeGroups.forEach(function(g, i) {
- g._index = i;
- if (g.g) {
- g._root = g.g;
- g._depth = 1;
- } else {
- g._root = g.id;
- g._depth = 0;
+ if (activeGroups.length) {
+ const groupTree = {}
+ const rootGroups = []
+ activeGroups.forEach(function(g, i) {
+ groupTree[g.id] = g
+ g._index = i;
+ g._childGroups = []
+ if (!g.g) {
+ rootGroups.push(g)
+ }
+ });
+ activeGroups.forEach(function(g) {
+ if (g.g) {
+ groupTree[g.g]._childGroups.push(g)
+ g._parentGroup = groupTree[g.g]
+ }
+ })
+ let ii = 0
+ // Depth-first walk of the groups
+ const processGroup = g => {
+ g._order = ii++
+ g._childGroups.forEach(processGroup)
}
- });
+ rootGroups.forEach(processGroup)
+ }
} else {
activeNodes = [];
activeLinks = [];
@@ -871,47 +1036,17 @@ RED.view = (function() {
activeGroups = [];
}
- var changed = false;
- do {
- changed = false;
- activeGroups.forEach(function(g) {
- if (g.g) {
- var parentGroup = RED.nodes.group(g.g);
- if (parentGroup) {
- var parentDepth = parentGroup._depth;
- if (g._depth !== parentDepth + 1) {
- g._depth = parentDepth + 1;
- changed = true;
- }
- if (g._root !== parentGroup._root) {
- g._root = parentGroup._root;
- changed = true;
- }
- }
- }
- });
- } while (changed)
activeGroups.sort(function(a,b) {
- if (a._root === b._root) {
- return a._depth - b._depth;
- } else {
- // return a._root.localeCompare(b._root);
- return a._index - b._index;
- }
+ return a._order - b._order
});
var group = groupLayer.selectAll(".red-ui-flow-group").data(activeGroups,function(d) { return d.id });
group.sort(function(a,b) {
- if (a._root === b._root) {
- return a._depth - b._depth;
- } else {
- return a._index - b._index;
- // return a._root.localeCompare(b._root);
- }
+ return a._order - b._order
})
}
- function generateLinkPath(origX,origY, destX, destY, sc) {
+ function generateLinkPath(origX,origY, destX, destY, sc, hasStatus = false) {
var dy = destY-origY;
var dx = destX-origX;
var delta = Math.sqrt(dy*dy+dx*dx);
@@ -928,62 +1063,110 @@ RED.view = (function() {
} else {
scale = 0.4-0.2*(Math.max(0,(node_width-Math.min(Math.abs(dx),Math.abs(dy)))/node_width));
}
+ function genCP(cp) {
+ return ` M ${cp[0]-5} ${cp[1]} h 10 M ${cp[0]} ${cp[1]-5} v 10 `
+ }
if (dx*sc > 0) {
- return "M "+origX+" "+origY+
- " C "+(origX+sc*(node_width*scale))+" "+(origY+scaleY*node_height)+" "+
- (destX-sc*(scale)*node_width)+" "+(destY-scaleY*node_height)+" "+
- destX+" "+destY
+ let cp = [
+ [(origX+sc*(node_width*scale)), (origY+scaleY*node_height)],
+ [(destX-sc*(scale)*node_width), (destY-scaleY*node_height)]
+ ]
+ return `M ${origX} ${origY} C ${cp[0][0]} ${cp[0][1]} ${cp[1][0]} ${cp[1][1]} ${destX} ${destY}`
+ // + ` ${genCP(cp[0])} ${genCP(cp[1])}`
} else {
+ let topX, topY, bottomX, bottomY
+ let cp
+ let midX = Math.floor(destX-dx/2);
+ let midY = Math.floor(destY-dy/2);
+ if (Math.abs(dy) < 10) {
+ bottomY = Math.max(origY, destY) + (hasStatus?35:25)
+ let startCurveHeight = bottomY - origY
+ let endCurveHeight = bottomY - destY
+ cp = [
+ [ origX + sc*15 , origY ],
+ [ origX + sc*25 , origY + 5 ],
+ [ origX + sc*25 , origY + startCurveHeight/2 ],
- var midX = Math.floor(destX-dx/2);
- var midY = Math.floor(destY-dy/2);
- //
- if (dy === 0) {
- midY = destY + node_height;
- }
- var cp_height = node_height/2;
- var y1 = (destY + midY)/2
- var topX =origX + sc*node_width*scale;
- var topY = dy>0?Math.min(y1 - dy/2 , origY+cp_height):Math.max(y1 - dy/2 , origY-cp_height);
- var bottomX = destX - sc*node_width*scale;
- var bottomY = dy>0?Math.max(y1, destY-cp_height):Math.min(y1, destY+cp_height);
- var x1 = (origX+topX)/2;
- var scy = dy>0?1:-1;
- var cp = [
- // Orig -> Top
- [x1,origY],
- [topX,dy>0?Math.max(origY, topY-cp_height):Math.min(origY, topY+cp_height)],
- // Top -> Mid
- // [Mirror previous cp]
- [x1,dy>0?Math.min(midY, topY+cp_height):Math.max(midY, topY-cp_height)],
- // Mid -> Bottom
- // [Mirror previous cp]
- [bottomX,dy>0?Math.max(midY, bottomY-cp_height):Math.min(midY, bottomY+cp_height)],
- // Bottom -> Dest
- // [Mirror previous cp]
- [(destX+bottomX)/2,destY]
- ];
- if (cp[2][1] === topY+scy*cp_height) {
- if (Math.abs(dy) < cp_height*10) {
- cp[1][1] = topY-scy*cp_height/2;
- cp[3][1] = bottomY-scy*cp_height/2;
- }
- cp[2][0] = topX;
- }
- return "M "+origX+" "+origY+
- " C "+
- cp[0][0]+" "+cp[0][1]+" "+
- cp[1][0]+" "+cp[1][1]+" "+
- topX+" "+topY+
- " S "+
- cp[2][0]+" "+cp[2][1]+" "+
- midX+" "+midY+
- " S "+
- cp[3][0]+" "+cp[3][1]+" "+
- bottomX+" "+bottomY+
- " S "+
+ [ origX + sc*25 , origY + startCurveHeight - 5 ],
+ [ origX + sc*15 , origY + startCurveHeight ],
+ [ origX , origY + startCurveHeight ],
+
+ [ destX - sc*15, origY + startCurveHeight ],
+ [ destX - sc*25, origY + startCurveHeight - 5 ],
+ [ destX - sc*25, destY + endCurveHeight/2 ],
+
+ [ destX - sc*25, destY + 5 ],
+ [ destX - sc*15, destY ],
+ [ destX, destY ],
+ ]
+
+ return "M "+origX+" "+origY+
+ " C "+
+ cp[0][0]+" "+cp[0][1]+" "+
+ cp[1][0]+" "+cp[1][1]+" "+
+ cp[2][0]+" "+cp[2][1]+" "+
+ " C " +
+ cp[3][0]+" "+cp[3][1]+" "+
cp[4][0]+" "+cp[4][1]+" "+
- destX+" "+destY
+ cp[5][0]+" "+cp[5][1]+" "+
+ " h "+dx+
+ " C "+
+ cp[6][0]+" "+cp[6][1]+" "+
+ cp[7][0]+" "+cp[7][1]+" "+
+ cp[8][0]+" "+cp[8][1]+" "+
+ " C " +
+ cp[9][0]+" "+cp[9][1]+" "+
+ cp[10][0]+" "+cp[10][1]+" "+
+ cp[11][0]+" "+cp[11][1]+" "
+ // +genCP(cp[0])+genCP(cp[1])+genCP(cp[2])+genCP(cp[3])+genCP(cp[4])
+ // +genCP(cp[5])+genCP(cp[6])+genCP(cp[7])+genCP(cp[8])+genCP(cp[9])+genCP(cp[10])
+ } else {
+ var cp_height = node_height/2;
+ var y1 = (destY + midY)/2
+ topX = origX + sc*node_width*scale;
+ topY = dy>0?Math.min(y1 - dy/2 , origY+cp_height):Math.max(y1 - dy/2 , origY-cp_height);
+ bottomX = destX - sc*node_width*scale;
+ bottomY = dy>0?Math.max(y1, destY-cp_height):Math.min(y1, destY+cp_height);
+ var x1 = (origX+topX)/2;
+ var scy = dy>0?1:-1;
+ cp = [
+ // Orig -> Top
+ [x1,origY],
+ [topX,dy>0?Math.max(origY, topY-cp_height):Math.min(origY, topY+cp_height)],
+ // Top -> Mid
+ // [Mirror previous cp]
+ [x1,dy>0?Math.min(midY, topY+cp_height):Math.max(midY, topY-cp_height)],
+ // Mid -> Bottom
+ // [Mirror previous cp]
+ [bottomX,dy>0?Math.max(midY, bottomY-cp_height):Math.min(midY, bottomY+cp_height)],
+ // Bottom -> Dest
+ // [Mirror previous cp]
+ [(destX+bottomX)/2,destY]
+ ];
+ if (cp[2][1] === topY+scy*cp_height) {
+ if (Math.abs(dy) < cp_height*10) {
+ cp[1][1] = topY-scy*cp_height/2;
+ cp[3][1] = bottomY-scy*cp_height/2;
+ }
+ cp[2][0] = topX;
+ }
+ return "M "+origX+" "+origY+
+ " C "+
+ cp[0][0]+" "+cp[0][1]+" "+
+ cp[1][0]+" "+cp[1][1]+" "+
+ topX+" "+topY+
+ " S "+
+ cp[2][0]+" "+cp[2][1]+" "+
+ midX+" "+midY+
+ " S "+
+ cp[3][0]+" "+cp[3][1]+" "+
+ bottomX+" "+bottomY+
+ " S "+
+ cp[4][0]+" "+cp[4][1]+" "+
+ destX+" "+destY
+
+ // +genCP(cp[0])+genCP(cp[1])+genCP(cp[2])+genCP(cp[3])+genCP(cp[4])
+ }
}
}
@@ -1012,11 +1195,12 @@ RED.view = (function() {
updateSelection();
}
if (mouse_mode === 0 && lasso) {
+ outer.classed('red-ui-workspace-lasso-active', false)
lasso.remove();
lasso = null;
}
if (d3.event.touches || d3.event.button === 0) {
- if ((mouse_mode === 0 || mouse_mode === RED.state.QUICK_JOINING) && (d3.event.metaKey || d3.event.ctrlKey) && !(d3.event.altKey || d3.event.shiftKey)) {
+ if ((mouse_mode === 0 || mouse_mode === RED.state.QUICK_JOINING) && isControlPressed(d3.event) && !(d3.event.altKey || d3.event.shiftKey)) {
// Trigger quick add dialog
d3.event.stopPropagation();
clearSelection();
@@ -1026,7 +1210,7 @@ RED.view = (function() {
clickedGroup = clickedGroup || RED.nodes.group(drag_lines[0].node.g)
}
showQuickAddDialog({ position: point, group: clickedGroup });
- } else if (mouse_mode === 0 && !(d3.event.metaKey || d3.event.ctrlKey)) {
+ } else if (mouse_mode === 0 && !isControlPressed(d3.event)) {
// CTRL not being held
if (!d3.event.altKey) {
// ALT not held (shift is allowed) Trigger lasso
@@ -1043,8 +1227,9 @@ RED.view = (function() {
.attr("height", 0)
.attr("class", "nr-ui-view-lasso");
d3.event.preventDefault();
+ outer.classed('red-ui-workspace-lasso-active', true)
}
- } else if (d3.event.altKey) {
+ } else if (d3.event.altKey && !activeFlowLocked) {
//Alt [+shift] held - Begin slicing
clearSelection();
mouse_mode = (d3.event.shiftKey) ? RED.state.SLICING_JUNCTION : RED.state.SLICING;
@@ -1058,25 +1243,30 @@ RED.view = (function() {
}
function showQuickAddDialog(options) {
+ if (activeFlowLocked) {
+ return
+ }
options = options || {};
var point = options.position || lastClickPosition;
- var spliceLink = options.splice;
+ var linkToSplice = options.splice;
var spliceMultipleLinks = options.spliceMultiple
var targetGroup = options.group;
var touchTrigger = options.touchTrigger;
- if (targetGroup && !targetGroup.active) {
- selectGroup(targetGroup,false);
- enterActiveGroup(targetGroup);
+ if (targetGroup) {
+ selectedGroups.add(targetGroup,false);
RED.view.redraw();
}
+ // `point` is the place in the workspace the mouse has clicked.
+ // This takes into account scrolling and scaling of the workspace.
var ox = point[0];
var oy = point[1];
+ // Need to map that to browser location to position the pop-up
const offset = $("#red-ui-workspace-chart").offset()
- var clientX = ox + offset.left - $("#red-ui-workspace-chart").scrollLeft()
- var clientY = oy + offset.top - $("#red-ui-workspace-chart").scrollTop()
+ var clientX = (ox * scaleFactor) + offset.left - $("#red-ui-workspace-chart").scrollLeft()
+ var clientY = (oy * scaleFactor) + offset.top - $("#red-ui-workspace-chart").scrollTop()
if (RED.settings.get("editor").view['view-snap-grid']) {
// eventLayer.append("circle").attr("cx",point[0]).attr("cy",point[1]).attr("r","2").attr('fill','red')
@@ -1129,7 +1319,7 @@ RED.view = (function() {
}
hideDragLines();
}
- if (spliceLink || spliceMultipleLinks) {
+ if (linkToSplice || spliceMultipleLinks) {
filter = {
input:true,
output:true,
@@ -1213,10 +1403,12 @@ RED.view = (function() {
w: 0, h: 0,
outputs: 1,
inputs: 1,
- dirty: true
+ dirty: true,
+ moved: true
}
historyEvent = {
t:'add',
+ dirty: RED.nodes.dirty(),
junctions:[nn]
}
} else {
@@ -1237,6 +1429,11 @@ RED.view = (function() {
if (showLabel !== undefined && (nn._def.hasOwnProperty("showLabel")?nn._def.showLabel:true) && !nn._def.defaults.hasOwnProperty("l")) {
nn.l = showLabel;
}
+ if (nn.type === 'junction') {
+ nn = RED.nodes.addJunction(nn);
+ } else {
+ nn = RED.nodes.add(nn);
+ }
if (quickAddLink) {
var drag_line = quickAddLink;
var src = null,dst,src_port;
@@ -1339,47 +1536,44 @@ RED.view = (function() {
}
}
}
- if (nn.type === 'junction') {
- RED.nodes.addJunction(nn);
- } else {
- RED.nodes.add(nn);
- }
+
RED.editor.validateNode(nn);
if (targetGroup) {
+ var oldX = targetGroup.x;
+ var oldY = targetGroup.y;
RED.group.addToGroup(targetGroup, nn);
+ var moveEvent = null;
+ if ((targetGroup.x !== oldX) ||
+ (targetGroup.y !== oldY)) {
+ moveEvent = {
+ t: "move",
+ nodes: [{n: targetGroup,
+ ox: oldX, oy: oldY,
+ dx: targetGroup.x -oldX,
+ dy: targetGroup.y -oldY}],
+ dirty: true
+ };
+ }
if (historyEvent.t !== "multi") {
historyEvent = {
t:'multi',
events: [historyEvent]
- }
+ };
}
historyEvent.events.push({
t: "addToGroup",
group: targetGroup,
nodes: nn
- })
-
+ });
+ if (moveEvent) {
+ historyEvent.events.push(moveEvent);
+ }
}
- if (spliceLink) {
+ if (linkToSplice) {
resetMouseVars();
- // TODO: DRY - droppable/nodeMouseDown/canvasMouseUp/showQuickAddDialog
- RED.nodes.removeLink(spliceLink);
- var link1 = {
- source:spliceLink.source,
- sourcePort:spliceLink.sourcePort,
- target: nn
- };
- var link2 = {
- source:nn,
- sourcePort:0,
- target: spliceLink.target
- };
- RED.nodes.addLink(link1);
- RED.nodes.addLink(link2);
- historyEvent.links = (historyEvent.links || []).concat([link1,link2]);
- historyEvent.removedLinks = [spliceLink];
+ spliceLink(linkToSplice, nn, historyEvent)
}
RED.history.push(historyEvent);
RED.nodes.dirty(true);
@@ -1387,8 +1581,7 @@ RED.view = (function() {
clearSelection();
nn.selected = true;
if (targetGroup) {
- selectGroup(targetGroup,false);
- enterActiveGroup(targetGroup);
+ selectedGroups.add(targetGroup,false);
}
movingSet.add(nn);
updateActiveNodes();
@@ -1591,7 +1784,7 @@ RED.view = (function() {
var portY = -((numOutputs-1)/2)*13 +13*sourcePort;
var sc = (drag_line.portType === PORT_TYPE_OUTPUT)?1:-1;
- drag_line.el.attr("d",generateLinkPath(drag_line.node.x+sc*drag_line.node.w/2,drag_line.node.y+portY,mousePos[0],mousePos[1],sc));
+ drag_line.el.attr("d",generateLinkPath(drag_line.node.x+sc*drag_line.node.w/2,drag_line.node.y+portY,mousePos[0],mousePos[1],sc, !!drag_line.node.status));
}
d3.event.preventDefault();
} else if (mouse_mode == RED.state.MOVING) {
@@ -1601,16 +1794,13 @@ RED.view = (function() {
}
var d = (mouse_offset[0]-mousePos[0])*(mouse_offset[0]-mousePos[0]) + (mouse_offset[1]-mousePos[1])*(mouse_offset[1]-mousePos[1]);
if ((d > 3 && !dblClickPrimed) || (dblClickPrimed && d > 10)) {
- mouse_mode = RED.state.MOVING_ACTIVE;
clickElapsed = 0;
- spliceActive = false;
- if (movingSet.length() === 1) {
- node = movingSet.get(0);
- spliceActive = node.n.hasOwnProperty("_def") &&
- ((node.n.hasOwnProperty("inputs") && node.n.inputs > 0) || (!node.n.hasOwnProperty("inputs") && node.n._def.inputs > 0)) &&
- ((node.n.hasOwnProperty("outputs") && node.n.outputs > 0) || (!node.n.hasOwnProperty("outputs") && node.n._def.outputs > 0)) &&
- RED.nodes.filterLinks({ source: node.n }).length === 0 &&
- RED.nodes.filterLinks({ target: node.n }).length === 0;
+ if (!activeFlowLocked) {
+ if (mousedown_node) {
+ movingSet.makePrimary(mousedown_node)
+ }
+ mouse_mode = RED.state.MOVING_ACTIVE;
+ startSelectionMove()
}
}
} else if (mouse_mode == RED.state.MOVING_ACTIVE || mouse_mode == RED.state.IMPORT_DRAGGING || mouse_mode == RED.state.DETACHED_DRAGGING) {
@@ -1625,6 +1815,7 @@ RED.view = (function() {
node.n.ox = node.n.x;
node.n.oy = node.n.y;
}
+ node.n._detachFromGroup = d3.event.altKey
node.n.x = mousePos[0]+node.dx;
node.n.y = mousePos[1]+node.dy;
node.n.dirty = true;
@@ -1693,7 +1884,7 @@ RED.view = (function() {
}
}
- // Check link splice or group-add
+ // Check link splice
if (movingSet.length() === 1 && movingSet.get(0).n.type !== "group") {
node = movingSet.get(0);
if (spliceActive) {
@@ -1742,23 +1933,39 @@ RED.view = (function() {
},100);
}
}
- if (node.n.type !== 'subflow' && !node.n.g && activeGroups) {
- if (!groupHoverTimer) {
- groupHoverTimer = setTimeout(function() {
- activeHoverGroup = getGroupAt(node.n.x,node.n.y);
- for (var i=0;i 0) {
+ clickedGroup = clickedGroup || RED.nodes.group(drag_lines[0].node.g)
+ }
+ showQuickAddDialog({ position: point, group: clickedGroup });
}
hideDragLines();
}
@@ -1820,56 +2037,29 @@ RED.view = (function() {
var y = parseInt(lasso.attr("y"));
var x2 = x+parseInt(lasso.attr("width"));
var y2 = y+parseInt(lasso.attr("height"));
- var ag = activeGroup;
if (!d3.event.shiftKey) {
clearSelection();
- if (ag) {
- if (x < ag.x+ag.w && x2 > ag.x && y < ag.y+ag.h && y2 > ag.y) {
- // There was an active group and the lasso intersects with it,
- // so reenter the group
- enterActiveGroup(ag);
- activeGroup.selected = true;
- }
- }
}
- activeGroups.forEach(function(g) {
- if (!g.selected) {
- if (g.x > x && g.x+g.w < x2 && g.y > y && g.y+g.h < y2) {
- if (!activeGroup || RED.group.contains(activeGroup,g)) {
- while (g.g && (!activeGroup || g.g !== activeGroup.id)) {
- g = RED.nodes.group(g.g);
- }
- if (!g.selected) {
- selectGroup(g,true);
- }
- }
+
+ activeGroups.forEach(function(n) {
+ if (!movingSet.has(n) && !n.selected) {
+ // group entirely within lasso
+ if (n.x > x && n.y > y && n.x + n.w < x2 && n.y + n.h < y2) {
+ selectedGroups.add(n, true)
}
}
})
-
activeNodes.forEach(function(n) {
- if (!n.selected) {
+ if (!movingSet.has(n) && !n.selected) {
if (n.x > x && n.x < x2 && n.y > y && n.y < y2) {
- if (!activeGroup || RED.group.contains(activeGroup,n)) {
- if (n.g && (!activeGroup || n.g !== activeGroup.id)) {
- var group = RED.nodes.group(n.g);
- while (group.g && (!activeGroup || group.g !== activeGroup.id)) {
- group = RED.nodes.group(group.g);
- }
- if (!group.selected) {
- selectGroup(group,true);
- }
- } else {
- n.selected = true;
- n.dirty = true;
- movingSet.add(n);
- }
- }
+ n.selected = true;
+ n.dirty = true;
+ movingSet.add(n);
}
}
});
activeJunctions.forEach(function(n) {
- if (!n.selected) {
+ if (!movingSet.has(n) && !n.selected) {
if (n.x > x && n.x < x2 && n.y > y && n.y < y2) {
n.selected = true;
n.dirty = true;
@@ -1892,17 +2082,6 @@ RED.view = (function() {
}
})
- // var selectionChanged = false;
- // do {
- // selectionChanged = false;
- // selectedGroups.forEach(function(g) {
- // if (g.g && g.selected && RED.nodes.group(g.g).selected) {
- // g.selected = false;
- // selectionChanged = true;
- // }
- // })
- // } while(selectionChanged);
-
if (activeSubflow) {
activeSubflow.in.forEach(function(n) {
n.selected = (n.x > x && n.x < x2 && n.y > y && n.y < y2);
@@ -1927,6 +2106,7 @@ RED.view = (function() {
}
}
updateSelection();
+ outer.classed('red-ui-workspace-lasso-active', false)
lasso.remove();
lasso = null;
} else if (mouse_mode == RED.state.DEFAULT && mousedown_link == null && !d3.event.ctrlKey && !d3.event.metaKey ) {
@@ -1941,190 +2121,80 @@ RED.view = (function() {
RED.actions.invoke("core:split-wires-with-junctions")
slicePath.remove();
slicePath = null;
-
- // var removedLinks = new Set()
- // var addedLinks = []
- // var addedJunctions = []
- //
- // var groupedLinks = {}
- // selectedLinks.forEach(function(l) {
- // var sourceId = l.source.id+":"+l.sourcePort
- // groupedLinks[sourceId] = groupedLinks[sourceId] || []
- // groupedLinks[sourceId].push(l)
- //
- // groupedLinks[l.target.id] = groupedLinks[l.target.id] || []
- // groupedLinks[l.target.id].push(l)
- // });
- // var linkGroups = Object.keys(groupedLinks)
- // linkGroups.sort(function(A,B) {
- // return groupedLinks[B].length - groupedLinks[A].length
- // })
- // linkGroups.forEach(function(gid) {
- // var links = groupedLinks[gid]
- // var junction = {
- // _def: {defaults:{}},
- // type: 'junction',
- // z: RED.workspaces.active(),
- // id: RED.nodes.id(),
- // x: 0,
- // y: 0,
- // w: 0, h: 0,
- // outputs: 1,
- // inputs: 1,
- // dirty: true
- // }
- // links = links.filter(function(l) { return !removedLinks.has(l) })
- // if (links.length === 0) {
- // return
- // }
- // links.forEach(function(l) {
- // junction.x += l._sliceLocation.x
- // junction.y += l._sliceLocation.y
- // })
- // junction.x = Math.round(junction.x/links.length)
- // junction.y = Math.round(junction.y/links.length)
- // if (snapGrid) {
- // junction.x = (gridSize*Math.round(junction.x/gridSize));
- // junction.y = (gridSize*Math.round(junction.y/gridSize));
- // }
- //
- // var nodeGroups = new Set()
- //
- // RED.nodes.addJunction(junction)
- // addedJunctions.push(junction)
- // let newLink
- // if (gid === links[0].source.id+":"+links[0].sourcePort) {
- // newLink = {
- // source: links[0].source,
- // sourcePort: links[0].sourcePort,
- // target: junction
- // }
- // } else {
- // newLink = {
- // source: junction,
- // sourcePort: 0,
- // target: links[0].target
- // }
- // }
- // addedLinks.push(newLink)
- // RED.nodes.addLink(newLink)
- // links.forEach(function(l) {
- // removedLinks.add(l)
- // RED.nodes.removeLink(l)
- // let newLink
- // if (gid === l.target.id) {
- // newLink = {
- // source: l.source,
- // sourcePort: l.sourcePort,
- // target: junction
- // }
- // } else {
- // newLink = {
- // source: junction,
- // sourcePort: 0,
- // target: l.target
- // }
- // }
- // addedLinks.push(newLink)
- // RED.nodes.addLink(newLink)
- // nodeGroups.add(l.source.g || "__NONE__")
- // nodeGroups.add(l.target.g || "__NONE__")
- // })
- // if (nodeGroups.size === 1) {
- // var group = nodeGroups.values().next().value
- // if (group !== "__NONE__") {
- // RED.group.addToGroup(RED.nodes.group(group), junction)
- // }
- // }
- // })
- // slicePath.remove();
- // slicePath = null;
- //
- // if (addedJunctions.length > 0) {
- // RED.history.push({
- // t: 'add',
- // links: addedLinks,
- // junctions: addedJunctions,
- // removedLinks: Array.from(removedLinks)
- // })
- // RED.nodes.dirty(true)
- // }
- // RED.view.redraw(true);
}
if (mouse_mode == RED.state.MOVING_ACTIVE) {
if (movingSet.length() > 0) {
- var addedToGroup = null;
- if (activeHoverGroup) {
- for (var j=0;j 0 && mouse_mode == RED.state.MOVING_ACTIVE) {
- historyEvent = {t:"move",nodes:ns,dirty:RED.nodes.dirty()};
+ // Check to see if we need to splice a link
+ if (moveEvent.nodes.length > 0) {
+ historyEvent.events.push(moveEvent)
if (activeSpliceLink) {
- // TODO: DRY - droppable/nodeMouseDown/canvasMouseUp
- var spliceLink = d3.select(activeSpliceLink).data()[0];
- RED.nodes.removeLink(spliceLink);
- var link1 = {
- source:spliceLink.source,
- sourcePort:spliceLink.sourcePort,
- target: movingSet.get(0).n
- };
- var link2 = {
- source:movingSet.get(0).n,
- sourcePort:0,
- target: spliceLink.target
- };
- RED.nodes.addLink(link1);
- RED.nodes.addLink(link2);
- historyEvent.links = [link1,link2];
- historyEvent.removedLinks = [spliceLink];
- updateActiveNodes();
- }
- if (addedToGroup) {
- historyEvent.addToGroup = addedToGroup;
+ var linkToSplice = d3.select(activeSpliceLink).data()[0];
+ spliceLink(linkToSplice, movingSet.get(0).n, moveEvent)
}
+ }
+ if (moveAndChangedGroupEvent.nodes.length > 0) {
+ historyEvent.events.push(moveAndChangedGroupEvent)
+ }
+
+ // Only continue if something has moved
+ if (historyEvent.events.length > 0) {
RED.nodes.dirty(true);
- RED.history.push(historyEvent);
+ if (historyEvent.events.length === 1) {
+ // Keep history tidy - no need for multi-event
+ RED.history.push(historyEvent.events[0]);
+ } else {
+ // Multiple events - push the whole lot as one
+ RED.history.push(historyEvent);
+ }
+ updateActiveNodes();
}
}
}
- // if (mouse_mode === RED.state.MOVING && mousedown_node && mousedown_node.g) {
- // if (mousedown_node.gSelected) {
- // delete mousedown_node.gSelected
- // } else {
- // if (!d3.event.ctrlKey && !d3.event.metaKey) {
- // clearSelection();
- // }
- // RED.nodes.group(mousedown_node.g).selected = true;
- // mousedown_node.selected = true;
- // mousedown_node.dirty = true;
- // movingSet.add(mousedown_node);
- // }
- // }
if (mouse_mode == RED.state.MOVING || mouse_mode == RED.state.MOVING_ACTIVE || mouse_mode == RED.state.DETACHED_DRAGGING) {
- // if (mousedown_node) {
- // delete mousedown_node.gSelected;
- // }
if (mouse_mode === RED.state.DETACHED_DRAGGING) {
var ns = [];
for (var j=0;j {
+ if (g.hovered) {
+ g.hovered = false
+ g.dirty = true
+ }
+ })
+
+ return {
+ addedToGroup,
+ removedFromGroup,
+ groupMoveEvent,
+ rehomedNodes
+ }
+
+ }
+
function zoomIn() {
if (scaleFactor < 2) {
zoomView(scaleFactor+0.1);
@@ -2220,10 +2379,9 @@ RED.view = (function() {
}
clearSelection();
} else if (lasso) {
+ outer.classed('red-ui-workspace-lasso-active', false)
lasso.remove();
lasso = null;
- } else if (activeGroup) {
- exitActiveGroup()
} else {
clearSelection();
}
@@ -2234,82 +2392,61 @@ RED.view = (function() {
return;
}
selectedLinks.clear();
-
- if (activeGroup) {
- var ag = activeGroup;
- clearSelection();
- enterActiveGroup(ag);
-
- var groupNodes = RED.group.getNodes(ag,false);
- groupNodes.forEach(function(n) {
- if (n.type === 'group') {
- selectGroup(n,true,true);
- } else {
- movingSet.add(n)
- n.selected = true;
- n.dirty = true;
- }
- })
- activeGroup.selected = true;
- } else {
-
- clearSelection();
- exitActiveGroup();
- activeGroups.forEach(function(g) {
- if (!g.g) {
- selectGroup(g, true);
- if (!g.selected) {
- g.selected = true;
- g.dirty = true;
- }
- } else {
- g.selected = false;
+ clearSelection();
+ activeGroups.forEach(function(g) {
+ if (!g.g) {
+ selectedGroups.add(g, true);
+ if (!g.selected) {
+ g.selected = true;
g.dirty = true;
}
- })
+ } else {
+ g.selected = false;
+ g.dirty = true;
+ }
+ })
- activeNodes.forEach(function(n) {
- if (mouse_mode === RED.state.SELECTING_NODE) {
- if (selectNodesOptions.filter && !selectNodesOptions.filter(n)) {
- return;
- }
+ activeNodes.forEach(function(n) {
+ if (mouse_mode === RED.state.SELECTING_NODE) {
+ if (selectNodesOptions.filter && !selectNodesOptions.filter(n)) {
+ return;
}
- if (!n.g && !n.selected) {
- n.selected = true;
- n.dirty = true;
- movingSet.add(n);
- }
- });
+ }
+ if (!n.g && !n.selected) {
+ n.selected = true;
+ n.dirty = true;
+ movingSet.add(n);
+ }
+ });
- activeJunctions.forEach(function(n) {
+ activeJunctions.forEach(function(n) {
+ if (!n.selected) {
+ n.selected = true;
+ n.dirty = true;
+ movingSet.add(n);
+ }
+ })
+
+ if (mouse_mode !== RED.state.SELECTING_NODE && activeSubflow) {
+ activeSubflow.in.forEach(function(n) {
if (!n.selected) {
n.selected = true;
n.dirty = true;
movingSet.add(n);
}
- })
-
- if (mouse_mode !== RED.state.SELECTING_NODE && activeSubflow) {
- activeSubflow.in.forEach(function(n) {
- if (!n.selected) {
- n.selected = true;
- n.dirty = true;
- movingSet.add(n);
- }
- });
- activeSubflow.out.forEach(function(n) {
- if (!n.selected) {
- n.selected = true;
- n.dirty = true;
- movingSet.add(n);
- }
- });
- if (activeSubflow.status) {
- if (!activeSubflow.status.selected) {
- activeSubflow.status.selected = true;
- activeSubflow.status.dirty = true;
- movingSet.add(activeSubflow.status);
- }
+ });
+ activeSubflow.out.forEach(function(n) {
+ if (!n.selected) {
+ n.selected = true;
+ n.dirty = true;
+ movingSet.add(n);
+ }
+ });
+ if (activeSubflow.status) {
+ if (!activeSubflow.status.selected) {
+ activeSubflow.status.selected = true;
+ activeSubflow.status.dirty = true;
+ movingSet.add(activeSubflow.status);
}
}
}
@@ -2328,15 +2465,7 @@ RED.view = (function() {
}
movingSet.clear();
selectedLinks.clear();
- if (activeGroup) {
- activeGroup.active = false
- activeGroup.dirty = true;
- activeGroup = null;
- }
- activeGroups.forEach(function(g) {
- g.selected = false;
- g.dirty = true;
- })
+ selectedGroups.clear();
}
var lastSelection = null;
@@ -2455,6 +2584,7 @@ RED.view = (function() {
}
function editSelection() {
+ if (RED.workspaces.isLocked()) { return }
if (movingSet.length() > 0) {
var node = movingSet.get(0).n;
if (node.type === "subflow") {
@@ -2470,6 +2600,9 @@ RED.view = (function() {
if (mouse_mode === RED.state.SELECTING_NODE) {
return;
}
+ if (activeFlowLocked) {
+ return
+ }
if (portLabelHover) {
portLabelHover.remove();
portLabelHover = null;
@@ -2589,6 +2722,16 @@ RED.view = (function() {
var result = RED.nodes.removeJunction(node)
removedJunctions.push(node);
removedLinks = removedLinks.concat(result.links);
+ if (node.g) {
+ var group = RED.nodes.group(node.g);
+ if (selectedGroups.indexOf(group) === -1) {
+ // Don't use RED.group.removeFromGroup as that emits
+ // a change event on the node - but we're deleting it
+ var index = group.nodes.indexOf(node);
+ group.nodes.splice(index,1);
+ RED.group.markDirty(group);
+ }
+ }
} else {
if (node.direction === "out") {
removedSubflowOutputs.push(node);
@@ -2785,6 +2928,7 @@ RED.view = (function() {
function detachSelectedNodes() {
+ if (RED.workspaces.isLocked()) { return }
var selection = RED.view.selection();
if (selection.nodes) {
const {newLinks, removedLinks} = RED.nodes.detachNodes(selection.nodes);
@@ -2887,6 +3031,7 @@ RED.view = (function() {
mousedown_port_type = null;
activeSpliceLink = null;
spliceActive = false;
+ groupAddActive = false;
if (activeHoverGroup) {
activeHoverGroup.hovered = false;
activeHoverGroup = null;
@@ -2926,7 +3071,7 @@ RED.view = (function() {
mousedown_node = d;
mousedown_port_type = portType;
mousedown_port_index = portIndex || 0;
- if (mouse_mode !== RED.state.QUICK_JOINING) {
+ if (mouse_mode !== RED.state.QUICK_JOINING && !activeFlowLocked) {
mouse_mode = RED.state.JOINING;
document.body.style.cursor = "crosshair";
if (evt.ctrlKey || evt.metaKey) {
@@ -2963,22 +3108,38 @@ RED.view = (function() {
}
}
document.body.style.cursor = "";
+
if (mouse_mode == RED.state.JOINING || mouse_mode == RED.state.QUICK_JOINING) {
if (typeof TouchEvent != "undefined" && evt instanceof TouchEvent) {
- var found = false;
- RED.nodes.eachNode(function(n) {
- if (n.z == RED.workspaces.active()) {
- var hw = n.w/2;
- var hh = n.h/2;
- if (n.x-hw mouse_position[0] &&
- n.y-hhmouse_position[1]) {
- found = true;
- mouseup_node = n;
- portType = mouseup_node.inputs>0?PORT_TYPE_INPUT:PORT_TYPE_OUTPUT;
- portIndex = 0;
+ if (RED.view.DEBUG) { console.warn("portMouseUp: TouchEvent", mouse_mode,d,portType,portIndex); }
+ const direction = drag_lines[0].portType === PORT_TYPE_INPUT ? PORT_TYPE_OUTPUT : PORT_TYPE_INPUT
+ let found = false;
+ for (let nodeIdx = 0; nodeIdx < activeNodes.length; nodeIdx++) {
+ const n = activeNodes[nodeIdx];
+ if (RED.view.tools.isPointInNode(n, mouse_position)) {
+ found = true;
+ mouseup_node = n;
+ // portType = mouseup_node.inputs > 0 ? PORT_TYPE_INPUT : PORT_TYPE_OUTPUT;
+ portType = direction;
+ portIndex = 0;
+ break
+ }
+ }
+
+ if (!found && drag_lines.length > 0 && !drag_lines[0].virtualLink) {
+ for (let juncIdx = 0; juncIdx < activeJunctions.length; juncIdx++) {
+ // NOTE: a junction is 10px x 10px but the target area is expanded to 30wx20h by adding padding to the bounding box
+ const jNode = activeJunctions[juncIdx];
+ if (RED.view.tools.isPointInNode(jNode, mouse_position, 20, 10)) {
+ found = true;
+ mouseup_node = jNode;
+ portType = direction;
+ portIndex = 0;
+ break
}
}
- });
+ }
+
if (!found && activeSubflow) {
var subflowPorts = [];
if (activeSubflow.status) {
@@ -2990,16 +3151,13 @@ RED.view = (function() {
if (activeSubflow.out) {
subflowPorts = subflowPorts.concat(activeSubflow.out)
}
- for (var i=0;i mouse_position[0] &&
- n.y-hhmouse_position[1]) {
- found = true;
- mouseup_node = n;
- portType = mouseup_node.direction === "in"?PORT_TYPE_OUTPUT:PORT_TYPE_INPUT;
- portIndex = 0;
+ for (var i = 0; i < subflowPorts.length; i++) {
+ const sf = subflowPorts[i];
+ if (RED.view.tools.isPointInNode(sf, mouse_position)) {
+ found = true;
+ mouseup_node = sf;
+ portType = mouseup_node.direction === "in" ? PORT_TYPE_OUTPUT : PORT_TYPE_INPUT;
+ portIndex = 0;
break;
}
}
@@ -3089,8 +3247,25 @@ RED.view = (function() {
(drag_line.portType === PORT_TYPE_INPUT && mouseup_node.type === "subflow" && (mouseup_node.direction === "status" || mouseup_node.direction === "out")) ||
(drag_line.portType === PORT_TYPE_OUTPUT && mouseup_node.type === "subflow" && mouseup_node.direction === "in")
)) {
+ let hasJunctionLoop = false
+ if (link.source.type === 'junction' && link.target.type === 'junction') {
+ // This is joining two junctions together. We want to avoid creating a loop
+ // of pure junction nodes as there is no way to break out of it.
+
+ const visited = new Set()
+ let toVisit = [link.target]
+ while (toVisit.length > 0) {
+ const next = toVisit.shift()
+ if (next === link.source) {
+ hasJunctionLoop = true
+ break
+ }
+ visited.add(next)
+ toVisit = toVisit.concat(RED.nodes.getDownstreamNodes(next).filter(n => n.type === 'junction' && !visited.has(n)))
+ }
+ }
var existingLink = RED.nodes.filterLinks({source:src,target:dst,sourcePort: src_port}).length !== 0;
- if (!existingLink) {
+ if (!hasJunctionLoop && !existingLink) {
RED.nodes.addLink(link);
addedLinks.push(link);
}
@@ -3208,7 +3383,7 @@ RED.view = (function() {
console.log("Definition error: "+node.type+"."+((portType === PORT_TYPE_INPUT)?"inputLabels":"outputLabels"),err);
result = null;
}
- } else if ($.isArray(portLabels)) {
+ } else if (Array.isArray(portLabels)) {
result = portLabels[portIndex];
}
return result;
@@ -3293,11 +3468,17 @@ RED.view = (function() {
if (active && ((portType === PORT_TYPE_INPUT && ((d._def && d._def.inputLabels)||d.inputLabels)) || (portType === PORT_TYPE_OUTPUT && ((d._def && d._def.outputLabels)||d.outputLabels)))) {
portLabelHoverTimeout = setTimeout(function() {
+ const n = port && port.node()
+ const nId = n && n.__data__ && n.__data__.id
+ //check see if node has been deleted since timeout started
+ if(!n || !n.parentNode || !RED.nodes.node(n.__data__.id)) {
+ return; //node is gone!
+ }
var tooltip = getPortLabel(d,portType,portIndex);
if (!tooltip) {
return;
}
- var pos = getElementPosition(port.node());
+ var pos = getElementPosition(n);
portLabelHoverTimeout = null;
portLabelHover = showTooltip(
(pos[0]+(portType===PORT_TYPE_INPUT?-2:12)),
@@ -3360,8 +3541,16 @@ RED.view = (function() {
}
if (dblClickPrimed && mousedown_node == d && clickElapsed > 0 && clickElapsed < dblClickInterval) {
mouse_mode = RED.state.DEFAULT;
+ if (RED.workspaces.isLocked()) {
+ clickElapsed = 0;
+ d3.event.stopPropagation();
+ return
+ }
+ // Avoid dbl click causing text selection.
+ d3.event.preventDefault()
+ document.getSelection().removeAllRanges()
if (d.type != "subflow") {
- if (/^subflow:/.test(d.type) && (d3.event.ctrlKey || d3.event.metaKey)) {
+ if (/^subflow:/.test(d.type) && isControlPressed(d3.event)) {
RED.workspaces.show(d.type.substring(8));
} else {
RED.editor.edit(d);
@@ -3378,8 +3567,7 @@ RED.view = (function() {
if (!groupNodeSelectPrimed && !d.selected && d.g && RED.nodes.group(d.g).selected) {
clearSelection();
- selectGroup(RED.nodes.group(d.g), false);
- enterActiveGroup(RED.nodes.group(d.g))
+ selectedGroups.add(RED.nodes.group(d.g), false);
mousedown_node.selected = true;
movingSet.add(mousedown_node);
@@ -3432,44 +3620,25 @@ RED.view = (function() {
//RED.touch.radialMenu.show(d3.select(this),pos);
if (mouse_mode == RED.state.IMPORT_DRAGGING || mouse_mode == RED.state.DETACHED_DRAGGING) {
var historyEvent = RED.history.peek();
- if (activeSpliceLink) {
- // TODO: DRY - droppable/nodeMouseDown/canvasMouseUp
- var spliceLink = d3.select(activeSpliceLink).data()[0];
- RED.nodes.removeLink(spliceLink);
- var link1 = {
- source:spliceLink.source,
- sourcePort:spliceLink.sourcePort,
- target: movingSet.get(0).n
- };
- var link2 = {
- source:movingSet.get(0).n,
- sourcePort:0,
- target: spliceLink.target
- };
- RED.nodes.addLink(link1);
- RED.nodes.addLink(link2);
+ // Check to see if we're dropping into a group
+ const {
+ addedToGroup,
+ removedFromGroup,
+ groupMoveEvent,
+ rehomedNodes
+ } = addMovingSetToGroup()
- historyEvent.links = [link1,link2];
- historyEvent.removedLinks = [spliceLink];
+ if (activeSpliceLink) {
+ var linkToSplice = d3.select(activeSpliceLink).data()[0];
+ spliceLink(linkToSplice, movingSet.get(0).n, historyEvent)
updateActiveNodes();
}
-
- if (activeHoverGroup) {
- for (var j=0;j 0 && clickElapsed < dblClickInterval) {
mouse_mode = RED.state.DEFAULT;
RED.editor.editGroup(g);
@@ -3897,7 +3967,6 @@ RED.view = (function() {
}
if (mouse_mode == RED.state.QUICK_JOINING) {
- d3.event.stopPropagation();
return;
} else if (mouse_mode === RED.state.SELECTING_NODE) {
d3.event.stopPropagation();
@@ -3918,35 +3987,17 @@ RED.view = (function() {
);
lastClickNode = g;
- if (g.selected && (d3.event.ctrlKey||d3.event.metaKey)) {
- if (g === activeGroup) {
- exitActiveGroup();
- }
- deselectGroup(g);
+ if (g.selected && isControlPressed(d3.event)) {
+ selectedGroups.remove(g);
d3.event.stopPropagation();
} else {
if (!g.selected) {
if (!d3.event.ctrlKey && !d3.event.metaKey) {
- var ag = activeGroup;
clearSelection();
- if (ag && g.g === ag.id) {
- enterActiveGroup(ag);
- activeGroup.selected = true;
- }
}
- if (activeGroup) {
- if (!RED.group.contains(activeGroup,g)) {
- // Clicked on a group that is outside the activeGroup
- exitActiveGroup();
- } else {
- }
- }
- selectGroup(g,true);//!wasSelected);
- } else if (activeGroup && g.g !== activeGroup.id){
- exitActiveGroup();
+ selectedGroups.add(g,true);//!wasSelected);
}
-
if (d3.event.button != 2) {
var d = g.nodes[0];
prepareDrag(mouse);
@@ -3960,65 +4011,17 @@ RED.view = (function() {
d3.event.stopPropagation();
}
- function selectGroup(g, includeNodes, addToMovingSet) {
- if (!g.selected) {
- g.selected = true;
- g.dirty = true;
- }
- if (addToMovingSet !== false) {
- movingSet.add(g);
- }
- if (includeNodes) {
- var currentSet = new Set(movingSet.nodes());
- var allNodes = RED.group.getNodes(g,true);
- allNodes.forEach(function(n) {
- if (!currentSet.has(n)) {
- movingSet.add(n)
- // n.selected = true;
- }
- n.dirty = true;
- })
- }
- }
- function enterActiveGroup(group) {
- if (activeGroup) {
- exitActiveGroup();
- }
- group.active = true;
- group.dirty = true;
- activeGroup = group;
- movingSet.remove(group);
- }
- function exitActiveGroup() {
- if (activeGroup) {
- activeGroup.active = false;
- activeGroup.dirty = true;
- deselectGroup(activeGroup);
- selectGroup(activeGroup,true);
- activeGroup = null;
- }
- }
- function deselectGroup(g) {
- if (g.selected) {
- g.selected = false;
- g.dirty = true;
- }
- var nodeSet = new Set(g.nodes);
- nodeSet.add(g);
- for (var i = movingSet.length()-1; i >= 0; i -= 1) {
- var msn = movingSet.get(i);
- if (nodeSet.has(msn.n) || msn.n === g) {
- msn.n.selected = false;
- msn.n.dirty = true;
- movingSet.remove(msn.n,i)
- }
- }
- }
- function getGroupAt(x,y) {
+ function getGroupAt(x, y, ignoreSelected) {
// x,y expected to be in node-co-ordinate space
var candidateGroups = {};
for (var i=0;i= g.x && x <= g.x + g.w && y >= g.y && y <= g.y + g.h) {
candidateGroups[g.id] = g;
}
@@ -4042,7 +4045,7 @@ RED.view = (function() {
function isButtonEnabled(d) {
var buttonEnabled = true;
var ws = RED.nodes.workspace(RED.workspaces.active());
- if (ws && !ws.disabled && !d.d) {
+ if (ws && !ws.disabled && !d.d && !ws.locked) {
if (d._def.button.hasOwnProperty('enabled')) {
if (typeof d._def.button.enabled === "function") {
buttonEnabled = d._def.button.enabled.call(d);
@@ -4065,7 +4068,7 @@ RED.view = (function() {
}
var activeWorkspace = RED.workspaces.active();
var ws = RED.nodes.workspace(activeWorkspace);
- if (ws && !ws.disabled && !d.d) {
+ if (ws && !ws.disabled && !d.d && !ws.locked) {
if (d._def.button.toggle) {
d[d._def.button.toggle] = !d[d._def.button.toggle];
d.dirty = true;
@@ -4080,7 +4083,7 @@ RED.view = (function() {
if (d.dirty) {
redraw();
}
- } else {
+ } else if (!ws || !ws.locked){
if (activeSubflow) {
RED.notify(RED._("notification.warning", {message:RED._("notification.warnings.nodeActionDisabledSubflow")}),"warning");
} else {
@@ -4095,14 +4098,15 @@ RED.view = (function() {
function showTouchMenu(obj,pos) {
var mdn = mousedown_node;
var options = [];
- options.push({name:"delete",disabled:(movingSet.length()===0 && selectedLinks.length() === 0),onselect:function() {deleteSelection();}});
- options.push({name:"cut",disabled:(movingSet.length()===0),onselect:function() {copySelection(true);deleteSelection();}});
- options.push({name:"copy",disabled:(movingSet.length()===0),onselect:function() {copySelection();}});
- options.push({name:"paste",disabled:(clipboard.length===0),onselect:function() {importNodes(clipboard, {generateIds: true, touchImport: true});}});
- options.push({name:"edit",disabled:(movingSet.length() != 1),onselect:function() { RED.editor.edit(mdn);}});
+ const isActiveLocked = RED.workspaces.isLocked()
+ options.push({name:"delete",disabled:(isActiveLocked || movingSet.length()===0 && selectedLinks.length() === 0),onselect:function() {deleteSelection();}});
+ options.push({name:"cut",disabled:(isActiveLocked || movingSet.length()===0),onselect:function() {copySelection(true);deleteSelection();}});
+ options.push({name:"copy",disabled:(isActiveLocked || movingSet.length()===0),onselect:function() {copySelection();}});
+ options.push({name:"paste",disabled:(isActiveLocked || clipboard.length===0),onselect:function() {importNodes(clipboard, {generateIds: true, touchImport: true});}});
+ options.push({name:"edit",disabled:(isActiveLocked || movingSet.length() != 1),onselect:function() { RED.editor.edit(mdn);}});
options.push({name:"select",onselect:function() {selectAll();}});
options.push({name:"undo",disabled:(RED.history.depth() === 0),onselect:function() {RED.history.pop();}});
- options.push({name:"add",onselect:function() {
+ options.push({name:"add",disabled:isActiveLocked, onselect:function() {
chartPos = chart.offset();
showQuickAddDialog({
position:[pos[0]-chartPos.left+chart.scrollLeft(),pos[1]-chartPos.top+chart.scrollTop()],
@@ -4183,21 +4187,27 @@ RED.view = (function() {
nodeEl.__statusGroup__.style.display = "none";
} else {
nodeEl.__statusGroup__.style.display = "inline";
+ let backgroundWidth = 12
var fill = status_colours[d.status.fill]; // Only allow our colours for now
if (d.status.shape == null && fill == null) {
+ backgroundWidth = 0
nodeEl.__statusShape__.style.display = "none";
+ nodeEl.__statusBackground__.setAttribute("x", 17)
nodeEl.__statusGroup__.setAttribute("transform","translate(-14,"+(d.h+3)+")");
} else {
nodeEl.__statusGroup__.setAttribute("transform","translate(3,"+(d.h+3)+")");
var statusClass = "red-ui-flow-node-status-"+(d.status.shape||"dot")+"-"+d.status.fill;
nodeEl.__statusShape__.style.display = "inline";
nodeEl.__statusShape__.setAttribute("class","red-ui-flow-node-status "+statusClass);
+ nodeEl.__statusBackground__.setAttribute("x", 3)
}
if (d.status.hasOwnProperty('text')) {
nodeEl.__statusLabel__.textContent = d.status.text;
} else {
nodeEl.__statusLabel__.textContent = "";
}
+ const textSize = nodeEl.__statusLabel__.getBBox()
+ nodeEl.__statusBackground__.setAttribute('width', backgroundWidth + textSize.width + 6)
}
delete d.dirtyStatus;
}
@@ -4445,6 +4455,7 @@ RED.view = (function() {
this.__port__.setAttribute("transform","translate(-5,"+((d.h/2)-5)+")");
this.__outputOutput__.setAttribute("transform","translate(20,"+((d.h/2)-8)+")");
this.__outputNumber__.setAttribute("transform","translate(20,"+((d.h/2)+7)+")");
+ this.__outputNumber__.textContent = d.i+1;
}
d.dirty = false;
}
@@ -4570,12 +4581,10 @@ RED.view = (function() {
icon_groupEl.setAttribute("y",0);
icon_groupEl.style["pointer-events"] = "none";
node[0][0].__iconGroup__ = icon_groupEl;
- var icon_shade = document.createElementNS("http://www.w3.org/2000/svg","rect");
+ var icon_shade = document.createElementNS("http://www.w3.org/2000/svg","path");
icon_shade.setAttribute("x",0);
icon_shade.setAttribute("y",0);
icon_shade.setAttribute("class","red-ui-flow-node-icon-shade")
- icon_shade.setAttribute("width",30);
- icon_shade.setAttribute("height",Math.min(50,d.h-4));
icon_groupEl.appendChild(icon_shade);
node[0][0].__iconShade__ = icon_shade;
@@ -4604,17 +4613,30 @@ RED.view = (function() {
statusEl.style.display = "none";
node[0][0].__statusGroup__ = statusEl;
- var statusRect = document.createElementNS("http://www.w3.org/2000/svg","rect");
- statusRect.setAttribute("class","red-ui-flow-node-status");
- statusRect.setAttribute("x",6);
- statusRect.setAttribute("y",1);
- statusRect.setAttribute("width",9);
- statusRect.setAttribute("height",9);
- statusRect.setAttribute("rx",2);
- statusRect.setAttribute("ry",2);
- statusRect.setAttribute("stroke-width","3");
- statusEl.appendChild(statusRect);
- node[0][0].__statusShape__ = statusRect;
+ var statusBackground = document.createElementNS("http://www.w3.org/2000/svg","rect");
+ statusBackground.setAttribute("class","red-ui-flow-node-status-background");
+ statusBackground.setAttribute("x",3);
+ statusBackground.setAttribute("y",-1);
+ statusBackground.setAttribute("width",200);
+ statusBackground.setAttribute("height",13);
+ statusBackground.setAttribute("rx",1);
+ statusBackground.setAttribute("ry",1);
+
+ statusEl.appendChild(statusBackground);
+ node[0][0].__statusBackground__ = statusBackground;
+
+
+ var statusIcon = document.createElementNS("http://www.w3.org/2000/svg","rect");
+ statusIcon.setAttribute("class","red-ui-flow-node-status");
+ statusIcon.setAttribute("x",6);
+ statusIcon.setAttribute("y",1);
+ statusIcon.setAttribute("width",9);
+ statusIcon.setAttribute("height",9);
+ statusIcon.setAttribute("rx",2);
+ statusIcon.setAttribute("ry",2);
+ statusIcon.setAttribute("stroke-width","3");
+ statusEl.appendChild(statusIcon);
+ node[0][0].__statusShape__ = statusIcon;
var statusLabel = document.createElementNS("http://www.w3.org/2000/svg","text");
statusLabel.setAttribute("class","red-ui-flow-node-status-label");
@@ -4636,6 +4658,7 @@ RED.view = (function() {
nodesReordered = true;
delete d._reordered;
}
+
if (d.dirty) {
var self = this;
var thisNode = d3.select(this);
@@ -4868,9 +4891,20 @@ RED.view = (function() {
}
icon.attr("y",function(){return (d.h-d3.select(this).attr("height"))/2;});
- this.__iconShade__.setAttribute("height", d.h );
+
+
+ const iconShadeHeight = d.h
+ const iconShadeWidth = 30
+ this.__iconShade__.setAttribute("d", hideLabel ?
+ `M5 0 h${iconShadeWidth-10} a 5 5 0 0 1 5 5 v${iconShadeHeight-10} a 5 5 0 0 1 -5 5 h-${iconShadeWidth-10} a 5 5 0 0 1 -5 -5 v-${iconShadeHeight-10} a 5 5 0 0 1 5 -5` : (
+ "right" === d._def.align ?
+ `M 0 0 h${iconShadeWidth-5} a 5 5 0 0 1 5 5 v${iconShadeHeight-10} a 5 5 0 0 1 -5 5 h-${iconShadeWidth-5} v-${iconShadeHeight}` :
+ `M5 0 h${iconShadeWidth-5} v${iconShadeHeight} h-${iconShadeWidth-5} a 5 5 0 0 1 -5 -5 v-${iconShadeHeight-10} a 5 5 0 0 1 5 -5`
+ )
+ )
+ this.__iconShadeBorder__.style.display = hideLabel?'none':''
this.__iconShadeBorder__.setAttribute("d",
- "M " + (((!d._def.align && d.inputs !== 0 && d.outputs === 0) || "right" === d._def.align) ? 0 : 30) + " 1 l 0 " + (d.h - 2)
+ "M " + (((!d._def.align && d.inputs !== 0 && d.outputs === 0) || "right" === d._def.align) ? 0.5 : 29.5) + " "+(d.selected?1:0.5)+" l 0 " + (d.h - (d.selected?2:1))
);
faIcon.attr("y",(d.h+13)/2);
}
@@ -4887,7 +4921,7 @@ RED.view = (function() {
if (d._def.button) {
var buttonEnabled = isButtonEnabled(d);
this.__buttonGroup__.classList.toggle("red-ui-flow-node-button-disabled", !buttonEnabled);
- if (RED.runtime && Object.hasOwn(RED.runtime,'started')) {
+ if (RED.runtime && RED.runtime.started !== undefined) {
this.__buttonGroup__.classList.toggle("red-ui-flow-node-button-stopped", !RED.runtime.started);
}
@@ -5008,16 +5042,25 @@ RED.view = (function() {
contents.appendChild(junctionOutput);
junctionOutput.addEventListener("mouseup", portMouseUpProxy);
junctionOutput.addEventListener("mousedown", portMouseDownProxy);
-
junctionOutput.addEventListener("mouseover", junctionMouseOverProxy);
junctionOutput.addEventListener("mouseout", junctionMouseOutProxy);
+ junctionOutput.addEventListener("touchmove", junctionMouseOverProxy);
+ junctionOutput.addEventListener("touchend", portMouseUpProxy);
+ junctionOutput.addEventListener("touchstart", portMouseDownProxy);
+
junctionInput.addEventListener("mouseover", junctionMouseOverProxy);
junctionInput.addEventListener("mouseout", junctionMouseOutProxy);
+ junctionInput.addEventListener("touchmove", junctionMouseOverProxy);
+ junctionInput.addEventListener("touchend", portMouseUpProxy);
+ junctionInput.addEventListener("touchstart", portMouseDownProxy);
+
junctionBack.addEventListener("mouseover", junctionMouseOverProxy);
junctionBack.addEventListener("mouseout", junctionMouseOutProxy);
+ junctionBack.addEventListener("touchmove", junctionMouseOverProxy);
// These handlers expect to be registered as d3 events
d3.select(junctionBack).on("mousedown", nodeMouseDown).on("mouseup", nodeMouseUp);
+ d3.select(junctionBack).on("touchstart", nodeMouseDown).on("touchend", nodeMouseUp);
junction[0][0].appendChild(contents);
})
@@ -5127,7 +5170,7 @@ RED.view = (function() {
// " C "+(d.x1+scale*node_width)+" "+(d.y1+scaleY*node_height)+" "+
// (d.x2-scale*node_width)+" "+(d.y2-scaleY*node_height)+" "+
// d.x2+" "+d.y2;
- var path = generateLinkPath(d.x1,d.y1,d.x2,d.y2,1);
+ var path = generateLinkPath(d.x1,d.y1,d.x2,d.y2,1, !!(d.source.status || d.target.status));
if (/NaN/.test(path)) {
path = ""
}
@@ -5278,23 +5321,30 @@ RED.view = (function() {
g.attr("id",d.id);
var groupBorderRadius = 4;
-
+ var groupOutlineBorderRadius = 6
var selectGroup = groupSelectLayer.append('g').attr("class", "red-ui-flow-group").attr("id","group_select_"+d.id);
- selectGroup.append('rect').classed("red-ui-flow-group-outline-select",true)
+ const groupBackground = selectGroup.append('rect')
+ .classed("red-ui-flow-group-outline-select",true)
.classed("red-ui-flow-group-outline-select-background",true)
- .attr('rx',groupBorderRadius).attr('ry',groupBorderRadius)
- .attr("x",-4)
- .attr("y",-4);
-
-
- selectGroup.append('rect').classed("red-ui-flow-group-outline-select",true)
- .attr('rx',groupBorderRadius).attr('ry',groupBorderRadius)
- .attr("x",-4)
- .attr("y",-4)
- selectGroup.on("mousedown", function() {groupMouseDown.call(g[0][0],d)});
- selectGroup.on("mouseup", function() {groupMouseUp.call(g[0][0],d)});
- selectGroup.on("touchstart", function() {groupMouseDown.call(g[0][0],d); d3.event.preventDefault();});
- selectGroup.on("touchend", function() {groupMouseUp.call(g[0][0],d); d3.event.preventDefault();});
+ .attr('rx',groupOutlineBorderRadius).attr('ry',groupOutlineBorderRadius)
+ .attr("x",-3)
+ .attr("y",-3);
+ selectGroup.append('rect')
+ .classed("red-ui-flow-group-outline-select",true)
+ .classed("red-ui-flow-group-outline-select-outline",true)
+ .attr('rx',groupOutlineBorderRadius).attr('ry',groupOutlineBorderRadius)
+ .attr("x",-3)
+ .attr("y",-3)
+ selectGroup.append('rect')
+ .classed("red-ui-flow-group-outline-select",true)
+ .classed("red-ui-flow-group-outline-select-line",true)
+ .attr('rx',groupOutlineBorderRadius).attr('ry',groupOutlineBorderRadius)
+ .attr("x",-3)
+ .attr("y",-3)
+ groupBackground.on("mousedown", function() {groupMouseDown.call(g[0][0],d)});
+ groupBackground.on("mouseup", function() {groupMouseUp.call(g[0][0],d)});
+ groupBackground.on("touchstart", function() {groupMouseDown.call(g[0][0],d); d3.event.preventDefault();});
+ groupBackground.on("touchend", function() {groupMouseUp.call(g[0][0],d); d3.event.preventDefault();});
g.append('rect').classed("red-ui-flow-group-outline",true).attr('rx',0.5).attr('ry',0.5);
@@ -5312,11 +5362,7 @@ RED.view = (function() {
});
if (addedGroups) {
group.sort(function(a,b) {
- if (a._root === b._root) {
- return a._depth - b._depth;
- } else {
- return a._index - b._index;
- }
+ return a._order - b._order
})
}
group[0].reverse();
@@ -5341,6 +5387,11 @@ RED.view = (function() {
var margin = 26;
d.nodes.forEach(function(n) {
groupOpCount++
+ if (n._detachFromGroup) {
+ // Do not include this node when recalulating
+ // the group dimensions
+ return
+ }
if (n.type !== "group") {
minX = Math.min(minX,n.x-n.w/2-margin-((n._def.button && n._def.align!=="right")?20:0));
minY = Math.min(minY,n.y-n.h/2-margin);
@@ -5353,11 +5404,12 @@ RED.view = (function() {
maxY = Math.max(maxY,n.y+n.h+margin)
}
});
-
- d.x = minX;
- d.y = minY;
- d.w = maxX - minX;
- d.h = maxY - minY;
+ if (minX !== Number.POSITIVE_INFINITY && minY !== Number.POSITIVE_INFINITY) {
+ d.x = minX;
+ d.y = minY;
+ d.w = maxX - minX;
+ d.h = maxY - minY;
+ }
recalculateLabelOffsets = true;
// if set explicitly to false, this group has just been
// imported so needed this initial resize calculation.
@@ -5414,16 +5466,25 @@ RED.view = (function() {
} else {
selectGroup.classList.remove("red-ui-flow-group-hovered")
}
+ if (d.selected) {
+ selectGroup.classList.add("red-ui-flow-group-selected")
+ } else {
+ selectGroup.classList.remove("red-ui-flow-group-selected")
+ }
var selectGroupRect = selectGroup.children[0];
- selectGroupRect.setAttribute("width",d.w+8)
- selectGroupRect.setAttribute("height",d.h+8)
- selectGroupRect.style.strokeOpacity = (d.active || d.selected || d.highlighted)?0.8:0;
- selectGroupRect.style.strokeDasharray = (d.active)?"10 4":"";
+ // Background
+ selectGroupRect.setAttribute("width",d.w+6)
+ selectGroupRect.setAttribute("height",d.h+6)
+ // Outline
selectGroupRect = selectGroup.children[1];
- selectGroupRect.setAttribute("width",d.w+8)
- selectGroupRect.setAttribute("height",d.h+8)
- selectGroupRect.style.strokeOpacity = (d.active || d.selected || d.highlighted)?0.8:0;
- selectGroupRect.style.strokeDasharray = (d.active)?"10 4":"";
+ selectGroupRect.setAttribute("width",d.w+6)
+ selectGroupRect.setAttribute("height",d.h+6)
+ selectGroupRect.style.strokeOpacity = (d.selected || d.highlighted)?0.8:0;
+ // Line
+ selectGroupRect = selectGroup.children[2];
+ selectGroupRect.setAttribute("width",d.w+6)
+ selectGroupRect.setAttribute("height",d.h+6)
+ selectGroupRect.style.strokeOpacity = (d.selected || d.highlighted)?0.8:0;
if (d.highlighted) {
selectGroup.classList.add("red-ui-flow-node-highlighted");
@@ -5551,7 +5612,7 @@ RED.view = (function() {
if (mouse_mode === RED.state.SELECTING_NODE) {
return;
}
-
+ const wasDirty = RED.nodes.dirty()
var nodesToImport;
if (typeof newNodesObj === "string") {
if (newNodesObj === "") {
@@ -5568,7 +5629,7 @@ RED.view = (function() {
nodesToImport = newNodesObj;
}
- if (!$.isArray(nodesToImport)) {
+ if (!Array.isArray(nodesToImport)) {
nodesToImport = [nodesToImport];
}
if (options.generateDefaultNames) {
@@ -5584,7 +5645,29 @@ RED.view = (function() {
if (activeSubflow) {
activeSubflowChanged = activeSubflow.changed;
}
- var result = RED.nodes.import(nodesToImport,{generateIds:options.generateIds, addFlow: addNewFlow, importMap: options.importMap});
+ var filteredNodesToImport = nodesToImport;
+ var globalConfig = null;
+ var gconf = null;
+
+ RED.nodes.eachConfig(function (conf) {
+ if (conf.type === "global-config") {
+ gconf = conf;
+ }
+ });
+ if (gconf) {
+ filteredNodesToImport = nodesToImport.filter(function (n) {
+ return (n.type !== "global-config");
+ });
+ globalConfig = nodesToImport.find(function (n) {
+ return (n.type === "global-config");
+ });
+ }
+ var result = RED.nodes.import(filteredNodesToImport,{
+ generateIds: options.generateIds,
+ addFlow: addNewFlow,
+ importMap: options.importMap,
+ markChanged: true
+ });
if (result) {
var new_nodes = result.nodes;
var new_links = result.links;
@@ -5600,7 +5683,7 @@ RED.view = (function() {
var new_ms = new_nodes.filter(function(n) { return n.hasOwnProperty("x") && n.hasOwnProperty("y") && n.z == RED.workspaces.active() });
new_ms = new_ms.concat(new_groups.filter(function(g) { return g.z === RED.workspaces.active()}))
new_ms = new_ms.concat(new_junctions.filter(function(j) { return j.z === RED.workspaces.active()}))
- var new_node_ids = new_nodes.map(function(n){ n.changed = true; return n.id; });
+ var new_node_ids = new_nodes.map(function(n){ return n.id; });
clearSelection();
movingSet.clear();
@@ -5666,28 +5749,19 @@ RED.view = (function() {
}
if (!touchImport) {
mouse_mode = RED.state.IMPORT_DRAGGING;
- spliceActive = false;
- if (movingSet.length() === 1) {
- node = movingSet.get(0);
- spliceActive = node.n.hasOwnProperty("_def") &&
- ((node.n.hasOwnProperty("inputs") && node.n.inputs > 0) || (!node.n.hasOwnProperty("inputs") && node.n._def.inputs > 0)) &&
- ((node.n.hasOwnProperty("outputs") && node.n.outputs > 0) || (!node.n.hasOwnProperty("outputs") && node.n._def.outputs > 0))
-
-
- }
+ startSelectionMove()
}
-
}
var historyEvent = {
- t:"add",
- nodes:new_node_ids,
- links:new_links,
- groups:new_groups,
+ t: "add",
+ nodes: new_node_ids,
+ links: new_links,
+ groups: new_groups,
junctions: new_junctions,
- workspaces:new_workspaces,
- subflows:new_subflows,
- dirty:RED.nodes.dirty()
+ workspaces: new_workspaces,
+ subflows: new_subflows,
+ dirty: wasDirty
};
if (movingSet.length() === 0) {
RED.nodes.dirty(true);
@@ -5696,7 +5770,7 @@ RED.view = (function() {
var subflowRefresh = RED.subflow.refresh(true);
if (subflowRefresh) {
historyEvent.subflow = {
- id:activeSubflow.id,
+ id: activeSubflow.id,
changed: activeSubflowChanged,
instances: subflowRefresh.instances
}
@@ -5716,6 +5790,50 @@ RED.view = (function() {
}
}
+ if (globalConfig) {
+ // merge global env to existing global-config
+ var env0 = gconf.env;
+ var env1 = globalConfig.env;
+ var newEnv = Array.from(env0);
+ var changed = false;
+
+ env1.forEach(function (item1) {
+ var index = newEnv.findIndex(function (item0) {
+ return (item0.name === item1.name);
+ });
+ if (index >= 0) {
+ var item0 = newEnv[index];
+ if ((item0.type !== item1.type) ||
+ (item0.value !== item1.value)) {
+ newEnv[index] = item1;
+ changed = true;
+ }
+ }
+ else {
+ newEnv.push(item1);
+ changed = true;
+ }
+ });
+ if(changed) {
+ gconf.env = newEnv;
+ var replaceEvent = {
+ t: "edit",
+ node: gconf,
+ changed: true,
+ changes: {
+ env: env0
+ }
+ };
+ historyEvent = {
+ t:"multi",
+ events: [
+ replaceEvent,
+ historyEvent,
+ ]
+ };
+ }
+ }
+
RED.history.push(historyEvent);
updateActiveNodes();
@@ -5770,6 +5888,59 @@ RED.view = (function() {
}
}
+ function startSelectionMove() {
+ spliceActive = false;
+ if (movingSet.length() === 1) {
+ const node = movingSet.get(0);
+ spliceActive = node.n.hasOwnProperty("_def") &&
+ ((node.n.hasOwnProperty("inputs") && node.n.inputs > 0) || (!node.n.hasOwnProperty("inputs") && node.n._def.inputs > 0)) &&
+ ((node.n.hasOwnProperty("outputs") && node.n.outputs > 0) || (!node.n.hasOwnProperty("outputs") && node.n._def.outputs > 0)) &&
+ RED.nodes.filterLinks({ source: node.n }).length === 0 &&
+ RED.nodes.filterLinks({ target: node.n }).length === 0;
+ }
+ groupAddActive = false
+ groupAddParentGroup = null
+ if (movingSet.length() > 0 && activeGroups) {
+ // movingSet includes the selection AND any nodes inside selected groups
+ // So we cannot simply check the `g` of all nodes match.
+ // Instead, we have to:
+ // - note all groups in movingSet
+ // - note all .g values referenced in movingSet
+ // - then check for g values for groups not in movingSet
+ let isValidSelection = true
+ let hasNullGroup = false
+ const selectedGroups = []
+ const referencedGroups = new Set()
+ movingSet.forEach(n => {
+ if (n.n.type === 'subflow') {
+ isValidSelection = false
+ }
+ if (n.n.type === 'group') {
+ selectedGroups.push(n.n.id)
+ }
+ if (n.n.g) {
+ referencedGroups.add(n.n.g)
+ } else {
+ hasNullGroup = true
+ }
+ })
+ if (isValidSelection) {
+ selectedGroups.forEach(g => referencedGroups.delete(g))
+ // console.log('selectedGroups', selectedGroups)
+ // console.log('referencedGroups',referencedGroups)
+ // console.log('hasNullGroup', hasNullGroup)
+ if (referencedGroups.size === 0) {
+ groupAddActive = true
+ } else if (!hasNullGroup && referencedGroups.size === 1) {
+ groupAddParentGroup = referencedGroups.values().next().value
+ groupAddActive = true
+ }
+ }
+ // console.log('groupAddActive', groupAddActive)
+ // console.log('groupAddParentGroup', groupAddParentGroup)
+ }
+ }
+
function toggleShowGrid(state) {
if (state) {
gridLayer.style("visibility","visible");
@@ -5791,6 +5962,9 @@ RED.view = (function() {
if (mouse_mode === RED.state.SELECTING_NODE) {
return;
}
+ if (activeFlowLocked) {
+ return
+ }
var workspaceSelection = RED.workspaces.selection();
var changed = false;
if (workspaceSelection.length > 0) {
@@ -5850,20 +6024,13 @@ RED.view = (function() {
}
});
}
- var selectedGroups = activeGroups.filter(function(g) { return g.selected && !g.active });
- if (selectedGroups.length > 0) {
- if (selectedGroups.length === 1 && selectedGroups[0].active) {
- // Let nodes be nodes
- } else {
- selectedGroups.forEach(function(g) {
- var groupNodes = RED.group.getNodes(g,true);
- groupNodes.forEach(function(n) {
- allNodes.delete(n);
- });
- allNodes.add(g);
- });
- }
- }
+ selectedGroups.forEach(function(g) {
+ var groupNodes = RED.group.getNodes(g,true);
+ groupNodes.forEach(function(n) {
+ allNodes.delete(n);
+ });
+ allNodes.add(g);
+ });
if (allNodes.size > 0) {
selection.nodes = Array.from(allNodes);
}
@@ -6050,6 +6217,13 @@ RED.view = (function() {
selectedNode.dirty = true;
movingSet.clear();
movingSet.add(selectedNode);
+ } else {
+ selectedNode = RED.nodes.group(selection);
+ if (selectedNode) {
+ movingSet.clear();
+ selectedGroups.clear()
+ selectedGroups.add(selectedNode)
+ }
}
} else if (selection) {
if (selection.nodes) {
@@ -6065,7 +6239,7 @@ RED.view = (function() {
n.dirty = true;
movingSet.add(n);
} else {
- selectGroup(n,true);
+ selectedGroups.add(n,true);
}
})
}
@@ -6108,7 +6282,7 @@ RED.view = (function() {
return result;
},
getGroupAtPoint: getGroupAt,
- getActiveGroup: function() { return activeGroup },
+ getActiveGroup: function() { return null },
reveal: function(id,triggerHighlight) {
if (RED.nodes.workspace(id) || RED.nodes.subflow(id)) {
RED.workspaces.show(id, null, null, true);
@@ -6118,7 +6292,9 @@ RED.view = (function() {
if (node.z && (node.type === "group" || node._def.category !== 'config')) {
node.dirty = true;
RED.workspaces.show(node.z);
-
+ if (node.type === "group" && !node.w && !node.h) {
+ _redraw();
+ }
var screenSize = [chart[0].clientWidth/scaleFactor,chart[0].clientHeight/scaleFactor];
var scrollPos = [chart.scrollLeft()/scaleFactor,chart.scrollTop()/scaleFactor];
var cx = node.x;
@@ -6231,8 +6407,12 @@ RED.view = (function() {
})
},
scroll: function(x,y) {
- chart.scrollLeft(chart.scrollLeft()+x);
- chart.scrollTop(chart.scrollTop()+y)
+ if (x !== undefined && y !== undefined) {
+ chart.scrollLeft(chart.scrollLeft()+x);
+ chart.scrollTop(chart.scrollTop()+y)
+ } else {
+ return [chart.scrollLeft(), chart.scrollTop()]
+ }
},
clickNodeButton: function(n) {
if (n._def.button) {
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js b/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js
index 1f5cdf0f1..1a71577ce 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js
@@ -58,6 +58,9 @@ RED.workspaces = (function() {
if (!ws.closeable) {
ws.hideable = true;
}
+ if (!ws.hasOwnProperty('locked')) {
+ ws.locked = false
+ }
workspace_tabs.addTab(ws,targetIndex);
var hiddenTabs = JSON.parse(RED.settings.getLocal("hiddenTabs")||"{}");
@@ -75,11 +78,15 @@ RED.workspaces = (function() {
type: "tab",
id: tabId,
disabled: false,
+ locked: false,
info: "",
label: RED._('workspace.defaultName',{number:workspaceIndex}),
env: [],
- hideable: true
+ hideable: true,
};
+ if (!skipHistoryEntry) {
+ ws.added = true
+ }
RED.nodes.addWorkspace(ws,targetIndex);
workspace_tabs.addTab(ws,targetIndex);
@@ -89,8 +96,7 @@ RED.workspaces = (function() {
RED.nodes.dirty(true);
}
}
- $("#red-ui-tab-"+(ws.id.replace(".","-"))).attr("flowname",ws.label)
-
+ $("#red-ui-tab-"+(ws.id.replace(".","-"))).attr("flowname",ws.label).toggleClass('red-ui-workspace-changed',!!(ws.contentsChanged || ws.changed || ws.added));
RED.view.focus();
return ws;
}
@@ -99,6 +105,9 @@ RED.workspaces = (function() {
if (workspaceTabCount === 1) {
return;
}
+ if (ws.locked) {
+ return
+ }
var workspaceOrder = RED.nodes.getWorkspaceOrder();
ws._index = workspaceOrder.indexOf(ws.id);
removeWorkspace(ws);
@@ -119,13 +128,206 @@ RED.workspaces = (function() {
RED.editor.editSubflow(subflow);
}
} else {
- RED.editor.editFlow(workspace);
+ if (!workspace.locked) {
+ RED.editor.editFlow(workspace);
+ }
}
}
var workspace_tabs;
var workspaceTabCount = 0;
+
+ function getMenuItems(isMenuButton, tab) {
+ let hiddenFlows = new Set()
+ for (let i = 0; i < hideStack.length; i++) {
+ let ids = hideStack[i]
+ if (!Array.isArray(ids)) {
+ ids = [ids]
+ }
+ ids.forEach(id => {
+ if (RED.nodes.workspace(id)) {
+ hiddenFlows.add(id)
+ }
+ })
+ }
+ const hiddenflowCount = hiddenFlows.size;
+ let activeWorkspace = tab || RED.nodes.workspace(RED.workspaces.active()) || RED.nodes.subflow(RED.workspaces.active())
+ let isFlowDisabled = activeWorkspace ? activeWorkspace.disabled : false
+ const currentTabs = workspace_tabs.listTabs();
+ let flowCount = 0;
+ currentTabs.forEach(tab => {
+ if (RED.nodes.workspace(tab)) {
+ flowCount++;
+ }
+ });
+
+ let isCurrentLocked = RED.workspaces.isLocked()
+ if (tab) {
+ isCurrentLocked = tab.locked
+ }
+
+ var menuItems = []
+ if (isMenuButton) {
+ menuItems.push({
+ id:"red-ui-tabs-menu-option-search-flows",
+ label: RED._("workspace.listFlows"),
+ onselect: "core:list-flows"
+ },
+ {
+ id:"red-ui-tabs-menu-option-search-subflows",
+ label: RED._("workspace.listSubflows"),
+ onselect: "core:list-subflows"
+ },
+ null)
+ }
+ menuItems.push(
+ {
+ id:"red-ui-tabs-menu-option-add-flow",
+ label: RED._("workspace.addFlow"),
+ onselect: "core:add-flow"
+ }
+ )
+ if (isMenuButton || !!tab) {
+ menuItems.push(
+ {
+ id:"red-ui-tabs-menu-option-add-flow-right",
+ label: RED._("workspace.addFlowToRight"),
+ shortcut: RED.keyboard.getShortcut("core:add-flow-to-right"),
+ onselect: function() {
+ RED.actions.invoke("core:add-flow-to-right", tab)
+ }
+ },
+ null
+ )
+ if (activeWorkspace && activeWorkspace.type === 'tab') {
+ menuItems.push(
+ isFlowDisabled ? {
+ label: RED._("workspace.enableFlow"),
+ shortcut: RED.keyboard.getShortcut("core:enable-flow"),
+ onselect: function() {
+ RED.actions.invoke("core:enable-flow", tab?tab.id:undefined)
+ },
+ disabled: isCurrentLocked
+ } : {
+ label: RED._("workspace.disableFlow"),
+ shortcut: RED.keyboard.getShortcut("core:disable-flow"),
+ onselect: function() {
+ RED.actions.invoke("core:disable-flow", tab?tab.id:undefined)
+ },
+ disabled: isCurrentLocked
+ },
+ isCurrentLocked? {
+ label: RED._("workspace.unlockFlow"),
+ shortcut: RED.keyboard.getShortcut("core:unlock-flow"),
+ onselect: function() {
+ RED.actions.invoke('core:unlock-flow', tab?tab.id:undefined)
+ }
+ } : {
+ label: RED._("workspace.lockFlow"),
+ shortcut: RED.keyboard.getShortcut("core:lock-flow"),
+ onselect: function() {
+ RED.actions.invoke('core:lock-flow', tab?tab.id:undefined)
+ }
+ },
+ null
+ )
+ }
+ const activeIndex = currentTabs.findIndex(id => (activeWorkspace && (id === activeWorkspace.id)));
+ menuItems.push(
+ {
+ label: RED._("workspace.moveToStart"),
+ shortcut: RED.keyboard.getShortcut("core:move-flow-to-start"),
+ onselect: function() {
+ RED.actions.invoke("core:move-flow-to-start", tab?tab.id:undefined)
+ },
+ disabled: activeIndex === 0
+ },
+ {
+ label: RED._("workspace.moveToEnd"),
+ shortcut: RED.keyboard.getShortcut("core:move-flow-to-end"),
+ onselect: function() {
+ RED.actions.invoke("core:move-flow-to-end", tab?tab.id:undefined)
+ },
+ disabled: activeIndex === currentTabs.length - 1
+ }
+ )
+ }
+ menuItems.push(null)
+ if (isMenuButton || !!tab) {
+ menuItems.push(
+ {
+ id:"red-ui-tabs-menu-option-add-hide-flows",
+ label: RED._("workspace.hideFlow"),
+ shortcut: RED.keyboard.getShortcut("core:hide-flow"),
+ onselect: function() {
+ RED.actions.invoke("core:hide-flow", tab)
+ }
+ },
+ {
+ id:"red-ui-tabs-menu-option-add-hide-other-flows",
+ label: RED._("workspace.hideOtherFlows"),
+ shortcut: RED.keyboard.getShortcut("core:hide-other-flows"),
+ onselect: function() {
+ RED.actions.invoke("core:hide-other-flows", tab)
+ }
+ }
+ )
+
+ }
+
+ menuItems.push(
+ {
+ id:"red-ui-tabs-menu-option-add-hide-all-flows",
+ label: RED._("workspace.hideAllFlows"),
+ onselect: "core:hide-all-flows",
+ disabled: (hiddenflowCount === flowCount)
+ },
+ {
+ id:"red-ui-tabs-menu-option-add-show-all-flows",
+ disabled: hiddenflowCount === 0,
+ label: RED._("workspace.showAllFlows", { count: hiddenflowCount }),
+ onselect: "core:show-all-flows"
+ },
+ {
+ id:"red-ui-tabs-menu-option-add-show-last-flow",
+ disabled: hideStack.length === 0,
+ label: RED._("workspace.showLastHiddenFlow"),
+ onselect: "core:show-last-hidden-flow"
+ }
+ )
+ if (tab) {
+ menuItems.push(
+ null,
+ {
+ label: RED._("common.label.delete"),
+ onselect: function() {
+ if (tab.type === 'tab') {
+ RED.workspaces.delete(tab)
+ } else if (tab.type === 'subflow') {
+ RED.subflow.delete(tab.id)
+ }
+ },
+ disabled: isCurrentLocked || (workspaceTabCount === 1)
+ },
+ {
+ label: RED._("menu.label.export"),
+ shortcut: RED.keyboard.getShortcut("core:show-export-dialog"),
+ onselect: function() {
+ RED.workspaces.show(tab.id)
+ RED.actions.invoke('core:show-export-dialog', null, 'flow')
+ }
+ }
+ )
+ }
+ // if (isMenuButton && hiddenflowCount > 0) {
+ // menuItems.unshift({
+ // label: RED._("workspace.hiddenFlows",{count: hiddenflowCount}),
+ // onselect: "core:list-hidden-flows"
+ // })
+ // }
+ return menuItems;
+ }
function createWorkspaceTabs() {
workspace_tabs = RED.tabs.create({
id: "red-ui-workspace-tabs",
@@ -137,8 +339,9 @@ RED.workspaces = (function() {
$("#red-ui-workspace-chart").show();
activeWorkspace = tab.id;
window.location.hash = 'flow/'+tab.id;
- $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!tab.disabled);
- } else {
+ $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled", !!tab.disabled);
+ $("#red-ui-workspace").toggleClass("red-ui-workspace-locked", !!tab.locked);
+ } else {
$("#red-ui-workspace-chart").hide();
activeWorkspace = 0;
window.location.hash = '';
@@ -169,6 +372,18 @@ RED.workspaces = (function() {
if (tab.disabled) {
$("#red-ui-tab-"+(tab.id.replace(".","-"))).addClass('red-ui-workspace-disabled');
}
+ $(' ').prependTo("#red-ui-tab-"+(tab.id.replace(".","-"))+" .red-ui-tab-label");
+ if (tab.locked) {
+ $("#red-ui-tab-"+(tab.id.replace(".","-"))).addClass('red-ui-workspace-locked');
+ }
+
+ const changeBadgeContainer = $(' ').appendTo("#red-ui-tab-"+(tab.id.replace(".","-")))
+ const changeBadge = document.createElementNS("http://www.w3.org/2000/svg","circle");
+ changeBadge.setAttribute("cx",5);
+ changeBadge.setAttribute("cy",5);
+ changeBadge.setAttribute("r",5);
+ changeBadgeContainer.append(changeBadge)
+
RED.menu.setDisabled("menu-item-workspace-delete",activeWorkspace === 0 || workspaceTabCount <= 1);
if (workspaceTabCount === 1) {
showWorkspace();
@@ -189,13 +404,19 @@ RED.workspaces = (function() {
RED.history.push({
t:'reorder',
workspaces: {
- from:oldOrder,
- to:newOrder
+ from: oldOrder,
+ to: newOrder
},
dirty:RED.nodes.dirty()
});
- RED.nodes.dirty(true);
- setWorkspaceOrder(newOrder);
+ // Only mark flows dirty if flow-order has changed (excluding subflows)
+ const filteredOldOrder = oldOrder.filter(id => !!RED.nodes.workspace(id))
+ const filteredNewOrder = newOrder.filter(id => !!RED.nodes.workspace(id))
+
+ if (JSON.stringify(filteredOldOrder) !== JSON.stringify(filteredNewOrder)) {
+ RED.nodes.dirty(true);
+ setWorkspaceOrder(newOrder);
+ }
},
onselect: function(selectedTabs) {
RED.view.select(false)
@@ -214,12 +435,12 @@ RED.workspaces = (function() {
},
onhide: function(tab) {
hideStack.push(tab.id);
-
- var hiddenTabs = JSON.parse(RED.settings.getLocal("hiddenTabs")||"{}");
- hiddenTabs[tab.id] = true;
- RED.settings.setLocal("hiddenTabs",JSON.stringify(hiddenTabs));
-
- RED.events.emit("workspace:hide",{workspace: tab.id})
+ if (tab.type === "tab") {
+ var hiddenTabs = JSON.parse(RED.settings.getLocal("hiddenTabs")||"{}");
+ hiddenTabs[tab.id] = true;
+ RED.settings.setLocal("hiddenTabs",JSON.stringify(hiddenTabs));
+ RED.events.emit("workspace:hide",{workspace: tab.id})
+ }
},
onshow: function(tab) {
removeFromHideStack(tab.id);
@@ -234,77 +455,8 @@ RED.workspaces = (function() {
scrollable: true,
addButton: "core:add-flow",
addButtonCaption: RED._("workspace.addFlow"),
- menu: function() {
- var menuItems = [
- {
- id:"red-ui-tabs-menu-option-search-flows",
- label: RED._("workspace.listFlows"),
- onselect: "core:list-flows"
- },
- {
- id:"red-ui-tabs-menu-option-search-subflows",
- label: RED._("workspace.listSubflows"),
- onselect: "core:list-subflows"
- },
- null,
- {
- id:"red-ui-tabs-menu-option-add-flow",
- label: RED._("workspace.addFlow"),
- onselect: "core:add-flow"
- },
- {
- id:"red-ui-tabs-menu-option-add-flow-right",
- label: RED._("workspace.addFlowToRight"),
- onselect: "core:add-flow-to-right"
- },
- null,
- {
- id:"red-ui-tabs-menu-option-add-hide-flows",
- label: RED._("workspace.hideFlow"),
- onselect: "core:hide-flow"
- },
- {
- id:"red-ui-tabs-menu-option-add-hide-other-flows",
- label: RED._("workspace.hideOtherFlows"),
- onselect: "core:hide-other-flows"
- },
- {
- id:"red-ui-tabs-menu-option-add-show-all-flows",
- label: RED._("workspace.showAllFlows"),
- onselect: "core:show-all-flows"
- },
- {
- id:"red-ui-tabs-menu-option-add-hide-all-flows",
- label: RED._("workspace.hideAllFlows"),
- onselect: "core:hide-all-flows"
- },
- {
- id:"red-ui-tabs-menu-option-add-show-last-flow",
- label: RED._("workspace.showLastHiddenFlow"),
- onselect: "core:show-last-hidden-flow"
- }
- ]
- let hiddenFlows = new Set()
- for (let i = 0; i < hideStack.length; i++) {
- let ids = hideStack[i]
- if (!Array.isArray(ids)) {
- ids = [ids]
- }
- ids.forEach(id => {
- if (RED.nodes.workspace(id)) {
- hiddenFlows.add(id)
- }
- })
- }
- const flowCount = hiddenFlows.size;
- if (flowCount > 0) {
- menuItems.unshift({
- label: RED._("workspace.hiddenFlows",{count: flowCount}),
- onselect: "core:list-hidden-flows"
- })
- }
- return menuItems;
- }
+ menu: function() { return getMenuItems(true) },
+ contextmenu: function(tab) { return getMenuItems(false, tab) }
});
workspaceTabCount = 0;
}
@@ -355,16 +507,33 @@ RED.workspaces = (function() {
});
RED.actions.add("core:add-flow",function(opts) { addWorkspace(undefined,undefined,opts?opts.index:undefined)});
- RED.actions.add("core:add-flow-to-right",function(opts) { addWorkspace(undefined,undefined,workspace_tabs.activeIndex()+1)});
+ RED.actions.add("core:add-flow-to-right",function(workspace) {
+ let index
+ if (workspace) {
+ index = workspace_tabs.getTabIndex(workspace.id)+1
+ } else {
+ index = workspace_tabs.activeIndex()+1
+ }
+ addWorkspace(undefined,undefined,index)
+ });
RED.actions.add("core:edit-flow",editWorkspace);
RED.actions.add("core:remove-flow",removeWorkspace);
RED.actions.add("core:enable-flow",enableWorkspace);
RED.actions.add("core:disable-flow",disableWorkspace);
+ RED.actions.add("core:lock-flow",lockWorkspace);
+ RED.actions.add("core:unlock-flow",unlockWorkspace);
+ RED.actions.add("core:move-flow-to-start", function(id) { moveWorkspace(id, 'start') });
+ RED.actions.add("core:move-flow-to-end", function(id) { moveWorkspace(id, 'end') });
- RED.actions.add("core:hide-flow", function() {
- var selection = workspace_tabs.selection();
- if (selection.length === 0) {
- selection = [{id:activeWorkspace}]
+ RED.actions.add("core:hide-flow", function(workspace) {
+ let selection
+ if (workspace) {
+ selection = [workspace]
+ } else {
+ selection = workspace_tabs.selection();
+ if (selection.length === 0) {
+ selection = [{id:activeWorkspace}]
+ }
}
var hiddenTabs = [];
selection.forEach(function(ws) {
@@ -378,10 +547,15 @@ RED.workspaces = (function() {
workspace_tabs.clearSelection();
})
- RED.actions.add("core:hide-other-flows", function() {
- var selection = workspace_tabs.selection();
- if (selection.length === 0) {
- selection = [{id:activeWorkspace}]
+ RED.actions.add("core:hide-other-flows", function(workspace) {
+ let selection
+ if (workspace) {
+ selection = [workspace]
+ } else {
+ selection = workspace_tabs.selection();
+ if (selection.length === 0) {
+ selection = [{id:activeWorkspace}]
+ }
}
var selected = new Set(selection.map(function(ws) { return ws.id }))
@@ -471,6 +645,11 @@ RED.workspaces = (function() {
RED.workspaces.show(viewStack[++viewStackPos],true);
}
})
+
+ RED.events.on("flows:change", (ws) => {
+ $("#red-ui-tab-"+(ws.id.replace(".","-"))).toggleClass('red-ui-workspace-changed',!!(ws.contentsChanged || ws.changed || ws.added));
+ })
+
hideWorkspace();
}
@@ -486,7 +665,7 @@ RED.workspaces = (function() {
}
function setWorkspaceState(id,disabled) {
var workspace = RED.nodes.workspace(id||activeWorkspace);
- if (!workspace) {
+ if (!workspace || workspace.locked) {
return;
}
if (workspace.disabled !== disabled) {
@@ -521,11 +700,47 @@ RED.workspaces = (function() {
}
}
}
+ function lockWorkspace(id) {
+ setWorkspaceLockState(id,true);
+ }
+ function unlockWorkspace(id) {
+ setWorkspaceLockState(id,false);
+ }
+ function setWorkspaceLockState(id,locked) {
+ var workspace = RED.nodes.workspace(id||activeWorkspace);
+ if (!workspace) {
+ return;
+ }
+ if (workspace.locked !== locked) {
+ var changes = { locked: workspace.locked };
+ workspace.locked = locked;
+ $("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-locked',!!workspace.locked);
+ if (!id || (id === activeWorkspace)) {
+ $("#red-ui-workspace").toggleClass("red-ui-workspace-locked",!!workspace.locked);
+ }
+ var historyEvent = {
+ t: "edit",
+ changes:changes,
+ node: workspace,
+ dirty: RED.nodes.dirty()
+ }
+ workspace.changed = true;
+ RED.history.push(historyEvent);
+ RED.events.emit("flows:change",workspace);
+ RED.nodes.dirty(true);
+ RED.nodes.filterNodes({z:workspace.id}).forEach(n => n.dirty = true)
+ RED.view.redraw(true);
+ }
+ }
function removeWorkspace(ws) {
if (!ws) {
- deleteWorkspace(RED.nodes.workspace(activeWorkspace));
+ ws = RED.nodes.workspace(activeWorkspace)
+ if (ws && !ws.locked) {
+ deleteWorkspace(RED.nodes.workspace(activeWorkspace));
+ }
} else {
+ if (ws.locked) { return }
if (workspace_tabs.contains(ws.id)) {
workspace_tabs.removeTab(ws.id);
}
@@ -535,16 +750,46 @@ RED.workspaces = (function() {
}
}
+ function moveWorkspace(id, direction) {
+ const workspace = RED.nodes.workspace(id||activeWorkspace) || RED.nodes.subflow(id||activeWorkspace);
+ if (!workspace) {
+ return;
+ }
+ const currentOrder = workspace_tabs.listTabs()
+ const oldOrder = [...currentOrder]
+ const currentIndex = currentOrder.findIndex(id => id === workspace.id)
+ currentOrder.splice(currentIndex, 1)
+ if (direction === 'start') {
+ currentOrder.unshift(workspace.id)
+ } else if (direction === 'end') {
+ currentOrder.push(workspace.id)
+ }
+ const newOrder = setWorkspaceOrder(currentOrder)
+ if (JSON.stringify(newOrder) !== JSON.stringify(oldOrder)) {
+ RED.history.push({
+ t:'reorder',
+ workspaces: {
+ from:oldOrder,
+ to:newOrder
+ },
+ dirty:RED.nodes.dirty()
+ });
+ const filteredOldOrder = oldOrder.filter(id => !!RED.nodes.workspace(id))
+ const filteredNewOrder = newOrder.filter(id => !!RED.nodes.workspace(id))
+ if (JSON.stringify(filteredOldOrder) !== JSON.stringify(filteredNewOrder)) {
+ RED.nodes.dirty(true);
+ }
+ }
+ }
function setWorkspaceOrder(order) {
- var newOrder = order.filter(function(id) {
- return RED.nodes.workspace(id) !== undefined;
- })
+ var newOrder = order.filter(id => !!RED.nodes.workspace(id))
var currentOrder = RED.nodes.getWorkspaceOrder();
if (JSON.stringify(newOrder) !== JSON.stringify(currentOrder)) {
RED.nodes.setWorkspaceOrder(newOrder);
RED.events.emit("flows:reorder",newOrder);
}
workspace_tabs.order(order);
+ return newOrder
}
function flashTab(tabId) {
@@ -590,6 +835,11 @@ RED.workspaces = (function() {
active: function() {
return activeWorkspace
},
+ isLocked: function(id) {
+ id = id || activeWorkspace
+ var ws = RED.nodes.workspace(id) || RED.nodes.subflow(id)
+ return ws && ws.locked
+ },
selection: function() {
return workspace_tabs.selection();
},
@@ -646,6 +896,8 @@ RED.workspaces = (function() {
workspace_tabs.resize();
},
enable: enableWorkspace,
- disable: disableWorkspace
+ disable: disableWorkspace,
+ lock: lockWorkspace,
+ unlock: unlockWorkspace
}
})();
diff --git a/packages/node_modules/@node-red/editor-client/src/js/validators.js b/packages/node_modules/@node-red/editor-client/src/js/validators.js
index 4fb384cbf..83ab7f1f5 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/validators.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/validators.js
@@ -43,43 +43,13 @@ RED.validators = {
typedInput: function(ptypeName,isConfig,mopt) {
return function(v, opt) {
var ptype = $("#node-"+(isConfig?"config-":"")+"input-"+ptypeName).val() || this[ptypeName];
- if (ptype === 'json') {
- try {
- JSON.parse(v);
- return true;
- } catch(err) {
- if (opt && opt.label) {
- return RED._("validator.errors.invalid-json-prop", {
- error: err.message,
- prop: opt.label,
- });
- }
- return opt ? RED._("validator.errors.invalid-json", {
- error: err.message
- }) : false;
- }
- } else if (ptype === 'msg' || ptype === 'flow' || ptype === 'global' ) {
- if (RED.utils.validatePropertyExpression(v)) {
- return true;
- }
- if (opt && opt.label) {
- return RED._("validator.errors.invalid-prop-prop", {
- prop: opt.label
- });
- }
- return opt ? RED._("validator.errors.invalid-prop") : false;
- } else if (ptype === 'num') {
- if (/^[+-]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$/.test(v)) {
- return true;
- }
- if (opt && opt.label) {
- return RED._("validator.errors.invalid-num-prop", {
- prop: opt.label
- });
- }
- return opt ? RED._("validator.errors.invalid-num") : false;
+ const result = RED.utils.validateTypedProperty(v, ptype, opt)
+ if (result === true || opt) {
+ // Valid, or opt provided - return result as-is
+ return result
}
- return true;
- };
+ // No opt - need to return false for backwards compatibilty
+ return false
+ }
}
-};
+};
\ No newline at end of file
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/debug.scss b/packages/node_modules/@node-red/editor-client/src/sass/debug.scss
index 58099877f..eb550c6f5 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/debug.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/debug.scss
@@ -30,7 +30,7 @@
bottom: 0px;
left:0px;
right: 0px;
- overflow-y: scroll;
+ overflow-y: auto;
}
.red-ui-debug-filter-box {
position:absolute;
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/dragdrop.scss b/packages/node_modules/@node-red/editor-client/src/sass/dragdrop.scss
index 78646e0e7..3d4b2253a 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/dragdrop.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/dragdrop.scss
@@ -37,3 +37,27 @@
}
}
}
+
+#red-ui-image-drop-target {
+ position: absolute;
+ top: 0; bottom: 0;
+ left: 0; right: 0;
+ background: var(--red-ui-dnd-background);
+ display:table;
+ width: 100%;
+ height: 100%;
+ display: none;
+ z-index:100;
+ div {
+ pointer-events: none;
+ display: table-cell;
+ vertical-align: middle;
+ text-align: center;
+ font-size: 40px;
+ color: var(--red-ui-dnd-color);
+ i {
+ pointer-events: none;
+ font-size: 80px;
+ }
+ }
+}
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/dropdownMenu.scss b/packages/node_modules/@node-red/editor-client/src/sass/dropdownMenu.scss
index 5cb5f725c..f6a2d6fde 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/dropdownMenu.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/dropdownMenu.scss
@@ -63,11 +63,14 @@
padding: 4px 12px 4px 12px;
}
- &.red-ui-menu-dropdown-submenus > li > a,
- &.red-ui-menu-dropdown-submenus > li > a:focus {
+ &.red-ui-menu-dropdown-submenus.red-ui-menu-dropdown-direction-right > li > a,
+ &.red-ui-menu-dropdown-submenus.red-ui-menu-dropdown-direction-right > li > a:focus {
padding-right: 20px;
}
-
+ &.red-ui-menu-dropdown-submenus.red-ui-menu-dropdown-direction-left > li > a,
+ &.red-ui-menu-dropdown-submenus.red-ui-menu-dropdown-direction-left > li > a:focus {
+ padding-left: 20px;
+ }
& > .active > a,
@@ -199,7 +202,7 @@
width: 0;
height: 0;
margin-top: 5px;
- margin-left: -30px;
+ margin-left: -15px;
/* Caret Arrow */
border-color: transparent;
border-right-color: var(--red-ui-menuCaret);
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/editor.scss b/packages/node_modules/@node-red/editor-client/src/sass/editor.scss
index 1730b9e35..dcc8060d4 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/editor.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/editor.scss
@@ -87,16 +87,18 @@
padding: 0px 8px;
height: 26px;
line-height: 26px;
- &.toggle:not(.selected) {
+ &.toggle.selected {
color: var(--red-ui-workspace-button-color-selected) !important;
- background: var(--red-ui-workspace-button-background-active);
+ background: var(--red-ui-workspace-button-background) !important;
}
}
.red-ui-tray-footer-left {
- display:inline-block;
margin-right: 20px;
float:left;
+ & :not(:first-child) {
+ margin-left: 5px
+ }
}
.red-ui-tray-footer-right {
float: right;
@@ -124,7 +126,7 @@
list-style-type: none;
margin: 0;
padding:0;
-
+ overflow-wrap: anywhere;
li {
display: inline-block;
padding:0;
@@ -368,7 +370,7 @@ button.red-ui-button-small
border:1px solid var(--red-ui-secondary-border-color);
border-radius:5px;
height: calc(100% - 21px);
- overflow-y: scroll;
+ overflow-y: auto;
background: var(--red-ui-secondary-background);
}
@@ -562,7 +564,7 @@ div.red-ui-button-small.red-ui-color-picker-opacity-slider-handle {
.red-ui-icon-list {
width: 308px;
height: 200px;
- overflow-y: scroll;
+ overflow-y: auto;
line-height: 0px;
position: relative;
&.red-ui-icon-list-dark {
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/flow.scss b/packages/node_modules/@node-red/editor-client/src/sass/flow.scss
index be8db6c93..bd83e3eff 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/flow.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/flow.scss
@@ -68,6 +68,9 @@
stroke: var(--red-ui-node-border);
cursor: move;
stroke-width: 1;
+ .red-ui-workspace-locked & {
+ cursor: pointer;
+ }
}
.red-ui-workspace-select-mode {
g.red-ui-flow-node.red-ui-flow-node-hovered * {
@@ -88,10 +91,13 @@
.red-ui-flow-group {
&.red-ui-flow-group-hovered {
- .red-ui-flow-group-outline-select {
+ .red-ui-flow-group-outline-select-line {
stroke-opacity: 0.8 !important;
stroke-dasharray: 10 4 !important;
}
+ .red-ui-flow-group-outline-select-outline {
+ stroke-opacity: 0.8 !important;
+ }
}
&.red-ui-flow-group-active-hovered:not(.red-ui-flow-group-hovered) {
.red-ui-flow-group-outline-select {
@@ -110,15 +116,35 @@
.red-ui-flow-group-outline-select {
fill: none;
stroke: var(--red-ui-node-selected-color);
- pointer-events: stroke;
+ pointer-events: none;
stroke-opacity: 0;
- stroke-width: 3;
+ stroke-width: 2;
- &.red-ui-flow-group-outline-select-background {
+ &.red-ui-flow-group-outline-select-outline {
stroke: var(--red-ui-view-background);
- stroke-width: 6;
+ stroke-width: 4;
+ }
+ &.red-ui-flow-group-outline-select-background {
+ fill: white;
+ fill-opacity: 0;
+ pointer-events: stroke;
+ stroke-width: 16;
}
}
+
+svg:not(.red-ui-workspace-lasso-active) {
+ .red-ui-flow-group:not(.red-ui-flow-group-selected) {
+ .red-ui-flow-group-outline-select.red-ui-flow-group-outline-select-background:hover {
+ ~ .red-ui-flow-group-outline-select {
+ stroke-opacity: 0.4 !important;
+ }
+ ~ .red-ui-flow-group-outline-select-line {
+ stroke-dasharray: 10 4 !important;
+ }
+ }
+ }
+}
+
.red-ui-flow-group-body {
pointer-events: none;
fill: var(--red-ui-group-default-fill);
@@ -278,7 +304,11 @@ g.red-ui-flow-node-selected {
stroke: var(--red-ui-node-status-colors-#{"" + $current-color});
}
}
-
+.red-ui-flow-node-status-background {
+ stroke: none;
+ fill: var(--red-ui-view-background);
+ fill-opacity: 0.9;
+}
.red-ui-flow-node-status-label {
@include disable-selection;
stroke-width: 0;
@@ -287,9 +317,11 @@ g.red-ui-flow-node-selected {
text-anchor:start;
}
-.red-ui-flow-port-hovered {
- stroke: var(--red-ui-port-selected-color);
- fill: var(--red-ui-port-selected-color);
+#red-ui-workspace:not(.red-ui-workspace-locked) {
+ .red-ui-flow-port-hovered {
+ stroke: var(--red-ui-port-selected-color);
+ fill: var(--red-ui-port-selected-color);
+ }
}
.red-ui-flow-subflow-port {
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/header.scss b/packages/node_modules/@node-red/editor-client/src/sass/header.scss
index e837f0805..723c1e9bd 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/header.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/header.scss
@@ -191,7 +191,7 @@
margin-top: 0;
li a {
color: var(--red-ui-header-menu-color);
- padding: 3px 10px 3px 40px;
+ padding: 3px 10px 3px 30px;
img {
max-width: 100%;
margin-right: 10px;
@@ -243,6 +243,7 @@
}
.red-ui-menu-dropdown-submenu>a:before {
border-right-color: var(--red-ui-headerMenuCaret);
+ margin-left: -25px !important;
}
/* Deploy menu customisations */
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/notifications.scss b/packages/node_modules/@node-red/editor-client/src/sass/notifications.scss
index efae432b2..c0e87b7ba 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/notifications.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/notifications.scss
@@ -32,7 +32,8 @@
color: var(--red-ui-primary-text-color);
border: 1px solid var(--red-ui-notification-border-default);
border-left-width: 16px;
- overflow: hidden;
+ overflow: auto;
+ max-height: 80vh;
.ui-dialog-buttonset {
margin-top: 20px;
margin-bottom: 10px;
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss b/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss
index ca387782b..947ada2e8 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss
@@ -14,7 +14,7 @@
* limitations under the License.
**/
-#red-ui-settings-tab-palette {
+ #red-ui-settings-tab-palette {
height: 100%;
}
@@ -28,7 +28,17 @@
padding: 0;
box-sizing:border-box;
background: var(--red-ui-secondary-background);
+ display: flex;
+ flex-direction: column;
+ .red-ui-tabs {
+ flex-shrink: 0;
+ margin-bottom: 0;
+ }
+
+ .red-ui-editableList.scrollable {
+ overflow-y: auto;
+ }
.red-ui-editableList-container {
border: none;
border-radius: 0;
@@ -72,11 +82,9 @@
}
.red-ui-palette-editor-tab {
- position:absolute;
- top:35px;
- left:0;
- right:0;
- bottom:0
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
}
.red-ui-palette-editor-toolbar {
background: var(--red-ui-primary-background);
@@ -84,6 +92,24 @@
padding: 8px 10px;
border-bottom: 1px solid var(--red-ui-primary-border-color);
text-align: right;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 3px 12px;
+ .red-ui-palette-editor-toolbar-actions {
+ flex-shrink: 0;
+ flex-grow: 1;
+ }
+ .red-ui-palette-editor-catalogue-filter {
+ width: unset;
+ margin: 0;
+ flex-shrink: 1;
+ flex-grow: 1;
+ font-size: 12px;
+ height: 26px;
+ padding: 1px;
+ }
}
.red-ui-palette-module-shade-status {
color: var(--red-ui-secondary-text-color);
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/palette.scss b/packages/node_modules/@node-red/editor-client/src/sass/palette.scss
index 0d123918a..a3afc3d76 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/palette.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/palette.scss
@@ -54,8 +54,8 @@
}
.red-ui-palette-search {
position: relative;
- overflow: hidden;
- background: var(--red-ui-secondary-background);
+ // overflow: hidden;
+ background: var(--red-ui-form-input-background);
text-align: center;
height: 35px;
padding: 3px;
@@ -171,6 +171,7 @@
left:0;
width: 30px;
border-right: 1px solid var(--red-ui-node-icon-background-color);
+ border-radius: 4px 0px 0px 4px;
background-color: var(--red-ui-node-icon-background-color);
}
.red-ui-palette-icon-container-right {
@@ -178,6 +179,7 @@
right: 0;
border-right: none;
border-left: 1px solid var(--red-ui-node-icon-background-color);
+ border-radius: 0px 4px 4px 0px;
}
.red-ui-palette-icon {
display: inline-block;
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/popover.scss b/packages/node_modules/@node-red/editor-client/src/sass/popover.scss
index 7e504b59b..53d1c7cab 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/popover.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/popover.scss
@@ -35,6 +35,7 @@
padding: 8px;
border-radius: 2px;
background: var(--red-ui-popover-background);
+ overflow-wrap: anywhere;
}
.red-ui-popover:after, .red-ui-popover:before {
border: solid transparent;
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/projects.scss b/packages/node_modules/@node-red/editor-client/src/sass/projects.scss
index ee43c7a87..f6bd57375 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/projects.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/projects.scss
@@ -26,7 +26,7 @@
}
}
#red-ui-project-settings-tab-settings {
- overflow-y: scroll;
+ overflow-y: auto;
}
.red-ui-sidebar-vc-shade {
background: var(--red-ui-primary-background);
@@ -183,7 +183,7 @@
}
.red-ui-projects-dialog-project-list-inner-container {
flex-grow: 1 ;
- overflow-y: scroll;
+ overflow-y: auto;
position:relative;
.red-ui-editableList-border {
border: none;
@@ -825,6 +825,7 @@ div.red-ui-projects-dialog-ssh-public-key {
margin-top: 0 !important;
padding: 5px 10px;
margin-bottom: 10px;
+ border-radius: 3px 3px 0px 0px;
}
}
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/radialMenu.scss b/packages/node_modules/@node-red/editor-client/src/sass/radialMenu.scss
index 3348e945a..db1bba3bb 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/radialMenu.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/radialMenu.scss
@@ -41,6 +41,7 @@
height: 50px;
background: var(--red-ui-secondary-background);
border: 2px solid var(--red-ui-primary-border-color);
+ color: var(--red-ui-primary-text-color);
text-align: center;
line-height:50px;
@@ -51,7 +52,7 @@
.red-ui-editor-radial-menu-opt-disabled {
border-color: var(--red-ui-tertiary-border-color);
- color: var(--red-ui-tertiary-border-color);
+ color: var(--red-ui-secondary-text-color-disabled);
}
.red-ui-editor-radial-menu-opt-active {
background: var(--red-ui-secondary-background-hover);
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/search.scss b/packages/node_modules/@node-red/editor-client/src/sass/search.scss
index f5502715b..66ade8798 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/search.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/search.scss
@@ -108,6 +108,8 @@
}
.red-ui-search-result-node-label {
color: var(--red-ui-secondary-text-color);
+ width: 240px;
+ overflow-wrap: anywhere;
}
}
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss b/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss
index fc4c78afb..94450f337 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss
@@ -20,7 +20,7 @@
bottom: 0;
left: 0;
right: 0;
- overflow-y: scroll;
+ overflow-y: auto;
.red-ui-palette-category {
&:not(.expanded) button {
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss b/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss
index 57dc7d6e3..313025b27 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss
@@ -31,6 +31,7 @@
> span {
display: inline-block;
margin-left: 5px;
+ overflow-wrap: anywhere;
}
border-bottom: 1px solid var(--red-ui-secondary-border-color);
}
@@ -467,6 +468,9 @@ div.red-ui-info-table {
.fa-eye {
display: none;
}
+ .fa-unlock-alt {
+ display: none;
+ }
}
.red-ui-info-outline-item-control-reveal,
.red-ui-info-outline-item-control-action {
@@ -500,6 +504,25 @@ div.red-ui-info-table {
display: none;
}
}
+ .fa-lock {
+ display: none;
+ }
+ .red-ui-info-outline-item.red-ui-info-outline-item-locked & {
+ .fa-lock {
+ display: inline-block;
+ }
+ .fa-unlock-alt {
+ display: none;
+ }
+ }
+ // If the parent is locked, do not show the display/action buttons when
+ // hovering in the outline
+ .red-ui-info-outline-item-locked .red-ui-info-outline-item & {
+ .red-ui-info-outline-item-control-disable,
+ .red-ui-info-outline-item-control-action {
+ display: none;
+ }
+ }
button {
margin-right: 3px
}
@@ -517,8 +540,6 @@ div.red-ui-info-table {
}
}
-
-
.red-ui-icons {
display: inline-block;
width: 18px;
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/userSettings.scss b/packages/node_modules/@node-red/editor-client/src/sass/userSettings.scss
index 36ab67e3f..5e0c7fa47 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/userSettings.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/userSettings.scss
@@ -67,7 +67,7 @@
left: 0;
bottom: 0;
padding: 8px 20px 20px;
- overflow-y: scroll;
+ overflow-y: auto;
}
.red-ui-settings-row {
padding: 5px 10px 2px;
diff --git a/packages/node_modules/@node-red/editor-client/src/sass/workspace.scss b/packages/node_modules/@node-red/editor-client/src/sass/workspace.scss
index 24e156b1e..e096c7cf3 100644
--- a/packages/node_modules/@node-red/editor-client/src/sass/workspace.scss
+++ b/packages/node_modules/@node-red/editor-client/src/sass/workspace.scss
@@ -29,7 +29,7 @@
#red-ui-workspace-chart {
overflow: auto;
position: absolute;
- bottom:25px;
+ bottom:26px;
top: 35px;
left:0px;
right:0px;
@@ -105,7 +105,38 @@
}
}
}
+.red-ui-tab:not(.red-ui-workspace-changed) .red-ui-flow-tab-changed {
+ display: none;
+}
+.red-ui-tab.red-ui-workspace-changed .red-ui-flow-tab-changed {
+ display: inline-block;
+ position: absolute;
+ top: 1px;
+ right: 1px;
+}
+.red-ui-workspace-locked-icon {
+ display: none;
+}
+.red-ui-workspace-locked {
+ &.red-ui-tab {
+ // border-top-style: dashed;
+ // border-left-style: dashed;
+ // border-right-style: dashed;
+
+ // a {
+ // font-style: italic;
+ // color: var(--red-ui-tab-text-color-disabled-inactive) !important;
+ // }
+ // &.active a {
+ // font-weight: normal;
+ // color: var(--red-ui-tab-text-color-disabled-active) !important;
+ // }
+ .red-ui-workspace-locked-icon {
+ display: inline;
+ }
+ }
+}
#red-ui-navigator-canvas {
position: absolute;
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/context-menu.png b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/context-menu.png
new file mode 100644
index 000000000..1acaab48b
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/context-menu.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/continuous-search.png b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/continuous-search.png
similarity index 100%
rename from packages/node_modules/@node-red/editor-client/src/tours/images/continuous-search.png
rename to packages/node_modules/@node-red/editor-client/src/tours/3.0/images/continuous-search.png
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/debug-path-tooltip.png b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/debug-path-tooltip.png
similarity index 100%
rename from packages/node_modules/@node-red/editor-client/src/tours/images/debug-path-tooltip.png
rename to packages/node_modules/@node-red/editor-client/src/tours/3.0/images/debug-path-tooltip.png
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/junction-quick-add.png b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/junction-quick-add.png
similarity index 100%
rename from packages/node_modules/@node-red/editor-client/src/tours/images/junction-quick-add.png
rename to packages/node_modules/@node-red/editor-client/src/tours/3.0/images/junction-quick-add.png
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/junction-slice.gif b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/junction-slice.gif
similarity index 100%
rename from packages/node_modules/@node-red/editor-client/src/tours/images/junction-slice.gif
rename to packages/node_modules/@node-red/editor-client/src/tours/3.0/images/junction-slice.gif
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/split-wire-with-links.gif b/packages/node_modules/@node-red/editor-client/src/tours/3.0/images/split-wire-with-links.gif
similarity index 100%
rename from packages/node_modules/@node-red/editor-client/src/tours/images/split-wire-with-links.gif
rename to packages/node_modules/@node-red/editor-client/src/tours/3.0/images/split-wire-with-links.gif
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/3.0/welcome.js b/packages/node_modules/@node-red/editor-client/src/tours/3.0/welcome.js
new file mode 100644
index 000000000..4ec95c693
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/src/tours/3.0/welcome.js
@@ -0,0 +1,197 @@
+export default {
+ version: "3.0.0",
+ steps: [
+ {
+ titleIcon: "fa fa-map-o",
+ title: {
+ "en-US": "Welcome to Node-RED 3.0!",
+ "ja": "Node-RED 3.0へようこそ!",
+ "fr": "Bienvenue dans Node-RED 3.0 !"
+ },
+ description: {
+ "en-US": "Let's take a moment to discover the new features in this release.
",
+ "ja": "本リリースの新機能を見つけてみましょう。
",
+ "fr": "Prenons un moment pour découvrir les nouvelles fonctionnalités de cette version.
"
+ }
+ },
+ {
+ title: {
+ "en-US": "Context Menu",
+ "ja": "コンテキストメニュー",
+ "fr": "Menu contextuel"
+ },
+ image: '3.0/images/context-menu.png',
+ description: {
+ "en-US": `The editor now has its own context menu when you
+ right-click in the workspace.
+ This makes many of the built-in actions much easier
+ to access.
`,
+ "ja": `ワークスペースで右クリックすると、エディタに独自のコンテキストメニューが表示されるようになりました。
+ これによって多くの組み込み動作を、より簡単に利用できます。
`,
+ "fr": `L'éditeur a maintenant son propre menu contextuel lorsque vous
+ faites un clic droit dans l'espace de travail.
+ Cela facilite l'accès à de nombreuses actions intégrées.
`
+ }
+ },
+ {
+ title: {
+ "en-US": "Wire Junctions",
+ "ja": "分岐点をワイヤーに追加",
+ "fr": "Jonctions de fils"
+ },
+ image: '3.0/images/junction-slice.gif',
+ description: {
+ "en-US": `To make it easier to route wires around your flows,
+ it is now possible to add junction nodes that give
+ you more control.
+ Junctions can be added to wires by holding both the Alt key and the Shift key
+ then click and drag the mouse across the wires.
`,
+ "ja": `フローのワイヤーの経路をより制御しやすくするために、分岐点ノードを追加できるようになりました。
+ Altキーとシフトキーを押しながらマウスをクリックし、ワイヤーを横切るようにドラッグすることで、分岐点を追加できます。
`,
+ "fr": `Pour faciliter le routage des câbles autour de vos flux, il est désormais possible d'ajouter des noeuds
+ de jonction qui vous donnent plus de contrôle.
+ Les jonctions peuvent être ajoutées aux fils en maintenant les touches Alt et Maj enfoncées, puis en cliquant
+ et en faisant glisser la souris sur les fils.
`
+ },
+ },
+ {
+ title: {
+ "en-US": "Wire Junctions",
+ "ja": "分岐点をワイヤーに追加",
+ "fr": "Jonctions de fils"
+ },
+ image: '3.0/images/junction-quick-add.png',
+ description: {
+ "en-US": `Junctions can also be added using the quick-add dialog.
+ The dialog is opened by holding the Ctrl (or Cmd) key when
+ clicking in the workspace.
`,
+ "ja": `クイック追加ダイアログを用いて、分岐点を追加することもできます。
+ 本ダイアログを開くには、Ctrl(またはCmd)キーを押しながら、ワークスペース上でクリックします。
`,
+ "fr": `Les jonctions peuvent également être ajoutées à l'aide de la boîte de dialogue d'ajout rapide.
+ La boîte de dialogue s'ouvre en maintenant la touche Ctrl (ou Cmd) enfoncée lors d'un clic dans l'espace de travail.
`
+ },
+ },
+ {
+ title: {
+ "en-US": "Debug Path Tooltip",
+ "ja": "デバッグパスのツールチップ",
+ "fr": "Info-bulle du chemin de débogage"
+ },
+ image: '3.0/images/debug-path-tooltip.png',
+ description: {
+ "en-US": `When hovering over a node name in the Debug sidebar, a
+ new tooltip shows the full location of the node.
+ This is useful when working with subflows, making it
+ much easier to identify exactly which node generated
+ the message.
+ Clicking on any item in the list will reveal it in
+ the workspace.
`,
+ "ja": `デバックサイドバー内のノード名の上にマウスカーソルを乗せると、新たにツールチップが表示され、ノードの場所が分かるようになっています。
+ これは、サブフローを用いる時に役立つ機能であり、メッセージがどのノードから出力されたかを正確に特定することが遥かに簡単になります。
+ 本リスト内の要素をクリックすると、ワークスペース内にその要素が表示されます。
`,
+ "fr": `Lorsque vous passez la souris sur un nom de noeud dans la barre latérale de débogage, une nouvelle info-bulle affiche l'emplacement complet du noeud.
+ C'est utile lorsque vous travaillez avec des sous-flux, ce qui facilite l'identification exacte du noeud qui a généré le message.
+ Cliquer sur n'importe quel élément de la liste le révélera dans l'espace de travail.
`
+ },
+ },
+ {
+ title: {
+ "en-US": "Continuous Search",
+ "ja": "連続した検索",
+ "fr": "Recherche continue"
+ },
+ image: '3.0/images/continuous-search.png',
+ description: {
+ "en-US": `When searching for things in the editor, a new toolbar in
+ the workspace provides options to quickly jump between
+ the search results.
`,
+ "ja": `ワークスペース内の新しいツールバーにあるオプションによって、エディタ内を検索する際に、検索結果の間を素早く移動できます。
`,
+ "fr": `Lorsque vous recherchez des éléments dans l'éditeur, une nouvelle barre d'outils dans l'espace de travail fournit des options pour passer
+ rapidement d'un résultat de recherche à l'autre.
`
+ },
+ },
+ {
+ title: {
+ "en-US": "New wiring actions",
+ "ja": "新しいワイヤー操作",
+ "fr": "Nouvelles actions de câblage"
+ },
+ image: "3.0/images/split-wire-with-links.gif",
+ description: {
+ "en-US": `A new action has been added that will replace a wire with a pair of connected Link nodes:
+
+ Split Wire With Link Nodes
+
+ Actions can be accessed from the Action List in the main menu.
`,
+ "ja": `ワイヤーを、接続されたLinkノードのペアに置き換える動作が新たに追加されました:
+
+ 本アクションは、メインメニュー内の動作一覧から呼び出せます。
`,
+ "fr": `Une nouvelle action a été ajoutée pour remplacer un fil par une paire de noeuds de lien connectés :
+
+ Diviser le fil avec les noeuds de liaison
+
+ Les actions sont accessibles à partir de la liste d'actions dans le menu principal.
`
+ },
+ },
+ {
+ title: {
+ "en-US": "Default node names",
+ "ja": "標準ノードの名前",
+ "fr": "Noms de noeud par défaut"
+ },
+ // image: "images/",
+ description: {
+ "en-US": `Some nodes have been updated to generate a unique name when
+ new instances are added to the workspace. This applies to
+ Debug
, Function
and Link
nodes.
+ A new action has also been added to generate default names for the selected
+ nodes:
+ Actions can be accessed from the Action List in the main menu.
+ `,
+ "ja": `一部のノードは、ワークスペース上に新インスタンスとして追加した際に、一意の名前を付けるよう変更されました。この変更は、Debug
、Function
、Link
ノードに適用されています。
+ 選択したノードに対して、標準の名前を生成する動作も新たに追加されました:
+ 本アクションは、メインメニュー内の動作一覧から呼び出せます。
+ `,
+ "fr": `Certains noeuds ont été mis à jour pour générer un nom unique lorsque
+ de nouvelles instances sont ajoutées à l'espace de travail. Ceci s'applique aux
+ noeuds Debug
, Function
et Link
.
+ Une nouvelle action a également été ajoutée pour générer des noms par défaut pour les noeuds sélectionnés :
+
+ Générer des noms de noeud
+
+ Les actions sont accessibles à partir de la liste d'actions dans le menu principal.
`
+ }
+ },
+ {
+ title: {
+ "en-US": "Node Updates",
+ "ja": "ノードの更新",
+ "fr": "Mises à jour des noeuds"
+ },
+ // image: "images/",
+ description: {
+ "en-US": `
+ The Debug node can be configured to count messages it receives
+ The Link Call node can use a message property to dynamically target the link it should call
+ The HTTP Request node can be preconfigured with HTTP headers
+ `,
+ "ja": `
+ Debugノードは、受信したメッセージの数をカウントするよう設定できるようになりました。
+ Link Callノードは、メッセージのプロパティによって、呼び出し対象のlinkを動的に指定できるようになりました。
+ HTTP Requestノードは、HTTPヘッダを事前設定できるようになりました。
+ `,
+ "fr": `
+ Le noeud de débogage peut être configuré pour compter les messages qu'il reçoit
+ Le noeud Link Call peut utiliser une propriété de message pour cibler dynamiquement le lien qu'il doit appeler
+ Le noeud de requête HTTP peut être préconfiguré avec des en-têtes HTTP
+ `
+ }
+ }
+ ]
+}
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/first-flow.js b/packages/node_modules/@node-red/editor-client/src/tours/first-flow.js
index b26ee7d8f..7777f7952 100644
--- a/packages/node_modules/@node-red/editor-client/src/tours/first-flow.js
+++ b/packages/node_modules/@node-red/editor-client/src/tours/first-flow.js
@@ -3,12 +3,14 @@ export default {
{
title: {
'en-US': 'Create your first flow',
- 'ja': 'はじめてのフローを作成'
+ 'ja': 'はじめてのフローを作成',
+ 'fr': "Créer votre premier flux"
},
width: 400,
description: {
'en-US': 'This tutorial will guide you through creating your first flow',
- 'ja': '本チュートリアルでは、はじめてのフローを作成する方法について説明します。'
+ 'ja': '本チュートリアルでは、はじめてのフローを作成する方法について説明します。',
+ 'fr': "Ce didacticiel vous guidera dans la création de votre premier flux"
},
nextButton: 'start'
},
@@ -16,7 +18,8 @@ export default {
element: "#red-ui-workspace .red-ui-tab-button.red-ui-tabs-add",
description: {
'en-US': 'To add a new tab, click the button',
- 'ja': '新しいタブを追加するため、 ボタンをクリックします。'
+ 'ja': '新しいタブを追加するため、 ボタンをクリックします。',
+ 'fr': 'Pour ajouter un nouvel onglet, cliquez sur le bouton '
},
wait: {
type: "dom-event",
@@ -29,7 +32,8 @@ export default {
direction: 'right',
description: {
'en-US': 'The palette lists all of the nodes available to use. Drag a new Inject node into the workspace.',
- 'ja': 'パレットには、利用できる全てのノードが一覧表示されます。injectノードをワークスペースにドラッグします。'
+ 'ja': 'パレットには、利用できる全てのノードが一覧表示されます。injectノードをワークスペースにドラッグします。',
+ 'fr': "La palette répertorie tous les noeuds disponibles à utiliser. Faites glisser un nouveau noeud Inject dans l'espace de travail."
},
fallback: 'inset-bottom-right',
wait: {
@@ -52,7 +56,8 @@ export default {
direction: 'right',
description: {
'en-US': 'Next, drag a new Debug node into the workspace.',
- 'ja': '次に、debugノードをワークスペースにドラッグします。'
+ 'ja': '次に、debugノードをワークスペースにドラッグします。',
+ 'fr': "Ensuite, faites glisser un nouveau noeud Debug dans l'espace de travail."
},
fallback: 'inset-bottom-right',
wait: {
@@ -74,7 +79,8 @@ export default {
element: function() { return $("#"+this.injectNode.id+" .red-ui-flow-port") },
description: {
'en-US': 'Add a wire from the output of the Inject node to the input of the Debug node',
- 'ja': 'injectノードの出力から、debugノードの入力へワイヤーで接続します。'
+ 'ja': 'injectノードの出力から、debugノードの入力へワイヤーで接続します。',
+ 'fr': "Ajoutez un fil de la sortie du noeud Inject à l'entrée du noeud Debug"
},
fallback: 'inset-bottom-right',
wait: {
@@ -89,7 +95,8 @@ export default {
element: "#red-ui-header-button-deploy",
description: {
'en-US': 'Deploy your changes so the flow is active in the runtime',
- 'ja': 'フローをランタイムで実行させるため、変更をデプロイします。'
+ 'ja': 'フローをランタイムで実行させるため、変更をデプロイします。',
+ 'fr': "Déployez vos modifications afin que le flux soit actif dans le runtime"
},
width: 200,
wait: {
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/context-menu.png b/packages/node_modules/@node-red/editor-client/src/tours/images/context-menu.png
index 1acaab48b..df6352e64 100644
Binary files a/packages/node_modules/@node-red/editor-client/src/tours/images/context-menu.png and b/packages/node_modules/@node-red/editor-client/src/tours/images/context-menu.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/global-env-vars.png b/packages/node_modules/@node-red/editor-client/src/tours/images/global-env-vars.png
new file mode 100644
index 000000000..8967cc031
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/images/global-env-vars.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/hiding-flows.png b/packages/node_modules/@node-red/editor-client/src/tours/images/hiding-flows.png
new file mode 100644
index 000000000..56d399078
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/images/hiding-flows.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/locking-flows.png b/packages/node_modules/@node-red/editor-client/src/tours/images/locking-flows.png
new file mode 100644
index 000000000..16110748c
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/images/locking-flows.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/mermaid.png b/packages/node_modules/@node-red/editor-client/src/tours/images/mermaid.png
new file mode 100644
index 000000000..8b3cfa01b
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/images/mermaid.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/node-help.png b/packages/node_modules/@node-red/editor-client/src/tours/images/node-help.png
new file mode 100644
index 000000000..533ec592b
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/images/node-help.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/images/tab-changes.png b/packages/node_modules/@node-red/editor-client/src/tours/images/tab-changes.png
new file mode 100644
index 000000000..93bf76d78
Binary files /dev/null and b/packages/node_modules/@node-red/editor-client/src/tours/images/tab-changes.png differ
diff --git a/packages/node_modules/@node-red/editor-client/src/tours/welcome.js b/packages/node_modules/@node-red/editor-client/src/tours/welcome.js
index 35a276606..371a1b31c 100644
--- a/packages/node_modules/@node-red/editor-client/src/tours/welcome.js
+++ b/packages/node_modules/@node-red/editor-client/src/tours/welcome.js
@@ -1,154 +1,230 @@
export default {
- version: "3.0.0-beta.4",
+ version: "3.1.0",
steps: [
{
titleIcon: "fa fa-map-o",
title: {
- "en-US": "Welcome to Node-RED 3.0 Beta 4!",
- "ja": "Node-RED 3.0 ベータ4へようこそ!"
+ "en-US": "Welcome to Node-RED 3.1!",
+ "ja": "Node-RED 3.1へようこそ!",
+ "fr": "Bienvenue dans Node-RED 3.1!"
},
description: {
- "en-US": "This is another final beta release of Node-RED 3.0.
Let's take a moment to discover the new features in this release.
",
- "ja": "これはNode-RED 3.0のもう一つの最後のベータリリースです。
本リリースの新機能を見つけてみましょう。
"
+ "en-US": "Let's take a moment to discover the new features in this release.
",
+ "ja": "本リリースの新機能を見つけてみましょう。
",
+ "fr": "Prenons un moment pour découvrir les nouvelles fonctionnalités de cette version.
"
}
},
{
title: {
- "en-US": "Context Menu",
- "ja": "コンテキストメニュー"
+ "en-US": "New ways to work with groups",
+ "ja": "グループの新たな操作方法",
+ "fr": "De nouvelles façons de travailler avec les groupes"
+ },
+ description: {
+ "en-US": `We have changed how you interact with groups in the editor.
+
+ They don't get in the way when clicking on a node
+ They can be reordered using the Moving Forwards and Move Backwards actions
+ Multiple nodes can be dragged into a group in one go
+ Holding Alt
when dragging a node will *remove* it from its group
+ `,
+ "ja": `エディタ上のグループの操作が変更されました。
+
+ グループ内のノードをクリックする時に、グループが邪魔をすることが無くなりました。
+ 「前面へ移動」と「背面へ移動」の動作を用いて、複数のグループの表示順序を変えることができます。
+ グループ内へ一度に複数のノードをドラッグできるようになりました。
+ Alt
を押したまま、グループ内のノードをドラッグすると、そのグループから *除く* ことができます。
+ `,
+ "fr": `Nous avons modifié la façon dont vous interagissez avec les groupes dans l'éditeur.
+
+ Ils ne gênent plus lorsque vous cliquez sur un noeud
+ Ils peuvent être réorganisés à l'aide des actions Avancer et Reculer
+ Plusieurs noeuds peuvent être glissés dans un groupe en une seule fois
+ Maintenir Alt
lors du déplacement d'un noeud le *supprimera* de son groupe
+ `
+ }
+ },
+ {
+ title: {
+ "en-US": "Change notification on tabs",
+ "ja": "タブ上の変更通知",
+ "fr": "Notification de changement sur les onglets"
+ },
+ image: 'images/tab-changes.png',
+ description: {
+ "en-US": `When a tab contains undeployed changes it now shows the
+ same style of change icon used by nodes.
+ This will make it much easier to track down changes when you're
+ working across multiple flows.
`,
+ "ja": `タブ内にデプロイされていない変更が存在する時は、ノードと同じスタイルで変更の印が表示されるようになりました。
+ これによって複数のフローを編集している時に、変更を見つけるのが簡単になりました。
`,
+ "fr": `Lorsqu'un onglet contient des modifications non déployées, il affiche désormais le
+ même style d'icône de changement utilisé par les noeuds.
+ Cela facilitera grandement le suivi des modifications lorsque vous
+ travaillez sur plusieurs flux.
`
+ }
+ },
+ {
+ title: {
+ "en-US": "A bigger canvas to work with",
+ "ja": "より広くなった作業キャンバス",
+ "fr": "Un canevas plus grand pour travailler"
+ },
+ description: {
+ "en-US": `The default canvas size has been increased so you can fit more
+ into one flow.
+ We still recommend using tools such as subflows and Link Nodes to help
+ keep things organised, but now you have more room to work in.
`,
+ "ja": `標準のキャンバスが広くなったため、1つのフローに沢山のものを含めることができるようになりました。
+ 引き続き、サブフローやリンクノードなどの方法を用いて整理することをお勧めしますが、作業できる場所が増えました。
`,
+ "fr": `La taille par défaut du canevas a été augmentée pour que vous puissiez en mettre plus
+ sur un seul flux.
+ Nous recommandons toujours d'utiliser des outils tels que les sous-flux et les noeuds de lien pour vous aider
+ à garder les choses organisées, mais vous avez maintenant plus d'espace pour travailler.
`
+ }
+ },
+ {
+ title: {
+ "en-US": "Finding help",
+ "ja": "ヘルプを見つける",
+ "fr": "Trouver de l'aide"
+ },
+ image: 'images/node-help.png',
+ description: {
+ "en-US": `All node edit dialogs now include a link to that node's help
+ in the footer.
+ Clicking it will open up the Help sidebar showing the help for that node.
`,
+ "ja": `全てのノードの編集ダイアログの下に、ノードのヘルプへのリンクが追加されました。
+ これをクリックすると、ノードのヘルプサイドバーが表示されます。
`,
+ "fr": `Toutes les boîtes de dialogue d'édition de noeud incluent désormais un lien vers l'aide de ce noeud
+ dans le pied de page.
+ Cliquer dessus ouvrira la barre latérale d'aide affichant l'aide pour ce noeud.
`
+ }
+ },
+ {
+ title: {
+ "en-US": "Improved Context Menu",
+ "ja": "コンテキストメニューの改善",
+ "fr": "Menu contextuel amélioré"
},
image: 'images/context-menu.png',
description: {
- "en-US": `The editor now has its own context menu when you
- right-click in the workspace.
- This makes many of the built-in actions much easier
- to access.
`,
- "ja": `ワークスペースで右クリックすると、エディタに独自のコンテキストメニューが表示されるようになりました。
- これによって多くの組み込み動作を、より簡単に利用できます。
`
+ "en-US": `The editor's context menu has been expanded to make lots more of
+ the built-in actions available.
+ Adding nodes, working with groups and plenty
+ of other useful tools are now just a click away.
+ The flow tab bar also has its own context menu to make working
+ with your flows much easier.
`,
+ "ja": `より多くの組み込み動作を利用できるように、エディタのコンテキストメニューが拡張されました。
+ ノードの追加、グループの操作、その他の便利なツールをクリックするだけで実行できるようになりました。
+ フローのタブバーには、フローの操作をより簡単にする独自のコンテキストメニューもあります。
`,
+ "fr": `Le menu contextuel de l'éditeur a été étendu pour faire beaucoup plus d'actions intégrées disponibles.
+ Ajouter des noeuds, travailler avec des groupes et beaucoup d'autres outils utiles sont désormais à portée de clic.
+ La barre d'onglets de flux possède également son propre menu contextuel pour faciliter l'utilisation de vos flux.
`
}
},
{
title: {
- "en-US": "Wire Junctions",
- "ja": "分岐点をワイヤーに追加"
+ "en-US": "Hiding Flows",
+ "ja": "フローを非表示",
+ "fr": "Masquage de flux"
},
- image: 'images/junction-slice.gif',
+ image: 'images/hiding-flows.png',
description: {
- "en-US": `To make it easier to route wires around your flows,
- it is now possible to add junction nodes that give
- you more control.
- Junctions can be added to wires by holding both the Alt key and the Shift key
- then click and drag the mouse across the wires.
`,
- "ja": `フローのワイヤーの経路をより制御しやすくするために、分岐点ノードを追加できるようになりました。
- Altキーとシフトキーを押しながらマウスをクリックし、ワイヤーを横切るようにドラッグすることで、分岐点を追加できます。
`
+ "en-US": `Hiding flows is now done through the flow context menu.
+ The 'hide' button in previous releases has been removed from the tabs
+ as they were being clicked accidentally too often.
`,
+ "ja": `フローを非表示にする機能は、フローのコンテキストメニューから実行するようになりました。
+ これまでのリリースでタブに存在していた「非表示」ボタンは、よく誤ってクリックされていたため、削除されました。
`,
+ "fr": `Le masquage des flux s'effectue désormais via le menu contextuel du flux.
+ Le bouton "Masquer" des versions précédentes a été supprimé des onglets
+ car il était cliqué accidentellement trop souvent.
`
},
},
{
title: {
- "en-US": "Wire Junctions",
- "ja": "分岐点をワイヤーに追加"
+ "en-US": "Locking Flows",
+ "ja": "フローを固定",
+ "fr": "Verrouillage de flux"
},
- image: 'images/junction-quick-add.png',
+ image: 'images/locking-flows.png',
description: {
- "en-US": `Junctions can also be added using the quick-add dialog.
- The dialog is opened by holding the Ctrl (or Cmd) key when
- clicking in the workspace.
`,
- "ja": `クイック追加ダイアログを用いて、分岐点を追加することもできます。
- 本ダイアログを開くには、Ctrl(またはCmd)キーを押しながら、ワークスペース上でクリックします。
`
+ "en-US": `Flows can now be locked to prevent accidental changes being made.
+ When locked you cannot modify the nodes in any way.
+ The flow context menu provides the options to lock and unlock flows,
+ as well as in the Info sidebar explorer.
`,
+ "ja": `誤ってフローに変更が加えられてしまうのを防ぐために、フローを固定できるようになりました。
+ 固定されている時は、ノードを修正することはできません。
+ フローのコンテキストメニューと、情報サイドバーのエクスプローラには、フローの固定や解除をするためのオプションが用意されています。
`,
+ "fr": `Les flux peuvent désormais être verrouillés pour éviter toute modification accidentelle.
+ Lorsqu'il est verrouillé, vous ne pouvez en aucun cas modifier les noeuds.
+ Le menu contextuel du flux fournit les options pour verrouiller et déverrouiller les flux,
+ ainsi que dans l'explorateur de la barre latérale d'informations.
`
},
},
{
title: {
- "en-US": "Debug Path Tooltip",
- "ja": "デバッグパスのツールチップ"
+ "en-US": "Adding Images to node/flow descriptions",
+ "ja": "ノードやフローの説明へ画像を追加",
+ "fr": "Ajout d'images aux descriptions de noeud/flux"
},
- image: 'images/debug-path-tooltip.png',
+ // image: 'images/debug-path-tooltip.png',
description: {
- "en-US": `When hovering over a node name in the Debug sidebar, a
- new tooltip shows the full location of the node.
- This is useful when working with subflows, making it
- much easier to identify exactly which node generated
- the message.
- Clicking on any item in the list will reveal it in
- the workspace.
`,
- "ja": `デバックサイドバー内のノード名の上にマウスカーソルを乗せると、新たにツールチップが表示され、ノードの場所が分かるようになっています。
- これは、サブフローを用いる時に役立つ機能であり、メッセージがどのノードから出力されたかを正確に特定することが遥かに簡単になります。
- 本リスト内の要素をクリックすると、ワークスペース内にその要素が表示されます。
`
+ "en-US": `You can now add images to a node's or flows's description.
+ Simply drag the image into the text editor and it will get added inline.
+ When the description is shown in the Info sidebar, the image will be displayed.
`,
+ "ja": `ノードまたはフローの説明に、画像を追加できるようになりました。
+ 画像をテキストエディタにドラッグするだけで、行内に埋め込まれます。
+ 情報サイドバーの説明を開くと、その画像が表示されます。
`,
+ "fr": `Vous pouvez désormais ajouter des images à la description d'un noeud ou d'un flux.
+ Faites simplement glisser l'image dans l'éditeur de texte et elle sera ajoutée en ligne.
+ Lorsque la description s'affiche dans la barre latérale d'informations, l'image s'affiche.
`
},
},
{
title: {
- "en-US": "Continuous Search",
- "ja": "連続した検索"
+ "en-US": "Adding Mermaid Diagrams",
+ "ja": "Mermaid図を追加",
+ "fr": "Ajout de diagrammes Mermaid"
},
- image: 'images/continuous-search.png',
+ image: 'images/mermaid.png',
description: {
- "en-US": `When searching for things in the editor, a new toolbar in
- the workspace provides options to quickly jump between
- the search results.
`,
- "ja": `ワークスペース内の新しいツールバーにあるオプションによって、エディタ内を検索する際に、検索結果の間を素早く移動できます。
`
+ "en-US": `You can also add Mermaid diagrams directly into your node or flow descriptions.
+ This gives you much richer options for documenting your flows.
`,
+ "ja": `ノードやフローの説明に、Mermaid 図を直接追加することもできます。
+ これによって、フローを説明する文書作成の選択肢がより多くなります。
`,
+ "fr": `Vous pouvez également ajouter des diagrammes Mermaid directement dans vos descriptions de noeud ou de flux.
+ Cela vous offre des options beaucoup plus riches pour documenter vos flux.
`
},
},
{
title: {
- "en-US": "New wiring actions",
- "ja": "新しいワイヤー操作"
+ "en-US": "Managing Global Environment Variables",
+ "ja": "グローバル環境変数の管理",
+ "fr": "Gestion des variables d'environnement globales"
},
- image: "images/split-wire-with-links.gif",
+ image: 'images/global-env-vars.png',
description: {
- "en-US": `A new action has been added that will replace a wire with a pair of connected Link nodes:
-
- Split Wire With Link Nodes
-
- Actions can be accessed from the Action List in the main menu.
`,
- "ja": `ワイヤーを、接続されたLinkノードのペアに置き換える動作が新たに追加されました:
-
- 本アクションは、メインメニュー内の動作一覧から呼び出せます。
`,
+ "en-US": `You can set environment variables that apply to all nodes and flows in the new
+ 'Global Environment Variables' section of User Settings.
`,
+ "ja": `ユーザ設定に新しく追加された「大域環境変数」のセクションで、全てのノードとフローに適用される環境変数を登録できます。
`,
+ "fr": `Vous pouvez définir des variables d'environnement qui s'appliquent à tous les noeuds et flux dans la nouvelle
+ section "Global Environment Variables" des paramètres utilisateur.
`
},
},
- {
- title: {
- "en-US": "Default node names",
- "ja": "標準ノードの名前"
- },
- // image: "images/",
- description: {
- "en-US": `Some nodes have been updated to generate a unique name when
- new instances are added to the workspace. This applies to
- Debug
, Function
and Link
nodes.
- A new action has also been added to generate default names for the selected
- nodes:
- Actions can be accessed from the Action List in the main menu.
- `,
- "ja": `一部のノードは、ワークスペース上に新インスタンスとして追加した際に、一意の名前を付けるよう変更されました。この変更は、Debug
、Function
、Link
ノードに適用されています。
- 選択したノードに対して、標準の名前を生成する動作も新たに追加されました:
- 本アクションは、メインメニュー内の動作一覧から呼び出せます。
- `
- }
- },
{
title: {
"en-US": "Node Updates",
- "ja": "ノードの更新"
+ "ja": "ノードの更新",
+ "fr": "Mises à jour des noeuds"
},
// image: "images/",
description: {
- "en-US": `
- The Debug node can be configured to count messages it receives
- The Link Call node can use a message property to dynamically target the link it should call
- The HTTP Request node can be preconfigured with HTTP headers
- `,
- "ja": `
- Debugノードは、受信したメッセージの数をカウントするよう設定できるようになりました。
- Link Callノードは、メッセージのプロパティによって、呼び出し対象のlinkを動的に指定できるようになりました。
- HTTP Requestノードは、HTTPヘッダを事前設定できるようになりました。
- `
+ "en-US": `The core nodes have received lots of minor fixes, documentation updates and
+ small enhancements. Check the full changelog in the Help sidebar for a full list.
`,
+ "ja": `コアノードにマイナーな修正、ドキュメント更新、小規模な拡張が数多く追加されています。全ての一覧は、ヘルプサイドバーの全ての更新履歴を確認してください。
`,
+ "fr": `Les noeuds principaux ont reçu de nombreux correctifs mineurs, mises à jour de la documentation et
+ petites améliorations. Consulter le journal des modifications complet dans la barre latérale d'aide.
`
}
}
]
diff --git a/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts
index ae411f33c..59f8a8bd7 100644
--- a/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts
+++ b/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts
@@ -1,6 +1,5 @@
-/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
-
+/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
interface NodeMessage {
topic?: string;
@@ -14,6 +13,9 @@ declare var msg: NodeMessage;
/** @type {string} the id of the incoming `msg` (alias of msg._msgid) */
declare const __msgid__:string;
+declare const util:typeof import('util')
+declare const promisify:typeof import('util').promisify
+
/**
* @typedef NodeStatus
* @type {object}
@@ -278,5 +280,5 @@ declare class env {
* @example
* ```const flowName = env.get("NR_FLOW_NAME");```
*/
- static get(name:string) :string;
+ static get(name:string) :any;
}
diff --git a/packages/node_modules/@node-red/editor-client/src/types/node/assert.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node/assert.d.ts
index 6fcb3ce62..4cfbb7321 100644
--- a/packages/node_modules/@node-red/editor-client/src/types/node/assert.d.ts
+++ b/packages/node_modules/@node-red/editor-client/src/types/node/assert.d.ts
@@ -1,24 +1,36 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
+/**
+ * The `assert` module provides a set of assertion functions for verifying
+ * invariants.
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/assert.js)
+ */
declare module 'assert' {
- /** An alias of `assert.ok()`. */
- function assert(value: any, message?: string | Error): asserts value;
+ /**
+ * An alias of {@link ok}.
+ * @since v0.5.9
+ * @param value The input that is checked for being truthy.
+ */
+ function assert(value: unknown, message?: string | Error): asserts value;
namespace assert {
+ /**
+ * Indicates the failure of an assertion. All errors thrown by the `assert` module
+ * will be instances of the `AssertionError` class.
+ */
class AssertionError extends Error {
- actual: any;
- expected: any;
+ actual: unknown;
+ expected: unknown;
operator: string;
generatedMessage: boolean;
code: 'ERR_ASSERTION';
-
constructor(options?: {
/** If provided, the error message is set to this value. */
message?: string | undefined;
/** The `actual` property on the error instance. */
- actual?: any;
+ actual?: unknown | undefined;
/** The `expected` property on the error instance. */
- expected?: any;
+ expected?: unknown | undefined;
/** The `operator` property on the error instance. */
operator?: string | undefined;
/** If provided, the generated stack trace omits frames before this function. */
@@ -26,13 +38,146 @@ declare module 'assert' {
stackStartFn?: Function | undefined;
});
}
-
+ /**
+ * This feature is currently experimental and behavior might still change.
+ * @since v14.2.0, v12.19.0
+ * @experimental
+ */
class CallTracker {
+ /**
+ * The wrapper function is expected to be called exactly `exact` times. If the
+ * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an
+ * error.
+ *
+ * ```js
+ * import assert from 'assert';
+ *
+ * // Creates call tracker.
+ * const tracker = new assert.CallTracker();
+ *
+ * function func() {}
+ *
+ * // Returns a function that wraps func() that must be called exact times
+ * // before tracker.verify().
+ * const callsfunc = tracker.calls(func);
+ * ```
+ * @since v14.2.0, v12.19.0
+ * @param [fn='A no-op function']
+ * @param [exact=1]
+ * @return that wraps `fn`.
+ */
calls(exact?: number): () => void;
calls any>(fn?: Func, exact?: number): Func;
+ /**
+ * Example:
+ *
+ * ```js
+ * import assert from 'node:assert';
+ *
+ * const tracker = new assert.CallTracker();
+ *
+ * function func() {}
+ * const callsfunc = tracker.calls(func);
+ * callsfunc(1, 2, 3);
+ *
+ * assert.deepStrictEqual(tracker.getCalls(callsfunc),
+ * [{ thisArg: this, arguments: [1, 2, 3 ] }]);
+ * ```
+ *
+ * @since v18.8.0, v16.18.0
+ * @params fn
+ * @returns An Array with the calls to a tracked function.
+ */
+ getCalls(fn: Function): CallTrackerCall[];
+ /**
+ * The arrays contains information about the expected and actual number of calls of
+ * the functions that have not been called the expected number of times.
+ *
+ * ```js
+ * import assert from 'assert';
+ *
+ * // Creates call tracker.
+ * const tracker = new assert.CallTracker();
+ *
+ * function func() {}
+ *
+ * function foo() {}
+ *
+ * // Returns a function that wraps func() that must be called exact times
+ * // before tracker.verify().
+ * const callsfunc = tracker.calls(func, 2);
+ *
+ * // Returns an array containing information on callsfunc()
+ * tracker.report();
+ * // [
+ * // {
+ * // message: 'Expected the func function to be executed 2 time(s) but was
+ * // executed 0 time(s).',
+ * // actual: 0,
+ * // expected: 2,
+ * // operator: 'func',
+ * // stack: stack trace
+ * // }
+ * // ]
+ * ```
+ * @since v14.2.0, v12.19.0
+ * @return of objects containing information about the wrapper functions returned by `calls`.
+ */
report(): CallTrackerReportInformation[];
+ /**
+ * Reset calls of the call tracker.
+ * If a tracked function is passed as an argument, the calls will be reset for it.
+ * If no arguments are passed, all tracked functions will be reset.
+ *
+ * ```js
+ * import assert from 'node:assert';
+ *
+ * const tracker = new assert.CallTracker();
+ *
+ * function func() {}
+ * const callsfunc = tracker.calls(func);
+ *
+ * callsfunc();
+ * // Tracker was called once
+ * tracker.getCalls(callsfunc).length === 1;
+ *
+ * tracker.reset(callsfunc);
+ * tracker.getCalls(callsfunc).length === 0;
+ * ```
+ *
+ * @since v18.8.0, v16.18.0
+ * @param fn a tracked function to reset.
+ */
+ reset(fn?: Function): void;
+ /**
+ * Iterates through the list of functions passed to `tracker.calls()` and will throw an error for functions that
+ * have not been called the expected number of times.
+ *
+ * ```js
+ * import assert from 'assert';
+ *
+ * // Creates call tracker.
+ * const tracker = new assert.CallTracker();
+ *
+ * function func() {}
+ *
+ * // Returns a function that wraps func() that must be called exact times
+ * // before tracker.verify().
+ * const callsfunc = tracker.calls(func, 2);
+ *
+ * callsfunc();
+ *
+ * // Will throw an error since callsfunc() was only called once.
+ * tracker.verify();
+ * ```
+ * @since v14.2.0, v12.19.0
+ */
verify(): void;
}
+ interface CallTrackerCall {
+ thisArg: object;
+ arguments: unknown[];
+ }
interface CallTrackerReportInformation {
message: string;
/** The actual number of times the function was called. */
@@ -44,74 +189,764 @@ declare module 'assert' {
/** A stack trace of the function. */
stack: object;
}
-
- type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
-
+ type AssertPredicate = RegExp | (new () => object) | ((thrown: unknown) => boolean) | object | Error;
+ /**
+ * Throws an `AssertionError` with the provided error message or a default
+ * error message. If the `message` parameter is an instance of an `Error` then
+ * it will be thrown instead of the `AssertionError`.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.fail();
+ * // AssertionError [ERR_ASSERTION]: Failed
+ *
+ * assert.fail('boom');
+ * // AssertionError [ERR_ASSERTION]: boom
+ *
+ * assert.fail(new TypeError('need array'));
+ * // TypeError: need array
+ * ```
+ *
+ * Using `assert.fail()` with more than two arguments is possible but deprecated.
+ * See below for further details.
+ * @since v0.1.21
+ * @param [message='Failed']
+ */
function fail(message?: string | Error): never;
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
function fail(
- actual: any,
- expected: any,
+ actual: unknown,
+ expected: unknown,
message?: string | Error,
operator?: string,
// tslint:disable-next-line:ban-types
- stackStartFn?: Function,
+ stackStartFn?: Function
): never;
- function ok(value: any, message?: string | Error): asserts value;
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
- function equal(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
- function notEqual(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
- function deepEqual(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
- function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
- function strictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T;
- function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
- function deepStrictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T;
- function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
-
- function throws(block: () => any, message?: string | Error): void;
- function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
- function doesNotThrow(block: () => any, message?: string | Error): void;
- function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
-
- function ifError(value: any): asserts value is null | undefined;
-
- function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise;
- function rejects(
- block: (() => Promise) | Promise,
- error: AssertPredicate,
- message?: string | Error,
- ): Promise;
- function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise;
- function doesNotReject(
- block: (() => Promise) | Promise,
- error: AssertPredicate,
- message?: string | Error,
- ): Promise;
-
+ /**
+ * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`.
+ *
+ * If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default
+ * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
+ * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
+ *
+ * Be aware that in the `repl` the error message will be different to the one
+ * thrown in a file! See below for further details.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.ok(true);
+ * // OK
+ * assert.ok(1);
+ * // OK
+ *
+ * assert.ok();
+ * // AssertionError: No value argument passed to `assert.ok()`
+ *
+ * assert.ok(false, 'it\'s false');
+ * // AssertionError: it's false
+ *
+ * // In the repl:
+ * assert.ok(typeof 123 === 'string');
+ * // AssertionError: false == true
+ *
+ * // In a file (e.g. test.js):
+ * assert.ok(typeof 123 === 'string');
+ * // AssertionError: The expression evaluated to a falsy value:
+ * //
+ * // assert.ok(typeof 123 === 'string')
+ *
+ * assert.ok(false);
+ * // AssertionError: The expression evaluated to a falsy value:
+ * //
+ * // assert.ok(false)
+ *
+ * assert.ok(0);
+ * // AssertionError: The expression evaluated to a falsy value:
+ * //
+ * // assert.ok(0)
+ * ```
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * // Using `assert()` works the same:
+ * assert(0);
+ * // AssertionError: The expression evaluated to a falsy value:
+ * //
+ * // assert(0)
+ * ```
+ * @since v0.1.21
+ */
+ function ok(value: unknown, message?: string | Error): asserts value;
+ /**
+ * **Strict assertion mode**
+ *
+ * An alias of {@link strictEqual}.
+ *
+ * **Legacy assertion mode**
+ *
+ * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
+ *
+ * Tests shallow, coercive equality between the `actual` and `expected` parameters
+ * using the [Abstract Equality Comparison](https://tc39.github.io/ecma262/#sec-abstract-equality-comparison) ( `==` ). `NaN` is special handled
+ * and treated as being identical in case both sides are `NaN`.
+ *
+ * ```js
+ * import assert from 'assert';
+ *
+ * assert.equal(1, 1);
+ * // OK, 1 == 1
+ * assert.equal(1, '1');
+ * // OK, 1 == '1'
+ * assert.equal(NaN, NaN);
+ * // OK
+ *
+ * assert.equal(1, 2);
+ * // AssertionError: 1 == 2
+ * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
+ * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
+ * ```
+ *
+ * If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default
+ * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
+ * @since v0.1.21
+ */
+ function equal(actual: unknown, expected: unknown, message?: string | Error): void;
+ /**
+ * **Strict assertion mode**
+ *
+ * An alias of {@link notStrictEqual}.
+ *
+ * **Legacy assertion mode**
+ *
+ * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
+ *
+ * Tests shallow, coercive inequality with the [Abstract Equality Comparison](https://tc39.github.io/ecma262/#sec-abstract-equality-comparison)(`!=` ). `NaN` is special handled and treated as
+ * being identical in case both
+ * sides are `NaN`.
+ *
+ * ```js
+ * import assert from 'assert';
+ *
+ * assert.notEqual(1, 2);
+ * // OK
+ *
+ * assert.notEqual(1, 1);
+ * // AssertionError: 1 != 1
+ *
+ * assert.notEqual(1, '1');
+ * // AssertionError: 1 != '1'
+ * ```
+ *
+ * If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error
+ * message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
+ * @since v0.1.21
+ */
+ function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
+ /**
+ * **Strict assertion mode**
+ *
+ * An alias of {@link deepStrictEqual}.
+ *
+ * **Legacy assertion mode**
+ *
+ * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
+ *
+ * Tests for deep equality between the `actual` and `expected` parameters. Consider
+ * using {@link deepStrictEqual} instead. {@link deepEqual} can have
+ * surprising results.
+ *
+ * _Deep equality_ means that the enumerable "own" properties of child objects
+ * are also recursively evaluated by the following rules.
+ * @since v0.1.21
+ */
+ function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
+ /**
+ * **Strict assertion mode**
+ *
+ * An alias of {@link notDeepStrictEqual}.
+ *
+ * **Legacy assertion mode**
+ *
+ * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
+ *
+ * Tests for any deep inequality. Opposite of {@link deepEqual}.
+ *
+ * ```js
+ * import assert from 'assert';
+ *
+ * const obj1 = {
+ * a: {
+ * b: 1
+ * }
+ * };
+ * const obj2 = {
+ * a: {
+ * b: 2
+ * }
+ * };
+ * const obj3 = {
+ * a: {
+ * b: 1
+ * }
+ * };
+ * const obj4 = Object.create(obj1);
+ *
+ * assert.notDeepEqual(obj1, obj1);
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
+ *
+ * assert.notDeepEqual(obj1, obj2);
+ * // OK
+ *
+ * assert.notDeepEqual(obj1, obj3);
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
+ *
+ * assert.notDeepEqual(obj1, obj4);
+ * // OK
+ * ```
+ *
+ * If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default
+ * error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
+ * instead of the `AssertionError`.
+ * @since v0.1.21
+ */
+ function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
+ /**
+ * Tests strict equality between the `actual` and `expected` parameters as
+ * determined by the [SameValue Comparison](https://tc39.github.io/ecma262/#sec-samevalue).
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.strictEqual(1, 2);
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
+ * //
+ * // 1 !== 2
+ *
+ * assert.strictEqual(1, 1);
+ * // OK
+ *
+ * assert.strictEqual('Hello foobar', 'Hello World!');
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
+ * // + actual - expected
+ * //
+ * // + 'Hello foobar'
+ * // - 'Hello World!'
+ * // ^
+ *
+ * const apples = 1;
+ * const oranges = 2;
+ * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
+ * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
+ *
+ * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
+ * // TypeError: Inputs are not identical
+ * ```
+ *
+ * If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
+ * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
+ * instead of the `AssertionError`.
+ * @since v0.1.21
+ */
+ function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
+ /**
+ * Tests strict inequality between the `actual` and `expected` parameters as
+ * determined by the [SameValue Comparison](https://tc39.github.io/ecma262/#sec-samevalue).
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.notStrictEqual(1, 2);
+ * // OK
+ *
+ * assert.notStrictEqual(1, 1);
+ * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
+ * //
+ * // 1
+ *
+ * assert.notStrictEqual(1, '1');
+ * // OK
+ * ```
+ *
+ * If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
+ * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
+ * instead of the `AssertionError`.
+ * @since v0.1.21
+ */
+ function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
+ /**
+ * Tests for deep equality between the `actual` and `expected` parameters.
+ * "Deep" equality means that the enumerable "own" properties of child objects
+ * are recursively evaluated also by the following rules.
+ * @since v1.2.0
+ */
+ function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
+ /**
+ * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
+ * // OK
+ * ```
+ *
+ * If the values are deeply and strictly equal, an `AssertionError` is thrown
+ * with a `message` property set equal to the value of the `message` parameter. If
+ * the `message` parameter is undefined, a default error message is assigned. If
+ * the `message` parameter is an instance of an `Error` then it will be thrown
+ * instead of the `AssertionError`.
+ * @since v1.2.0
+ */
+ function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
+ /**
+ * Expects the function `fn` to throw an error.
+ *
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
+ * a validation object where each property will be tested for strict deep equality,
+ * or an instance of error where each property will be tested for strict deep
+ * equality including the non-enumerable `message` and `name` properties. When
+ * using an object, it is also possible to use a regular expression, when
+ * validating against a string property. See below for examples.
+ *
+ * If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation
+ * fails.
+ *
+ * Custom validation object/error instance:
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * const err = new TypeError('Wrong value');
+ * err.code = 404;
+ * err.foo = 'bar';
+ * err.info = {
+ * nested: true,
+ * baz: 'text'
+ * };
+ * err.reg = /abc/i;
+ *
+ * assert.throws(
+ * () => {
+ * throw err;
+ * },
+ * {
+ * name: 'TypeError',
+ * message: 'Wrong value',
+ * info: {
+ * nested: true,
+ * baz: 'text'
+ * }
+ * // Only properties on the validation object will be tested for.
+ * // Using nested objects requires all properties to be present. Otherwise
+ * // the validation is going to fail.
+ * }
+ * );
+ *
+ * // Using regular expressions to validate error properties:
+ * throws(
+ * () => {
+ * throw err;
+ * },
+ * {
+ * // The `name` and `message` properties are strings and using regular
+ * // expressions on those will match against the string. If they fail, an
+ * // error is thrown.
+ * name: /^TypeError$/,
+ * message: /Wrong/,
+ * foo: 'bar',
+ * info: {
+ * nested: true,
+ * // It is not possible to use regular expressions for nested properties!
+ * baz: 'text'
+ * },
+ * // The `reg` property contains a regular expression and only if the
+ * // validation object contains an identical regular expression, it is going
+ * // to pass.
+ * reg: /abc/i
+ * }
+ * );
+ *
+ * // Fails due to the different `message` and `name` properties:
+ * throws(
+ * () => {
+ * const otherErr = new Error('Not found');
+ * // Copy all enumerable properties from `err` to `otherErr`.
+ * for (const [key, value] of Object.entries(err)) {
+ * otherErr[key] = value;
+ * }
+ * throw otherErr;
+ * },
+ * // The error's `message` and `name` properties will also be checked when using
+ * // an error as validation object.
+ * err
+ * );
+ * ```
+ *
+ * Validate instanceof using constructor:
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.throws(
+ * () => {
+ * throw new Error('Wrong value');
+ * },
+ * Error
+ * );
+ * ```
+ *
+ * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
+ *
+ * Using a regular expression runs `.toString` on the error object, and will
+ * therefore also include the error name.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.throws(
+ * () => {
+ * throw new Error('Wrong value');
+ * },
+ * /^Error: Wrong value$/
+ * );
+ * ```
+ *
+ * Custom error validation:
+ *
+ * The function must return `true` to indicate all internal validations passed.
+ * It will otherwise fail with an `AssertionError`.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.throws(
+ * () => {
+ * throw new Error('Wrong value');
+ * },
+ * (err) => {
+ * assert(err instanceof Error);
+ * assert(/value/.test(err));
+ * // Avoid returning anything from validation functions besides `true`.
+ * // Otherwise, it's not clear what part of the validation failed. Instead,
+ * // throw an error about the specific validation that failed (as done in this
+ * // example) and add as much helpful debugging information to that error as
+ * // possible.
+ * return true;
+ * },
+ * 'unexpected error'
+ * );
+ * ```
+ *
+ * `error` cannot be a string. If a string is provided as the second
+ * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same
+ * message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
+ * a string as the second argument gets considered:
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * function throwingFirst() {
+ * throw new Error('First');
+ * }
+ *
+ * function throwingSecond() {
+ * throw new Error('Second');
+ * }
+ *
+ * function notThrowing() {}
+ *
+ * // The second argument is a string and the input function threw an Error.
+ * // The first case will not throw as it does not match for the error message
+ * // thrown by the input function!
+ * assert.throws(throwingFirst, 'Second');
+ * // In the next example the message has no benefit over the message from the
+ * // error and since it is not clear if the user intended to actually match
+ * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
+ * assert.throws(throwingSecond, 'Second');
+ * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
+ *
+ * // The string is only used (as message) in case the function does not throw:
+ * assert.throws(notThrowing, 'Second');
+ * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
+ *
+ * // If it was intended to match for the error message do this instead:
+ * // It does not throw because the error messages match.
+ * assert.throws(throwingSecond, /Second$/);
+ *
+ * // If the error message does not match, an AssertionError is thrown.
+ * assert.throws(throwingFirst, /Second$/);
+ * // AssertionError [ERR_ASSERTION]
+ * ```
+ *
+ * Due to the confusing error-prone notation, avoid a string as the second
+ * argument.
+ * @since v0.1.21
+ */
+ function throws(block: () => unknown, message?: string | Error): void;
+ function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
+ /**
+ * Asserts that the function `fn` does not throw an error.
+ *
+ * Using `assert.doesNotThrow()` is actually not useful because there
+ * is no benefit in catching an error and then rethrowing it. Instead, consider
+ * adding a comment next to the specific code path that should not throw and keep
+ * error messages as expressive as possible.
+ *
+ * When `assert.doesNotThrow()` is called, it will immediately call the `fn`function.
+ *
+ * If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a
+ * different type, or if the `error` parameter is undefined, the error is
+ * propagated back to the caller.
+ *
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation
+ * function. See {@link throws} for more details.
+ *
+ * The following, for instance, will throw the `TypeError` because there is no
+ * matching error type in the assertion:
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.doesNotThrow(
+ * () => {
+ * throw new TypeError('Wrong value');
+ * },
+ * SyntaxError
+ * );
+ * ```
+ *
+ * However, the following will result in an `AssertionError` with the message
+ * 'Got unwanted exception...':
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.doesNotThrow(
+ * () => {
+ * throw new TypeError('Wrong value');
+ * },
+ * TypeError
+ * );
+ * ```
+ *
+ * If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message:
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.doesNotThrow(
+ * () => {
+ * throw new TypeError('Wrong value');
+ * },
+ * /Wrong value/,
+ * 'Whoops'
+ * );
+ * // Throws: AssertionError: Got unwanted exception: Whoops
+ * ```
+ * @since v0.1.21
+ */
+ function doesNotThrow(block: () => unknown, message?: string | Error): void;
+ function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
+ /**
+ * Throws `value` if `value` is not `undefined` or `null`. This is useful when
+ * testing the `error` argument in callbacks. The stack trace contains all frames
+ * from the error passed to `ifError()` including the potential new frames for`ifError()` itself.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.ifError(null);
+ * // OK
+ * assert.ifError(0);
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
+ * assert.ifError('error');
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
+ * assert.ifError(new Error());
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
+ *
+ * // Create some random error frames.
+ * let err;
+ * (function errorFrame() {
+ * err = new Error('test error');
+ * })();
+ *
+ * (function ifErrorFrame() {
+ * assert.ifError(err);
+ * })();
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
+ * // at ifErrorFrame
+ * // at errorFrame
+ * ```
+ * @since v0.1.97
+ */
+ function ifError(value: unknown): asserts value is null | undefined;
+ /**
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
+ * calls the function and awaits the returned promise to complete. It will then
+ * check that the promise is rejected.
+ *
+ * If `asyncFn` is a function and it throws an error synchronously,`assert.rejects()` will return a rejected `Promise` with that error. If the
+ * function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases the error
+ * handler is skipped.
+ *
+ * Besides the async nature to await the completion behaves identically to {@link throws}.
+ *
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
+ * an object where each property will be tested for, or an instance of error where
+ * each property will be tested for including the non-enumerable `message` and`name` properties.
+ *
+ * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * await assert.rejects(
+ * async () => {
+ * throw new TypeError('Wrong value');
+ * },
+ * {
+ * name: 'TypeError',
+ * message: 'Wrong value'
+ * }
+ * );
+ * ```
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * await assert.rejects(
+ * async () => {
+ * throw new TypeError('Wrong value');
+ * },
+ * (err) => {
+ * assert.strictEqual(err.name, 'TypeError');
+ * assert.strictEqual(err.message, 'Wrong value');
+ * return true;
+ * }
+ * );
+ * ```
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.rejects(
+ * Promise.reject(new Error('Wrong value')),
+ * Error
+ * ).then(() => {
+ * // ...
+ * });
+ * ```
+ *
+ * `error` cannot be a string. If a string is provided as the second
+ * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the
+ * example in {@link throws} carefully if using a string as the second
+ * argument gets considered.
+ * @since v10.0.0
+ */
+ function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise;
+ function rejects(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise;
+ /**
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
+ * calls the function and awaits the returned promise to complete. It will then
+ * check that the promise is not rejected.
+ *
+ * If `asyncFn` is a function and it throws an error synchronously,`assert.doesNotReject()` will return a rejected `Promise` with that error. If
+ * the function does not return a promise, `assert.doesNotReject()` will return a
+ * rejected `Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases
+ * the error handler is skipped.
+ *
+ * Using `assert.doesNotReject()` is actually not useful because there is little
+ * benefit in catching a rejection and then rejecting it again. Instead, consider
+ * adding a comment next to the specific code path that should not reject and keep
+ * error messages as expressive as possible.
+ *
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation
+ * function. See {@link throws} for more details.
+ *
+ * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * await assert.doesNotReject(
+ * async () => {
+ * throw new TypeError('Wrong value');
+ * },
+ * SyntaxError
+ * );
+ * ```
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
+ * .then(() => {
+ * // ...
+ * });
+ * ```
+ * @since v10.0.0
+ */
+ function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise;
+ function doesNotReject(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise;
+ /**
+ * Expects the `string` input to match the regular expression.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.match('I will fail', /pass/);
+ * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
+ *
+ * assert.match(123, /pass/);
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
+ *
+ * assert.match('I will pass', /pass/);
+ * // OK
+ * ```
+ *
+ * If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
+ * to the value of the `message` parameter. If the `message` parameter is
+ * undefined, a default error message is assigned. If the `message` parameter is an
+ * instance of an `Error` then it will be thrown instead of the `AssertionError`.
+ * @since v13.6.0, v12.16.0
+ */
function match(value: string, regExp: RegExp, message?: string | Error): void;
+ /**
+ * Expects the `string` input not to match the regular expression.
+ *
+ * ```js
+ * import assert from 'assert/strict';
+ *
+ * assert.doesNotMatch('I will fail', /fail/);
+ * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
+ *
+ * assert.doesNotMatch(123, /pass/);
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
+ *
+ * assert.doesNotMatch('I will pass', /different/);
+ * // OK
+ * ```
+ *
+ * If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
+ * to the value of the `message` parameter. If the `message` parameter is
+ * undefined, a default error message is assigned. If the `message` parameter is an
+ * instance of an `Error` then it will be thrown instead of the `AssertionError`.
+ * @since v13.6.0, v12.16.0
+ */
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
-
- const strict: Omit<
- typeof assert,
- | 'equal'
- | 'notEqual'
- | 'deepEqual'
- | 'notDeepEqual'
- | 'ok'
- | 'strictEqual'
- | 'deepStrictEqual'
- | 'ifError'
- | 'strict'
- > & {
- (value: any, message?: string | Error): asserts value;
+ const strict: Omit & {
+ (value: unknown, message?: string | Error): asserts value;
equal: typeof strictEqual;
notEqual: typeof notStrictEqual;
deepEqual: typeof deepStrictEqual;
notDeepEqual: typeof notDeepStrictEqual;
-
// Mapped types and assertion functions are incompatible?
// TS2775: Assertions require every name in the call target
// to be declared with an explicit type annotation.
@@ -122,7 +957,6 @@ declare module 'assert' {
strict: typeof strict;
};
}
-
export = assert;
}
declare module 'node:assert' {
diff --git a/packages/node_modules/@node-red/editor-client/src/types/node/assert/strict.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node/assert/strict.d.ts
new file mode 100644
index 000000000..ada209ced
--- /dev/null
+++ b/packages/node_modules/@node-red/editor-client/src/types/node/assert/strict.d.ts
@@ -0,0 +1,11 @@
+
+/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
+
+declare module 'assert/strict' {
+ import { strict } from 'node:assert';
+ export = strict;
+}
+declare module 'node:assert/strict' {
+ import { strict } from 'node:assert';
+ export = strict;
+}
diff --git a/packages/node_modules/@node-red/editor-client/src/types/node/async_hooks.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node/async_hooks.d.ts
index c576ec7c7..206104c55 100644
--- a/packages/node_modules/@node-red/editor-client/src/types/node/async_hooks.d.ts
+++ b/packages/node_modules/@node-red/editor-client/src/types/node/async_hooks.d.ts
@@ -2,18 +2,49 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
/**
- * Async Hooks module: https://nodejs.org/api/async_hooks.html
+ * The `async_hooks` module provides an API to track asynchronous resources. It
+ * can be accessed using:
+ *
+ * ```js
+ * import async_hooks from 'async_hooks';
+ * ```
+ * @experimental
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/async_hooks.js)
*/
declare module 'async_hooks' {
/**
- * Returns the asyncId of the current execution context.
+ * ```js
+ * import { executionAsyncId } from 'async_hooks';
+ *
+ * console.log(executionAsyncId()); // 1 - bootstrap
+ * fs.open(path, 'r', (err, fd) => {
+ * console.log(executionAsyncId()); // 6 - open()
+ * });
+ * ```
+ *
+ * The ID returned from `executionAsyncId()` is related to execution timing, not
+ * causality (which is covered by `triggerAsyncId()`):
+ *
+ * ```js
+ * const server = net.createServer((conn) => {
+ * // Returns the ID of the server, not of the new connection, because the
+ * // callback runs in the execution scope of the server's MakeCallback().
+ * async_hooks.executionAsyncId();
+ *
+ * }).listen(port, () => {
+ * // Returns the ID of a TickObject (process.nextTick()) because all
+ * // callbacks passed to .listen() are wrapped in a nextTick().
+ * async_hooks.executionAsyncId();
+ * });
+ * ```
+ *
+ * Promise contexts may not get precise `executionAsyncIds` by default.
+ * See the section on `promise execution tracking`.
+ * @since v8.1.0
+ * @return The `asyncId` of the current execution context. Useful to track when something calls.
*/
function executionAsyncId(): number;
-
/**
- * The resource representing the current execution.
- * Useful to store data within the resource.
- *
* Resource objects returned by `executionAsyncResource()` are most often internal
* Node.js handle objects with undocumented APIs. Using any functions or properties
* on the object is likely to crash your application and should be avoided.
@@ -21,14 +52,70 @@ declare module 'async_hooks' {
* Using `executionAsyncResource()` in the top-level execution context will
* return an empty object as there is no handle or request object to use,
* but having an object representing the top-level can be helpful.
+ *
+ * ```js
+ * import { open } from 'fs';
+ * import { executionAsyncId, executionAsyncResource } from 'async_hooks';
+ *
+ * console.log(executionAsyncId(), executionAsyncResource()); // 1 {}
+ * open(new URL(import.meta.url), 'r', (err, fd) => {
+ * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap
+ * });
+ * ```
+ *
+ * This can be used to implement continuation local storage without the
+ * use of a tracking `Map` to store the metadata:
+ *
+ * ```js
+ * import { createServer } from 'http';
+ * import {
+ * executionAsyncId,
+ * executionAsyncResource,
+ * createHook
+ * } from 'async_hooks';
+ * const sym = Symbol('state'); // Private symbol to avoid pollution
+ *
+ * createHook({
+ * init(asyncId, type, triggerAsyncId, resource) {
+ * const cr = executionAsyncResource();
+ * if (cr) {
+ * resource[sym] = cr[sym];
+ * }
+ * }
+ * }).enable();
+ *
+ * const server = createServer((req, res) => {
+ * executionAsyncResource()[sym] = { state: req.url };
+ * setTimeout(function() {
+ * res.end(JSON.stringify(executionAsyncResource()[sym]));
+ * }, 100);
+ * }).listen(3000);
+ * ```
+ * @since v13.9.0, v12.17.0
+ * @return The resource representing the current execution. Useful to store data within the resource.
*/
function executionAsyncResource(): object;
-
/**
- * Returns the ID of the resource responsible for calling the callback that is currently being executed.
+ * ```js
+ * const server = net.createServer((conn) => {
+ * // The resource that caused (or triggered) this callback to be called
+ * // was that of the new connection. Thus the return value of triggerAsyncId()
+ * // is the asyncId of "conn".
+ * async_hooks.triggerAsyncId();
+ *
+ * }).listen(port, () => {
+ * // Even though all callbacks passed to .listen() are wrapped in a nextTick()
+ * // the callback itself exists because the call to the server's .listen()
+ * // was made. So the return value would be the ID of the server.
+ * async_hooks.triggerAsyncId();
+ * });
+ * ```
+ *
+ * Promise contexts may not get valid `triggerAsyncId`s by default. See
+ * the section on `promise execution tracking`.
+ * @return The ID of the resource responsible for calling the callback that is currently being executed.
*/
function triggerAsyncId(): number;
-
interface HookCallbacks {
/**
* Called when a class is constructed that has the possibility to emit an asynchronous event.
@@ -38,73 +125,133 @@ declare module 'async_hooks' {
* @param resource reference to the resource representing the async operation, needs to be released during destroy
*/
init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
-
/**
* When an asynchronous operation is initiated or completes a callback is called to notify the user.
* The before callback is called just before said callback is executed.
* @param asyncId the unique identifier assigned to the resource about to execute the callback.
*/
before?(asyncId: number): void;
-
/**
* Called immediately after the callback specified in before is completed.
* @param asyncId the unique identifier assigned to the resource which has executed the callback.
*/
after?(asyncId: number): void;
-
/**
* Called when a promise has resolve() called. This may not be in the same execution id
* as the promise itself.
* @param asyncId the unique id for the promise that was resolve()d.
*/
promiseResolve?(asyncId: number): void;
-
/**
* Called after the resource corresponding to asyncId is destroyed
* @param asyncId a unique ID for the async resource
*/
destroy?(asyncId: number): void;
}
-
interface AsyncHook {
/**
* Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.
*/
enable(): this;
-
/**
* Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.
*/
disable(): this;
}
-
/**
- * Registers functions to be called for different lifetime events of each async operation.
- * @param options the callbacks to register
- * @return an AsyncHooks instance used for disabling and enabling hooks
+ * Registers functions to be called for different lifetime events of each async
+ * operation.
+ *
+ * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the
+ * respective asynchronous event during a resource's lifetime.
+ *
+ * All callbacks are optional. For example, if only resource cleanup needs to
+ * be tracked, then only the `destroy` callback needs to be passed. The
+ * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section.
+ *
+ * ```js
+ * import { createHook } from 'async_hooks';
+ *
+ * const asyncHook = createHook({
+ * init(asyncId, type, triggerAsyncId, resource) { },
+ * destroy(asyncId) { }
+ * });
+ * ```
+ *
+ * The callbacks will be inherited via the prototype chain:
+ *
+ * ```js
+ * class MyAsyncCallbacks {
+ * init(asyncId, type, triggerAsyncId, resource) { }
+ * destroy(asyncId) {}
+ * }
+ *
+ * class MyAddedCallbacks extends MyAsyncCallbacks {
+ * before(asyncId) { }
+ * after(asyncId) { }
+ * }
+ *
+ * const asyncHook = async_hooks.createHook(new MyAddedCallbacks());
+ * ```
+ *
+ * Because promises are asynchronous resources whose lifecycle is tracked
+ * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises.
+ * @since v8.1.0
+ * @param callbacks The `Hook Callbacks` to register
+ * @return Instance used for disabling and enabling hooks
*/
- function createHook(options: HookCallbacks): AsyncHook;
-
+ function createHook(callbacks: HookCallbacks): AsyncHook;
interface AsyncResourceOptions {
- /**
- * The ID of the execution context that created this async event.
- * @default executionAsyncId()
- */
- triggerAsyncId?: number | undefined;
-
- /**
- * Disables automatic `emitDestroy` when the object is garbage collected.
- * This usually does not need to be set (even if `emitDestroy` is called
- * manually), unless the resource's `asyncId` is retrieved and the
- * sensitive API's `emitDestroy` is called with it.
- * @default false
- */
- requireManualDestroy?: boolean | undefined;
+ /**
+ * The ID of the execution context that created this async event.
+ * @default executionAsyncId()
+ */
+ triggerAsyncId?: number | undefined;
+ /**
+ * Disables automatic `emitDestroy` when the object is garbage collected.
+ * This usually does not need to be set (even if `emitDestroy` is called
+ * manually), unless the resource's `asyncId` is retrieved and the
+ * sensitive API's `emitDestroy` is called with it.
+ * @default false
+ */
+ requireManualDestroy?: boolean | undefined;
}
-
/**
- * The class AsyncResource was designed to be extended by the embedder's async resources.
- * Using this users can easily trigger the lifetime events of their own resources.
+ * The class `AsyncResource` is designed to be extended by the embedder's async
+ * resources. Using this, users can easily trigger the lifetime events of their
+ * own resources.
+ *
+ * The `init` hook will trigger when an `AsyncResource` is instantiated.
+ *
+ * The following is an overview of the `AsyncResource` API.
+ *
+ * ```js
+ * import { AsyncResource, executionAsyncId } from 'async_hooks';
+ *
+ * // AsyncResource() is meant to be extended. Instantiating a
+ * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then
+ * // async_hook.executionAsyncId() is used.
+ * const asyncResource = new AsyncResource(
+ * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false }
+ * );
+ *
+ * // Run a function in the execution context of the resource. This will
+ * // * establish the context of the resource
+ * // * trigger the AsyncHooks before callbacks
+ * // * call the provided function `fn` with the supplied arguments
+ * // * trigger the AsyncHooks after callbacks
+ * // * restore the original execution context
+ * asyncResource.runInAsyncScope(fn, thisArg, ...args);
+ *
+ * // Call AsyncHooks destroy callbacks.
+ * asyncResource.emitDestroy();
+ *
+ * // Return the unique ID assigned to the AsyncResource instance.
+ * asyncResource.asyncId();
+ *
+ * // Return the trigger ID for the AsyncResource instance.
+ * asyncResource.triggerAsyncId();
+ * ```
*/
class AsyncResource {
/**
@@ -114,115 +261,236 @@ declare module 'async_hooks' {
* @param type The type of async event.
* @param triggerAsyncId The ID of the execution context that created
* this async event (default: `executionAsyncId()`), or an
- * AsyncResourceOptions object (since 9.3)
+ * AsyncResourceOptions object (since v9.3.0)
*/
- constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
-
+ constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
/**
* Binds the given function to the current execution context.
+ *
+ * The returned function will have an `asyncResource` property referencing
+ * the `AsyncResource` to which the function is bound.
+ * @since v14.8.0, v12.19.0
* @param fn The function to bind to the current execution context.
* @param type An optional name to associate with the underlying `AsyncResource`.
*/
- static bind any>(fn: Func, type?: string): Func & { asyncResource: AsyncResource };
-
+ static bind any, ThisArg>(
+ fn: Func,
+ type?: string,
+ thisArg?: ThisArg
+ ): Func & {
+ asyncResource: AsyncResource;
+ };
/**
* Binds the given function to execute to this `AsyncResource`'s scope.
+ *
+ * The returned function will have an `asyncResource` property referencing
+ * the `AsyncResource` to which the function is bound.
+ * @since v14.8.0, v12.19.0
* @param fn The function to bind to the current `AsyncResource`.
*/
- bind any>(fn: Func): Func & { asyncResource: AsyncResource };
-
+ bind any>(
+ fn: Func
+ ): Func & {
+ asyncResource: AsyncResource;
+ };
/**
- * Call the provided function with the provided arguments in the
- * execution context of the async resource. This will establish the
- * context, trigger the AsyncHooks before callbacks, call the function,
- * trigger the AsyncHooks after callbacks, and then restore the original
- * execution context.
- * @param fn The function to call in the execution context of this
- * async resource.
+ * Call the provided function with the provided arguments in the execution context
+ * of the async resource. This will establish the context, trigger the AsyncHooks
+ * before callbacks, call the function, trigger the AsyncHooks after callbacks, and
+ * then restore the original execution context.
+ * @since v9.6.0
+ * @param fn The function to call in the execution context of this async resource.
* @param thisArg The receiver to be used for the function call.
* @param args Optional arguments to pass to the function.
*/
runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result;
-
/**
- * Call AsyncHooks destroy callbacks.
+ * Call all `destroy` hooks. This should only ever be called once. An error will
+ * be thrown if it is called more than once. This **must** be manually called. If
+ * the resource is left to be collected by the GC then the `destroy` hooks will
+ * never be called.
+ * @return A reference to `asyncResource`.
*/
emitDestroy(): this;
-
/**
- * @return the unique ID assigned to this AsyncResource instance.
+ * @return The unique `asyncId` assigned to the resource.
*/
asyncId(): number;
-
/**
- * @return the trigger ID for this AsyncResource instance.
+ *
+ * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor.
*/
triggerAsyncId(): number;
}
-
/**
- * When having multiple instances of `AsyncLocalStorage`, they are independent
- * from each other. It is safe to instantiate this class multiple times.
+ * This class creates stores that stay coherent through asynchronous operations.
+ *
+ * While you can create your own implementation on top of the `async_hooks` module,`AsyncLocalStorage` should be preferred as it is a performant and memory safe
+ * implementation that involves significant optimizations that are non-obvious to
+ * implement.
+ *
+ * The following example uses `AsyncLocalStorage` to build a simple logger
+ * that assigns IDs to incoming HTTP requests and includes them in messages
+ * logged within each request.
+ *
+ * ```js
+ * import http from 'http';
+ * import { AsyncLocalStorage } from 'async_hooks';
+ *
+ * const asyncLocalStorage = new AsyncLocalStorage();
+ *
+ * function logWithId(msg) {
+ * const id = asyncLocalStorage.getStore();
+ * console.log(`${id !== undefined ? id : '-'}:`, msg);
+ * }
+ *
+ * let idSeq = 0;
+ * http.createServer((req, res) => {
+ * asyncLocalStorage.run(idSeq++, () => {
+ * logWithId('start');
+ * // Imagine any chain of async operations here
+ * setImmediate(() => {
+ * logWithId('finish');
+ * res.end();
+ * });
+ * });
+ * }).listen(8080);
+ *
+ * http.get('http://localhost:8080');
+ * http.get('http://localhost:8080');
+ * // Prints:
+ * // 0: start
+ * // 1: start
+ * // 0: finish
+ * // 1: finish
+ * ```
+ *
+ * Each instance of `AsyncLocalStorage` maintains an independent storage context.
+ * Multiple instances can safely exist simultaneously without risk of interfering
+ * with each other data.
+ * @since v13.10.0, v12.17.0
*/
class AsyncLocalStorage {
/**
- * This method disables the instance of `AsyncLocalStorage`. All subsequent calls
- * to `asyncLocalStorage.getStore()` will return `undefined` until
- * `asyncLocalStorage.run()` is called again.
+ * Disables the instance of `AsyncLocalStorage`. All subsequent calls
+ * to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
*
* When calling `asyncLocalStorage.disable()`, all current contexts linked to the
* instance will be exited.
*
- * Calling `asyncLocalStorage.disable()` is required before the
- * `asyncLocalStorage` can be garbage collected. This does not apply to stores
+ * Calling `asyncLocalStorage.disable()` is required before the`asyncLocalStorage` can be garbage collected. This does not apply to stores
* provided by the `asyncLocalStorage`, as those objects are garbage collected
* along with the corresponding async resources.
*
- * This method is to be used when the `asyncLocalStorage` is not in use anymore
+ * Use this method when the `asyncLocalStorage` is not in use anymore
* in the current process.
+ * @since v13.10.0, v12.17.0
+ * @experimental
*/
disable(): void;
-
/**
- * This method returns the current store. If this method is called outside of an
- * asynchronous context initialized by calling `asyncLocalStorage.run`, it will
- * return `undefined`.
+ * Returns the current store.
+ * If called outside of an asynchronous context initialized by
+ * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it
+ * returns `undefined`.
+ * @since v13.10.0, v12.17.0
*/
getStore(): T | undefined;
-
/**
- * This methods runs a function synchronously within a context and return its
+ * Runs a function synchronously within a context and returns its
* return value. The store is not accessible outside of the callback function or
* the asynchronous operations created within the callback.
*
- * Optionally, arguments can be passed to the function. They will be passed to the
- * callback function.
+ * The optional `args` are passed to the callback function.
*
- * I the callback function throws an error, it will be thrown by `run` too. The
- * stacktrace will not be impacted by this call and the context will be exited.
+ * If the callback function throws an error, the error is thrown by `run()` too.
+ * The stacktrace is not impacted by this call and the context is exited.
+ *
+ * Example:
+ *
+ * ```js
+ * const store = { id: 2 };
+ * try {
+ * asyncLocalStorage.run(store, () => {
+ * asyncLocalStorage.getStore(); // Returns the store object
+ * throw new Error();
+ * });
+ * } catch (e) {
+ * asyncLocalStorage.getStore(); // Returns undefined
+ * // The error will be caught here
+ * }
+ * ```
+ * @since v13.10.0, v12.17.0
*/
- // TODO: Apply generic vararg once available
- run(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
-
+ run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R;
/**
- * This methods runs a function synchronously outside of a context and return its
- * return value. The store is not accessible within the callback function or the
- * asynchronous operations created within the callback.
+ * Runs a function synchronously outside of a context and returns its
+ * return value. The store is not accessible within the callback function or
+ * the asynchronous operations created within the callback. Any `getStore()`call done within the callback function will always return `undefined`.
*
- * Optionally, arguments can be passed to the function. They will be passed to the
- * callback function.
+ * The optional `args` are passed to the callback function.
*
- * If the callback function throws an error, it will be thrown by `exit` too. The
- * stacktrace will not be impacted by this call and the context will be
- * re-entered.
+ * If the callback function throws an error, the error is thrown by `exit()` too.
+ * The stacktrace is not impacted by this call and the context is re-entered.
+ *
+ * Example:
+ *
+ * ```js
+ * // Within a call to run
+ * try {
+ * asyncLocalStorage.getStore(); // Returns the store object or value
+ * asyncLocalStorage.exit(() => {
+ * asyncLocalStorage.getStore(); // Returns undefined
+ * throw new Error();
+ * });
+ * } catch (e) {
+ * asyncLocalStorage.getStore(); // Returns the same object or value
+ * // The error will be caught here
+ * }
+ * ```
+ * @since v13.10.0, v12.17.0
+ * @experimental
*/
- // TODO: Apply generic vararg once available
- exit(callback: (...args: any[]) => R, ...args: any[]): R;
-
+ exit(callback: (...args: TArgs) => R, ...args: TArgs): R;
/**
- * Calling `asyncLocalStorage.enterWith(store)` will transition into the context
- * for the remainder of the current synchronous execution and will persist
- * through any following asynchronous calls.
+ * Transitions into the context for the remainder of the current
+ * synchronous execution and then persists the store through any following
+ * asynchronous calls.
+ *
+ * Example:
+ *
+ * ```js
+ * const store = { id: 1 };
+ * // Replaces previous store with the given store object
+ * asyncLocalStorage.enterWith(store);
+ * asyncLocalStorage.getStore(); // Returns the store object
+ * someAsyncOperation(() => {
+ * asyncLocalStorage.getStore(); // Returns the same object
+ * });
+ * ```
+ *
+ * This transition will continue for the _entire_ synchronous execution.
+ * This means that if, for example, the context is entered within an event
+ * handler subsequent event handlers will also run within that context unless
+ * specifically bound to another context with an `AsyncResource`. That is why`run()` should be preferred over `enterWith()` unless there are strong reasons
+ * to use the latter method.
+ *
+ * ```js
+ * const store = { id: 1 };
+ *
+ * emitter.on('my-event', () => {
+ * asyncLocalStorage.enterWith(store);
+ * });
+ * emitter.on('my-event', () => {
+ * asyncLocalStorage.getStore(); // Returns the same object
+ * });
+ *
+ * asyncLocalStorage.getStore(); // Returns undefined
+ * emitter.emit('my-event');
+ * asyncLocalStorage.getStore(); // Returns the same object
+ * ```
+ * @since v13.11.0, v12.17.0
+ * @experimental
*/
enterWith(store: T): void;
}
diff --git a/packages/node_modules/@node-red/editor-client/src/types/node/buffer.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node/buffer.d.ts
index 24a77e1e4..e04af96e7 100644
--- a/packages/node_modules/@node-red/editor-client/src/types/node/buffer.d.ts
+++ b/packages/node_modules/@node-red/editor-client/src/types/node/buffer.d.ts
@@ -1,8 +1,54 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
+/**
+ * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many
+ * Node.js APIs support `Buffer`s.
+ *
+ * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
+ * extends it with methods that cover additional use cases. Node.js APIs accept
+ * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well.
+ *
+ * While the `Buffer` class is available within the global scope, it is still
+ * recommended to explicitly reference it via an import or require statement.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Creates a zero-filled Buffer of length 10.
+ * const buf1 = Buffer.alloc(10);
+ *
+ * // Creates a Buffer of length 10,
+ * // filled with bytes which all have the value `1`.
+ * const buf2 = Buffer.alloc(10, 1);
+ *
+ * // Creates an uninitialized buffer of length 10.
+ * // This is faster than calling Buffer.alloc() but the returned
+ * // Buffer instance might contain old data that needs to be
+ * // overwritten using fill(), write(), or other functions that fill the Buffer's
+ * // contents.
+ * const buf3 = Buffer.allocUnsafe(10);
+ *
+ * // Creates a Buffer containing the bytes [1, 2, 3].
+ * const buf4 = Buffer.from([1, 2, 3]);
+ *
+ * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries
+ * // are all truncated using `(value & 255)` to fit into the range 0–255.
+ * const buf5 = Buffer.from([257, 257.5, -255, '1']);
+ *
+ * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést':
+ * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation)
+ * // [116, 195, 169, 115, 116] (in decimal notation)
+ * const buf6 = Buffer.from('tést');
+ *
+ * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
+ * const buf7 = Buffer.from('tést', 'latin1');
+ * ```
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/buffer.js)
+ */
declare module 'buffer' {
import { BinaryLike } from 'node:crypto';
+ import { ReadableStream as WebReadableStream } from 'node:stream/web';
export const INSPECT_MAX_BYTES: number;
export const kMaxLength: number;
export const kStringMaxLength: number;
@@ -10,17 +56,49 @@ declare module 'buffer' {
MAX_LENGTH: number;
MAX_STRING_LENGTH: number;
};
- const BuffType: typeof Buffer;
-
- export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
-
+ export type TranscodeEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'latin1' | 'binary';
+ /**
+ * Re-encodes the given `Buffer` or `Uint8Array` instance from one character
+ * encoding to another. Returns a new `Buffer` instance.
+ *
+ * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
+ * conversion from `fromEnc` to `toEnc` is not permitted.
+ *
+ * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
+ *
+ * The transcoding process will use substitution characters if a given byte
+ * sequence cannot be adequately represented in the target encoding. For instance:
+ *
+ * ```js
+ * import { Buffer, transcode } from 'buffer';
+ *
+ * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii');
+ * console.log(newBuf.toString('ascii'));
+ * // Prints: '?'
+ * ```
+ *
+ * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced
+ * with `?` in the transcoded `Buffer`.
+ * @since v7.1.0
+ * @param source A `Buffer` or `Uint8Array` instance.
+ * @param fromEnc The current encoding.
+ * @param toEnc To target encoding.
+ */
export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
-
export const SlowBuffer: {
/** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
- new(size: number): Buffer;
+ new (size: number): Buffer;
prototype: Buffer;
};
+ /**
+ * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
+ * a prior call to `URL.createObjectURL()`.
+ * @since v16.7.0
+ * @experimental
+ * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
+ */
+ export function resolveObjectURL(id: string): Blob | undefined;
+ export { Buffer };
/**
* @experimental
*/
@@ -39,18 +117,18 @@ declare module 'buffer' {
/**
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
* multiple worker threads.
- * @since v14.18.0
+ * @since v15.7.0
* @experimental
*/
export class Blob {
/**
* The total size of the `Blob` in bytes.
- * @since v14.18.0
+ * @since v15.7.0
*/
readonly size: number;
/**
* The content-type of the `Blob`.
- * @since v14.18.0
+ * @since v15.7.0
*/
readonly type: string;
/**
@@ -65,13 +143,13 @@ declare module 'buffer' {
/**
* Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
* the `Blob` data.
- * @since v14.18.0
+ * @since v15.7.0
*/
arrayBuffer(): Promise;
/**
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
* data. The original `Blob` is not altered.
- * @since v14.18.0
+ * @since v15.7.0
* @param start The starting index.
* @param end The ending index.
* @param type The content-type for the new `Blob`
@@ -80,12 +158,2078 @@ declare module 'buffer' {
/**
* Returns a promise that fulfills with the contents of the `Blob` decoded as a
* UTF-8 string.
- * @since v14.18.0
+ * @since v15.7.0
*/
text(): Promise;
+ /**
+ * Returns a new (WHATWG) `ReadableStream` that allows the content of the `Blob` to be read.
+ * @since v16.7.0
+ */
+ stream(): WebReadableStream;
+ }
+ export import atob = globalThis.atob;
+ export import btoa = globalThis.btoa;
+ global {
+ // Buffer class
+ type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
+ type WithImplicitCoercion =
+ | T
+ | {
+ valueOf(): T;
+ };
+ /**
+ * Raw data is stored in instances of the Buffer class.
+ * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
+ * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
+ */
+ interface BufferConstructor {
+ /**
+ * Allocates a new buffer containing the given {str}.
+ *
+ * @param str String to store in buffer.
+ * @param encoding encoding to use, optional. Default is 'utf8'
+ * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
+ */
+ new (str: string, encoding?: BufferEncoding): Buffer;
+ /**
+ * Allocates a new buffer of {size} octets.
+ *
+ * @param size count of octets to allocate.
+ * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
+ */
+ new (size: number): Buffer;
+ /**
+ * Allocates a new buffer containing the given {array} of octets.
+ *
+ * @param array The octets to store.
+ * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
+ */
+ new (array: Uint8Array): Buffer;
+ /**
+ * Produces a Buffer backed by the same allocated memory as
+ * the given {ArrayBuffer}/{SharedArrayBuffer}.
+ *
+ *
+ * @param arrayBuffer The ArrayBuffer with which to share memory.
+ * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
+ */
+ new (arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
+ /**
+ * Allocates a new buffer containing the given {array} of octets.
+ *
+ * @param array The octets to store.
+ * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
+ */
+ new (array: ReadonlyArray): Buffer;
+ /**
+ * Copies the passed {buffer} data onto a new {Buffer} instance.
+ *
+ * @param buffer The buffer to copy.
+ * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
+ */
+ new (buffer: Buffer): Buffer;
+ /**
+ * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
+ * Array entries outside that range will be truncated to fit into it.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
+ * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
+ * ```
+ *
+ * A `TypeError` will be thrown if `array` is not an `Array` or another type
+ * appropriate for `Buffer.from()` variants.
+ *
+ * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does.
+ * @since v5.10.0
+ */
+ from(arrayBuffer: WithImplicitCoercion, byteOffset?: number, length?: number): Buffer;
+ /**
+ * Creates a new Buffer using the passed {data}
+ * @param data data to create a new Buffer
+ */
+ from(data: Uint8Array | ReadonlyArray): Buffer;
+ from(data: WithImplicitCoercion | string>): Buffer;
+ /**
+ * Creates a new Buffer containing the given JavaScript string {str}.
+ * If provided, the {encoding} parameter identifies the character encoding.
+ * If not provided, {encoding} defaults to 'utf8'.
+ */
+ from(
+ str:
+ | WithImplicitCoercion
+ | {
+ [Symbol.toPrimitive](hint: 'string'): string;
+ },
+ encoding?: BufferEncoding
+ ): Buffer;
+ /**
+ * Creates a new Buffer using the passed {data}
+ * @param values to create a new Buffer
+ */
+ of(...items: number[]): Buffer;
+ /**
+ * Returns `true` if `obj` is a `Buffer`, `false` otherwise.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * Buffer.isBuffer(Buffer.alloc(10)); // true
+ * Buffer.isBuffer(Buffer.from('foo')); // true
+ * Buffer.isBuffer('a string'); // false
+ * Buffer.isBuffer([]); // false
+ * Buffer.isBuffer(new Uint8Array(1024)); // false
+ * ```
+ * @since v0.1.101
+ */
+ isBuffer(obj: any): obj is Buffer;
+ /**
+ * Returns `true` if `encoding` is the name of a supported character encoding,
+ * or `false` otherwise.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * console.log(Buffer.isEncoding('utf8'));
+ * // Prints: true
+ *
+ * console.log(Buffer.isEncoding('hex'));
+ * // Prints: true
+ *
+ * console.log(Buffer.isEncoding('utf/8'));
+ * // Prints: false
+ *
+ * console.log(Buffer.isEncoding(''));
+ * // Prints: false
+ * ```
+ * @since v0.9.1
+ * @param encoding A character encoding name to check.
+ */
+ isEncoding(encoding: string): encoding is BufferEncoding;
+ /**
+ * Returns the byte length of a string when encoded using `encoding`.
+ * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account
+ * for the encoding that is used to convert the string into bytes.
+ *
+ * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input.
+ * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the
+ * return value might be greater than the length of a `Buffer` created from the
+ * string.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const str = '\u00bd + \u00bc = \u00be';
+ *
+ * console.log(`${str}: ${str.length} characters, ` +
+ * `${Buffer.byteLength(str, 'utf8')} bytes`);
+ * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes
+ * ```
+ *
+ * When `string` is a
+ * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/-
+ * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop-
+ * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned.
+ * @since v0.1.90
+ * @param string A value to calculate the length of.
+ * @param [encoding='utf8'] If `string` is a string, this is its encoding.
+ * @return The number of bytes contained within `string`.
+ */
+ byteLength(string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number;
+ /**
+ * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
+ *
+ * If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned.
+ *
+ * If `totalLength` is not provided, it is calculated from the `Buffer` instances
+ * in `list` by adding their lengths.
+ *
+ * If `totalLength` is provided, it is coerced to an unsigned integer. If the
+ * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
+ * truncated to `totalLength`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Create a single `Buffer` from a list of three `Buffer` instances.
+ *
+ * const buf1 = Buffer.alloc(10);
+ * const buf2 = Buffer.alloc(14);
+ * const buf3 = Buffer.alloc(18);
+ * const totalLength = buf1.length + buf2.length + buf3.length;
+ *
+ * console.log(totalLength);
+ * // Prints: 42
+ *
+ * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
+ *
+ * console.log(bufA);
+ * // Prints:
+ * console.log(bufA.length);
+ * // Prints: 42
+ * ```
+ *
+ * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
+ * @since v0.7.11
+ * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
+ * @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
+ */
+ concat(list: ReadonlyArray, totalLength?: number): Buffer;
+ /**
+ * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from('1234');
+ * const buf2 = Buffer.from('0123');
+ * const arr = [buf1, buf2];
+ *
+ * console.log(arr.sort(Buffer.compare));
+ * // Prints: [ , ]
+ * // (This result is equal to: [buf2, buf1].)
+ * ```
+ * @since v0.11.13
+ * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
+ */
+ compare(buf1: Uint8Array, buf2: Uint8Array): number;
+ /**
+ * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.alloc(5);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ *
+ * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
+ *
+ * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.alloc(5, 'a');
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ *
+ * If both `fill` and `encoding` are specified, the allocated `Buffer` will be
+ * initialized by calling `buf.fill(fill, encoding)`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ *
+ * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
+ * contents will never contain sensitive data from previous allocations, including
+ * data that might not have been allocated for `Buffer`s.
+ *
+ * A `TypeError` will be thrown if `size` is not a number.
+ * @since v5.10.0
+ * @param size The desired length of the new `Buffer`.
+ * @param [fill=0] A value to pre-fill the new `Buffer` with.
+ * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
+ */
+ alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
+ /**
+ * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
+ *
+ * The underlying memory for `Buffer` instances created in this way is _not_
+ * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(10);
+ *
+ * console.log(buf);
+ * // Prints (contents may vary):
+ *
+ * buf.fill(0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ *
+ * A `TypeError` will be thrown if `size` is not a number.
+ *
+ * The `Buffer` module pre-allocates an internal `Buffer` instance of
+ * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`,`Buffer.from(array)`, `Buffer.concat()`, and the
+ * deprecated`new Buffer(size)` constructor only when `size` is less than or equal
+ * to `Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two).
+ *
+ * Use of this pre-allocated internal memory pool is a key difference between
+ * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
+ * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
+ * than or equal to half `Buffer.poolSize`. The
+ * difference is subtle but can be important when an application requires the
+ * additional performance that `Buffer.allocUnsafe()` provides.
+ * @since v5.10.0
+ * @param size The desired length of the new `Buffer`.
+ */
+ allocUnsafe(size: number): Buffer;
+ /**
+ * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. A zero-length `Buffer` is created
+ * if `size` is 0.
+ *
+ * The underlying memory for `Buffer` instances created in this way is _not_
+ * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize
+ * such `Buffer` instances with zeroes.
+ *
+ * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
+ * allocations under 4 KB are sliced from a single pre-allocated `Buffer`. This
+ * allows applications to avoid the garbage collection overhead of creating many
+ * individually allocated `Buffer` instances. This approach improves both
+ * performance and memory usage by eliminating the need to track and clean up as
+ * many individual `ArrayBuffer` objects.
+ *
+ * However, in the case where a developer may need to retain a small chunk of
+ * memory from a pool for an indeterminate amount of time, it may be appropriate
+ * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
+ * then copying out the relevant bits.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Need to keep around a few small chunks of memory.
+ * const store = [];
+ *
+ * socket.on('readable', () => {
+ * let data;
+ * while (null !== (data = readable.read())) {
+ * // Allocate for retained data.
+ * const sb = Buffer.allocUnsafeSlow(10);
+ *
+ * // Copy the data into the new allocation.
+ * data.copy(sb, 0, 0, 10);
+ *
+ * store.push(sb);
+ * }
+ * });
+ * ```
+ *
+ * A `TypeError` will be thrown if `size` is not a number.
+ * @since v5.12.0
+ * @param size The desired length of the new `Buffer`.
+ */
+ allocUnsafeSlow(size: number): Buffer;
+ /**
+ * This is the size (in bytes) of pre-allocated internal `Buffer` instances used
+ * for pooling. This value may be modified.
+ * @since v0.11.3
+ */
+ poolSize: number;
+ }
+ interface Buffer extends Uint8Array {
+ /**
+ * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did
+ * not contain enough space to fit the entire string, only part of `string` will be
+ * written. However, partially encoded characters will not be written.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.alloc(256);
+ *
+ * const len = buf.write('\u00bd + \u00bc = \u00be', 0);
+ *
+ * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
+ * // Prints: 12 bytes: ½ + ¼ = ¾
+ *
+ * const buffer = Buffer.alloc(10);
+ *
+ * const length = buffer.write('abcd', 8);
+ *
+ * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`);
+ * // Prints: 2 bytes : ab
+ * ```
+ * @since v0.1.90
+ * @param string String to write to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write `string`.
+ * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`).
+ * @param [encoding='utf8'] The character encoding of `string`.
+ * @return Number of bytes written.
+ */
+ write(string: string, encoding?: BufferEncoding): number;
+ write(string: string, offset: number, encoding?: BufferEncoding): number;
+ write(string: string, offset: number, length: number, encoding?: BufferEncoding): number;
+ /**
+ * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`.
+ *
+ * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8,
+ * then each invalid byte is replaced with the replacement character `U+FFFD`.
+ *
+ * The maximum length of a string instance (in UTF-16 code units) is available
+ * as {@link constants.MAX_STRING_LENGTH}.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.allocUnsafe(26);
+ *
+ * for (let i = 0; i < 26; i++) {
+ * // 97 is the decimal ASCII value for 'a'.
+ * buf1[i] = i + 97;
+ * }
+ *
+ * console.log(buf1.toString('utf8'));
+ * // Prints: abcdefghijklmnopqrstuvwxyz
+ * console.log(buf1.toString('utf8', 0, 5));
+ * // Prints: abcde
+ *
+ * const buf2 = Buffer.from('tést');
+ *
+ * console.log(buf2.toString('hex'));
+ * // Prints: 74c3a97374
+ * console.log(buf2.toString('utf8', 0, 3));
+ * // Prints: té
+ * console.log(buf2.toString(undefined, 0, 3));
+ * // Prints: té
+ * ```
+ * @since v0.1.90
+ * @param [encoding='utf8'] The character encoding to use.
+ * @param [start=0] The byte offset to start decoding at.
+ * @param [end=buf.length] The byte offset to stop decoding at (not inclusive).
+ */
+ toString(encoding?: BufferEncoding, start?: number, end?: number): string;
+ /**
+ * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls
+ * this function when stringifying a `Buffer` instance.
+ *
+ * `Buffer.from()` accepts objects in the format returned from this method.
+ * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]);
+ * const json = JSON.stringify(buf);
+ *
+ * console.log(json);
+ * // Prints: {"type":"Buffer","data":[1,2,3,4,5]}
+ *
+ * const copy = JSON.parse(json, (key, value) => {
+ * return value && value.type === 'Buffer' ?
+ * Buffer.from(value) :
+ * value;
+ * });
+ *
+ * console.log(copy);
+ * // Prints:
+ * ```
+ * @since v0.9.2
+ */
+ toJSON(): {
+ type: 'Buffer';
+ data: number[];
+ };
+ /**
+ * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from('ABC');
+ * const buf2 = Buffer.from('414243', 'hex');
+ * const buf3 = Buffer.from('ABCD');
+ *
+ * console.log(buf1.equals(buf2));
+ * // Prints: true
+ * console.log(buf1.equals(buf3));
+ * // Prints: false
+ * ```
+ * @since v0.11.13
+ * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`.
+ */
+ equals(otherBuffer: Uint8Array): boolean;
+ /**
+ * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order.
+ * Comparison is based on the actual sequence of bytes in each `Buffer`.
+ *
+ * * `0` is returned if `target` is the same as `buf`
+ * * `1` is returned if `target` should come _before_`buf` when sorted.
+ * * `-1` is returned if `target` should come _after_`buf` when sorted.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from('ABC');
+ * const buf2 = Buffer.from('BCD');
+ * const buf3 = Buffer.from('ABCD');
+ *
+ * console.log(buf1.compare(buf1));
+ * // Prints: 0
+ * console.log(buf1.compare(buf2));
+ * // Prints: -1
+ * console.log(buf1.compare(buf3));
+ * // Prints: -1
+ * console.log(buf2.compare(buf1));
+ * // Prints: 1
+ * console.log(buf2.compare(buf3));
+ * // Prints: 1
+ * console.log([buf1, buf2, buf3].sort(Buffer.compare));
+ * // Prints: [ , , ]
+ * // (This result is equal to: [buf1, buf3, buf2].)
+ * ```
+ *
+ * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]);
+ * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]);
+ *
+ * console.log(buf1.compare(buf2, 5, 9, 0, 4));
+ * // Prints: 0
+ * console.log(buf1.compare(buf2, 0, 6, 4));
+ * // Prints: -1
+ * console.log(buf1.compare(buf2, 5, 6, 5));
+ * // Prints: 1
+ * ```
+ *
+ * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`.
+ * @since v0.11.13
+ * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`.
+ * @param [targetStart=0] The offset within `target` at which to begin comparison.
+ * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive).
+ * @param [sourceStart=0] The offset within `buf` at which to begin comparison.
+ * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
+ */
+ compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
+ /**
+ * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
+ *
+ * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available
+ * for all TypedArrays, including Node.js `Buffer`s, although it takes
+ * different function arguments.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Create two `Buffer` instances.
+ * const buf1 = Buffer.allocUnsafe(26);
+ * const buf2 = Buffer.allocUnsafe(26).fill('!');
+ *
+ * for (let i = 0; i < 26; i++) {
+ * // 97 is the decimal ASCII value for 'a'.
+ * buf1[i] = i + 97;
+ * }
+ *
+ * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`.
+ * buf1.copy(buf2, 8, 16, 20);
+ * // This is equivalent to:
+ * // buf2.set(buf1.subarray(16, 20), 8);
+ *
+ * console.log(buf2.toString('ascii', 0, 25));
+ * // Prints: !!!!!!!!qrst!!!!!!!!!!!!!
+ * ```
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Create a `Buffer` and copy data from one region to an overlapping region
+ * // within the same `Buffer`.
+ *
+ * const buf = Buffer.allocUnsafe(26);
+ *
+ * for (let i = 0; i < 26; i++) {
+ * // 97 is the decimal ASCII value for 'a'.
+ * buf[i] = i + 97;
+ * }
+ *
+ * buf.copy(buf, 0, 4, 10);
+ *
+ * console.log(buf.toString());
+ * // Prints: efghijghijklmnopqrstuvwxyz
+ * ```
+ * @since v0.1.90
+ * @param target A `Buffer` or {@link Uint8Array} to copy into.
+ * @param [targetStart=0] The offset within `target` at which to begin writing.
+ * @param [sourceStart=0] The offset within `buf` from which to begin copying.
+ * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive).
+ * @return The number of bytes copied.
+ */
+ copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
+ /**
+ * Returns a new `Buffer` that references the same memory as the original, but
+ * offset and cropped by the `start` and `end` indices.
+ *
+ * This is the same behavior as `buf.subarray()`.
+ *
+ * This method is not compatible with the `Uint8Array.prototype.slice()`,
+ * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('buffer');
+ *
+ * const copiedBuf = Uint8Array.prototype.slice.call(buf);
+ * copiedBuf[0]++;
+ * console.log(copiedBuf.toString());
+ * // Prints: cuffer
+ *
+ * console.log(buf.toString());
+ * // Prints: buffer
+ * ```
+ * @since v0.3.0
+ * @param [start=0] Where the new `Buffer` will start.
+ * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
+ */
+ slice(start?: number, end?: number): Buffer;
+ /**
+ * Returns a new `Buffer` that references the same memory as the original, but
+ * offset and cropped by the `start` and `end` indices.
+ *
+ * Specifying `end` greater than `buf.length` will return the same result as
+ * that of `end` equal to `buf.length`.
+ *
+ * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray).
+ *
+ * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
+ * // from the original `Buffer`.
+ *
+ * const buf1 = Buffer.allocUnsafe(26);
+ *
+ * for (let i = 0; i < 26; i++) {
+ * // 97 is the decimal ASCII value for 'a'.
+ * buf1[i] = i + 97;
+ * }
+ *
+ * const buf2 = buf1.subarray(0, 3);
+ *
+ * console.log(buf2.toString('ascii', 0, buf2.length));
+ * // Prints: abc
+ *
+ * buf1[0] = 33;
+ *
+ * console.log(buf2.toString('ascii', 0, buf2.length));
+ * // Prints: !bc
+ * ```
+ *
+ * Specifying negative indexes causes the slice to be generated relative to the
+ * end of `buf` rather than the beginning.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('buffer');
+ *
+ * console.log(buf.subarray(-6, -1).toString());
+ * // Prints: buffe
+ * // (Equivalent to buf.subarray(0, 5).)
+ *
+ * console.log(buf.subarray(-6, -2).toString());
+ * // Prints: buff
+ * // (Equivalent to buf.subarray(0, 4).)
+ *
+ * console.log(buf.subarray(-5, -2).toString());
+ * // Prints: uff
+ * // (Equivalent to buf.subarray(1, 4).)
+ * ```
+ * @since v3.0.0
+ * @param [start=0] Where the new `Buffer` will start.
+ * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
+ */
+ subarray(start?: number, end?: number): Buffer;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian.
+ *
+ * `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(8);
+ *
+ * buf.writeBigInt64BE(0x0102030405060708n, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v12.0.0, v10.20.0
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeBigInt64BE(value: bigint, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian.
+ *
+ * `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(8);
+ *
+ * buf.writeBigInt64LE(0x0102030405060708n, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v12.0.0, v10.20.0
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeBigInt64LE(value: bigint, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian.
+ *
+ * This function is also available under the `writeBigUint64BE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(8);
+ *
+ * buf.writeBigUInt64BE(0xdecafafecacefaden, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v12.0.0, v10.20.0
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeBigUInt64BE(value: bigint, offset?: number): number;
+ /**
+ * @alias Buffer.writeBigUInt64BE
+ * @since v14.10.0, v12.19.0
+ */
+ writeBigUint64BE(value: bigint, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(8);
+ *
+ * buf.writeBigUInt64LE(0xdecafafecacefaden, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ *
+ * This function is also available under the `writeBigUint64LE` alias.
+ * @since v12.0.0, v10.20.0
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeBigUInt64LE(value: bigint, offset?: number): number;
+ /**
+ * @alias Buffer.writeBigUInt64LE
+ * @since v14.10.0, v12.19.0
+ */
+ writeBigUint64LE(value: bigint, offset?: number): number;
+ /**
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
+ * when `value` is anything other than an unsigned integer.
+ *
+ * This function is also available under the `writeUintLE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(6);
+ *
+ * buf.writeUIntLE(0x1234567890ab, 0, 6);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUIntLE(value: number, offset: number, byteLength: number): number;
+ /**
+ * @alias Buffer.writeUIntLE
+ * @since v14.9.0, v12.19.0
+ */
+ writeUintLE(value: number, offset: number, byteLength: number): number;
+ /**
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
+ * when `value` is anything other than an unsigned integer.
+ *
+ * This function is also available under the `writeUintBE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(6);
+ *
+ * buf.writeUIntBE(0x1234567890ab, 0, 6);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUIntBE(value: number, offset: number, byteLength: number): number;
+ /**
+ * @alias Buffer.writeUIntBE
+ * @since v14.9.0, v12.19.0
+ */
+ writeUintBE(value: number, offset: number, byteLength: number): number;
+ /**
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
+ * when `value` is anything other than a signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(6);
+ *
+ * buf.writeIntLE(0x1234567890ab, 0, 6);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.11.15
+ * @param value Number to be written to `buf`.
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeIntLE(value: number, offset: number, byteLength: number): number;
+ /**
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a
+ * signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(6);
+ *
+ * buf.writeIntBE(0x1234567890ab, 0, 6);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.11.15
+ * @param value Number to be written to `buf`.
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeIntBE(value: number, offset: number, byteLength: number): number;
+ /**
+ * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`.
+ *
+ * This function is also available under the `readBigUint64BE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
+ *
+ * console.log(buf.readBigUInt64BE(0));
+ * // Prints: 4294967295n
+ * ```
+ * @since v12.0.0, v10.20.0
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
+ */
+ readBigUInt64BE(offset?: number): bigint;
+ /**
+ * @alias Buffer.readBigUInt64BE
+ * @since v14.10.0, v12.19.0
+ */
+ readBigUint64BE(offset?: number): bigint;
+ /**
+ * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`.
+ *
+ * This function is also available under the `readBigUint64LE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
+ *
+ * console.log(buf.readBigUInt64LE(0));
+ * // Prints: 18446744069414584320n
+ * ```
+ * @since v12.0.0, v10.20.0
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
+ */
+ readBigUInt64LE(offset?: number): bigint;
+ /**
+ * @alias Buffer.readBigUInt64LE
+ * @since v14.10.0, v12.19.0
+ */
+ readBigUint64LE(offset?: number): bigint;
+ /**
+ * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed
+ * values.
+ * @since v12.0.0, v10.20.0
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
+ */
+ readBigInt64BE(offset?: number): bigint;
+ /**
+ * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed
+ * values.
+ * @since v12.0.0, v10.20.0
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
+ */
+ readBigInt64LE(offset?: number): bigint;
+ /**
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting
+ * up to 48 bits of accuracy.
+ *
+ * This function is also available under the `readUintLE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
+ *
+ * console.log(buf.readUIntLE(0, 6).toString(16));
+ * // Prints: ab9078563412
+ * ```
+ * @since v0.11.15
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
+ */
+ readUIntLE(offset: number, byteLength: number): number;
+ /**
+ * @alias Buffer.readUIntLE
+ * @since v14.9.0, v12.19.0
+ */
+ readUintLE(offset: number, byteLength: number): number;
+ /**
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
+ * up to 48 bits of accuracy.
+ *
+ * This function is also available under the `readUintBE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
+ *
+ * console.log(buf.readUIntBE(0, 6).toString(16));
+ * // Prints: 1234567890ab
+ * console.log(buf.readUIntBE(1, 6).toString(16));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.11.15
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
+ */
+ readUIntBE(offset: number, byteLength: number): number;
+ /**
+ * @alias Buffer.readUIntBE
+ * @since v14.9.0, v12.19.0
+ */
+ readUintBE(offset: number, byteLength: number): number;
+ /**
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
+ * supporting up to 48 bits of accuracy.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
+ *
+ * console.log(buf.readIntLE(0, 6).toString(16));
+ * // Prints: -546f87a9cbee
+ * ```
+ * @since v0.11.15
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
+ */
+ readIntLE(offset: number, byteLength: number): number;
+ /**
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value
+ * supporting up to 48 bits of accuracy.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
+ *
+ * console.log(buf.readIntBE(0, 6).toString(16));
+ * // Prints: 1234567890ab
+ * console.log(buf.readIntBE(1, 6).toString(16));
+ * // Throws ERR_OUT_OF_RANGE.
+ * console.log(buf.readIntBE(1, 0).toString(16));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.11.15
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
+ */
+ readIntBE(offset: number, byteLength: number): number;
+ /**
+ * Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
+ *
+ * This function is also available under the `readUint8` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([1, -2]);
+ *
+ * console.log(buf.readUInt8(0));
+ * // Prints: 1
+ * console.log(buf.readUInt8(1));
+ * // Prints: 254
+ * console.log(buf.readUInt8(2));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.5.0
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
+ */
+ readUInt8(offset?: number): number;
+ /**
+ * @alias Buffer.readUInt8
+ * @since v14.9.0, v12.19.0
+ */
+ readUint8(offset?: number): number;
+ /**
+ * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`.
+ *
+ * This function is also available under the `readUint16LE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56]);
+ *
+ * console.log(buf.readUInt16LE(0).toString(16));
+ * // Prints: 3412
+ * console.log(buf.readUInt16LE(1).toString(16));
+ * // Prints: 5634
+ * console.log(buf.readUInt16LE(2).toString(16));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
+ */
+ readUInt16LE(offset?: number): number;
+ /**
+ * @alias Buffer.readUInt16LE
+ * @since v14.9.0, v12.19.0
+ */
+ readUint16LE(offset?: number): number;
+ /**
+ * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`.
+ *
+ * This function is also available under the `readUint16BE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56]);
+ *
+ * console.log(buf.readUInt16BE(0).toString(16));
+ * // Prints: 1234
+ * console.log(buf.readUInt16BE(1).toString(16));
+ * // Prints: 3456
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
+ */
+ readUInt16BE(offset?: number): number;
+ /**
+ * @alias Buffer.readUInt16BE
+ * @since v14.9.0, v12.19.0
+ */
+ readUint16BE(offset?: number): number;
+ /**
+ * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`.
+ *
+ * This function is also available under the `readUint32LE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
+ *
+ * console.log(buf.readUInt32LE(0).toString(16));
+ * // Prints: 78563412
+ * console.log(buf.readUInt32LE(1).toString(16));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
+ */
+ readUInt32LE(offset?: number): number;
+ /**
+ * @alias Buffer.readUInt32LE
+ * @since v14.9.0, v12.19.0
+ */
+ readUint32LE(offset?: number): number;
+ /**
+ * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`.
+ *
+ * This function is also available under the `readUint32BE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
+ *
+ * console.log(buf.readUInt32BE(0).toString(16));
+ * // Prints: 12345678
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
+ */
+ readUInt32BE(offset?: number): number;
+ /**
+ * @alias Buffer.readUInt32BE
+ * @since v14.9.0, v12.19.0
+ */
+ readUint32BE(offset?: number): number;
+ /**
+ * Reads a signed 8-bit integer from `buf` at the specified `offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([-1, 5]);
+ *
+ * console.log(buf.readInt8(0));
+ * // Prints: -1
+ * console.log(buf.readInt8(1));
+ * // Prints: 5
+ * console.log(buf.readInt8(2));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.5.0
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
+ */
+ readInt8(offset?: number): number;
+ /**
+ * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0, 5]);
+ *
+ * console.log(buf.readInt16LE(0));
+ * // Prints: 1280
+ * console.log(buf.readInt16LE(1));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
+ */
+ readInt16LE(offset?: number): number;
+ /**
+ * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0, 5]);
+ *
+ * console.log(buf.readInt16BE(0));
+ * // Prints: 5
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
+ */
+ readInt16BE(offset?: number): number;
+ /**
+ * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0, 0, 0, 5]);
+ *
+ * console.log(buf.readInt32LE(0));
+ * // Prints: 83886080
+ * console.log(buf.readInt32LE(1));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
+ */
+ readInt32LE(offset?: number): number;
+ /**
+ * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`.
+ *
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([0, 0, 0, 5]);
+ *
+ * console.log(buf.readInt32BE(0));
+ * // Prints: 5
+ * ```
+ * @since v0.5.5
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
+ */
+ readInt32BE(offset?: number): number;
+ /**
+ * Reads a 32-bit, little-endian float from `buf` at the specified `offset`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([1, 2, 3, 4]);
+ *
+ * console.log(buf.readFloatLE(0));
+ * // Prints: 1.539989614439558e-36
+ * console.log(buf.readFloatLE(1));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.11.15
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
+ */
+ readFloatLE(offset?: number): number;
+ /**
+ * Reads a 32-bit, big-endian float from `buf` at the specified `offset`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([1, 2, 3, 4]);
+ *
+ * console.log(buf.readFloatBE(0));
+ * // Prints: 2.387939260590663e-38
+ * ```
+ * @since v0.11.15
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
+ */
+ readFloatBE(offset?: number): number;
+ /**
+ * Reads a 64-bit, little-endian double from `buf` at the specified `offset`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
+ *
+ * console.log(buf.readDoubleLE(0));
+ * // Prints: 5.447603722011605e-270
+ * console.log(buf.readDoubleLE(1));
+ * // Throws ERR_OUT_OF_RANGE.
+ * ```
+ * @since v0.11.15
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
+ */
+ readDoubleLE(offset?: number): number;
+ /**
+ * Reads a 64-bit, big-endian double from `buf` at the specified `offset`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
+ *
+ * console.log(buf.readDoubleBE(0));
+ * // Prints: 8.20788039913184e-304
+ * ```
+ * @since v0.11.15
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
+ */
+ readDoubleBE(offset?: number): number;
+ reverse(): this;
+ /**
+ * Interprets `buf` as an array of unsigned 16-bit integers and swaps the
+ * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
+ *
+ * console.log(buf1);
+ * // Prints:
+ *
+ * buf1.swap16();
+ *
+ * console.log(buf1);
+ * // Prints:
+ *
+ * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
+ *
+ * buf2.swap16();
+ * // Throws ERR_INVALID_BUFFER_SIZE.
+ * ```
+ *
+ * One convenient use of `buf.swap16()` is to perform a fast in-place conversion
+ * between UTF-16 little-endian and UTF-16 big-endian:
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le');
+ * buf.swap16(); // Convert to big-endian UTF-16 text.
+ * ```
+ * @since v5.10.0
+ * @return A reference to `buf`.
+ */
+ swap16(): Buffer;
+ /**
+ * Interprets `buf` as an array of unsigned 32-bit integers and swaps the
+ * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
+ *
+ * console.log(buf1);
+ * // Prints:
+ *
+ * buf1.swap32();
+ *
+ * console.log(buf1);
+ * // Prints:
+ *
+ * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
+ *
+ * buf2.swap32();
+ * // Throws ERR_INVALID_BUFFER_SIZE.
+ * ```
+ * @since v5.10.0
+ * @return A reference to `buf`.
+ */
+ swap32(): Buffer;
+ /**
+ * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_.
+ * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
+ *
+ * console.log(buf1);
+ * // Prints:
+ *
+ * buf1.swap64();
+ *
+ * console.log(buf1);
+ * // Prints:
+ *
+ * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
+ *
+ * buf2.swap64();
+ * // Throws ERR_INVALID_BUFFER_SIZE.
+ * ```
+ * @since v6.3.0
+ * @return A reference to `buf`.
+ */
+ swap64(): Buffer;
+ /**
+ * Writes `value` to `buf` at the specified `offset`. `value` must be a
+ * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
+ * other than an unsigned 8-bit integer.
+ *
+ * This function is also available under the `writeUint8` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeUInt8(0x3, 0);
+ * buf.writeUInt8(0x4, 1);
+ * buf.writeUInt8(0x23, 2);
+ * buf.writeUInt8(0x42, 3);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.0
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUInt8(value: number, offset?: number): number;
+ /**
+ * @alias Buffer.writeUInt8
+ * @since v14.9.0, v12.19.0
+ */
+ writeUint8(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is
+ * anything other than an unsigned 16-bit integer.
+ *
+ * This function is also available under the `writeUint16LE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeUInt16LE(0xdead, 0);
+ * buf.writeUInt16LE(0xbeef, 2);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUInt16LE(value: number, offset?: number): number;
+ /**
+ * @alias Buffer.writeUInt16LE
+ * @since v14.9.0, v12.19.0
+ */
+ writeUint16LE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an
+ * unsigned 16-bit integer.
+ *
+ * This function is also available under the `writeUint16BE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeUInt16BE(0xdead, 0);
+ * buf.writeUInt16BE(0xbeef, 2);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUInt16BE(value: number, offset?: number): number;
+ /**
+ * @alias Buffer.writeUInt16BE
+ * @since v14.9.0, v12.19.0
+ */
+ writeUint16BE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is
+ * anything other than an unsigned 32-bit integer.
+ *
+ * This function is also available under the `writeUint32LE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeUInt32LE(0xfeedface, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUInt32LE(value: number, offset?: number): number;
+ /**
+ * @alias Buffer.writeUInt32LE
+ * @since v14.9.0, v12.19.0
+ */
+ writeUint32LE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an
+ * unsigned 32-bit integer.
+ *
+ * This function is also available under the `writeUint32BE` alias.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeUInt32BE(0xfeedface, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeUInt32BE(value: number, offset?: number): number;
+ /**
+ * @alias Buffer.writeUInt32BE
+ * @since v14.9.0, v12.19.0
+ */
+ writeUint32BE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset`. `value` must be a valid
+ * signed 8-bit integer. Behavior is undefined when `value` is anything other than
+ * a signed 8-bit integer.
+ *
+ * `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(2);
+ *
+ * buf.writeInt8(2, 0);
+ * buf.writeInt8(-2, 1);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.0
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeInt8(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is
+ * anything other than a signed 16-bit integer.
+ *
+ * The `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(2);
+ *
+ * buf.writeInt16LE(0x0304, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeInt16LE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is
+ * anything other than a signed 16-bit integer.
+ *
+ * The `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(2);
+ *
+ * buf.writeInt16BE(0x0102, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeInt16BE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is
+ * anything other than a signed 32-bit integer.
+ *
+ * The `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeInt32LE(0x05060708, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeInt32LE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is
+ * anything other than a signed 32-bit integer.
+ *
+ * The `value` is interpreted and written as a two's complement signed integer.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeInt32BE(0x01020304, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.5.5
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeInt32BE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is
+ * undefined when `value` is anything other than a JavaScript number.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeFloatLE(0xcafebabe, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.11.15
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeFloatLE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is
+ * undefined when `value` is anything other than a JavaScript number.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(4);
+ *
+ * buf.writeFloatBE(0xcafebabe, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.11.15
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeFloatBE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything
+ * other than a JavaScript number.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(8);
+ *
+ * buf.writeDoubleLE(123.456, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.11.15
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeDoubleLE(value: number, offset?: number): number;
+ /**
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything
+ * other than a JavaScript number.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(8);
+ *
+ * buf.writeDoubleBE(123.456, 0);
+ *
+ * console.log(buf);
+ * // Prints:
+ * ```
+ * @since v0.11.15
+ * @param value Number to be written to `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
+ * @return `offset` plus the number of bytes written.
+ */
+ writeDoubleBE(value: number, offset?: number): number;
+ /**
+ * Fills `buf` with the specified `value`. If the `offset` and `end` are not given,
+ * the entire `buf` will be filled:
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Fill a `Buffer` with the ASCII character 'h'.
+ *
+ * const b = Buffer.allocUnsafe(50).fill('h');
+ *
+ * console.log(b.toString());
+ * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
+ * ```
+ *
+ * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
+ * integer. If the resulting integer is greater than `255` (decimal), `buf` will be
+ * filled with `value & 255`.
+ *
+ * If the final write of a `fill()` operation falls on a multi-byte character,
+ * then only the bytes of that character that fit into `buf` are written:
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Fill a `Buffer` with character that takes up two bytes in UTF-8.
+ *
+ * console.log(Buffer.allocUnsafe(5).fill('\u0222'));
+ * // Prints:
+ * ```
+ *
+ * If `value` contains invalid characters, it is truncated; if no valid
+ * fill data remains, an exception is thrown:
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.allocUnsafe(5);
+ *
+ * console.log(buf.fill('a'));
+ * // Prints:
+ * console.log(buf.fill('aazz', 'hex'));
+ * // Prints:
+ * console.log(buf.fill('zz', 'hex'));
+ * // Throws an exception.
+ * ```
+ * @since v0.5.0
+ * @param value The value with which to fill `buf`.
+ * @param [offset=0] Number of bytes to skip before starting to fill `buf`.
+ * @param [end=buf.length] Where to stop filling `buf` (not inclusive).
+ * @param [encoding='utf8'] The encoding for `value` if `value` is a string.
+ * @return A reference to `buf`.
+ */
+ fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
+ /**
+ * If `value` is:
+ *
+ * * a string, `value` is interpreted according to the character encoding in`encoding`.
+ * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
+ * To compare a partial `Buffer`, use `buf.slice()`.
+ * * a number, `value` will be interpreted as an unsigned 8-bit integer
+ * value between `0` and `255`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('this is a buffer');
+ *
+ * console.log(buf.indexOf('this'));
+ * // Prints: 0
+ * console.log(buf.indexOf('is'));
+ * // Prints: 2
+ * console.log(buf.indexOf(Buffer.from('a buffer')));
+ * // Prints: 8
+ * console.log(buf.indexOf(97));
+ * // Prints: 8 (97 is the decimal ASCII value for 'a')
+ * console.log(buf.indexOf(Buffer.from('a buffer example')));
+ * // Prints: -1
+ * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8)));
+ * // Prints: 8
+ *
+ * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
+ *
+ * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le'));
+ * // Prints: 4
+ * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le'));
+ * // Prints: 6
+ * ```
+ *
+ * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
+ * an integer between 0 and 255.
+ *
+ * If `byteOffset` is not a number, it will be coerced to a number. If the result
+ * of coercion is `NaN` or `0`, then the entire buffer will be searched. This
+ * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const b = Buffer.from('abcdef');
+ *
+ * // Passing a value that's a number, but not a valid byte.
+ * // Prints: 2, equivalent to searching for 99 or 'c'.
+ * console.log(b.indexOf(99.9));
+ * console.log(b.indexOf(256 + 99));
+ *
+ * // Passing a byteOffset that coerces to NaN or 0.
+ * // Prints: 1, searching the whole buffer.
+ * console.log(b.indexOf('b', undefined));
+ * console.log(b.indexOf('b', {}));
+ * console.log(b.indexOf('b', null));
+ * console.log(b.indexOf('b', []));
+ * ```
+ *
+ * If `value` is an empty string or empty `Buffer` and `byteOffset` is less
+ * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
+ * @since v1.5.0
+ * @param value What to search for.
+ * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
+ * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
+ * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
+ */
+ indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
+ /**
+ * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
+ * rather than the first occurrence.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('this buffer is a buffer');
+ *
+ * console.log(buf.lastIndexOf('this'));
+ * // Prints: 0
+ * console.log(buf.lastIndexOf('buffer'));
+ * // Prints: 17
+ * console.log(buf.lastIndexOf(Buffer.from('buffer')));
+ * // Prints: 17
+ * console.log(buf.lastIndexOf(97));
+ * // Prints: 15 (97 is the decimal ASCII value for 'a')
+ * console.log(buf.lastIndexOf(Buffer.from('yolo')));
+ * // Prints: -1
+ * console.log(buf.lastIndexOf('buffer', 5));
+ * // Prints: 5
+ * console.log(buf.lastIndexOf('buffer', 4));
+ * // Prints: -1
+ *
+ * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
+ *
+ * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le'));
+ * // Prints: 6
+ * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le'));
+ * // Prints: 4
+ * ```
+ *
+ * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
+ * an integer between 0 and 255.
+ *
+ * If `byteOffset` is not a number, it will be coerced to a number. Any arguments
+ * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
+ * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const b = Buffer.from('abcdef');
+ *
+ * // Passing a value that's a number, but not a valid byte.
+ * // Prints: 2, equivalent to searching for 99 or 'c'.
+ * console.log(b.lastIndexOf(99.9));
+ * console.log(b.lastIndexOf(256 + 99));
+ *
+ * // Passing a byteOffset that coerces to NaN.
+ * // Prints: 1, searching the whole buffer.
+ * console.log(b.lastIndexOf('b', undefined));
+ * console.log(b.lastIndexOf('b', {}));
+ *
+ * // Passing a byteOffset that coerces to 0.
+ * // Prints: -1, equivalent to passing 0.
+ * console.log(b.lastIndexOf('b', null));
+ * console.log(b.lastIndexOf('b', []));
+ * ```
+ *
+ * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
+ * @since v6.0.0
+ * @param value What to search for.
+ * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
+ * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
+ * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
+ */
+ lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
+ /**
+ * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents
+ * of `buf`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * // Log the entire contents of a `Buffer`.
+ *
+ * const buf = Buffer.from('buffer');
+ *
+ * for (const pair of buf.entries()) {
+ * console.log(pair);
+ * }
+ * // Prints:
+ * // [0, 98]
+ * // [1, 117]
+ * // [2, 102]
+ * // [3, 102]
+ * // [4, 101]
+ * // [5, 114]
+ * ```
+ * @since v1.1.0
+ */
+ entries(): IterableIterator<[number, number]>;
+ /**
+ * Equivalent to `buf.indexOf() !== -1`.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('this is a buffer');
+ *
+ * console.log(buf.includes('this'));
+ * // Prints: true
+ * console.log(buf.includes('is'));
+ * // Prints: true
+ * console.log(buf.includes(Buffer.from('a buffer')));
+ * // Prints: true
+ * console.log(buf.includes(97));
+ * // Prints: true (97 is the decimal ASCII value for 'a')
+ * console.log(buf.includes(Buffer.from('a buffer example')));
+ * // Prints: false
+ * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8)));
+ * // Prints: true
+ * console.log(buf.includes('this', 4));
+ * // Prints: false
+ * ```
+ * @since v5.3.0
+ * @param value What to search for.
+ * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
+ * @param [encoding='utf8'] If `value` is a string, this is its encoding.
+ * @return `true` if `value` was found in `buf`, `false` otherwise.
+ */
+ includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
+ /**
+ * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('buffer');
+ *
+ * for (const key of buf.keys()) {
+ * console.log(key);
+ * }
+ * // Prints:
+ * // 0
+ * // 1
+ * // 2
+ * // 3
+ * // 4
+ * // 5
+ * ```
+ * @since v1.1.0
+ */
+ keys(): IterableIterator;
+ /**
+ * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is
+ * called automatically when a `Buffer` is used in a `for..of` statement.
+ *
+ * ```js
+ * import { Buffer } from 'buffer';
+ *
+ * const buf = Buffer.from('buffer');
+ *
+ * for (const value of buf.values()) {
+ * console.log(value);
+ * }
+ * // Prints:
+ * // 98
+ * // 117
+ * // 102
+ * // 102
+ * // 101
+ * // 114
+ *
+ * for (const value of buf) {
+ * console.log(value);
+ * }
+ * // Prints:
+ * // 98
+ * // 117
+ * // 102
+ * // 102
+ * // 101
+ * // 114
+ * ```
+ * @since v1.1.0
+ */
+ values(): IterableIterator;
+ }
+ var Buffer: BufferConstructor;
+ /**
+ * Decodes a string of Base64-encoded data into bytes, and encodes those bytes
+ * into a string using Latin-1 (ISO-8859-1).
+ *
+ * The `data` may be any JavaScript-value that can be coerced into a string.
+ *
+ * **This function is only provided for compatibility with legacy web platform APIs**
+ * **and should never be used in new code, because they use strings to represent**
+ * **binary data and predate the introduction of typed arrays in JavaScript.**
+ * **For code running using Node.js APIs, converting between base64-encoded strings**
+ * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
+ * @since v15.13.0
+ * @deprecated Use `Buffer.from(data, 'base64')` instead.
+ * @param data The Base64-encoded input string.
+ */
+ function atob(data: string): string;
+ /**
+ * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
+ * into a string using Base64.
+ *
+ * The `data` may be any JavaScript-value that can be coerced into a string.
+ *
+ * **This function is only provided for compatibility with legacy web platform APIs**
+ * **and should never be used in new code, because they use strings to represent**
+ * **binary data and predate the introduction of typed arrays in JavaScript.**
+ * **For code running using Node.js APIs, converting between base64-encoded strings**
+ * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
+ * @since v15.13.0
+ * @deprecated Use `buf.toString('base64')` instead.
+ * @param data An ASCII (Latin1) string.
+ */
+ function btoa(data: string): string;
}
-
- export { BuffType as Buffer };
}
declare module 'node:buffer' {
export * from 'buffer';
diff --git a/packages/node_modules/@node-red/editor-client/src/types/node/child_process.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node/child_process.d.ts
index a56583b28..d79c74a3b 100644
--- a/packages/node_modules/@node-red/editor-client/src/types/node/child_process.d.ts
+++ b/packages/node_modules/@node-red/editor-client/src/types/node/child_process.d.ts
@@ -1,42 +1,518 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
+/**
+ * The `child_process` module provides the ability to spawn subprocesses in
+ * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability
+ * is primarily provided by the {@link spawn} function:
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const ls = spawn('ls', ['-lh', '/usr']);
+ *
+ * ls.stdout.on('data', (data) => {
+ * console.log(`stdout: ${data}`);
+ * });
+ *
+ * ls.stderr.on('data', (data) => {
+ * console.error(`stderr: ${data}`);
+ * });
+ *
+ * ls.on('close', (code) => {
+ * console.log(`child process exited with code ${code}`);
+ * });
+ * ```
+ *
+ * By default, pipes for `stdin`, `stdout`, and `stderr` are established between
+ * the parent Node.js process and the spawned subprocess. These pipes have
+ * limited (and platform-specific) capacity. If the subprocess writes to
+ * stdout in excess of that limit without the output being captured, the
+ * subprocess blocks waiting for the pipe buffer to accept more data. This is
+ * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`option if the output will not be consumed.
+ *
+ * The command lookup is performed using the `options.env.PATH` environment
+ * variable if it is in the `options` object. Otherwise, `process.env.PATH` is
+ * used.
+ *
+ * On Windows, environment variables are case-insensitive. Node.js
+ * lexicographically sorts the `env` keys and uses the first one that
+ * case-insensitively matches. Only first (in lexicographic order) entry will be
+ * passed to the subprocess. This might lead to issues on Windows when passing
+ * objects to the `env` option that have multiple variants of the same key, such as`PATH` and `Path`.
+ *
+ * The {@link spawn} method spawns the child process asynchronously,
+ * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks
+ * the event loop until the spawned process either exits or is terminated.
+ *
+ * For convenience, the `child_process` module provides a handful of synchronous
+ * and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on
+ * top of {@link spawn} or {@link spawnSync}.
+ *
+ * * {@link exec}: spawns a shell and runs a command within that
+ * shell, passing the `stdout` and `stderr` to a callback function when
+ * complete.
+ * * {@link execFile}: similar to {@link exec} except
+ * that it spawns the command directly without first spawning a shell by
+ * default.
+ * * {@link fork}: spawns a new Node.js process and invokes a
+ * specified module with an IPC communication channel established that allows
+ * sending messages between parent and child.
+ * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop.
+ * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop.
+ *
+ * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
+ * the synchronous methods can have significant impact on performance due to
+ * stalling the event loop while spawned processes complete.
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/child_process.js)
+ */
declare module 'child_process' {
- import { BaseEncodingOptions } from 'fs';
- import * as events from 'events';
- import * as net from 'net';
- import { Writable, Readable, Stream, Pipe } from 'stream';
-
- type Serializable = string | object | number | boolean;
+ import { ObjectEncodingOptions } from 'node:fs';
+ import { EventEmitter, Abortable } from 'node:events';
+ import * as net from 'node:net';
+ import { Writable, Readable, Stream, Pipe } from 'node:stream';
+ import { URL } from 'node:url';
+ type Serializable = string | object | number | boolean | bigint;
type SendHandle = net.Socket | net.Server;
-
- interface ChildProcess extends events.EventEmitter {
+ /**
+ * Instances of the `ChildProcess` represent spawned child processes.
+ *
+ * Instances of `ChildProcess` are not intended to be created directly. Rather,
+ * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create
+ * instances of `ChildProcess`.
+ * @since v2.2.0
+ */
+ class ChildProcess extends EventEmitter {
+ /**
+ * A `Writable Stream` that represents the child process's `stdin`.
+ *
+ * If a child process waits to read all of its input, the child will not continue
+ * until this stream has been closed via `end()`.
+ *
+ * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`,
+ * then this will be `null`.
+ *
+ * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
+ * refer to the same value.
+ *
+ * The `subprocess.stdin` property can be `undefined` if the child process could
+ * not be successfully spawned.
+ * @since v0.1.90
+ */
stdin: Writable | null;
+ /**
+ * A `Readable Stream` that represents the child process's `stdout`.
+ *
+ * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`,
+ * then this will be `null`.
+ *
+ * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will
+ * refer to the same value.
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ *
+ * const subprocess = spawn('ls');
+ *
+ * subprocess.stdout.on('data', (data) => {
+ * console.log(`Received chunk ${data}`);
+ * });
+ * ```
+ *
+ * The `subprocess.stdout` property can be `null` if the child process could
+ * not be successfully spawned.
+ * @since v0.1.90
+ */
stdout: Readable | null;
+ /**
+ * A `Readable Stream` that represents the child process's `stderr`.
+ *
+ * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`,
+ * then this will be `null`.
+ *
+ * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
+ * refer to the same value.
+ *
+ * The `subprocess.stderr` property can be `null` if the child process could
+ * not be successfully spawned.
+ * @since v0.1.90
+ */
stderr: Readable | null;
+ /**
+ * The `subprocess.channel` property is a reference to the child's IPC channel. If
+ * no IPC channel currently exists, this property is `undefined`.
+ * @since v7.1.0
+ */
readonly channel?: Pipe | null | undefined;
+ /**
+ * A sparse array of pipes to the child process, corresponding with positions in
+ * the `stdio` option passed to {@link spawn} that have been set
+ * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`,`subprocess.stdout`, and `subprocess.stderr`,
+ * respectively.
+ *
+ * In the following example, only the child's fd `1` (stdout) is configured as a
+ * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values
+ * in the array are `null`.
+ *
+ * ```js
+ * const assert = require('assert');
+ * const fs = require('fs');
+ * const child_process = require('child_process');
+ *
+ * const subprocess = child_process.spawn('ls', {
+ * stdio: [
+ * 0, // Use parent's stdin for child.
+ * 'pipe', // Pipe child's stdout to parent.
+ * fs.openSync('err.out', 'w'), // Direct child's stderr to a file.
+ * ]
+ * });
+ *
+ * assert.strictEqual(subprocess.stdio[0], null);
+ * assert.strictEqual(subprocess.stdio[0], subprocess.stdin);
+ *
+ * assert(subprocess.stdout);
+ * assert.strictEqual(subprocess.stdio[1], subprocess.stdout);
+ *
+ * assert.strictEqual(subprocess.stdio[2], null);
+ * assert.strictEqual(subprocess.stdio[2], subprocess.stderr);
+ * ```
+ *
+ * The `subprocess.stdio` property can be `undefined` if the child process could
+ * not be successfully spawned.
+ * @since v0.7.10
+ */
readonly stdio: [
- Writable | null, // stdin
- Readable | null, // stdout
- Readable | null, // stderr
- Readable | Writable | null | undefined, // extra
+ Writable | null,
+ // stdin
+ Readable | null,
+ // stdout
+ Readable | null,
+ // stderr
+ Readable | Writable | null | undefined,
+ // extra
Readable | Writable | null | undefined // extra
];
+ /**
+ * The `subprocess.killed` property indicates whether the child process
+ * successfully received a signal from `subprocess.kill()`. The `killed` property
+ * does not indicate that the child process has been terminated.
+ * @since v0.5.10
+ */
readonly killed: boolean;
- readonly pid: number;
+ /**
+ * Returns the process identifier (PID) of the child process. If the child process
+ * fails to spawn due to errors, then the value is `undefined` and `error` is
+ * emitted.
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const grep = spawn('grep', ['ssh']);
+ *
+ * console.log(`Spawned child pid: ${grep.pid}`);
+ * grep.stdin.end();
+ * ```
+ * @since v0.1.90
+ */
+ readonly pid?: number | undefined;
+ /**
+ * The `subprocess.connected` property indicates whether it is still possible to
+ * send and receive messages from a child process. When `subprocess.connected` is`false`, it is no longer possible to send or receive messages.
+ * @since v0.7.2
+ */
readonly connected: boolean;
+ /**
+ * The `subprocess.exitCode` property indicates the exit code of the child process.
+ * If the child process is still running, the field will be `null`.
+ */
readonly exitCode: number | null;
+ /**
+ * The `subprocess.signalCode` property indicates the signal received by
+ * the child process if any, else `null`.
+ */
readonly signalCode: NodeJS.Signals | null;
+ /**
+ * The `subprocess.spawnargs` property represents the full list of command-line
+ * arguments the child process was launched with.
+ */
readonly spawnargs: string[];
+ /**
+ * The `subprocess.spawnfile` property indicates the executable file name of
+ * the child process that is launched.
+ *
+ * For {@link fork}, its value will be equal to `process.execPath`.
+ * For {@link spawn}, its value will be the name of
+ * the executable file.
+ * For {@link exec}, its value will be the name of the shell
+ * in which the child process is launched.
+ */
readonly spawnfile: string;
+ /**
+ * The `subprocess.kill()` method sends a signal to the child process. If no
+ * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
+ * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const grep = spawn('grep', ['ssh']);
+ *
+ * grep.on('close', (code, signal) => {
+ * console.log(
+ * `child process terminated due to receipt of signal ${signal}`);
+ * });
+ *
+ * // Send SIGHUP to process.
+ * grep.kill('SIGHUP');
+ * ```
+ *
+ * The `ChildProcess` object may emit an `'error'` event if the signal
+ * cannot be delivered. Sending a signal to a child process that has already exited
+ * is not an error but may have unforeseen consequences. Specifically, if the
+ * process identifier (PID) has been reassigned to another process, the signal will
+ * be delivered to that process instead which can have unexpected results.
+ *
+ * While the function is called `kill`, the signal delivered to the child process
+ * may not actually terminate the process.
+ *
+ * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference.
+ *
+ * On Windows, where POSIX signals do not exist, the `signal` argument will be
+ * ignored, and the process will be killed forcefully and abruptly (similar to`'SIGKILL'`).
+ * See `Signal Events` for more details.
+ *
+ * On Linux, child processes of child processes will not be terminated
+ * when attempting to kill their parent. This is likely to happen when running a
+ * new process in a shell or with the use of the `shell` option of `ChildProcess`:
+ *
+ * ```js
+ * 'use strict';
+ * const { spawn } = require('child_process');
+ *
+ * const subprocess = spawn(
+ * 'sh',
+ * [
+ * '-c',
+ * `node -e "setInterval(() => {
+ * console.log(process.pid, 'is alive')
+ * }, 500);"`,
+ * ], {
+ * stdio: ['inherit', 'inherit', 'inherit']
+ * }
+ * );
+ *
+ * setTimeout(() => {
+ * subprocess.kill(); // Does not terminate the Node.js process in the shell.
+ * }, 2000);
+ * ```
+ * @since v0.1.90
+ */
kill(signal?: NodeJS.Signals | number): boolean;
+ /**
+ * When an IPC channel has been established between the parent and child (
+ * i.e. when using {@link fork}), the `subprocess.send()` method can
+ * be used to send messages to the child process. When the child process is a
+ * Node.js instance, these messages can be received via the `'message'` event.
+ *
+ * The message goes through serialization and parsing. The resulting
+ * message might not be the same as what is originally sent.
+ *
+ * For example, in the parent script:
+ *
+ * ```js
+ * const cp = require('child_process');
+ * const n = cp.fork(`${__dirname}/sub.js`);
+ *
+ * n.on('message', (m) => {
+ * console.log('PARENT got message:', m);
+ * });
+ *
+ * // Causes the child to print: CHILD got message: { hello: 'world' }
+ * n.send({ hello: 'world' });
+ * ```
+ *
+ * And then the child script, `'sub.js'` might look like this:
+ *
+ * ```js
+ * process.on('message', (m) => {
+ * console.log('CHILD got message:', m);
+ * });
+ *
+ * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null }
+ * process.send({ foo: 'bar', baz: NaN });
+ * ```
+ *
+ * Child Node.js processes will have a `process.send()` method of their own
+ * that allows the child to send messages back to the parent.
+ *
+ * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages
+ * containing a `NODE_` prefix in the `cmd` property are reserved for use within
+ * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the`'internalMessage'` event and are consumed internally by Node.js.
+ * Applications should avoid using such messages or listening for`'internalMessage'` events as it is subject to change without notice.
+ *
+ * The optional `sendHandle` argument that may be passed to `subprocess.send()` is
+ * for passing a TCP server or socket object to the child process. The child will
+ * receive the object as the second argument passed to the callback function
+ * registered on the `'message'` event. Any data that is received
+ * and buffered in the socket will not be sent to the child.
+ *
+ * The optional `callback` is a function that is invoked after the message is
+ * sent but before the child may have received it. The function is called with a
+ * single argument: `null` on success, or an `Error` object on failure.
+ *
+ * If no `callback` function is provided and the message cannot be sent, an`'error'` event will be emitted by the `ChildProcess` object. This can
+ * happen, for instance, when the child process has already exited.
+ *
+ * `subprocess.send()` will return `false` if the channel has closed or when the
+ * backlog of unsent messages exceeds a threshold that makes it unwise to send
+ * more. Otherwise, the method returns `true`. The `callback` function can be
+ * used to implement flow control.
+ *
+ * #### Example: sending a server object
+ *
+ * The `sendHandle` argument can be used, for instance, to pass the handle of
+ * a TCP server object to the child process as illustrated in the example below:
+ *
+ * ```js
+ * const subprocess = require('child_process').fork('subprocess.js');
+ *
+ * // Open up the server object and send the handle.
+ * const server = require('net').createServer();
+ * server.on('connection', (socket) => {
+ * socket.end('handled by parent');
+ * });
+ * server.listen(1337, () => {
+ * subprocess.send('server', server);
+ * });
+ * ```
+ *
+ * The child would then receive the server object as:
+ *
+ * ```js
+ * process.on('message', (m, server) => {
+ * if (m === 'server') {
+ * server.on('connection', (socket) => {
+ * socket.end('handled by child');
+ * });
+ * }
+ * });
+ * ```
+ *
+ * Once the server is now shared between the parent and child, some connections
+ * can be handled by the parent and some by the child.
+ *
+ * While the example above uses a server created using the `net` module, `dgram`module servers use exactly the same workflow with the exceptions of listening on
+ * a `'message'` event instead of `'connection'` and using `server.bind()` instead
+ * of `server.listen()`. This is, however, currently only supported on Unix
+ * platforms.
+ *
+ * #### Example: sending a socket object
+ *
+ * Similarly, the `sendHandler` argument can be used to pass the handle of a
+ * socket to the child process. The example below spawns two children that each
+ * handle connections with "normal" or "special" priority:
+ *
+ * ```js
+ * const { fork } = require('child_process');
+ * const normal = fork('subprocess.js', ['normal']);
+ * const special = fork('subprocess.js', ['special']);
+ *
+ * // Open up the server and send sockets to child. Use pauseOnConnect to prevent
+ * // the sockets from being read before they are sent to the child process.
+ * const server = require('net').createServer({ pauseOnConnect: true });
+ * server.on('connection', (socket) => {
+ *
+ * // If this is special priority...
+ * if (socket.remoteAddress === '74.125.127.100') {
+ * special.send('socket', socket);
+ * return;
+ * }
+ * // This is normal priority.
+ * normal.send('socket', socket);
+ * });
+ * server.listen(1337);
+ * ```
+ *
+ * The `subprocess.js` would receive the socket handle as the second argument
+ * passed to the event callback function:
+ *
+ * ```js
+ * process.on('message', (m, socket) => {
+ * if (m === 'socket') {
+ * if (socket) {
+ * // Check that the client socket exists.
+ * // It is possible for the socket to be closed between the time it is
+ * // sent and the time it is received in the child process.
+ * socket.end(`Request handled with ${process.argv[2]} priority`);
+ * }
+ * }
+ * });
+ * ```
+ *
+ * Do not use `.maxConnections` on a socket that has been passed to a subprocess.
+ * The parent cannot track when the socket is destroyed.
+ *
+ * Any `'message'` handlers in the subprocess should verify that `socket` exists,
+ * as the connection may have been closed during the time it takes to send the
+ * connection to the child.
+ * @since v0.5.9
+ * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
+ */
send(message: Serializable, callback?: (error: Error | null) => void): boolean;
send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
send(message: Serializable, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean;
+ /**
+ * Closes the IPC channel between parent and child, allowing the child to exit
+ * gracefully once there are no other connections keeping it alive. After calling
+ * this method the `subprocess.connected` and `process.connected` properties in
+ * both the parent and child (respectively) will be set to `false`, and it will be
+ * no longer possible to pass messages between the processes.
+ *
+ * The `'disconnect'` event will be emitted when there are no messages in the
+ * process of being received. This will most often be triggered immediately after
+ * calling `subprocess.disconnect()`.
+ *
+ * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked
+ * within the child process to close the IPC channel as well.
+ * @since v0.7.2
+ */
disconnect(): void;
+ /**
+ * By default, the parent will wait for the detached child to exit. To prevent the
+ * parent from waiting for a given `subprocess` to exit, use the`subprocess.unref()` method. Doing so will cause the parent's event loop to not
+ * include the child in its reference count, allowing the parent to exit
+ * independently of the child, unless there is an established IPC channel between
+ * the child and the parent.
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ *
+ * const subprocess = spawn(process.argv[0], ['child_program.js'], {
+ * detached: true,
+ * stdio: 'ignore'
+ * });
+ *
+ * subprocess.unref();
+ * ```
+ * @since v0.7.10
+ */
unref(): void;
+ /**
+ * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will
+ * restore the removed reference count for the child process, forcing the parent
+ * to wait for the child to exit before exiting itself.
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ *
+ * const subprocess = spawn(process.argv[0], ['child_program.js'], {
+ * detached: true,
+ * stdio: 'ignore'
+ * });
+ *
+ * subprocess.unref();
+ * subprocess.ref();
+ * ```
+ * @since v0.7.10
+ */
ref(): void;
-
/**
* events.EventEmitter
* 1. close
@@ -44,71 +520,68 @@ declare module 'child_process' {
* 3. error
* 4. exit
* 5. message
+ * 6. spawn
*/
-
addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
+ addListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ addListener(event: 'disconnect', listener: () => void): this;
+ addListener(event: 'error', listener: (err: Error) => void): this;
+ addListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ addListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this;
+ addListener(event: 'spawn', listener: () => void): this;
emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean;
- emit(event: "disconnect"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
- emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
-
+ emit(event: 'close', code: number | null, signal: NodeJS.Signals | null): boolean;
+ emit(event: 'disconnect'): boolean;
+ emit(event: 'error', err: Error): boolean;
+ emit(event: 'exit', code: number | null, signal: NodeJS.Signals | null): boolean;
+ emit(event: 'message', message: Serializable, sendHandle: SendHandle): boolean;
+ emit(event: 'spawn', listener: () => void): boolean;
on(event: string, listener: (...args: any[]) => void): this;
- on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
+ on(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ on(event: 'disconnect', listener: () => void): this;
+ on(event: 'error', listener: (err: Error) => void): this;
+ on(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ on(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this;
+ on(event: 'spawn', listener: () => void): this;
once(event: string, listener: (...args: any[]) => void): this;
- once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
+ once(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ once(event: 'disconnect', listener: () => void): this;
+ once(event: 'error', listener: (err: Error) => void): this;
+ once(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ once(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this;
+ once(event: 'spawn', listener: () => void): this;
prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
+ prependListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ prependListener(event: 'disconnect', listener: () => void): this;
+ prependListener(event: 'error', listener: (err: Error) => void): this;
+ prependListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ prependListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this;
+ prependListener(event: 'spawn', listener: () => void): this;
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
+ prependOnceListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ prependOnceListener(event: 'disconnect', listener: () => void): this;
+ prependOnceListener(event: 'error', listener: (err: Error) => void): this;
+ prependOnceListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
+ prependOnceListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this;
+ prependOnceListener(event: 'spawn', listener: () => void): this;
}
-
// return this object when stdio option is undefined or not specified
interface ChildProcessWithoutNullStreams extends ChildProcess {
stdin: Writable;
stdout: Readable;
stderr: Readable;
readonly stdio: [
- Writable, // stdin
- Readable, // stdout
- Readable, // stderr
- Readable | Writable | null | undefined, // extra, no modification
+ Writable,
+ Readable,
+ Readable,
+ // stderr
+ Readable | Writable | null | undefined,
+ // extra, no modification
Readable | Writable | null | undefined // extra, no modification
];
}
-
// return this object when stdio option is a tuple of 3
- interface ChildProcessByStdio<
- I extends null | Writable,
- O extends null | Readable,
- E extends null | Readable,
- > extends ChildProcess {
+ interface ChildProcessByStdio extends ChildProcess {
stdin: I;
stdout: O;
stderr: E;
@@ -116,37 +589,42 @@ declare module 'child_process' {
I,
O,
E,
- Readable | Writable | null | undefined, // extra, no modification
+ Readable | Writable | null | undefined,
+ // extra, no modification
Readable | Writable | null | undefined // extra, no modification
];
}
-
interface MessageOptions {
keepOpen?: boolean | undefined;
}
-
- type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>;
-
+ type IOType = 'overlapped' | 'pipe' | 'ignore' | 'inherit';
+ type StdioOptions = IOType | Array;
type SerializationType = 'json' | 'advanced';
-
- interface MessagingOptions {
+ interface MessagingOptions extends Abortable {
/**
* Specify the kind of serialization used for sending messages between processes.
* @default 'json'
*/
serialization?: SerializationType | undefined;
+ /**
+ * The signal value to be used when the spawned process will be killed by the abort signal.
+ * @default 'SIGTERM'
+ */
+ killSignal?: NodeJS.Signals | number | undefined;
+ /**
+ * In milliseconds the maximum amount of time the process is allowed to run.
+ */
+ timeout?: number | undefined;
}
-
interface ProcessEnvOptions {
uid?: number | undefined;
gid?: number | undefined;
- cwd?: string | undefined;
+ cwd?: string | URL | undefined;
env?: NodeJS.ProcessEnv | undefined;
}
-
interface CommonOptions extends ProcessEnvOptions {
/**
- * @default true
+ * @default false
*/
windowsHide?: boolean | undefined;
/**
@@ -154,183 +632,348 @@ declare module 'child_process' {
*/
timeout?: number | undefined;
}
-
- interface CommonSpawnOptions extends CommonOptions, MessagingOptions {
+ interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
argv0?: string | undefined;
stdio?: StdioOptions | undefined;
shell?: boolean | string | undefined;
windowsVerbatimArguments?: boolean | undefined;
}
-
interface SpawnOptions extends CommonSpawnOptions {
detached?: boolean | undefined;
}
-
interface SpawnOptionsWithoutStdio extends SpawnOptions {
- stdio?: 'pipe' | Array | undefined;
+ stdio?: StdioPipeNamed | StdioPipe[] | undefined;
}
-
type StdioNull = 'inherit' | 'ignore' | Stream;
- type StdioPipe = undefined | null | 'pipe';
-
- interface SpawnOptionsWithStdioTuple<
- Stdin extends StdioNull | StdioPipe,
- Stdout extends StdioNull | StdioPipe,
- Stderr extends StdioNull | StdioPipe,
- > extends SpawnOptions {
+ type StdioPipeNamed = 'pipe' | 'overlapped';
+ type StdioPipe = undefined | null | StdioPipeNamed;
+ interface SpawnOptionsWithStdioTuple extends SpawnOptions {
stdio: [Stdin, Stdout, Stderr];
}
-
- // overloads of spawn without 'args'
+ /**
+ * The `child_process.spawn()` method spawns a new process using the given`command`, with command-line arguments in `args`. If omitted, `args` defaults
+ * to an empty array.
+ *
+ * **If the `shell` option is enabled, do not pass unsanitized user input to this**
+ * **function. Any input containing shell metacharacters may be used to trigger**
+ * **arbitrary command execution.**
+ *
+ * A third argument may be used to specify additional options, with these defaults:
+ *
+ * ```js
+ * const defaults = {
+ * cwd: undefined,
+ * env: process.env
+ * };
+ * ```
+ *
+ * Use `cwd` to specify the working directory from which the process is spawned.
+ * If not given, the default is to inherit the current working directory. If given,
+ * but the path does not exist, the child process emits an `ENOENT` error
+ * and exits immediately. `ENOENT` is also emitted when the command
+ * does not exist.
+ *
+ * Use `env` to specify environment variables that will be visible to the new
+ * process, the default is `process.env`.
+ *
+ * `undefined` values in `env` will be ignored.
+ *
+ * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the
+ * exit code:
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const ls = spawn('ls', ['-lh', '/usr']);
+ *
+ * ls.stdout.on('data', (data) => {
+ * console.log(`stdout: ${data}`);
+ * });
+ *
+ * ls.stderr.on('data', (data) => {
+ * console.error(`stderr: ${data}`);
+ * });
+ *
+ * ls.on('close', (code) => {
+ * console.log(`child process exited with code ${code}`);
+ * });
+ * ```
+ *
+ * Example: A very elaborate way to run `ps ax | grep ssh`
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const ps = spawn('ps', ['ax']);
+ * const grep = spawn('grep', ['ssh']);
+ *
+ * ps.stdout.on('data', (data) => {
+ * grep.stdin.write(data);
+ * });
+ *
+ * ps.stderr.on('data', (data) => {
+ * console.error(`ps stderr: ${data}`);
+ * });
+ *
+ * ps.on('close', (code) => {
+ * if (code !== 0) {
+ * console.log(`ps process exited with code ${code}`);
+ * }
+ * grep.stdin.end();
+ * });
+ *
+ * grep.stdout.on('data', (data) => {
+ * console.log(data.toString());
+ * });
+ *
+ * grep.stderr.on('data', (data) => {
+ * console.error(`grep stderr: ${data}`);
+ * });
+ *
+ * grep.on('close', (code) => {
+ * if (code !== 0) {
+ * console.log(`grep process exited with code ${code}`);
+ * }
+ * });
+ * ```
+ *
+ * Example of checking for failed `spawn`:
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const subprocess = spawn('bad_command');
+ *
+ * subprocess.on('error', (err) => {
+ * console.error('Failed to start subprocess.');
+ * });
+ * ```
+ *
+ * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process
+ * title while others (Windows, SunOS) will use `command`.
+ *
+ * Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so`process.argv[0]` in a Node.js child process will not match the `argv0`parameter passed to `spawn` from the parent,
+ * retrieve it with the`process.argv0` property instead.
+ *
+ * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
+ * the error passed to the callback will be an `AbortError`:
+ *
+ * ```js
+ * const { spawn } = require('child_process');
+ * const controller = new AbortController();
+ * const { signal } = controller;
+ * const grep = spawn('grep', ['ssh'], { signal });
+ * grep.on('error', (err) => {
+ * // This will be called with err being an AbortError if the controller aborts
+ * });
+ * controller.abort(); // Stops the child process
+ * ```
+ * @since v0.1.90
+ * @param command The command to run.
+ * @param args List of string arguments.
+ */
function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
-
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
-
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
function spawn(command: string, options: SpawnOptions): ChildProcess;
-
// overloads of spawn with 'args'
function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
-
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
-
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
+ function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio;
function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess;
-
interface ExecOptions extends CommonOptions {
shell?: string | undefined;
+ signal?: AbortSignal | undefined;
maxBuffer?: number | undefined;
killSignal?: NodeJS.Signals | number | undefined;
}
-
interface ExecOptionsWithStringEncoding extends ExecOptions {
encoding: BufferEncoding;
}
-
interface ExecOptionsWithBufferEncoding extends ExecOptions {
encoding: BufferEncoding | null; // specify `null`.
}
-
interface ExecException extends Error {
cmd?: string | undefined;
killed?: boolean | undefined;
code?: number | undefined;
signal?: NodeJS.Signals | undefined;
}
-
- // no `options` definitely means stdout/stderr are `string`.
+ /**
+ * Spawns a shell then executes the `command` within that shell, buffering any
+ * generated output. The `command` string passed to the exec function is processed
+ * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
+ * need to be dealt with accordingly:
+ *
+ * ```js
+ * const { exec } = require('child_process');
+ *
+ * exec('"/path/to/test file/test.sh" arg1 arg2');
+ * // Double quotes are used so that the space in the path is not interpreted as
+ * // a delimiter of multiple arguments.
+ *
+ * exec('echo "The \\$HOME variable is $HOME"');
+ * // The $HOME variable is escaped in the first instance, but not in the second.
+ * ```
+ *
+ * **Never pass unsanitized user input to this function. Any input containing shell**
+ * **metacharacters may be used to trigger arbitrary command execution.**
+ *
+ * If a `callback` function is provided, it is called with the arguments`(error, stdout, stderr)`. On success, `error` will be `null`. On error,`error` will be an instance of `Error`. The
+ * `error.code` property will be
+ * the exit code of the process. By convention, any exit code other than `0`indicates an error. `error.signal` will be the signal that terminated the
+ * process.
+ *
+ * The `stdout` and `stderr` arguments passed to the callback will contain the
+ * stdout and stderr output of the child process. By default, Node.js will decode
+ * the output as UTF-8 and pass strings to the callback. The `encoding` option
+ * can be used to specify the character encoding used to decode the stdout and
+ * stderr output. If `encoding` is `'buffer'`, or an unrecognized character
+ * encoding, `Buffer` objects will be passed to the callback instead.
+ *
+ * ```js
+ * const { exec } = require('child_process');
+ * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => {
+ * if (error) {
+ * console.error(`exec error: ${error}`);
+ * return;
+ * }
+ * console.log(`stdout: ${stdout}`);
+ * console.error(`stderr: ${stderr}`);
+ * });
+ * ```
+ *
+ * If `timeout` is greater than `0`, the parent will send the signal
+ * identified by the `killSignal` property (the default is `'SIGTERM'`) if the
+ * child runs longer than `timeout` milliseconds.
+ *
+ * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace
+ * the existing process and uses a shell to execute the command.
+ *
+ * If this method is invoked as its `util.promisify()` ed version, it returns
+ * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In
+ * case of an error (including any error resulting in an exit code other than 0), a
+ * rejected promise is returned, with the same `error` object given in the
+ * callback, but with two additional properties `stdout` and `stderr`.
+ *
+ * ```js
+ * const util = require('util');
+ * const exec = util.promisify(require('child_process').exec);
+ *
+ * async function lsExample() {
+ * const { stdout, stderr } = await exec('ls');
+ * console.log('stdout:', stdout);
+ * console.error('stderr:', stderr);
+ * }
+ * lsExample();
+ * ```
+ *
+ * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
+ * the error passed to the callback will be an `AbortError`:
+ *
+ * ```js
+ * const { exec } = require('child_process');
+ * const controller = new AbortController();
+ * const { signal } = controller;
+ * const child = exec('grep ssh', { signal }, (error) => {
+ * console.log(error); // an AbortError
+ * });
+ * controller.abort();
+ * ```
+ * @since v0.1.90
+ * @param command The command to run, with space-separated arguments.
+ * @param callback called with the output when process terminates.
+ */
function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
- function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
-
+ function exec(
+ command: string,
+ options: {
+ encoding: 'buffer' | null;
+ } & ExecOptions,
+ callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void
+ ): ChildProcess;
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
- function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
+ function exec(
+ command: string,
+ options: {
+ encoding: BufferEncoding;
+ } & ExecOptions,
+ callback?: (error: ExecException | null, stdout: string, stderr: string) => void
+ ): ChildProcess;
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
function exec(
command: string,
- options: { encoding: BufferEncoding } & ExecOptions,
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
+ options: {
+ encoding: BufferEncoding;
+ } & ExecOptions,
+ callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void
): ChildProcess;
-
// `options` without an `encoding` means stdout/stderr are definitely `string`.
function exec(command: string, options: ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
// fallback if nothing else matches. Worst case is always `string | Buffer`.
function exec(
command: string,
- options: (BaseEncodingOptions & ExecOptions) | undefined | null,
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
+ options: (ObjectEncodingOptions & ExecOptions) | undefined | null,
+ callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void
): ChildProcess;
-
interface PromiseWithChild extends Promise {
child: ChildProcess;
}
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
namespace exec {
- function __promisify__(command: string): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(command: string, options: { encoding: "buffer" | null } & ExecOptions): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
- function __promisify__(command: string, options: { encoding: BufferEncoding } & ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(command: string, options: ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(command: string, options?: (BaseEncodingOptions & ExecOptions) | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
+ function __promisify__(command: string): PromiseWithChild<{
+ stdout: string;
+ stderr: string;
+ }>;
+ function __promisify__(
+ command: string,
+ options: {
+ encoding: 'buffer' | null;
+ } & ExecOptions
+ ): PromiseWithChild<{
+ stdout: Buffer;
+ stderr: Buffer;
+ }>;
+ function __promisify__(
+ command: string,
+ options: {
+ encoding: BufferEncoding;
+ } & ExecOptions
+ ): PromiseWithChild<{
+ stdout: string;
+ stderr: string;
+ }>;
+ function __promisify__(
+ command: string,
+ options: ExecOptions
+ ): PromiseWithChild<{
+ stdout: string;
+ stderr: string;
+ }>;
+ function __promisify__(
+ command: string,
+ options?: (ObjectEncodingOptions & ExecOptions) | null
+ ): PromiseWithChild<{
+ stdout: string | Buffer;
+ stderr: string | Buffer;
+ }>;
}
-
- interface ExecFileOptions extends CommonOptions {
+ interface ExecFileOptions extends CommonOptions, Abortable {
maxBuffer?: number | undefined;
killSignal?: NodeJS.Signals | number | undefined;
windowsVerbatimArguments?: boolean | undefined;
shell?: boolean | string | undefined;
+ signal?: AbortSignal | undefined;
}
interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
encoding: BufferEncoding;
@@ -342,48 +985,101 @@ declare module 'child_process' {
encoding: BufferEncoding;
}
type ExecFileException = ExecException & NodeJS.ErrnoException;
-
+ /**
+ * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
+ * executable `file` is spawned directly as a new process making it slightly more
+ * efficient than {@link exec}.
+ *
+ * The same options as {@link exec} are supported. Since a shell is
+ * not spawned, behaviors such as I/O redirection and file globbing are not
+ * supported.
+ *
+ * ```js
+ * const { execFile } = require('child_process');
+ * const child = execFile('node', ['--version'], (error, stdout, stderr) => {
+ * if (error) {
+ * throw error;
+ * }
+ * console.log(stdout);
+ * });
+ * ```
+ *
+ * The `stdout` and `stderr` arguments passed to the callback will contain the
+ * stdout and stderr output of the child process. By default, Node.js will decode
+ * the output as UTF-8 and pass strings to the callback. The `encoding` option
+ * can be used to specify the character encoding used to decode the stdout and
+ * stderr output. If `encoding` is `'buffer'`, or an unrecognized character
+ * encoding, `Buffer` objects will be passed to the callback instead.
+ *
+ * If this method is invoked as its `util.promisify()` ed version, it returns
+ * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In
+ * case of an error (including any error resulting in an exit code other than 0), a
+ * rejected promise is returned, with the same `error` object given in the
+ * callback, but with two additional properties `stdout` and `stderr`.
+ *
+ * ```js
+ * const util = require('util');
+ * const execFile = util.promisify(require('child_process').execFile);
+ * async function getVersion() {
+ * const { stdout } = await execFile('node', ['--version']);
+ * console.log(stdout);
+ * }
+ * getVersion();
+ * ```
+ *
+ * **If the `shell` option is enabled, do not pass unsanitized user input to this**
+ * **function. Any input containing shell metacharacters may be used to trigger**
+ * **arbitrary command execution.**
+ *
+ * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
+ * the error passed to the callback will be an `AbortError`:
+ *
+ * ```js
+ * const { execFile } = require('child_process');
+ * const controller = new AbortController();
+ * const { signal } = controller;
+ * const child = execFile('node', ['--version'], { signal }, (error) => {
+ * console.log(error); // an AbortError
+ * });
+ * controller.abort();
+ * ```
+ * @since v0.1.91
+ * @param file The name or path of the executable file to run.
+ * @param args List of string arguments.
+ * @param callback Called with the output when process terminates.
+ */
function execFile(file: string): ChildProcess;
- function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
+ function execFile(file: string, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
function execFile(file: string, args?: ReadonlyArray | null): ChildProcess;
- function execFile(file: string, args: ReadonlyArray | undefined | null, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
-
+ function execFile(file: string, args: ReadonlyArray | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
// no `options` definitely means stdout/stderr are `string`.
function execFile(file: string, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
-
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
function execFile(
file: string,
args: ReadonlyArray | undefined | null,
options: ExecFileOptionsWithBufferEncoding,
- callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
+ callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void
): ChildProcess;
-
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
function execFile(
file: string,
args: ReadonlyArray | undefined | null,
options: ExecFileOptionsWithStringEncoding,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
+ callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
): ChildProcess;
-
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
- function execFile(
- file: string,
- options: ExecFileOptionsWithOtherEncoding,
- callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
+ function execFile(file: string, options: ExecFileOptionsWithOtherEncoding, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
function execFile(
file: string,
args: ReadonlyArray | undefined | null,
options: ExecFileOptionsWithOtherEncoding,
- callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
+ callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void
): ChildProcess;
-
// `options` without an `encoding` means stdout/stderr are definitely `string`.
function execFile(file: string, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
function execFile(
@@ -392,45 +1088,107 @@ declare module 'child_process' {
options: ExecFileOptions,
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
): ChildProcess;
-
// fallback if nothing else matches. Worst case is always `string | Buffer`.
function execFile(
file: string,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
+ options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
+ callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null
): ChildProcess;
function execFile(
file: string,
args: ReadonlyArray