Base solution for your next web application

Activities of "SASIMEXICO"

The MVC JQuery tutorial works fine for ASP.NET Angular but with some changes:

  1. Upgrade Swashbuckle (4 nuggets) nugget to latest.
  2. Run yarn add @elsa-workflows/elsa-workflows-studio into solution root
  3. Run yarn add @elsa-workflows/elsa-workflow-designer into solution root
  4. Run yarn add monaco-editor into solution root
  5. Go to node_modules created folder for yarn and copy 3 distribution folders
  6. Then create a Elsa folder into wwwroot and paste 3 copied foldres from node_modules
  7. Modify _Host:

`

href="/Elsa/elsa-workflows-studio/assets/images/favicon-32x32.png"

href="/Elsa/elsa-workflows-studio/assets/images/favicon-16x16.png"

href="/Elsa/elsa-workflows-studio/assets/fonts/inter/inter.css"

href="/Elsa/elsa-workflows-studio/elsa-workflows-studio.css"

src="/Elsa/monaco-editor/min/vs/loader.js"

src="/Elsa/elsa-workflows-studio/elsa-workflows-studio.esm.js"

monaco-lib-path="Elsa/monaco-editor/min"

`

Then works! Don't know why can't use what is into Elsa.Designer and need to copy manually all folders.

The MVC JQuery tutorial works fine for ASP.NET Angular but with some changes:

  1. Upgrade Swashbuckle (4 nuggets) nugget to latest.
  2. Run yarn add @elsa-workflows/elsa-workflows-studio into solution root
  3. Run yarn add @elsa-workflows/elsa-workflow-designer into solution root
  4. Run yarn add monaco-editor into solution root
  5. Go to node_modules created folder for yarn and copy 3 distribution folders
  6. Then create a Elsa folder into wwwroot and paste 3 copied foldres from node_modules
  7. Modify _Host:

`

href="/Elsa/elsa-workflows-studio/assets/images/favicon-32x32.png"

href="/Elsa/elsa-workflows-studio/assets/images/favicon-16x16.png"

href="/Elsa/elsa-workflows-studio/assets/fonts/inter/inter.css"

href="/Elsa/elsa-workflows-studio/elsa-workflows-studio.css"

src="/Elsa/monaco-editor/min/vs/loader.js"

src="/Elsa/elsa-workflows-studio/elsa-workflows-studio.esm.js"

monaco-lib-path="Elsa/monaco-editor/min"

`

Then works! Don't know why can't use what is into Elsa.Designer and need to copy manually all folders.

This not working for ASP.NET Core Angular. We are using this in Startup.cs:

using Abp.AspNetCore; using Abp.AspNetCore.Mvc.Antiforgery; using Abp.AspNetCore.SignalR.Hubs; using Abp.AspNetZeroCore.Web.Authentication.JwtBearer; using Abp.Castle.Logging.Log4Net; using Abp.Extensions; using Abp.Hangfire; using Abp.PlugIns; using Abp.Timing; using Castle.Facilities.Logging; using GenTime.AppService; using GenTime.Authorization; using GenTime.Chat; using GenTime.Configuration; using GenTime.Configure; using GenTime.EntityFrameworkCore; using GenTime.Identity; using GenTime.Schemas; using GenTime.Web.Chat.SignalR; using GenTime.Web.Common; using GenTime.Web.HealthCheck; using GenTime.Web.IdentityServer; using GenTime.Web.Swagger; using GraphQL.Server; using GraphQL.Server.Ui.Playground; using Hangfire; using HealthChecks.UI.Client; using IdentityServer4.Configuration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.HealthChecks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Server.Kestrel.Https; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; using Newtonsoft.Json; using Owl.reCAPTCHA; using StackExchange.Redis; using Stripe; using System; using System.IO; using System.Linq; using System.Net; using System.Reflection; using System.Threading.Tasks; using HealthChecksUISettings = HealthChecks.UI.Configuration.Settings; using ILoggerFactory = Microsoft.Extensions.Logging.ILoggerFactory; using Microsoft.Extensions.Azure; using Azure.Storage.Queues; using Azure.Storage.Blobs; using Azure.Core.Extensions; using Elsa.Persistence.EntityFramework.Core.Extensions; using Elsa.Persistence.EntityFramework.Sqlite; using Elsa; using Microsoft.AspNetCore.Mvc.Versioning; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Mvc; using Abp.AspNetCore.Mvc.Results; using Microsoft.AspNetCore.Mvc.Filters; using Abp.Dependency; using Abp.AspNetCore.Configuration; using Abp.AspNetCore.Mvc.Results.Wrapping; using Abp.AspNetCore.Mvc.Extensions; using Abp.Reflection.Extensions; using Elsa.Server.Api.Endpoints.WorkflowDefinitions;

