json and markdown are editable by default

This commit is contained in:
Milos Stojanovic
2020-07-18 12:57:51 +02:00
parent 613aeda8be
commit 4f6b55675f
5 changed files with 9 additions and 4 deletions

View File

@@ -2,6 +2,9 @@
## Upcoming...
* disabling axios response auto-transformation when editing content, fixes #110
* config params: .json and .md extensions added as 'editable' by default
## 7.4.2 - 2020-07-18
* inclusive terminology: BC! please replace ip_whitelist/ip_blacklist to ip_allowlist/ip_denylist in your configuration.php

View File

@@ -14,7 +14,7 @@ return [
'upload_chunk_size' => 1 * 1024 * 1024, // 1MB
'upload_simultaneous' => 3,
'default_archive_name' => 'archive.zip',
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php', '.json', '.md'],
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
'guest_redirection' => '', // useful for external auth adapters
],

View File

@@ -21,7 +21,7 @@ Note: if you've made a mistake in configuration file (forgot to close a quote?)
'upload_chunk_size' => 1 * 1024 * 1024, // 1MB
'upload_simultaneous' => 3,
'default_archive_name' => 'archive.zip',
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php', '.json', '.md'],
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
'guest_redirection' => '', // useful for external auth adapters
],

View File

@@ -194,7 +194,9 @@ const api = {
downloadItem (params) {
return new Promise((resolve, reject) => {
axios.get('download&path='+encodeURIComponent(Base64.encode(params.path)),
{transformResponse : undefined})
{
transformResponse: undefined,
})
.then(res => resolve(res.data))
.catch(error => reject(error))
})

View File

@@ -13,7 +13,7 @@ return [
'upload_chunk_size' => 1 * 1024 * 1024,
'upload_simultaneous' => 3,
'default_archive_name' => 'archive.zip',
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php', '.json', '.md'],
'date_format' => 'YY/MM/DD hh:mm:ss',
'guest_redirection' => '', // useful for external auth adapters
],