fix: don't show deprecated editors; add missing solarized dark theme

This commit is contained in:
Mo
2022-06-27 17:43:17 -05:00
parent 0290dcfd46
commit ded2d1866a
3 changed files with 9 additions and 1 deletions

View File

@@ -105,6 +105,11 @@ const Themes = [
path: 'Themes/org.standardnotes.theme-titanium', path: 'Themes/org.standardnotes.theme-titanium',
static_files: BaseThemeStaticFiles, static_files: BaseThemeStaticFiles,
}, },
{
identifier: 'org.standardnotes.solarized-dark',
path: 'Themes/org.standardnotes.solarized-dark',
static_files: BaseThemeStaticFiles,
},
] ]
const Components = [...Editors, ...DeprecatedEditors, ...Themes] const Components = [...Editors, ...DeprecatedEditors, ...Themes]

View File

@@ -2,6 +2,7 @@
"name": "@standardnotes/solarized-dark-theme", "name": "@standardnotes/solarized-dark-theme",
"version": "1.2.11", "version": "1.2.11",
"main": "dist/dist.css", "main": "dist/dist.css",
"author": "Standard Notes",
"private": true, "private": true,
"sn": { "sn": {
"main": "dist/dist.css" "main": "dist/dist.css"

View File

@@ -54,7 +54,9 @@ export const createEditorMenuGroups = (application: WebApplication, editors: SNC
.forEach((editorFeature) => { .forEach((editorFeature) => {
const notInstalled = !editors.find((editor) => editor.identifier === editorFeature.identifier) const notInstalled = !editors.find((editor) => editor.identifier === editorFeature.identifier)
const isExperimental = application.features.isExperimentalFeature(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({ editorItems[getEditorGroup(editorFeature)].push({
name: editorFeature.name as string, name: editorFeature.name as string,
isEntitled: false, isEntitled: false,