Feat(settings): add renderer for settings configuration #142

Merged
jakob.scheid merged 88 commits from feature/settings-renderer into main 2026-07-28 20:14:50 +02:00
Showing only changes of commit e18c066629 - Show all commits
+1 -3
View File
@@ -21,9 +21,7 @@ export const getSetting = function getSetting (name, settings) {
export const getSettingRecursively = function getSettingRecursively (sectionPath, settings) {
jakob.scheid marked this conversation as resolved Outdated
Outdated
Review

It makes more sense to pass the section path as an array.

It makes more sense to pass the section path as an array.
const oneSettingsLevel = function oneSettingsLevel (cursor, acc) {
const setting = getSetting(cursor[0], acc.content);
if (!setting) {
return;
};
if (!setting) return;
jakob.scheid marked this conversation as resolved Outdated
Outdated
Review

Put this in one line.

Put this in one line.
if (setting.type === undefined) setting.type = 'section';
if (setting.type === 'section') {