Base solution for your next web application

Activities of "paradoxit"

With the Angular 3.3.0 solution, how can I eager load the admin module? Currently when the site loads and I click any of the admin pages there is a delay of 3-4 seconds for the module to load.

Any advice would be much appreciated.

Thanks,

David Hawkins

I have painstakingly upgraded to 3.3.0 and cannot get subdomain tenant detection working. No matter what sub-domain I have it just logs me in as ./admin.

I could resolve the issue with the previous version by updating ExtractTenancyNameFromUrl but this method is no longer used in the new version.

My questions are;

  • What should I have in the following app.config.json and appsettings.json (WebSiteRootAddress). I have tried numerous combinations of domains.
  • Where is tenant detection now occurring.

Thanks in advance,

David HAwkins

I'm having a number of issues with tenant sub-domains in the previous Angular2 release.

Here is my appconfig.json

{
    "remoteServiceBaseUrl": "https://{TENANCY_NAME}.myapidomain.co.uk",
    "appBaseUrl": "https://{TENANCY_NAME}.mydomain.co.uk"
}

Issue 1

  • When I click logout I get redirected to <a class="postlink" href="https://null.mydomain.co.uk">https://null.mydomain.co.uk</a> Can you please advise where the code is that determines this URL so I can fix it.

Issue 2

  • Tenant detection is not working in WebUrlService (ExtractTenancyNameFromUrl). I can manually return a tenant name and this works for each tenant.

My appsettings.json has

"WebSiteRootAddress": "https://{TENANCY_NAME}.mydomain.co.uk/"

Any help or advice on resolving this will be much appreciated.

Kind regards,

David Hawkins

When I deploy my project to Azure my favicon does not load. In the network the response is the homepage and not the icon data.

Can someone please advise what changes I need in the web.config to serve the file?

Thanks

David

Currently I have two domains

Angular2 -> {tenant}.domainA.com API -> {tenant}.api.domainA.com

It appears the the sub-domain determines the tenant on the API side, however is it possible to have the API hosted at api.domainA.com and determine the tenant based on the domain the request came from (similar to the allow on the CORS).

Otherwise I need to purchase two * SSL certificates.

Any advice on how to achieve this would be much appreciated.

Thanks, David Hawkins

For dev only, how do I speed up Angular 2 compilation? Currently it's taking 20-30 seconds to refresh any changes.

In dev I don't really care about compressing the content or running lints.

Any advice would be great!

Thanks, David

Where/how do I change the loading animation when first visiting the site? It's currently a spiner with circles of grey and black.

Thanks, David

I am trying to test notifications and noticed that I only receive notifications if I call this method when I send a notification;

await _notificationSubscriptionManager.SubscribeToAllAvailableNotificationsAsync(new UserIdentifier(1,4));

Then I can call below code and it works

await _appNotifier.SendMessageAsync(new UserIdentifier(1, 4), "Test", NotificationSeverity.Success);

Also it works if before I send the notification I manually subscribe using

_notificationSubscriptionManager.SubscribeAsync(new UserIdentifier(1, 4), "App.SimpleMessage");

I made sure in my database that I have an AbpNotificationSubscriptions for UserId 4 for App.SimpleMessage.

It's like the notification subscriptions in the database are not doing anything.

How can I make the notification work without having to subscribe to all, am I missing something important?

Thanks, David

Question

What options are there for restricting roles?

Can roles be depending on features/editions or even specific users?

I want to be able to prevent certain people seeing roles which may not apply to that tennant.

Thanks in advance for any information/advice.

Kind regards, David Hawkins

Question

On the .net core MPA solution how do I disable automatic build of the solution every time I save a file. I want to handle auto-build using dotnet-watch instead.

Thanks in advance. David Hawkins

Showing 11 to 20 of 21 entries