TagSpaces is an offline, open source, document manager with tagging support
chore: adjusting the list of editable files
Ilian Sapundshievc18423dc198d
diff --git a/app/AppConfig.ts b/app/AppConfig.tsindex dba23faa2..5e897ae12 100644--- a/app/AppConfig.ts+++ b/app/AppConfig.ts@@ -4,6 +4,10 @@ AppConfig.mainToolbarHeight = 101;AppConfig.editableFiles = ['txt','md',+ 'markdown',+ 'mdown',+ 'html',+ 'htm','coffee','c','cpp',@@ -15,16 +19,13 @@ AppConfig.editableFiles = ['js','json','less',- 'markdown',- 'mdown','php','pl','py','rb','ini','sh',- 'sql',- 'mhtml'+ 'sql'];export default AppConfig;diff --git a/app/components/dialogs/FilePreviewDialog.tsx b/app/components/dialogs/FilePreviewDialog.tsxindex d49228756..22cfeac72 100644--- a/app/components/dialogs/FilePreviewDialog.tsx+++ b/app/components/dialogs/FilePreviewDialog.tsx@@ -86,7 +86,9 @@ function FilePreviewDialog(props: Props) {const handleMessage = (data: any) => {let message;let textFilePath;- switch (data.command) { // todo use diff command+ switch (+ data.command // todo use diff command+ ) {case 'loadDefaultTextContent':if (!openedFile || !openedFile.path) {// || openedFile.changed) {@@ -176,7 +178,7 @@ function FilePreviewDialog(props: Props) {scroll="paper"/*fullWidth={true}maxWidth="md"*/- PaperProps={{ sx: { width: "100%", height: "100%" } }}+ PaperProps={{ sx: { width: '100%', height: '100%' } }}BackdropProps={{ style: { backgroundColor: 'transparent' } }}><DialogTitle data-tid="importDialogTitle">diff --git a/app/services/platform-facade.ts b/app/services/platform-facade.tsindex 14be350d5..83fcfdf36 100644--- a/app/services/platform-facade.ts+++ b/app/services/platform-facade.ts@@ -360,12 +360,10 @@ export default class PlatformFacade {): Promise<any> => {PlatformFacade.ignoreByWatcher(param.path);- return platformSaveFilePromise(param, content, overwrite).then(- result => {- PlatformFacade.deignoreByWatcher(param.path);- return result;- }- );+ return platformSaveFilePromise(param, content, overwrite).then(result => {+ PlatformFacade.deignoreByWatcher(param.path);+ return result;+ });};/**