Remove XXX

This commit is contained in:
yflory 2021-10-18 15:50:05 +02:00
parent 2bc0131904
commit 73eb80ea30
10 changed files with 0 additions and 18 deletions

View file

@ -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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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');

View file

@ -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');

View file

@ -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);

View file

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