Base solution for your next web application

Activities of "tusksoft"

Thank you for the confirmation! I reached out to the Metronic support team and confirmed that the Angular demo1 scss is the same as the Html demo 1 scss

https://devs.keenthemes.com/question/generating-bundles-from-angular-application

Hi @ismcagdas

We use built outputs of Metronic and those files are just minified during AspNet Zero's build. So, we don't rebuilt Metronic from its source code in AspNet Zero.

It would be very helpful to users to explicitly state this in the documentation that it is direct output from Metronic with no modifications. As of right now, the documentation does not guide users at all on the exact steps on generating bundles from metronic's source code. Even a link/path to Metronic's readme's would be helpful.

If you want, you can download Metronic's source code, build it and then replace Metronic bundles ( style.bundle.css and plugins.bundle.css) in AspNet Zero.

This is what I am talking about in my original post. I am building from metronic source; however, there are several implementations in Metronic's source code including an angular app. If AN0 is only using the build output from the Html folder, then I will probably need to reach out to Metronic's team to find out if the Angular app's styles (likely based on Demo1) can be brought to parity with the Html main theme's styles.

I just built the source from Html and the styles are still smaller than the style bundles in AN0. What exact version of Metronic 8 was AN0 11.4.0 built with? I am using Metronic 8.0.26

AN0 v11.4.0 (Metronic 8) Angular .net core

Trying to figure out exactly how styles are generated is an absolute pain. The only relevant AN0 docs I have found involve copying a theme. Documentation is severely lacking in this regard.

Where in the metronic source are theme bundles for AN0 being generated from? metronic_v8.x.x\html\theme? Can the angular app also be used for generating themes?

It seems like there are styles missing when generated from the angular app by extracting output via styles in the angular build. My changes in Metronic 8's angular.json for generating bundles:

"styles": [
  "node_modules/primeicons/primeicons.css",
  "node_modules/primeng/resources/themes/saga-blue/theme.css",
  "node_modules/primeng/resources/primeng.min.css",
  "src/styles.scss",
  {
    "input": "src/assets/sass/style.scss",
    "bundleName": "style"
  },
  {
    "input": "src/assets/sass/plugins.scss",
    "bundleName": "plugins"
  }
],

This generates css files in the build output that can be placed in our copy of the default theme for style.bundle.css and plugins.bundle.css (generated plugins css is much smaller than the default 68KB vs 622KB and styles bundle is also about 200KB less, unsure why)

Reason why I need to generate styles from the angular app is because we have had a large amount of redesign done via the Metronic Angular app and I need to be able to import the generated styles from that. Any insight you can provide on generating styles from Metronic source is greatly appreciated.

Hi @tusksoft

Did you also update abp-web-resources and abp-ng2-module to latest version ?

Yes. Our Angular project is using abp-web-resources version 5.7.0 and abp-ng2-module version 8.0.0. Our AN0 version is the latest version 11.4.0. However, now that I'm looking at the change log for AN0, I see that AN0 11.4.0 only includes ABP 7.4. NPM does not list a version 7.4.0 for the abp-ng2-module package, which is why we are using version 8.0.0 instead.

Hi @tusksoft

For now, you can copy https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Resources/Abp/Framework/scripts/libs/abp.signalr-client.js to your project and modify it according to your needs. We will add this option for the next release, please follow https://github.com/aspnetboilerplate/aspnetboilerplate/issues/6538

Hello @ismcagdas

We recently upgraded to ABP 8.0 and still do not see the withUrlOptions property available in the abp.signalr namespace. It appears that the abp.signalr.d.ts type definition file does not include the new property. When can we expect this to be fixed?

  • What is your product version? 10.2.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .NET Core
  • What is ABP Framework version? 6.2.0

We have a custom SignalR hub that is meant to handle long-running connections, usually for multiple days. This is a problem with auth tokens because when they expire, the connection dies. The vanilla SignalR NPM package from Microsoft exposes an accessTokenFactory callback in the HubConnectionBuilder options, but the ABP abstraction for SignalR does not provide access to these options. How can we manage refreshing auth tokens on the client side for long-running SignalR connections?

So is that to say that if you're using implicit/automatic UoW management you always need to use UnitOfWorkManager.Current.SetTenantId and when you're managing your on UoW you can use AbpSession.Use before the UoW begins to achieve the same effect? If that's correct, is there a reason to have two separate methods instead of just one? Is there a useful scenario for this?

Answer

Is this still the recommended path when performing an A0 framework upgrade? Delete unapplied A0 framework migrations manually and add a new migration using add-migration?

Shared via email.

A0 v10.2.0 Angular- single solution .NET5

In short, we cannot get this feature to work. Wildcard DNS and SSL cert are configured and working properly. The A0 instance responds to all subdomains and the primary domain of "mydomain.com" We have set ClientRootAddress and ServerRootAddress to https://{TENANCY_NAME}.mydomain.com, and used the same value for the remoteServiceBaseUrl and appBaseUrl in the Angular appconfig.production.json. Before modifying the Angular production config the tenant switcher still showed up for the mydomain.com and all subdomains, so any tenant could be selected. After modifying the Angular config the switcher no longer displays, but the tenant is still not being pulled from the subdomain. The old tenantId cookie persists from the switcher, and upon clearing browser data or trying to log in via a private window the tenant is lost. As an aside, the site will respond to any subdomain whether it is associated with a tenant or not. What are we missing to get this working properly?

Showing 1 to 10 of 39 entries