Commit Graph

97 Commits (2055d1d7b4a7b33cc60b682721267c5b45809fef)

Author SHA1 Message Date
Stephen McLaughlin 78660d4028
Editor loading improvements (#5541)
* remove ace editor scripts from vendor bundle

* bootstrap ace editor

* defer initialization of Monaco and ACE editors until they are loaded

* add fallback "basic" code editor

* fallback to basic code editor if preferred editor fails to initialize

* load Monaco & lang pack dynamically

* fix: textarea outer element should be let not const

* basic text editor styling

* fix: remove incorrectly placed !important inside the var

* get rid of IE check

* guard against bad lib setting

* fix save/restore state of basic editor

* ensure we add markdown toolbar

* Ensure we use the dom element for scroll to line method

* Update code editor selection in default settings.js

* Update link to Monaco editor options in settings.js

* lint fix
2026-03-10 10:56:18 +00:00
Nick O'Leary 043db32472
Merge branch 'master' into sync-417-to-dev 2026-03-06 13:44:36 +00:00
Nick O'Leary 653d8a5b45
Allow palette.categories to be set via theme plugin 2026-03-06 09:37:01 +00:00
Nick O'Leary c9f86d18ff
Merge branch 'master' into sync-to-dev 2026-02-26 10:20:31 +00:00
Nick O'Leary 65d68d27ca
Allow palette.theme to be set via theme plugin and include icons 2026-02-25 14:37:01 +00:00
Nick O'Leary 02ad709d8b
Switch to different NR icon 2026-01-20 16:51:44 +00:00
matiseni51 88c946d401 fix: set label in themeSettings.deployButton despite type attribute 2025-02-16 13:44:22 +01:00
Nick O'Leary 1a47e2fc76
Fix login image auth setting 2024-12-16 17:09:31 +00:00
Nick O'Leary b7e96ce6bc
Support custom login message and button 2024-12-16 16:58:13 +00:00
Rotzbua 9b86874c2d
chore: migrate deprecated `util.isArray`
Deprecated: Use Array.isArray() instead.

Source: https://nodejs.org/docs/latest-v18.x/api/util.html#utilisarrayobject
2024-05-25 22:55:09 +02:00
Nick O'Leary 014f206e9c
Initial multiplayer feature 2024-03-27 17:30:44 +00:00
Nick O'Leary 068b93befa
CComms API updates 2024-03-27 17:21:12 +00:00
Nick O'Leary 6a0f45140c
Merge pull request #4568 from JaysonHurst/fips
fix: Removed offending MD5 crypto hash and replaced with SHA1 and SHA256 …
2024-02-26 17:00:26 +00:00
giscafer 4643f5e8cc chore: remove never use import code 2024-02-25 22:44:01 +08:00
Jayson Hurst 56e58521bd Removed offending MD5 crypto hash and replaced with SHA1 and SHA256 crypto hashes to work with the FIPS crypto policy. 2024-02-17 00:35:03 +00:00
Nick O'Leary 50627cd697
Generate instanceId and include in hash for cache busting 2024-01-08 23:27:14 +00:00
Nick O'Leary d7345d5bc6
Restore caching busting functionality without using explict version number
Fixes #4503
2024-01-05 23:14:00 +00:00
Nick O'Leary d2a8338d4a
Rename mermaidOptions to mermaid for contrib themes 2023-11-20 17:50:59 +00:00
Nick O'Leary e945deeab6
Allow mermaid theme to be set via editorTheme and custom themes
Fixes #4274
2023-11-20 17:47:39 +00:00
Nick O'Leary e9e32550df
Merge pull request #4178 from node-red/4169-remove-express-header
Ensure express server options are applied consistently
2023-05-22 11:35:32 +01:00
Nick O'Leary 0e52271ba9
Remove version info from theme endpoint
Fixes #4170
2023-05-22 11:00:15 +01:00
Nick O'Leary 57359d1659
Ensure express server options are applied consistently
Fixes #4169
2023-05-22 10:54:37 +01:00
Steve-Mcl bc7852c1cc Allow codeEditor theme to be set missing from settings.js 2022-07-21 14:44:29 +01:00
Steve-Mcl 8bd02d0c36 update header url if set in theme and not settings 2022-07-13 20:36:27 +01:00
Steve-Mcl c6cfbb8755 use page&theme settings in a theme plugin 2022-07-13 20:16:34 +01:00
Nick O'Leary 13e8aeae4e
Fix defaulting to monaco if settings does not contain codeEditor 2022-07-03 20:22:19 +01:00
Nick O'Leary 8b43b31c64
Add checkbox on project-open screen to clear context 2022-01-12 21:05:47 +00:00
Nick O'Leary fbcb1130c9
Merge pull request #3221 from hardillb/disable-tours
Add environment variable to enable/disable tours
2021-10-26 09:47:17 +01:00
Nick O'Leary 4f175fc93e
Fix loading non-default language files leaving runtime in wrong locale 2021-10-25 15:58:07 +01:00
Ben Hardill 2e7188ea4f
Add environment variable to enable/disable tours
NODE_RED_ENABLE_TOURS

Also had to patch editor-api/lib/editor/themes.js to pass
`editorTheme.tours` to the editor.
2021-10-25 11:25:31 +01:00
Nick O'Leary f4f11c8884
Add cache-busting query params to index.mst 2021-10-22 09:14:01 +01:00
Nick O'Leary a88be35292
Merge pull request #3168 from node-red/improve-unit-test-coverage
Improve unit test coverage
2021-10-05 23:31:58 +01:00
Nick O'Leary 893ef227d4
Merge pull request #3084 from Steve-Mcl/theme-monaco-theme
Permit plugin theme to theme monaco editor
2021-10-05 10:42:08 +01:00
Nick O'Leary 012e1cbcc5
Improve unit test coverage 2021-10-04 17:53:14 +01:00
Nick O'Leary ce87abe96e
Fix serving of theme files on Windows
Fixes #3097
2021-09-29 17:59:25 +01:00
Steve-Mcl c20ca3399e codeEditor.options should take precedence
- over plugins monacoOptions
2021-09-21 14:12:21 +01:00
Steve-Mcl 5825da9c76 Merge branch 'dev' into theme-monaco-theme 2021-09-21 14:06:54 +01:00
Nick O'Leary e3853ae402
Improve error reporting with oauth login strategies 2021-09-20 11:48:51 +01:00
Casey Wilkes a3d2f6592e Add support for colouring tab icon in settings.js
```
editorTheme: {
    page: {
       tabicon: {
           icon: "full/path/of/tabicon.svg",
           colour: "#008f00"
    }
}
```

The old way still works also (but doesn't allow the tabicon to
be coloured:
```
editorTheme: {
    page: {
       tabicon: "full/path/of/tabicon.svg"
    }
}
```
2021-09-10 13:10:01 +12:00
Steve-Mcl 08049252f2 permit plugin theme to change other monaco options 2021-07-31 10:24:48 +01:00
Steve-Mcl 8a1d81989b use codeEditor.options.theme 2021-07-26 21:02:11 +01:00
Steve-Mcl d7a2fc2be4 use them plugin theme `monacoTheme` if present 2021-07-25 15:16:49 +01:00
Nick O'Leary 5ba0588c7b
Merge branch 'master' into dev 2021-07-16 08:53:35 +01:00
Mauricio Bonani 94ee739d91 Fix scriptFiles 2021-07-07 09:12:58 -04:00
Nick O'Leary b516ab9b4f
Batch messages sent over comms to prevent flooding 2021-06-16 11:45:02 +01:00
Nick O'Leary a9b252b8fa
Ensure httpServerOptions gets applied to ALL the express apps
This is silly. Turns out setting options at a top level app
does not percolate down to sub apps (and vice versa). You
have to apply the options to ALL express apps.
2021-06-08 21:17:42 +01:00
Nick O'Leary a9164e63ab
Merge branch 'dev' into pr_2971 2021-05-18 16:30:13 +01:00
Steve-Mcl 69dafd6c68 add codeEditor settings 2021-04-29 16:53:59 +01:00
Nick O'Leary 1af21735a9
Fix theme handling when no editorTheme.page setting 2021-04-29 15:32:26 +01:00
Nick O'Leary cd3aba2b89
Allow nodes to access resolved theme files
Fixes #2968
2021-04-29 10:17:07 +01:00