"nlachmuthDev" की गतिविधियाँ

Hi,

I tested the solution provided above with a fresh project with blazor server side and tiered and it worked. Wouldn´t propose it if not. My guess would be there might be another issue in the project.

But for your question

Could you guys .. provide me a proper solution .. so that.. what ever CSS and JS files those I am using ..should get loaded once i build..!

One think you can do to always add your css/js files is to include them directly in the _Host.cshtml like this (see the link and script element in head):

If you still face issues with that solution there must be some other reason. It would help then if you send a zip of the project to me ( nico@chrobyte.de ) so i can help you fix it.

Kind regards Nico

you need to add the java script to the script bundles as explained above by me.

you added them to the StyleBundles.

correct would be:

private void ConfigureBundles()
{
    Configure<AbpBundlingOptions>(options =>
    {
        // MVC UI
        options.StyleBundles.Configure(
        BasicThemeBundles.Styles.Global,
        bundle =>
        {
        bundle.AddFiles("/global-styles.css");
        }
    );

    // Blazor UI
    options.StyleBundles.Configure(
        BlazorBasicThemeBundles.Styles.Global,
        bundle =>
        {
            bundle.AddFiles("/site.css");
            bundle.AddFiles("/main.css");
            bundle.AddFiles("/blazor-global-styles.css");
            //You can remove the following line if you don't use Blazor CSS isolation for components
            bundle.AddFiles("/AppName.Blazor.styles.css");
        }
    );
    
    // Scripts
    options.StyleBundles.Configure(
        "MyGlobalBundle",
        bundle =>
        {
            bundle.AddFiles("/js/Scroll.js");
            bundle.AddFiles("/js/exporttoexcel.js");
            bundle.AddFiles("/js/Notify.js");
            bundle.AddFiles("/js/spinner.js");
        }
    );
}

Also dont forget: You need to add the following line to the _Host.cshtml file in the Blazor Page:

<abp-script-bundle name="MyGlobalBundle" /> Also place the js file inside the wwwroot folder.

Once again here is the documentation: https://docs.abp.io/en/abp/latest/UI/Blazor/Global-Scripts-Styles

Just for clarification: You mean your added css and js files of the bundles? Rest of bundled css and js of lepton x is available?

For deployed app: Can you name some of the pages where the bundles are missing? Maybe the pages where the bundles dont load are MVC Pages. Then you would need to add the files also to the mvc global bundles.

For local development: Does the browser try to load the resources? Do you get any errors that you could share?

No problem :)

You can add them there as well.

Here is an example:

private void ConfigureBundles()
{
    Configure<AbpBundlingOptions>(options =>
    {
        // MVC UI
        options.StyleBundles.Configure(
            LeptonXThemeBundles.Styles.Global,
            bundle =>
            {
                bundle.AddFiles("/global-styles.css");
            }
        );

        // Blazor UI
        options.StyleBundles.Configure(
            BlazorLeptonXThemeBundles.Styles.Global,
            bundle =>
            {
                bundle.AddFiles("/blazor-global-styles.css");
                //You can remove the following line if you don't use Blazor CSS isolation for components
                bundle.AddFiles("/ABP.Support.UpdateAuditLogsMissing.Blazor.styles.css");
            }
        );
        
        // Scripts
        options.StyleBundles.Configure(
            "MyGlobalBundle",
            bundle =>
            {
                bundle.AddFiles("/my-js.js");
            }
        );
    });
}

You need to add the following line to the _Host.cshtml file in the Blazor Page:

<abp-script-bundle name="MyGlobalBundle" />

Also place the js file inside the wwwroot folder.

Kind Regards Nico

Sorry about that.

First place your css file inside the wwwroot directory of the Blazor-Project.

Then you can add the additional css to the ConfigureBundles-Method inside the BlazorModule of your solution.

private void ConfigureBundles()
{
    Configure<AbpBundlingOptions>(options =>
    {
        // MVC UI
        options.StyleBundles.Configure(
            LeptonXThemeBundles.Styles.Global,
            bundle =>
            {
                bundle.AddFiles("/global-styles.css");
            }
        );

        // Blazor UI
        options.StyleBundles.Configure(
            BlazorLeptonXThemeBundles.Styles.Global,
            bundle =>
            {
                //**Add it to the bundle here**
                bundle.AddFiles("/blazor-global-styles.css");
                //You can remove the following line if you don't use Blazor CSS isolation for components
                bundle.AddFiles("/ABP.Support.UpdateAuditLogsMissing.Blazor.styles.css");
            }
        );
    });
}

Hope that helps

Hi,

you could use the BundleContributor to add your custom css file.

Here is the documentation: https://docs.abp.io/en/abp/latest/UI/Blazor/Global-Scripts-Styles

If you need futher assistance let me know.

Kind regards Nico

उत्तर

You can configure the audit functionality to log get requests.

add this to your ConfigureServices method inside your module:

Configure<AbpAuditingOptions>(options =>
{
    options.IsEnabledForGetRequests = true; //Enable auditing for get requests
});

You can find a full list of available options for audit logging here: https://docs.abp.io/en/abp/latest/Audit-Logging#abpauditingoptions

उत्तर

After internal discussion with the core team, I found out that the nuget feeds for commercial are based on a custom nuget server implementation and there wont be any changes made to support the explorer list feature for the commercial nuggets. So there wont be the functionality to search for commercial nuget packages.

If you want to add a module to your solution please use the abp suie or cli to do so.

I refunded the question for you.

57 प्रविष्टियों में 41 से 50 दिखा रहा है
Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11