Base solution for your next web application

Activities of "paddyfink"

Answer

Hi,

I solved it by empty the cache.

You can check those:

  • CKEditor
  • TinyMCE
  • Kendo ui text editor

All of them support file uplodading. Currently I'm using CKEditor but I plan to switch to TinyMCe because they natively support uploading to azure storage via a plugin

Hello,

I implemented a feature like that. Basically this is it what I do. I use Stripe as the payment Gateway.

Let say you have 2 plans : Basic and Premium. Each plan correspond to an Edition in my application and in stripe. I implemented a custom Edition class and I add a property for the price. I've created an eventhandler on Edition Creation. So each time I create a Edition, I create a plan in stripe with the same Id and the Same name and the same price . Then you have to build a interface for the users to choose a stripe plan and subscribe to it. When a user subscribe, since the Id are the same, you get the corresponding Edition and you add the tenant to that Edition.

Of course you have to configure your edition to have the desired features.

Let me know if you need more info

hey guys, happy to see that i'm not the only one to embrace the movement.

I've started also to migrate my application to typescript. Actually I am completly changing the architecture by restructuring it into set of components (like here : <a class="postlink" href="http://blog.rangle.io/angular2-components/">http://blog.rangle.io/angular2-components/</a>) and removing the use of $scope, directives and controllers

I'm using this method to create my components in typescript : <a class="postlink" href="http://almerosteyn.com/2016/02/angular15-component-typescript">http://almerosteyn.com/2016/02/angular1 ... typescript</a>.

I use also typelite to automatically generate typescript interface from my Application Dtos : <a class="postlink" href="http://type.litesolutions.net/">http://type.litesolutions.net/</a>. The next step will be to use that to generate also appliations services in typescript, so that the application backend will always match the front end.

@Halil, I know you are working on porting abp to angular 2, but i think it will a good idea to change first the architecture of the current version by using components and typescript to make it angular 2 ready and facilitate the migration.

Answer

@adevell, here is a good article that could help you : <a class="postlink" href="http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app-using-asp-net-web-api-2-owin/">http://bitoftech.net/2014/07/16/enable- ... pi-2-owin/</a>

It's because ABP wrap json into a specific format. This might help you : #370@f1d4b2e2-93ef-48a1-aeae-a20aa6cb9fc6

A exemple of one of my implementation with angular :

Html :

<select class="" name="Tags" kendo-multi-select k-options="vm.selectOptions" k-ng-model="vm.tagfilter" k-on-change="changeTagFilter()"></select>

Javascript :

vm.selectOptions = {
                dataTextField: "title",
                autoBind: false,
                dataValueField: "id",
                placeholder:"Tags",
                filter: "contains",
                dataSource: {
                    type: "json",
                    "transport": {
                        read: {
                            url: "/api/services/app/tag/getTags"
                        }
                    },
                    schema: {
                        data: "result"
                    }
                }
            };

Hello,

I've implemented something like that to send email with attachment. this is my DTO :

public class AttachmentDto : EntityDto<long>
    {
        public string Name { get; set; }
        public string Content { get; set; }
        public string ContentType { get; set; }
        public int ContentLength { get; set; }
    }

But in order to convert my file into string, I've created a controller that receive the file, convert it into string and send the string back. Then I call my application service with the string. The controller looks like this :

public async virtual Task<JsonResult> AddAttachment()
        {
            try
            {
                //Check input
                if (Request.Files.Count <= 0 || Request.Files[0] == null)
                {
                    throw new UserFriendlyException(L("ProfilePicture_Change_Error"));
                }

                var file = Request.Files[0];

                // todo : put the limit in the settings
                if (file.ContentLength > 5242880) //Mg.
                {
                    throw new UserFriendlyException(L("EmailAttachmentSizeLimit"));
                }

                MemoryStream target = new MemoryStream();
                file.InputStream.CopyTo(target);
                byte[] data = target.ToArray();
                string base64String = System.Convert.ToBase64String(data, 0, data.Length);

                //Return success
                return Json(new MvcAjaxResponse(new AttachmentModel
                {
                    Content = base64String,
                    ContentType=file.ContentType,
                    Name=file.FileName,
                    ContentLength=file.ContentLength
                }));
            }
            catch (UserFriendlyException ex)
            {
                //Return error message
                return Json(new MvcAjaxResponse(new ErrorInfo(ex.Message)));
            }
        }

I

Hello, I'm using kendo ui with ABP.

If you have a SPA application, don't use kendo asp.mvc wrapper but kendo ui angular directives

I asked myself the same question few weeks ago. According to the DDD and as Halik suggested, It should be in a project Infrastructure and the infrastructure interfaces in the core Layer.

But instead of creating a new project, I just renamed the project xxx.EntityFramework to xxx.Infrastructure because that what it is. Infrastructure layer is for external sercices like Acces to the database or 3rd-party web services. So it should be Infrastructure instead of EntityFramework

Ok thanks.

DO you know how we can set the height of the jtable to make it full windows height?

Showing 1 to 10 of 27 entries