Remove XXX

pull/1/head
yflory 3 years ago
parent 2bc0131904
commit 73eb80ea30

@ -20,8 +20,6 @@ define([
return AppConfig.availablePadTypes.indexOf(x) !== -1; return AppConfig.availablePadTypes.indexOf(x) !== -1;
}; };
// XXX PREMIUM
var checkEarlyAccess = function (x) { var checkEarlyAccess = function (x) {
// Check if this is an early access app and if they are allowed. // Check if this is an early access app and if they are allowed.
// Check if this is a premium app and if you're premium // Check if this is a premium app and if you're premium

@ -64,7 +64,6 @@
color: @cp_context-icon; color: @cp_context-icon;
width: 16px; width: 16px;
} }
// XXX PREMIUM
&.cp-app-disabled { &.cp-app-disabled {
cursor: not-allowed !important; cursor: not-allowed !important;
opacity: 0.5; opacity: 0.5;

@ -81,7 +81,6 @@
} }
} }
// XXX PREMIUM
&.cp-app-hidden { &.cp-app-hidden {
display: none !important; display: none !important;
} }

@ -121,7 +121,6 @@
color: @cp_dropdown-fg; color: @cp_dropdown-fg;
} }
// XXX PREMIUM
&.cp-app-hidden { &.cp-app-hidden {
display: none; display: none;
} }

@ -39,7 +39,6 @@
} }
} }
// XXX PREMIUM
&.cp-app-hidden { &.cp-app-hidden {
display: none !important; display: none !important;
} }

@ -124,7 +124,6 @@
} }
} }
.cp-index-appitem { .cp-index-appitem {
// XXX PREMIUM
&.cp-app-hidden { &.cp-app-hidden {
display: none; display: none;
} }

@ -2130,7 +2130,6 @@ define([
$modal.hide(); $modal.hide();
common.openURL('/' + p + '/'); common.openURL('/' + p + '/');
}); });
// XXX PREMIUM
var premium = common.checkRestrictedApp(p); var premium = common.checkRestrictedApp(p);
if (premium < 0) { if (premium < 0) {
$element.addClass('cp-app-hidden cp-app-disabled'); $element.addClass('cp-app-hidden cp-app-disabled');

@ -343,10 +343,7 @@ define([
return arr; return arr;
}; };
// delete fc_openInCode // XXX
var createContextMenu = function (common) { var createContextMenu = function (common) {
// XXX PREMIUM
// XXX "Edit in Document" and "New Document" (and presentation)
var getOpenIn = function (app) { var getOpenIn = function (app) {
var icon = AppConfig.applicationsIcon[app]; var icon = AppConfig.applicationsIcon[app];
var cls = icon.indexOf('cptools') === 0 ? 'cptools '+icon : 'fa '+icon; var cls = icon.indexOf('cptools') === 0 ? 'cptools '+icon : 'fa '+icon;
@ -1290,9 +1287,6 @@ define([
hide.push('openincode'); hide.push('openincode');
hide.push('preview'); hide.push('preview');
} }
if ($element.is('.cp-border-color-sheet')) {
//hide.push('download'); // XXX if we don't want to enable this feature yet
}
if ($element.is('.cp-app-drive-static')) { if ($element.is('.cp-app-drive-static')) {
hide.push('access', 'hashtag', 'properties', 'download'); hide.push('access', 'hashtag', 'properties', 'download');
} }
@ -2914,7 +2908,6 @@ define([
'href': '#' 'href': '#'
}; };
// XXX PREMIUM
var premium = common.checkRestrictedApp(type); var premium = common.checkRestrictedApp(type);
if (premium < 0) { if (premium < 0) {
attributes.class += ' cp-app-hidden cp-app-disabled'; attributes.class += ' cp-app-hidden cp-app-disabled';
@ -3249,7 +3242,6 @@ define([
.text(Messages.type[type])); .text(Messages.type[type]));
$element.attr('data-type', type); $element.attr('data-type', type);
// XXX PREMIUM
var premium = common.checkRestrictedApp(type); var premium = common.checkRestrictedApp(type);
if (premium < 0) { if (premium < 0) {
$element.addClass('cp-app-hidden cp-app-disabled'); $element.addClass('cp-app-hidden cp-app-disabled');

@ -672,7 +672,6 @@ define([
additionalPriv.registeredOnly = true; additionalPriv.registeredOnly = true;
} }
// XXX PREMIUM
var priv = metaObj.priv; var priv = metaObj.priv;
var p = Utils.Util.checkRestrictedApp(parsed.type, AppConfig, var p = Utils.Util.checkRestrictedApp(parsed.type, AppConfig,
Utils.Constants.earlyAccessApps, priv.plan, additionalPriv.loggedIn); Utils.Constants.earlyAccessApps, priv.plan, additionalPriv.loggedIn);

@ -915,7 +915,6 @@ define([
}, {forefront: true}); }, {forefront: true});
return; return;
} }
// XXX PREMIUM
var blocked = privateData.premiumOnly && privateData.isNewFile; var blocked = privateData.premiumOnly && privateData.isNewFile;
if (blocked) { if (blocked) {
var domain = ApiConfig.httpUnsafeOrigin || 'CryptPad'; var domain = ApiConfig.httpUnsafeOrigin || 'CryptPad';

Loading…
Cancel
Save