mirror of https://github.com/xwiki-labs/cryptpad
33 lines
1.3 KiB
JavaScript
33 lines
1.3 KiB
JavaScript
// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
define(['/customize/application_config.js'], function (AppConfig) {
|
|
return {
|
|
// localStorage
|
|
userHashKey: 'User_hash',
|
|
userNameKey: 'User_name',
|
|
blockHashKey: 'Block_hash',
|
|
fileHashKey: 'FS_hash',
|
|
sessionJWT: 'Session_JWT',
|
|
ssoSeed: 'SSO_seed',
|
|
|
|
// Store
|
|
displayNameKey: 'cryptpad.username',
|
|
oldStorageKey: 'CryptPad_RECENTPADS',
|
|
storageKey: 'filesData',
|
|
tokenKey: 'loginToken',
|
|
prefersDriveRedirectKey: 'prefersDriveRedirect',
|
|
isPremiumKey: 'isPremiumUser',
|
|
displayPadCreationScreen: 'displayPadCreationScreen',
|
|
deprecatedKey: 'deprecated',
|
|
MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 5,
|
|
MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 5,
|
|
MAX_PREMIUM_TEAMS_SLOTS: Math.max(AppConfig.maxTeamsSlots || 0, AppConfig.maxPremiumTeamsSlots || 0) || 5,
|
|
MAX_PREMIUM_TEAMS_OWNED: Math.max(AppConfig.maxTeamsOwned || 0, AppConfig.maxPremiumTeamsOwned || 0) || 5,
|
|
// Apps
|
|
criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications', 'calendar', 'moderation', 'oldadmin'], // XXX oldadmin
|
|
earlyAccessApps: ['doc', 'presentation']
|
|
};
|
|
});
|