added /config endpoint, use fewer globals (#1172)
* added /config endpoint, use fewer globals * fixed integration tests
This commit is contained in:
parent
8df400a676
commit
1c44d1d0f9
15 changed files with 92 additions and 80 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global LOCALE */
|
||||
/* global DEFAULTS LIMITS LOCALE */
|
||||
import 'core-js';
|
||||
import 'fast-text-encoding'; // MS Edge support
|
||||
import 'fluent-intl-polyfill';
|
||||
|
@ -41,12 +41,14 @@ if (process.env.NODE_ENV === 'production') {
|
|||
|
||||
const translate = await getTranslator(LOCALE);
|
||||
window.initialState = {
|
||||
archive: new Archive(),
|
||||
LIMITS,
|
||||
DEFAULTS,
|
||||
archive: new Archive([], DEFAULTS.EXPIRE_SECONDS),
|
||||
capabilities,
|
||||
translate,
|
||||
storage,
|
||||
raven: Raven,
|
||||
user: new User(storage),
|
||||
user: new User(storage, LIMITS, window.AUTH_CONFIG),
|
||||
transfer: null,
|
||||
fileInfo: null
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue