diff --git a/.env.defaults b/.env.defaults index 556e4ca44..c6c322dcd 100644 --- a/.env.defaults +++ b/.env.defaults @@ -33,6 +33,7 @@ ENABLE_CREATOR_REACTIONS=false ENABLE_NO_SOURCE_CLAIMS=false ENABLE_PREROLL_ADS=false CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS=4 +WEB_PUBLISH_SIZE_LIMIT_GB=4 CHANNEL_STAKED_LEVEL_LIVESTREAM=5 # OG diff --git a/config.js b/config.js index 8203652d9..db8d01cbb 100644 --- a/config.js +++ b/config.js @@ -38,6 +38,7 @@ const config = { ENABLE_NO_SOURCE_CLAIMS: process.env.ENABLE_NO_SOURCE_CLAIMS === 'true', ENABLE_PREROLL_ADS: process.env.ENABLE_PREROLL_ADS === 'true', CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS: process.env.CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS, + WEB_PUBLISH_SIZE_LIMIT_GB: process.env.WEB_PUBLISH_SIZE_LIMIT_GB, CHANNEL_STAKED_LEVEL_LIVESTREAM: process.env.CHANNEL_STAKED_LEVEL_LIVESTREAM, SIMPLE_SITE: process.env.SIMPLE_SITE === 'true', SHOW_ADS: process.env.SHOW_ADS === 'true', diff --git a/flow-typed/livestream.js b/flow-typed/livestream.js new file mode 100644 index 000000000..9b1b2d30a --- /dev/null +++ b/flow-typed/livestream.js @@ -0,0 +1,22 @@ +// @flow + +declare type LivestreamReplayItem = { + data: { + claimId: string, + deleted: boolean, + deletedAt: ?string, + ffprobe: any, + fileDuration: number, // decimal? float? string? + fileType: string, + fileLocation: string, + fileSize: number, + key: string, + published: boolean, + publishedAt: ?string, + service: string, + thumbnails: Array, + uploadedAt: string, // Date? + }, + id: string, +} +declare type LivestreamReplayData = Array; diff --git a/flow-typed/subscription.js b/flow-typed/subscription.js index 53956b014..6f59206fc 100644 --- a/flow-typed/subscription.js +++ b/flow-typed/subscription.js @@ -1,15 +1,4 @@ // @flow -import * as ACTIONS from 'constants/action_types'; -import { - DOWNLOADED, - DOWNLOADING, - NOTIFY_ONLY, - VIEW_ALL, - VIEW_LATEST_FIRST, - SUGGESTED_TOP_BID, - SUGGESTED_TOP_SUBSCRIBED, - SUGGESTED_FEATURED, -} from 'constants/subscriptions'; declare type Subscription = { channelName: string, // @CryptoCandor, diff --git a/static/app-strings.json b/static/app-strings.json index 9b59ec2fc..9c7d280bf 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1777,6 +1777,12 @@ "Learn more and sign petition": "Learn more and sign petition", "Publishing...": "Publishing...", "Collection": "Collection", + "Upload that unlabeled video you found behind the TV in 1991": "Upload that unlabeled video you found behind the TV in 1991", + "Select Replay": "Select Replay", + "Craft an epic post clearly explaining... whatever.": "Craft an epic post clearly explaining... whatever.", + "waiting": "waiting", + "%viewer_count% currently %viewer_state%": "%viewer_count% currently %viewer_state%", + "Choose Replay": "Choose Replay", "More from %claim_name%": "More from %claim_name%", "--end--": "--end--" } diff --git a/ui/component/common/card.jsx b/ui/component/common/card.jsx index 2e8e191a8..64ce71d81 100644 --- a/ui/component/common/card.jsx +++ b/ui/component/common/card.jsx @@ -21,7 +21,7 @@ type Props = { nag?: Node, smallTitle?: boolean, onClick?: () => void, - children?: any, // not sure how this works + children?: Node, }; export default function Card(props: Props) { diff --git a/ui/component/fileActions/view.jsx b/ui/component/fileActions/view.jsx index a52970e3e..37acfbc85 100644 --- a/ui/component/fileActions/view.jsx +++ b/ui/component/fileActions/view.jsx @@ -3,7 +3,6 @@ import { SIMPLE_SITE, SITE_NAME, ENABLE_FILE_REACTIONS } from 'config'; import * as PAGES from 'constants/pages'; import * as MODALS from 'constants/modal_types'; import * as ICONS from 'constants/icons'; -import * as PUBLISH_MODES from 'constants/publish_types'; import React from 'react'; import Button from 'component/button'; import FileDownloadLink from 'component/fileDownloadLink'; @@ -114,25 +113,13 @@ function FileActions(props: Props) {