|
|
@ -1,12 +1,13 @@
|
|
|
|
define([
|
|
|
|
define([
|
|
|
|
'jquery',
|
|
|
|
'jquery',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
'/customize/application_config.js',
|
|
|
|
'/customize/application_config.js',
|
|
|
|
'/common/outer/local-store.js',
|
|
|
|
'/common/outer/local-store.js',
|
|
|
|
'/customize/pages.js',
|
|
|
|
'/customize/pages.js',
|
|
|
|
'/api/config',
|
|
|
|
'/api/config',
|
|
|
|
], function ($, h, Msg, AppConfig, LocalStore, Pages, Config) {
|
|
|
|
], function ($, h, Util, Msg, AppConfig, LocalStore, Pages, Config) {
|
|
|
|
var accounts = {
|
|
|
|
var accounts = {
|
|
|
|
donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
|
|
|
|
donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
|
|
|
|
upgradeURL: AppConfig.upgradeURL
|
|
|
|
upgradeURL: AppConfig.upgradeURL
|
|
|
@ -55,7 +56,7 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
SPECIAL_GROUP_ITEMS.storage1 = function (f) {
|
|
|
|
SPECIAL_GROUP_ITEMS.storage1 = function (f) {
|
|
|
|
return groupItemTemplate(
|
|
|
|
return groupItemTemplate(
|
|
|
|
Msg._getKey('features_f_' + f, [Config.defaultStorageLimit / 1024 / 1024]),
|
|
|
|
Msg._getKey('features_f_' + f, [Util.getPrettySize(Config.defaultStorageLimit)]),
|
|
|
|
Msg['features_f_' + f + '_note']
|
|
|
|
Msg['features_f_' + f + '_note']
|
|
|
|
);
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|