mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch 'dev' into dev-jpn
This commit is contained in:
27
packages/node_modules/@node-red/nodes/core/common/91-global-config.html
vendored
Normal file
27
packages/node_modules/@node-red/nodes/core/common/91-global-config.html
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<script type="text/html" data-template-name="global-config">
|
||||
<div class="form-row">
|
||||
<label style="width: 100%"><span data-i18n="global-config.label.open-conf"></span>:</label>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<button class="red-ui-button" type="button" id="node-input-edit-env-var" data-i18n="editor:env-var.header" style="margin-left: 20px"></button>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('global-config',{
|
||||
category: 'config',
|
||||
defaults: {
|
||||
name: { value: "" },
|
||||
env: { value: [] },
|
||||
},
|
||||
credentials: {
|
||||
map: { type: "map" }
|
||||
},
|
||||
oneditprepare: function() {
|
||||
$('#node-input-edit-env-var').on('click', function(evt) {
|
||||
RED.actions.invoke('core:show-user-settings', 'envvar')
|
||||
});
|
||||
},
|
||||
hasUsers: false
|
||||
});
|
||||
</script>
|
7
packages/node_modules/@node-red/nodes/core/common/91-global-config.js
vendored
Normal file
7
packages/node_modules/@node-red/nodes/core/common/91-global-config.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = function(RED) {
|
||||
"use strict";
|
||||
function GlobalConfigNode(n) {
|
||||
RED.nodes.createNode(this,n);
|
||||
}
|
||||
RED.nodes.registerType("global-config", GlobalConfigNode);
|
||||
}
|
3
packages/node_modules/@node-red/nodes/locales/en-US/common/91-global-config.html
vendored
Normal file
3
packages/node_modules/@node-red/nodes/locales/en-US/common/91-global-config.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<script type="text/html" data-help-name="global-config">
|
||||
<p>A node for holding global configuration of flows.</p>
|
||||
</script>
|
@@ -1124,5 +1124,10 @@
|
||||
"warn": {
|
||||
"nonumber": "no number found in payload"
|
||||
}
|
||||
},
|
||||
"global-config": {
|
||||
"label": {
|
||||
"open-conf": "Open Configuration"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
3
packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html
vendored
Normal file
3
packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<script type="text/html" data-help-name="global-config">
|
||||
<p>大域的なフローの設定を保持するノード。大域的な環境変数の定義を含みます。</p>
|
||||
</script>p
|
@@ -1124,5 +1124,10 @@
|
||||
"warn": {
|
||||
"nonumber": "ペイロードに数値が含まれていません"
|
||||
}
|
||||
},
|
||||
"global-config": {
|
||||
"label": {
|
||||
"open-conf": "設定を開く"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user