Skip to content

Commit

Permalink
remove duplicate FILE_NAMES (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane authored Jul 24, 2024
1 parent b6464b6 commit 6d0e6fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/actions/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
11 changes: 1 addition & 10 deletions src/components/DriveView/Media.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
Expand Down Expand Up @@ -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',
Expand Down
11 changes: 1 addition & 10 deletions src/components/Files/UploadQueue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6d0e6fe

Please sign in to comment.