aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-17 21:03:00 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-17 21:03:00 +0200
commita877d5acc5c52b8667c65f725bbca9a52e40ec48 (patch)
tree20b5dd56f71c7572360807f894e85e0ab729629f /server/initializers/constants.js
parent479f229198bdfcfd3a63d02babdddaa8b2209ccb (diff)
downloadPeerTube-a877d5acc5c52b8667c65f725bbca9a52e40ec48.tar.gz
PeerTube-a877d5acc5c52b8667c65f725bbca9a52e40ec48.tar.zst
PeerTube-a877d5acc5c52b8667c65f725bbca9a52e40ec48.zip
Add ability to sort videos list
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 78bee5efe..4350bb892 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -26,6 +26,11 @@ const PODS_SCORE = {
26// Number of retries we make for the make retry requests (to friends...) 26// Number of retries we make for the make retry requests (to friends...)
27let REQUEST_RETRIES = 10 27let REQUEST_RETRIES = 10
28 28
29// Sortable columns per schema
30const SORTABLE_COLUMNS = {
31 VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ]
32}
33
29// Videos thumbnail size 34// Videos thumbnail size
30const THUMBNAILS_SIZE = '200x110' 35const THUMBNAILS_SIZE = '200x110'
31 36
@@ -51,6 +56,7 @@ module.exports = {
51 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, 56 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
52 PODS_SCORE: PODS_SCORE, 57 PODS_SCORE: PODS_SCORE,
53 REQUEST_RETRIES: REQUEST_RETRIES, 58 REQUEST_RETRIES: REQUEST_RETRIES,
59 SORTABLE_COLUMNS: SORTABLE_COLUMNS,
54 THUMBNAILS_SIZE: THUMBNAILS_SIZE, 60 THUMBNAILS_SIZE: THUMBNAILS_SIZE,
55 THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH 61 THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH
56} 62}