Starts in:
1 DAY
16 HRS
18 MIN
4 SEC
Starts in:
1 D
16 H
18 M
4 S

Activities of "learnabp"

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

OKay what ever you did now workings

can you explain what was wrong?

I am able to download the source now

Answer

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

  • Open the solutions and you will find that the ABP License is missing in appsettings.jason and when you run the DB Migrator project you getting a License missing error.
  • When i run the public site i get the following error

I have figured this out can i get this question back?

The way i figured this out was by overwriting the files in /Pages/Identity/Users folder

introducing a variable in the index.js

and in the create.js

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

lot of things break when using SweetAlert2

i am getting the folowing errors

i ran gulp and looks like its working

Showing 31 to 40 of 93 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06