diff --git a/src/actions/files.js b/src/actions/files.js index a27d8e69..eb211af5 100644 --- a/src/actions/files.js +++ b/src/actions/files.js @@ -5,7 +5,7 @@ import { updateDeviceOnline, fetchDeviceNetworkStatus } from '.'; import * as Types from './types'; import { deviceOnCellular, getDeviceFromState, deviceVersionAtLeast, asyncSleep } from '../utils'; -const FILE_NAMES = { +export const FILE_NAMES = { qcameras: 'qcamera.ts', cameras: 'fcamera.hevc', dcameras: 'dcamera.hevc', diff --git a/src/components/DriveView/Media.jsx b/src/components/DriveView/Media.jsx index c6c1f839..055a48d9 100644 --- a/src/components/DriveView/Media.jsx +++ b/src/components/DriveView/Media.jsx @@ -24,7 +24,7 @@ import { deviceIsOnline, deviceOnCellular, getSegmentNumber } from '../../utils' import { analyticsEvent, updateRoute } from '../../actions'; import { fetchEvents } from '../../actions/cached'; import { attachRelTime } from '../../analytics'; -import { setRouteViewed, fetchFiles, doUpload, fetchUploadUrls, fetchAthenaQueue, updateFiles } from '../../actions/files'; +import { setRouteViewed, fetchFiles, doUpload, fetchUploadUrls, fetchAthenaQueue, updateFiles, FILE_NAMES } from '../../actions/files'; const publicTooltip = 'Making a route public allows anyone with the route name or link to access it.'; const preservedTooltip = 'Preserving a route will prevent it from being deleted. You can preserve up to 10 routes, or 100 if you have comma prime.'; @@ -205,15 +205,6 @@ const styles = () => ({ }, }); -const FILE_NAMES = { - qcameras: 'qcamera.ts', - cameras: 'fcamera.hevc', - dcameras: 'dcamera.hevc', - ecameras: 'ecamera.hevc', - qlogs: 'qlog.bz2', - logs: 'rlog.bz2', -}; - const MediaType = { VIDEO: 'video', MAP: 'map', diff --git a/src/components/Files/UploadQueue.jsx b/src/components/Files/UploadQueue.jsx index 636a6e8e..eaa62d06 100644 --- a/src/components/Files/UploadQueue.jsx +++ b/src/components/Files/UploadQueue.jsx @@ -9,7 +9,7 @@ import { import HighlightOffIcon from '@material-ui/icons/HighlightOff'; import WarningIcon from '@material-ui/icons/Warning'; -import { fetchUploadQueue, cancelUploads, cancelFetchUploadQueue } from '../../actions/files'; +import { fetchUploadQueue, cancelUploads, cancelFetchUploadQueue, FILE_NAMES } from '../../actions/files'; import { deviceIsOnline, deviceOnCellular, deviceVersionAtLeast } from '../../utils'; import Colors from '../../colors'; import ResizeHandler from '../ResizeHandler'; @@ -114,15 +114,6 @@ const styles = (theme) => ({ }, }); -const FILE_NAMES = { - qcameras: 'qcamera.ts', - cameras: 'fcamera.hevc', - dcameras: 'dcamera.hevc', - ecameras: 'ecamera.hevc', - qlogs: 'qlog.bz2', - logs: 'rlog.bz2', -}; - class UploadQueue extends Component { constructor(props) { super(props);