mirror of
https://github.com/filegator/filegator.git
synced 2025-07-31 16:50:34 +02:00
json and markdown are editable by default
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
],
|
||||
|
@@ -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
|
||||
],
|
||||
|
@@ -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))
|
||||
})
|
||||
|
@@ -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
|
||||
],
|
||||
|
Reference in New Issue
Block a user