Activities of "alper"

There are standard bundles come from the framework itself. These are CSS and JavaScript bundles. You can get list of these files and remove/add. Open BookStoreWebModule.cs In ConfigureServices() method, add the below code

   Configure<AbpBundlingOptions>(options =>
            {
                options
                    .ScriptBundles
                    .Configure(StandardBundles.Scripts.Global, bundle => {
                        bundle.AddContributors(typeof(RemoveJqueryScriptContributor));
                    });
            });

And add this class,

public class RemoveJqueryScriptContributor : BundleContributor
        {
            public override void ConfigureBundle(BundleConfigurationContext context)
            {
                var jquery = context.Files.FirstOrDefault(x => x.EndsWith("jquery.js", StringComparison.InvariantCultureIgnoreCase));
                if (jquery != null)
                {
                    context.Files.Remove(jquery);
                }
            }
        }

This code removes jquery.js from the standard global scripts bundle.

@edirkzwager coud not reproduce your issue.

@edirkzwager I'll try to reproduce it in a scratch 2.7.0 and get back to you.

It can work but you need to create 2 seperate projects one for EF Core SQL provider and one for EF Core Postgresql. out of the box it doesn't support different providers in the same code-base. for your question, can you check the logs, maybe the host is unreacunreachable

@edirkzwager it seems like you are doing everything OK. but this code smells

context.Files.RemoveAll(x => x.StartsWith("/libs/jquery/jquery.js", StringComparison.InvariantCultureIgnoreCase));

if you run it in a Docker container (Linux OS) and in Windows it'll behave different. because directory seperator is different in both systems.

I would write this code as below:

context.Files.RemoveAll(x => x.EndsWith("jquery.js", StringComparison.OrdinalIgnoreCase));

@ninomartini is it Angular?

thanks @sean.alford, updated.

we keep this issue open, and let you know when we finish it. probably it will be finished in next milestone

I think the new one is Gravatar! Am I correct @armanozak?

Showing 1711 to 1720 of 1850 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30