When redis is on it doesn't work ... when redis is off it works
I have redis installed ... and is it right that the *.Web
project doesn't use redis and only the *.Public.Web
project uses redis??
Hi learnabp
Are you using same Redis for your Web & Web.Public projects?
No ... I am not using Redis on the *.Web
Or *Public.Web
projects we have commented it out in the COnfigure Method.
In fact the template doesn't have redis on the **.Web
project but it is commented out in *.Public.Web
project
Cofigure Method of *.Web
Configure Method of *.Public.Web
Dont really understand how ABP has build the Subscription & Payment System!
the documentation is no good in explaining how it is implemented!
How can a tenant be created using subscrition & payment from the Public Site ??
Also why is the Payment Menu shown in a Tenant where they can add payment gateway? shouldn't it only be avalible to the host??
see below i am logged in as a "Test Tenant" and i can see the Payment Menu and can change the Plans as a Tenant admin
I am trying to doenload source code from abp suite version 4.4.0 and i am getting the following error
'<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
infact when i try and download the source for any other module i get the above error
can you please help ?
I have tried again and i still have the following two issues
I am generating the Solution from abp suite
following is the input screen
Issues found
I am not trying to show you that error i am trying to show you the warnings i am getting
Unknown Parameter closeOnEsc
and Unknown Paramter buttons
problem is with the way Confirm is implemented, i have tried to implement confirm see below
var abp = abp || {};
(function ($) {
if (!sweetAlert || !$) {
return;
}
/* DEFAULTS *************************************************/
abp.libs = abp.libs || {};
abp.libs.sweetAlert = {
config: {
'default': {
},
info: {
icon: 'info'
},
success: {
icon: 'success'
},
warn: {
icon: 'warning'
},
error: {
icon: 'error'
},
confirm: {
icon: 'warning',
title: 'Are you sure?',
showCancelButton: true,
confirmButtonText: "Yes",
cancelButtonText: "Cancel",
reverseButtons: true
//buttons: ['Cancel', 'Yes']
}
}
};
/* MESSAGE **************************************************/
var showMessage = function (type, message, title) {
if (!title) {
title = message;
message = undefined;
}
var opts = $.extend(
{},
abp.libs.sweetAlert.config['default'],
abp.libs.sweetAlert.config[type],
{
title: title,
html: message
}
);
return $.Deferred(function ($dfd) {
Swal.fire(opts).then(function () {
$dfd.resolve();
});
});
};
abp.message.info = function (message, title) {
return showMessage('info', message, title);
};
abp.message.success = function (message, title) {
return showMessage('success', message, title);
};
abp.message.warn = function (message, title) {
return showMessage('warn', message, title);
};
abp.message.error = function (message, title) {
return showMessage('error', message, title);
};
abp.message.confirm = function (message, titleOrCallback, callback) {
var userOpts = {
html: message
};
if ($.isFunction(titleOrCallback)) {
//closeOnEsc = callback;
callback = titleOrCallback;
} else if (titleOrCallback) {
userOpts.title = titleOrCallback;
};
// userOpts.closeOnEsc = closeOnEsc;
var opts = $.extend(
{},
abp.libs.sweetAlert.config['default'],
abp.libs.sweetAlert.config.confirm,
userOpts
);
return $.Deferred(function ($dfd) {
Swal.fire(opts).then(function (result) {
callback && callback(result.isConfirmed);
$dfd.resolve(result.isConfirmed);
});
});
};
abp.event.on('aburationInitialized', function () {
var l = abp.localization.getResource('AbpUi');
abp.libs.sweetAlert.config.confirm.title = l('AreYouSure');
abp.libs.sweetAlert.config.confirm.buttons = [l('Cancel'), l('Yes')];
});
})(jQuery);
i ran gulp
and looks like its working