diff --git a/.eslintrc.js b/.eslintrc.js index 08bfe7e..95f0ce9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,8 +1,9 @@ 'use strict'; module.exports = { + parser: '@typescript-eslint/parser', parserOptions: { - project: './tsconfig.json' + project: './tsconfig.json', }, extends: [ '@strv/typescript', diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..5f64564 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,9 @@ +'use strict'; + +module.exports = { + semi: false, + trailingComma: 'all', + singleQuote: true, + printWidth: 80, + tabWidth: 2, +}; diff --git a/pages/download/[...slug].tsx b/pages/download/[...slug].tsx new file mode 100644 index 0000000..402a959 --- /dev/null +++ b/pages/download/[...slug].tsx @@ -0,0 +1,7 @@ +import React from 'react'; + +const DownloadPage = () => { + return
+} + +export default DownloadPage diff --git a/src/actions/DownloadActions.js b/src/actions/DownloadActions.js index 724ee0e..6d0fe5e 100644 --- a/src/actions/DownloadActions.js +++ b/src/actions/DownloadActions.js @@ -1,8 +1,7 @@ -import alt from '../alt'; +import alt from '../alt' export default alt.createActions(class DownloadActions { constructor() { - this.generateActions('requestDownload'); + this.generateActions('requestDownload') } - }, -) + }) diff --git a/src/actions/SupportActions.js b/src/actions/SupportActions.js index 9f7be30..9c4e1bd 100644 --- a/src/actions/SupportActions.js +++ b/src/actions/SupportActions.js @@ -1,8 +1,7 @@ -import alt from '../alt'; +import alt from '../alt' export default alt.createActions(class SupportActions { constructor() { - this.generateActions('isChrome', 'noSupport'); + this.generateActions('isChrome', 'noSupport') } - }, -) + }) diff --git a/src/actions/UploadActions.js b/src/actions/UploadActions.js index 3440170..96a7bb8 100644 --- a/src/actions/UploadActions.js +++ b/src/actions/UploadActions.js @@ -1,8 +1,7 @@ -import alt from '../alt'; +import alt from '../alt' export default alt.createActions(class UploadActions { constructor() { - this.generateActions('uploadFile'); + this.generateActions('uploadFile') } - }, -) + }) diff --git a/src/alt.js b/src/alt.js index 67ce981..714e2eb 100644 --- a/src/alt.js +++ b/src/alt.js @@ -1,3 +1,3 @@ -import Alt from 'alt'; +import Alt from 'alt' export default new Alt() diff --git a/src/client.js b/src/client.js index 9115de6..fa3c975 100644 --- a/src/client.js +++ b/src/client.js @@ -1,25 +1,25 @@ -import "babel-polyfill"; -import "./index.styl"; -import React from "react"; -import ReactRouter from "react-router"; -import webrtcSupport from 'webrtcsupport'; -import routes from './routes'; -import alt from './alt'; -import SupportActions from "./actions/SupportActions"; +import 'babel-polyfill' +import './index.styl' +import React from 'react' +import ReactRouter from 'react-router' +import webrtcSupport from 'webrtcsupport' +import routes from './routes' +import alt from './alt' +import SupportActions from './actions/SupportActions' -const bootstrap = document.getElementById("bootstrap").innerHTML; -alt.bootstrap(bootstrap); +const bootstrap = document.getElementById('bootstrap').innerHTML +alt.bootstrap(bootstrap) window.FilePizza = () => { ReactRouter.run(routes, ReactRouter.HistoryLocation, Handler => { - React.render(
- Cooked up by{" "}
+ Cooked up by{' '}
Alex Kern
- {" "}
- &{" "}
+ {' '}
+ &{' '}
Neeraj Baid
- {" "}
- while eating Sliver @ UC Berkeley ·{" "}
+ {' '}
+ while eating Sliver @ UC Berkeley ·{' '}
FAQ
- {" "}
- ·{" "}
+ {' '}
+ ·{' '}
Fork us
@@ -94,6 +94,6 @@ export default class App extends React.Component {
{process.env.GA_ACCESS_TOKEN ?