fix: don't show deprecated editors; add missing solarized dark theme
This commit is contained in:
@@ -105,6 +105,11 @@ const Themes = [
|
||||
path: 'Themes/org.standardnotes.theme-titanium',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
{
|
||||
identifier: 'org.standardnotes.solarized-dark',
|
||||
path: 'Themes/org.standardnotes.solarized-dark',
|
||||
static_files: BaseThemeStaticFiles,
|
||||
},
|
||||
]
|
||||
|
||||
const Components = [...Editors, ...DeprecatedEditors, ...Themes]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "@standardnotes/solarized-dark-theme",
|
||||
"version": "1.2.11",
|
||||
"main": "dist/dist.css",
|
||||
"author": "Standard Notes",
|
||||
"private": true,
|
||||
"sn": {
|
||||
"main": "dist/dist.css"
|
||||
|
||||
@@ -54,7 +54,9 @@ export const createEditorMenuGroups = (application: WebApplication, editors: SNC
|
||||
.forEach((editorFeature) => {
|
||||
const notInstalled = !editors.find((editor) => editor.identifier === editorFeature.identifier)
|
||||
const isExperimental = application.features.isExperimentalFeature(editorFeature.identifier)
|
||||
if (notInstalled && !isExperimental) {
|
||||
const isDeprecated = editorFeature.deprecated
|
||||
const isShowable = notInstalled && !isExperimental && !isDeprecated
|
||||
if (isShowable) {
|
||||
editorItems[getEditorGroup(editorFeature)].push({
|
||||
name: editorFeature.name as string,
|
||||
isEntitled: false,
|
||||
|
||||
Reference in New Issue
Block a user