Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client: Rename endpoint to codeblock-themes
Elian Dorane65d4cdfbf7e
diff --git a/src/public/app/widgets/type_widgets/options/appearance/highlighting.js b/src/public/app/widgets/type_widgets/options/appearance/highlighting.jsindex 9b6c5aa244..d5fb77b5ae 100644--- a/src/public/app/widgets/type_widgets/options/appearance/highlighting.js+++ b/src/public/app/widgets/type_widgets/options/appearance/highlighting.js@@ -62,7 +62,7 @@ export default class HighlightingOptions extends OptionsWidget {}async optionsLoaded(options) {- const themes = await server.get("options/highlighting-themes");+ const themes = await server.get("options/codeblock-themes");this.$themeSelect.empty();for (const theme of themes) {diff --git a/src/routes/routes.ts b/src/routes/routes.tsindex 95f5fc3e91..52faa1b577 100644--- a/src/routes/routes.ts+++ b/src/routes/routes.ts@@ -218,7 +218,7 @@ function register(app: express.Application) {apiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption);apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions);apiRoute(GET, '/api/options/user-themes', optionsApiRoute.getUserThemes);- apiRoute(GET, '/api/options/highlighting-themes', optionsApiRoute.getSyntaxHighlightingThemes);+ apiRoute(GET, '/api/options/codeblock-themes', optionsApiRoute.getSyntaxHighlightingThemes);apiRoute(GET, '/api/options/locales', optionsApiRoute.getSupportedLocales);apiRoute(PST, '/api/password/change', passwordApiRoute.changePassword);