2018-08-16 18:07:12 +02:00
|
|
|
/* global window */
|
2018-07-27 15:11:46 +02:00
|
|
|
|
2018-09-07 00:56:04 +02:00
|
|
|
window.LIMITS = {
|
|
|
|
ANON: {
|
|
|
|
MAX_FILE_SIZE: 1024 * 1024 * 1024 * 2,
|
|
|
|
MAX_DOWNLOADS: 32,
|
|
|
|
MAX_EXPIRE_SECONDS: 604800
|
|
|
|
},
|
|
|
|
MAX_FILE_SIZE: 1024 * 1024 * 1024 * 2,
|
|
|
|
MAX_DOWNLOADS: 32,
|
|
|
|
MAX_EXPIRE_SECONDS: 604800,
|
|
|
|
MAX_FILES_PER_ARCHIVE: 32,
|
|
|
|
MAX_ARCHIVES_PER_USER: 32
|
|
|
|
};
|
|
|
|
|
|
|
|
window.DEFAULTS = {
|
|
|
|
EXPIRE_SECONDS: 3600
|
|
|
|
};
|
2018-07-27 15:11:46 +02:00
|
|
|
|
2018-08-16 18:07:12 +02:00
|
|
|
const choo = require('choo');
|
|
|
|
const app = choo();
|
2018-07-27 15:11:46 +02:00
|
|
|
|
2018-08-16 18:07:12 +02:00
|
|
|
app.use(require('./stores/state').default);
|
|
|
|
app.use(require('../app/fileManager').default);
|
|
|
|
app.use(require('./stores/intents').default);
|
|
|
|
app.route('/', require('./pages/home').default);
|
|
|
|
app.route('/upload', require('./pages/upload').default);
|
|
|
|
app.route('/share/:id', require('./pages/share').default);
|
2018-09-07 00:56:04 +02:00
|
|
|
app.route('/preferences', require('./pages/preferences').default);
|
|
|
|
app.route('/android/app/src/main/assets', require('./pages/home').default);
|
2018-08-16 18:07:12 +02:00
|
|
|
app.mount('body');
|