mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge master to 0.18
This commit is contained in:
@@ -89,7 +89,7 @@ function login(req,res) {
|
||||
} else if (settings.adminAuth.type === "strategy") {
|
||||
response = {
|
||||
"type":"strategy",
|
||||
"prompts":[{type:"button",label:settings.adminAuth.strategy.label, url:"/auth/strategy"}]
|
||||
"prompts":[{type:"button",label:settings.adminAuth.strategy.label, url: settings.httpAdminRoot + "auth/strategy"}]
|
||||
}
|
||||
if (settings.adminAuth.strategy.icon) {
|
||||
response.prompts[0].icon = settings.adminAuth.strategy.icon;
|
||||
@@ -186,12 +186,12 @@ module.exports = {
|
||||
|
||||
adminApp.get('/auth/strategy', passport.authenticate(strategy.name));
|
||||
adminApp.get('/auth/strategy/callback',
|
||||
passport.authenticate(strategy.name, {session:false, failureRedirect: '/' }),
|
||||
passport.authenticate(strategy.name, {session:false, failureRedirect: settings.httpAdminRoot }),
|
||||
function(req, res) {
|
||||
var tokens = req.user.tokens;
|
||||
delete req.user.tokens;
|
||||
// Successful authentication, redirect home.
|
||||
res.redirect('/?access_token='+tokens.accessToken);
|
||||
res.redirect(settings.httpAdminRoot + '?access_token='+tokens.accessToken);
|
||||
}
|
||||
);
|
||||
|
||||
|
@@ -429,8 +429,10 @@
|
||||
},
|
||||
"expressionEditor": {
|
||||
"functions": "Functions",
|
||||
"functionReference": "Function reference",
|
||||
"insert": "Insert",
|
||||
"title": "JSONata Expression editor",
|
||||
"test": "Test",
|
||||
"data": "Example message",
|
||||
"result": "Result",
|
||||
"format": "format expression",
|
||||
|
@@ -423,11 +423,13 @@
|
||||
},
|
||||
"expressionEditor": {
|
||||
"functions": "関数",
|
||||
"functionReference": "関数リファレンス",
|
||||
"insert": "挿入",
|
||||
"title": "JSONata式エディタ",
|
||||
"test": "テスト",
|
||||
"data": "メッセージ例",
|
||||
"result": "結果",
|
||||
"format": "形式",
|
||||
"format": "整形",
|
||||
"compatMode": "互換モードが有効になっています",
|
||||
"compatModeDesc": "<h3>JSONata互換モード</h3><p> 入力された式では <code>msg</code> を参照しているため、互換モードで評価します。このモードは将来廃止予定のため、式で <code>msg</code> を使わないよう修正してください。</p><p> JSONataをNode-REDで最初にサポートした際には、 <code>msg</code> オブジェクトの参照が必要でした。例えば <code>msg.payload</code> がペイロードを参照するために使われていました。</p><p> 直接メッセージに対して式を評価するようになったため、この形式は使えなくなります。ペイロードを参照するには、単に <code>payload</code> にしてください。</p>",
|
||||
"noMatch": "一致した結果なし",
|
||||
|
@@ -95,6 +95,10 @@
|
||||
"args": "",
|
||||
"desc": "0以上、1未満の疑似乱数を返します。"
|
||||
},
|
||||
"$millis": {
|
||||
"args": "",
|
||||
"desc": "Unixエポック(1 January, 1970 UTC)からの経過ミリ秒を数値として返します。評価対象式に含まれる `$millis()` の呼び出しは、全て同じ値を返します。"
|
||||
},
|
||||
"$sum": {
|
||||
"args": "array",
|
||||
"desc": "数値の配列 `array` の合計値を返します。 `array` が数値でない要素を含む場合、エラーになります。"
|
||||
@@ -159,6 +163,10 @@
|
||||
"args": "object",
|
||||
"desc": "key/valueのペアを持つオブジェクトを、各要素が1つのkey/valueのペアを持つオブジェクトの配列に分割します。引数がオブジェクトの配列の場合、結果の配列は各オブジェクトから得た各key/valueのペアのオブジェクトを持ちます。"
|
||||
},
|
||||
"$merge": {
|
||||
"args": "array<object>",
|
||||
"desc": "`object` の配列を1つの `object` へマージします。 マージ結果のオブジェクトは入力配列内の各オブジェクトのkey/valueペアを含みます。入力のオブジェクトが同じキーを持つ場合、戻り値の `object` には配列の最後のオブジェクトのkey/value値が格納されます。入力の配列がオブジェクトでない要素を含む場合、エラーとなります。"
|
||||
},
|
||||
"$sift": {
|
||||
"args": "object, function",
|
||||
"desc": "引数 `object` が持つkey/valueのペアのうち、関数 `function` によってふるい分けたオブジェクトのみを返します。\n\n関数 `function` は、以下の引数を持つ必要があります。\n\n`function(value [, key [, object]])`"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
"common": {
|
||||
"label": {
|
||||
"name": "姓名",
|
||||
"ok": "Ok",
|
||||
"ok": "确认",
|
||||
"done": "完成",
|
||||
"cancel": "取消",
|
||||
"delete": "删除",
|
||||
@@ -28,8 +28,8 @@
|
||||
"menu": {
|
||||
"label": {
|
||||
"view": {
|
||||
"view": "表示",
|
||||
"showGrid": "表示网格",
|
||||
"view": "显示",
|
||||
"showGrid": "显示网格",
|
||||
"snapGrid": "对齐网格",
|
||||
"gridSize": "网格尺寸",
|
||||
"textDir": "文本方向",
|
||||
@@ -42,7 +42,7 @@
|
||||
"show": "显示侧边栏"
|
||||
},
|
||||
"userSettings": "设定",
|
||||
"displayStatus": "表示节点状态",
|
||||
"displayStatus": "显示节点状态",
|
||||
"displayConfig": "配置节点设定",
|
||||
"import": "导入",
|
||||
"export": "导出",
|
||||
@@ -256,7 +256,7 @@
|
||||
"social": "社交",
|
||||
"storage": "存储",
|
||||
"analysis": "分析",
|
||||
"advanced": "高级的"
|
||||
"advanced": "高级"
|
||||
},
|
||||
"event": {
|
||||
"nodeAdded": "添加到面板中的节点:",
|
||||
@@ -381,7 +381,7 @@
|
||||
"str": "文字列",
|
||||
"num": "数字",
|
||||
"re": "正则表达式",
|
||||
"bool": "真伪判断",
|
||||
"bool": "布尔",
|
||||
"json": "JSON",
|
||||
"date": "时间戳"
|
||||
}
|
||||
|
23
red/api/locales/zh-CN/infotips.json
Normal file
23
red/api/locales/zh-CN/infotips.json
Normal file
@@ -0,0 +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]后单击并拖动节点可以将该节点的多个连接一并移动到其他节点的端口。",
|
||||
"tip11": "{{core:show-info-tab}} 可以显示「信息」标签页。 {{core:show-debug-tab}} 可以显示「调试」标签页。",
|
||||
"tip12": "按住[ctrl]的同时点击工作界面可以在节点的对话栏中快速添加节点。",
|
||||
"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}} 来显示被选中节点的属性设置画面。"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user