Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions src/main/frontend/app/routes/settings/settings-menu-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { TreeItem } from 'react-complex-tree'
import React from 'react'
import WidgetIcon from '/icons/solar/Widget.svg?react'
import RulerCrossPenIcon from '/icons/solar/Ruler Cross Pen.svg?react'
import CodeIcon from '/icons/solar/Code.svg?react'
// import CodeIcon from '/icons/solar/Code.svg?react'
import GeneralSettings from '~/routes/settings/pages/general-settings'
import StudioSettings from '~/routes/settings/pages/studio-settings'
import ProjectSettings from './pages/project-settings'
Expand All @@ -16,10 +16,17 @@ export interface SettingsMenuItemData {
content?: React.FC
}

//todo: add editor settings and icon after there are settings to add there

const SettingsMenuItems = {
root: {
index: 'root',
children: ['general', 'projects', 'studio', 'editor'],
children: [
'general',
'projects',
'studio',
// 'editor'
],
data: {
title: '',
description: '',
Expand Down Expand Up @@ -51,14 +58,14 @@ const SettingsMenuItems = {
content: StudioSettings,
},
},
editor: {
index: 'editor',
data: {
title: 'Editor',
description: 'Editor settings',
icon: CodeIcon,
},
},
// editor: {
// index: 'editor',
// data: {
// title: 'Editor',
// description: 'Editor settings',
// icon: CodeIcon,
// },
// },
Comment on lines +61 to +68

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// editor: {
// index: 'editor',
// data: {
// title: 'Editor',
// description: 'Editor settings',
// icon: CodeIcon,
// },
// },
/*editor: {
index: 'editor',
data: {
title: 'Editor',
description: 'Editor settings',
icon: CodeIcon,
},
},*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any linter rules on this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we should configure this rule in all our projects?
https://eslint.org/docs/latest/rules/multiline-comment-style

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

New one: https://eslint.style/rules/multiline-comment-style

Actually, we shouldn't allow commented code at all. Only comments for docs.

} as Record<string, SettingsMenuItem>

export default SettingsMenuItems
Loading