Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure default settings.js to be more organised #3012

Merged
merged 3 commits into from
Jun 9, 2021

Conversation

knolleary
Copy link
Member

The list of settings has inevitably grown over time and they have become a bit of a muddle. This PR attempts to fix that.

The settings are have been reordered into clearly labelled sections:

  • Flow File and User Directory Settings
  • Security
  • Server Settings
  • Runtime Settings
  • Editor Settings
  • Node Settings

I have removed paletteCategories as that was deprecated some time ago and should be editorTheme.palette.categories - the code has handled both for some time now. The docs need to be updated to match.

The diff provided by this PR doesn't necessarily make it easy to appreciate the overall structure of the new file. You can see the new file in its entirety here: https://github.com/node-red/node-red/blob/reorganise-settings/packages/node_modules/node-red/settings.js

@knolleary knolleary added the 2.0 label Jun 8, 2021
packages/node_modules/node-red/settings.js Outdated Show resolved Hide resolved
packages/node_modules/node-red/settings.js Outdated Show resolved Hide resolved
packages/node_modules/node-red/settings.js Outdated Show resolved Hide resolved
******************************************************************************/

// Uncomment the following to run node-red in your preferred language:
// lang: "de",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we mention which languages we have translations for ? (and maybe encourage contributions... ?)

packages/node_modules/node-red/settings.js Show resolved Hide resolved
Makes clearer what is a comment and what is commented-out code.
@knolleary
Copy link
Member Author

Update pushed to change the comment style to make it clearer what is a comment and what is a commented-out setting.

@knolleary knolleary merged commit 440be06 into dev Jun 9, 2021
@knolleary knolleary deleted the reorganise-settings branch May 3, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Node-RED 2.0 Planning
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants