mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Prefer using Object.values
This commit is contained in:
parent
bbd5aa7ead
commit
690bb8f9f3
17 changed files with 48 additions and 48 deletions
|
@ -1,5 +1,4 @@
|
|||
import { writeJSON } from 'fs-extra'
|
||||
import { values } from 'lodash'
|
||||
import { join } from 'path'
|
||||
import { root } from '@shared/core-utils'
|
||||
import {
|
||||
|
@ -65,13 +64,13 @@ Object.assign(playerKeys, videojs)
|
|||
|
||||
// Server keys
|
||||
const serverKeys: any = {}
|
||||
values(VIDEO_CATEGORIES)
|
||||
.concat(values(VIDEO_LICENCES))
|
||||
.concat(values(VIDEO_PRIVACIES))
|
||||
.concat(values(VIDEO_STATES))
|
||||
.concat(values(VIDEO_IMPORT_STATES))
|
||||
.concat(values(VIDEO_PLAYLIST_PRIVACIES))
|
||||
.concat(values(VIDEO_PLAYLIST_TYPES))
|
||||
Object.values(VIDEO_CATEGORIES)
|
||||
.concat(Object.values(VIDEO_LICENCES))
|
||||
.concat(Object.values(VIDEO_PRIVACIES))
|
||||
.concat(Object.values(VIDEO_STATES))
|
||||
.concat(Object.values(VIDEO_IMPORT_STATES))
|
||||
.concat(Object.values(VIDEO_PLAYLIST_PRIVACIES))
|
||||
.concat(Object.values(VIDEO_PLAYLIST_TYPES))
|
||||
.concat([
|
||||
'This video does not exist.',
|
||||
'We cannot fetch the video. Please try again later.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue