Remove XXX

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

@ -20,8 +20,6 @@ define([
return AppConfig.availablePadTypes.indexOf(x) !== -1;
};
// XXX PREMIUM
var checkEarlyAccess = function (x) {
// 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

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

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

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

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

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

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

@ -343,10 +343,7 @@ define([
return arr;
};
// delete fc_openInCode // XXX
var createContextMenu = function (common) {
// XXX PREMIUM
// XXX "Edit in Document" and "New Document" (and presentation)
var getOpenIn = function (app) {
var icon = AppConfig.applicationsIcon[app];
var cls = icon.indexOf('cptools') === 0 ? 'cptools '+icon : 'fa '+icon;
@ -1290,9 +1287,6 @@ define([
hide.push('openincode');
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')) {
hide.push('access', 'hashtag', 'properties', 'download');
}
@ -2914,7 +2908,6 @@ define([
'href': '#'
};
// XXX PREMIUM
var premium = common.checkRestrictedApp(type);
if (premium < 0) {
attributes.class += ' cp-app-hidden cp-app-disabled';
@ -3249,7 +3242,6 @@ define([
.text(Messages.type[type]));
$element.attr('data-type', type);
// XXX PREMIUM
var premium = common.checkRestrictedApp(type);
if (premium < 0) {
$element.addClass('cp-app-hidden cp-app-disabled');

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

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

Loading…
Cancel
Save