diff --git a/legacy/ErrorPage.tsx b/legacy/ErrorPage.tsx
deleted file mode 100644
index 6dddc61..0000000
--- a/legacy/ErrorPage.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React from 'react'
-import ErrorStore from '../stores/ErrorStore'
-import Spinner from './Spinner'
-
-export default class ErrorPage extends React.Component {
- constructor() {
- super()
- this.state = ErrorStore.getState()
-
- this._onChange = () => {
- this.setState(ErrorStore.getState())
- }
- }
-
- componentDidMount() {
- ErrorStore.listen(this._onChange)
- }
-
- componentWillUnmount() {
- ErrorStore.unlisten(this._onChange)
- }
-
- render() {
- return (
-
-
-
-
FilePizza
-
- {this.state.status}: {this.state.message}
-
-
- {this.state.stack ?
{this.state.stack} : null}
-
- )
- }
-}
diff --git a/legacy/ProgressBar.tsx b/legacy/ProgressBar.tsx
deleted file mode 100644
index b122fa3..0000000
--- a/legacy/ProgressBar.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import React from 'react'
-import classnames from 'classnames'
-
-function formatProgress(dec) {
- return `${(dec * 100).toPrecision(3)}%`
-}
-
-export default class ProgressBar extends React.Component {
- render() {
- const failed = this.props.value < 0
- const inProgress = this.props.value < 1 && this.props.value >= 0
- const classes = classnames('progress-bar', {
- 'progress-bar-failed': failed,
- 'progress-bar-in-progress': inProgress,
- 'progress-bar-small': this.props.small,
- })
-
- const formatted = formatProgress(this.props.value)
-
- return (
-
- {failed ? (
-
Failed
- ) : inProgress ? (
-
- ) : (
-
Delivered
- )}
-
- )
- }
-}
-
-ProgressBar.propTypes = {
- value: React.PropTypes.number.isRequired,
- small: React.PropTypes.bool,
-}
-
-ProgressBar.defaultProps = {
- small: false,
-}
diff --git a/legacy/Spinner.tsx b/legacy/Spinner.tsx
deleted file mode 100644
index 8ecb8ae..0000000
--- a/legacy/Spinner.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import React from 'react'
-import classnames from 'classnames'
-import { formatSize } from '../util'
-
-export default class Spinner extends React.Component {
- render() {
- const classes = classnames('spinner', {
- 'spinner-animated': this.props.animated,
- })
-
- return (
-
-

-
- {this.props.name === null ? null : (
-
{this.props.name}
- )}
- {this.props.size === null ? null : (
-
{formatSize(this.props.size)}
- )}
-
- )
- }
-}
-
-Spinner.propTypes = {
- dir: React.PropTypes.oneOf(['up', 'down']).isRequired,
- name: React.PropTypes.string,
- size: React.PropTypes.number,
- animated: React.PropTypes.bool,
-}
-
-Spinner.defaultProps = {
- name: null,
- size: null,
- animated: false,
-}
diff --git a/legacy/Tempalink.tsx b/legacy/Tempalink.tsx
deleted file mode 100644
index dad73dc..0000000
--- a/legacy/Tempalink.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import React from 'react'
-import QRCode from 'react-qr'
-
-export default class Tempalink extends React.Component {
- constructor() {
- super()
- this.onClick = this.onClick.bind(this)
- }
-
- onClick(e) {
- e.target.setSelectionRange(0, 9999)
- }
-
- render() {
- const url = `${window.location.origin}/${this.props.token}`
- const shortUrl = `${window.location.origin}/download/${this.props.shortToken}`
-
- return (
-
-
-
-
-
-
-
-
-
-
- or, for short: {shortUrl}
-
-
-
- )
- }
-}
diff --git a/package.json b/package.json
index bcc2e79..87c6fab 100644
--- a/package.json
+++ b/package.json
@@ -33,12 +33,10 @@
"react": "^18.2.0",
"react-device-detect": "^1.17.0",
"react-dom": "^18.2.0",
- "react-qr": "0.0.2",
"react-qr-code": "^1.1.1",
"streamsaver": "^2.0.6",
"tailwindcss": "^3.4.10",
"twilio": "^2.11.1",
- "use-http": "^1.0.28",
"web-streams-polyfill": "^3.3.3",
"webrtcsupport": "^2.2.0",
"zod": "^3.23.8"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 181ea9b..28ce087 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -17,12 +17,6 @@ dependencies:
express:
specifier: ^4.19.2
version: 4.19.2
- fp-ts:
- specifier: ^2.16.9
- version: 2.16.9
- io-ts:
- specifier: ^2.2.21
- version: 2.2.21(fp-ts@2.16.9)
ioredis:
specifier: ^4.28.5
version: 4.28.5
@@ -4782,10 +4776,6 @@ packages:
engines: {node: '>= 0.6'}
dev: false
- /fp-ts@2.16.9:
- resolution: {integrity: sha512-+I2+FnVB+tVaxcYyQkHUq7ZdKScaBlX53A41mxQtpIccsfyv8PzdzP7fzp2AY832T4aoK6UZ5WRX/ebGd8uZuQ==}
- dev: false
-
/fraction.js@4.3.7:
resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
dev: false
@@ -5307,14 +5297,6 @@ packages:
loose-envify: 1.4.0
dev: false
- /io-ts@2.2.21(fp-ts@2.16.9):
- resolution: {integrity: sha512-zz2Z69v9ZIC3mMLYWIeoUcwWD6f+O7yP92FMVVaXEOSZH1jnVBmET/urd/uoarD1WGBY4rCj8TAyMPzsGNzMFQ==}
- peerDependencies:
- fp-ts: ^2.5.0
- dependencies:
- fp-ts: 2.16.9
- dev: false
-
/ioredis@4.28.5:
resolution: {integrity: sha512-3GYo0GJtLqgNXj4YhrisLaNNvWSNwSS2wS4OELGfGxH8I69+XfNdnmV1AyN+ZqMh0i7eX+SWjrwFKDBDgfBC1A==}
engines: {node: '>=6'}