mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-18 11:51:40 +02:00
PR cleanup and reorganization
This commit is contained in:
@@ -8,7 +8,6 @@ APP_LANGUAGE=en
|
||||
DISPLAY_READMES=true
|
||||
READMES_FIRST=false
|
||||
ZIP_DOWNLOADS=true
|
||||
HIDE_DOT_FILES=true
|
||||
|
||||
GOOGLE_ANALYTICS_ID=false
|
||||
|
||||
|
@@ -128,6 +128,13 @@ return [
|
||||
*/
|
||||
'hide_app_files' => DI\env('HIDE_APP_FILES', true),
|
||||
|
||||
/**
|
||||
* Whether or not to hide dot files/directories from the listing.
|
||||
*
|
||||
* Default value: true
|
||||
*/
|
||||
'hide_dot_files' => DI\env('HIDE_DOT_FILES', true),
|
||||
|
||||
/**
|
||||
* Hide the files Version Control System (i.e. Git and Mercurial) use to
|
||||
* store their metadata.
|
||||
@@ -159,12 +166,4 @@ return [
|
||||
* Default value: 1000000000
|
||||
*/
|
||||
'max_hash_size' => DI\env('MAX_HASH_SIZE', 1000000000),
|
||||
|
||||
/**
|
||||
* Whether or not to hide dot files/directories from the listing.
|
||||
* Like '.env' or '.ssh/'.
|
||||
*
|
||||
* Default value: true
|
||||
*/
|
||||
'hide_dot_files' => DI\env('HIDE_DOT_FILES', true),
|
||||
];
|
||||
|
@@ -17,7 +17,7 @@ return [
|
||||
'views_path' => DI\string('{app_path}/views'),
|
||||
|
||||
/** Array of application files (to be hidden) */
|
||||
'app_files' => ['app', 'index.php', '.hidden', '.env', '.env.example'],
|
||||
'app_files' => ['app', 'index.php', '.env', '.env.example', '.hidden'],
|
||||
|
||||
/** Array of application middlewares */
|
||||
'middlewares' => function (): array {
|
||||
|
@@ -51,13 +51,12 @@ class HiddenFilesTest extends TestCase
|
||||
],
|
||||
'App files' => [
|
||||
[], 'NOT_A_REAL_FILE', true, [
|
||||
'app', 'index.php', '.hidden', '.env', '.env.example',
|
||||
'app', 'index.php', '.env', '.env.example', '.hidden',
|
||||
],
|
||||
],
|
||||
'All' => [
|
||||
['foo', 'alpha'], $this->filePath('.hidden'), true, [
|
||||
'foo', 'alpha', 'bravo', 'app', 'index.php', '.hidden', '.env',
|
||||
'.env.example',
|
||||
'foo', 'alpha', 'bravo', 'app', 'index.php', '.env', '.env.example', '.hidden',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user