2019-10-15 18:02:11 +02:00
|
|
|
define(['/customize/application_config.js'], function (AppConfig) {
|
2017-11-21 16:47:19 +01:00
|
|
|
return {
|
|
|
|
|
// localStorage
|
|
|
|
|
userHashKey: 'User_hash',
|
|
|
|
|
userNameKey: 'User_name',
|
2018-06-19 18:08:14 +02:00
|
|
|
blockHashKey: 'Block_hash',
|
2017-11-21 16:47:19 +01:00
|
|
|
fileHashKey: 'FS_hash',
|
|
|
|
|
// sessionStorage
|
|
|
|
|
newPadPathKey: "newPadPath",
|
2019-09-12 17:54:50 +02:00
|
|
|
newPadTeamKey: "newPadTeam",
|
2019-08-13 16:09:06 +02:00
|
|
|
newPadFileData: "newPadFileData",
|
2017-11-21 16:47:19 +01:00
|
|
|
// Store
|
|
|
|
|
displayNameKey: 'cryptpad.username',
|
|
|
|
|
oldStorageKey: 'CryptPad_RECENTPADS',
|
|
|
|
|
storageKey: 'filesData',
|
2017-11-30 10:33:09 +01:00
|
|
|
tokenKey: 'loginToken',
|
2018-06-22 10:37:54 +02:00
|
|
|
displayPadCreationScreen: 'displayPadCreationScreen',
|
2018-09-14 11:21:52 +02:00
|
|
|
deprecatedKey: 'deprecated',
|
2019-10-15 18:02:11 +02:00
|
|
|
MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 3,
|
2019-10-28 11:19:00 +01:00
|
|
|
MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 1,
|
2018-12-12 14:52:58 +01:00
|
|
|
// Apps
|
2019-06-25 16:44:55 +02:00
|
|
|
criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications']
|
2017-11-21 16:47:19 +01:00
|
|
|
};
|
|
|
|
|
});
|