Commit Graph

359 Commits

Author SHA1 Message Date
Jeremy Barlow cb35604ef5 Resolve path when sending example file for Windows support
Previously, when trying to import an example into the flow editor on
Windows, the load attempt would fail with an HTTP 404 error in the
browser client, with a `TypeError: path must be absolute or specify
root to res.sendFile` error being written to the Node-RED log. This was
due to the path being passed to the `res.sendFile` function not being
fully-qualified (for example, `\Users\myuser\...\example.json`).

With the changes in this commit, the path to the example file is
resolved to a fully-qualified path before being passed into the
`res.sendFile` call. For example, a path on Windows of
`\Users\myuser\...\example.json` would be transformed to
`C:\\Users\\myuser\\...\\example.json` before being passed along to the
`sendFile` function. This change allows the file to be loaded and sent
properly to the browser client and for the embedded flows in the example
to be loaded in the flow editor.
2018-09-21 08:15:00 -07:00
Nick O'Leary 963ea4177e
Add store arg to sync $flowContext/$globalContext 2018-07-25 10:18:59 +01:00
Nick O'Leary db77be5d72
Update i18next in runtime 2018-07-23 23:25:57 +01:00
Yuma Matsuura 3db5306c70 Update Japanese text of type input 2018-07-23 10:11:35 +09:00
Yuma Matsuura 45029dd084 Update Japanese text of type input 2018-07-23 10:11:23 +09:00
Nick O'Leary e34d883e50
Merge pull request #1828 from node-red-hitachi/master-editorjson
Update Japanese translation (editor.json)
2018-07-20 11:44:19 +01:00
nakanishi d432edaed2 Translate icon palette parts into Japanese 2018-07-20 13:36:59 +09:00
HirokiUchikawa ed20327c41 Update Japanese text of editor.json 2018-07-20 10:23:28 +09:00
Kazuhito Yokoi 991c68c394 Update Japanese translation (editor.json) 2018-07-20 10:23:27 +09:00
Nick O'Leary d9d15e41c7
Support multiple stores in context sidebar 2018-07-16 16:36:05 +01:00
Nick O'Leary d3598d5854
NLS Context sidebar 2018-07-16 13:17:18 +01:00
Nick O'Leary 529b358c9b
Split out expandable editors and add JS editor 2018-07-15 21:06:51 +01:00
Kazuhito Yokoi 9a5439c580 Update Japanese language files (message.json and jsonata.json) 2018-07-13 15:17:30 +09:00
Kazuhito Yokoi 053d8c44c2 Update Japanese language file (editor.json) 2018-07-12 16:14:25 +09:00
Kazuhito Yokoi 6c8fc4846b Fix i18n bugs in projects 2018-07-11 15:33:25 +09:00
Nick O'Leary 4e4a1f11e6
Fix context admin api for empty contexts 2018-07-03 21:18:43 +01:00
Nick O'Leary c440a4c730
Expose list of context stores to the editor 2018-07-03 14:17:42 +01:00
Nick O'Leary 7d702e8332
Remove console.log 2018-07-02 22:38:37 +01:00
Nick O'Leary 43d7c8d48c
Add caching to localfilesystem context 2018-07-02 22:32:20 +01:00
Nick O'Leary 5d86f7b6ba
Refresh context sidebar tab based on selection 2018-06-26 23:34:32 +01:00
Nick O'Leary 8d6ac6406d
Initial context sidebar tab 2018-06-26 11:32:24 +01:00
Hiroyasu Nishiyama 0c6bf81c24 fix appearence of retry button of remote branch management dialog 2018-06-23 12:49:09 +09:00
Nick O'Leary 2a122ed283
Allow subflows to be put in any palette category 2018-06-12 12:54:32 +01:00
Kazuhito Yokoi ab788bc1e3 Add i18n support for projectSettings.js 2018-06-01 12:58:09 +09:00
Nick O'Leary 95b4c8d515
Merge pull request #1748 from node-red-hitachi/0.19-editor-diff-i18n-jp
Add i18n support for project
2018-05-31 10:44:36 +01:00
Yuma Matsuura 9e87a60597 modify translate project diff 2018-05-31 16:47:03 +09:00
Yuma Matsuura 5a70bea67a add translate project diff 2018-05-31 16:46:46 +09:00
Nick O'Leary 0a2aab7d68
Merge pull request #1746 from node-red-hitachi/0.19-user-settings-projects-i18n-jp
Modify i18n support for user settings of project
2018-05-30 10:30:25 +01:00
Nick O'Leary 745821c420
Merge pull request #1745 from node-red-hitachi/0.19-version-projects-i18n-jp
Add i18n support for version control of project
2018-05-30 10:30:12 +01:00
Nick O'Leary 57c4c754d0
Merge pull request #1742 from node-red-hitachi/0.19-editor-main-i18n-jp
Update i18n support for main editor interface and Japanese message …
2018-05-30 10:22:38 +01:00
Yuma Matsuura 4f7d98aace modify translate user settings 2018-05-29 10:12:52 +09:00
Kazuki-Nakanishi b0c693cc3a move comment from json to js 2018-05-28 17:06:38 +09:00
Kazuki-Nakanishi b2cca10e8b Add i18n support for version control of project 2018-05-28 17:01:53 +09:00
Hiroyasu Nishiyama 865853da19 add some i18n support for main editor interface and Japanese message catalogue 2018-05-26 20:08:39 +09:00
Hiroyasu Nishiyama 392ed706fd add i18n support for projects interface and Japanese message catalogue 2018-05-26 14:21:30 +09:00
Nick O'Leary 0ff0f25aaf
Merge branch 'master' into 0.19 2018-05-25 13:58:15 +01:00
YumaMatsuura a5c00b5c81 add translate-user-settings (#1740) 2018-05-25 13:55:03 +01:00
Nick O'Leary bca020bc4d
Tidy up default grunt task and fixup test break due to reorder
Fixes #1738
2018-05-25 11:36:17 +01:00
Nick O'Leary 9ad9c0ec6a
Add $env function to JSONata expressions 2018-05-21 15:28:15 +01:00
Nick O'Leary 2d5980ff2a
Split node html to isolate bad nodes when loading 2018-05-11 22:30:57 +01:00
Nick O'Leary 7584820987
Filter req.user in /settings to prevent leaking info 2018-05-09 10:03:22 +01:00
Nick O'Leary 53e3e08d70
Handle cloning a project without package.json 2018-05-02 16:24:58 +01:00
Nick O'Leary 52d9578a19
Log error if settings unavailable when saving user settings
Fixes #1645
2018-04-16 15:02:28 +01:00
Ted 29e0b194dd Handle and display for invalid flow credentials when project is disabled #1689 (#1694)
* Handle and display for invalid flow credentials when project is disabled #1689

* fixed extra character

* fixed whitespace
2018-04-15 11:51:26 +01:00
Nick O'Leary d48284f7ea
Remove unused references to settings 2018-03-20 00:04:52 +00:00
Kroderia 5d54ca7477 Chinese translations for core nodes (#1607)
* Fix typo

* Fix and Update some Chinese translations.

* Fix and Add Chinese translations to match all en-US's items
2018-03-17 17:49:17 +00:00
Qi Xiu b979b4e61a Master chinese3 (#1666)
* Translated jsonata.json to Chinese

* Translated file jsonata.json to Chinese
2018-03-17 17:48:01 +00:00
Nick O'Leary 06a5e4273b
Move all event emitting into runtime side, not api side 2018-02-28 11:24:12 +00:00
Nick O'Leary 9a5139f452
Detect if there are no existing flows to migrate into a project 2018-02-20 14:30:37 -08:00
Nick O'Leary 6191a49ed3
Use flow-diff to resolve merge conflicts 2018-02-13 23:09:51 +00:00