diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 4350bb892..c190ab506 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -27,6 +27,11 @@ const PODS_SCORE = { | |||
27 | let REQUEST_RETRIES = 10 | 27 | let REQUEST_RETRIES = 10 |
28 | 28 | ||
29 | // Sortable columns per schema | 29 | // Sortable columns per schema |
30 | const SEARCHABLE_COLUMNS = { | ||
31 | VIDEOS: [ 'name', 'magnetUri', 'podUrl', 'author' ] | ||
32 | } | ||
33 | |||
34 | // Sortable columns per schema | ||
30 | const SORTABLE_COLUMNS = { | 35 | const SORTABLE_COLUMNS = { |
31 | VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] | 36 | VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] |
32 | } | 37 | } |
@@ -56,6 +61,7 @@ module.exports = { | |||
56 | PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, | 61 | PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, |
57 | PODS_SCORE: PODS_SCORE, | 62 | PODS_SCORE: PODS_SCORE, |
58 | REQUEST_RETRIES: REQUEST_RETRIES, | 63 | REQUEST_RETRIES: REQUEST_RETRIES, |
64 | SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, | ||
59 | SORTABLE_COLUMNS: SORTABLE_COLUMNS, | 65 | SORTABLE_COLUMNS: SORTABLE_COLUMNS, |
60 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, | 66 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, |
61 | THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH | 67 | THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH |