A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
theme: make homepage property in themes optional
Abdullah Atta30d634515264
diff --git a/packages/theme/src/theme-engine/types.ts b/packages/theme/src/theme-engine/types.tsindex fcc2da2c4..1353ddb38 100644--- a/packages/theme/src/theme-engine/types.ts+++ b/packages/theme/src/theme-engine/types.ts@@ -37,6 +37,9 @@ export type ThemeCompatibilityVersion = 1;* @description This is a schema for validation of Notesnook themes.*/export type ThemeDefinition = {+ // we need to allow this to make linters happy.+ $schema: "https://raw.githubusercontent.com/streetwriters/notesnook-themes/main/schemas/v1.schema.json";+/*** Name of the theme*/@@ -69,7 +72,7 @@ export type ThemeDefinition = {** @format uri*/- homepage: string;+ homepage?: string;/*** A short description of the theme.*/@@ -180,8 +183,8 @@ export type Colors = {*/paragraph: string;/**- * Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)- * @pattern ^#(?:(?:[\da-fA-F]{3}){1,2}|(?:[\da-fA-F]{4}){1,2})$+ * Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)+ * @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$*/background: string;/**diff --git a/packages/theme/src/theme-engine/validator.ts b/packages/theme/src/theme-engine/validator.tsindex 565a26d0b..b4a8a03cc 100644--- a/packages/theme/src/theme-engine/validator.ts+++ b/packages/theme/src/theme-engine/validator.ts@@ -34,7 +34,6 @@ const RequiredKeys = ["description","colorScheme","compatibilityVersion",- "homepage",...Variants.map((variant) =>COLORS.map((colorName) => `scopes.base.${variant}.${colorName}`)).flat()