]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/constants.js
Use ng2-file-upload instead of jquery and add tags support to the video
[github/Chocobozzz/PeerTube.git] / server / initializers / constants.js
index c6a6ac96667a70649827df08755f45596a400b0f..22cbb13619a6671152744c671c1c2fa9af08307a 100644 (file)
@@ -21,6 +21,9 @@ const PODS_SCORE = {
 // Number of retries we make for the make retry requests (to friends...)
 let REQUEST_RETRIES = 10
 
+// Different types or requests for the request scheduler module
+const REQUEST_SCHEDULER_TYPE = [ 'add', 'remove' ]
+
 // Sortable columns per schema
 const SEARCHABLE_COLUMNS = {
   VIDEOS: [ 'name', 'magnetUri', 'podUrl', 'author', 'tags' ]
@@ -38,8 +41,8 @@ const THUMBNAILS_SIZE = '200x110'
 const THUMBNAILS_STATIC_PATH = '/static/thumbnails'
 
 const VIDEOS_CONSTRAINTS_FIELDS = {
-  NAME: { min: 1, max: 50 }, // Length
-  DESCRIPTION: { min: 1, max: 250 }, // Length
+  NAME: { min: 3, max: 50 }, // Length
+  DESCRIPTION: { min: 3, max: 250 }, // Length
   MAGNET_URI: { min: 10 }, // Length
   DURATION: { min: 1, max: 7200 }, // Number
   AUTHOR: { min: 3, max: 20 }, // Length
@@ -65,6 +68,7 @@ module.exports = {
   PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
   PODS_SCORE: PODS_SCORE,
   REQUEST_RETRIES: REQUEST_RETRIES,
+  REQUEST_SCHEDULER_TYPE: REQUEST_SCHEDULER_TYPE,
   SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS,
   SORTABLE_COLUMNS: SORTABLE_COLUMNS,
   THUMBNAILS_SIZE: THUMBNAILS_SIZE,