When swagger is enabled cause error in:

        if (WebConsts.SwaggerUiEnabled)
        {
            //Swagger - Enable this line and the related lines in Configure method to enable swagger UI
            services.AddSwaggerGen(options =>
            {
                options.SwaggerDoc("v1", new OpenApiInfo() { Title = "GenTime API", Version = "v1" });
                options.DocInclusionPredicate((docName, description) => true);
                options.ParameterFilter<SwaggerEnumParameterFilter>();
                options.SchemaFilter<SwaggerEnumSchemaFilter>();
                options.OperationFilter<SwaggerOperationIdFilter>();
                options.OperationFilter<SwaggerOperationFilter>();
                options.CustomDefaultSchemaIdSelector();
            }).AddSwaggerGenNewtonsoftSupport();
        }`

ERROR: Could not load type 'Swashbuckle.AspNetCore.SwaggerGen.IDataContractResolver' from assembly 'Swashbuckle.AspNetCore.SwaggerGen, Version=6.2.1.0, Culture=neutral, PublicKeyToken=d84d99fb0135530a'.

and if swagger is disabled cause error in:

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapHub<GensecureHub>("/signalr-gensecure");

            // For Dashboard.
            endpoints.MapFallbackToPage("/_Home");

            endpoints.MapControllerRoute("defaultWithArea", "{area}/{controller=Home}/{action=Index}/{id?}");
            endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");

            if (bool.Parse(_appConfiguration["HealthChecks:HealthChecksEnabled"]))
            {
                endpoints.MapHealthChecks("/health", new HealthCheckOptions()
                {
                    Predicate = _ => true,
                    ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
                });
            }
        });
   

ERROR: Unable to load one or more of the requested types. Could not load type 'Swashbuckle.AspNetCore.SwaggerGen.IDataContractResolver' from assembly 'Swashbuckle.AspNetCore.SwaggerGen, Version=6.2.1.0, Culture=neutral, PublicKeyToken=d84d99fb0135530a'.

When you will publish a good tutorial for ASP.NET Core Angular?

Thanks!

With dashboard too?

This tutorial works for ASP.NET Core Angular? Or only MVC JQuery?

It's solved ELSA 2 in 10.4?

Once again, this just defines what widgets are avaliable for each Dashboard. What we want to do is define the default location and size of the widgets, so that by default the dashboard isn't empty when the users access it for the first time

That only defines it. We mean, creating and defining the default pages and widgets in that dashboard. For example, setting the dashboard to have by default, 5 widgets ocupying 2x2 in the gridster

Prerequisites

  • What is your product version?
    • 10.3
      
  • What is your product type (Angular or MVC)?
    • Angular 
      
  • What is product framework type (.net framework or .net core)?
    • .NET Core

Question

Since 10.x came out what is the intended way to create a default Dashboard?

When adding new entries to MenuProvider.cs we wanted to add a little "sub menu"(collapsable list for example), but NavigationMeuItem doesn't seem to have any sort of property to allow that. Is there an official/intended implementation for this?

Showing 11 to 20 of 79 entries