How can I format localized text in html ?
Example :
{{l('MyTextKey')}}
Would return (in English for instance) :
<span><b>MyText</b><br/>is formatted in the current language</span>
Which would render on screen :
MyText is formatted in the current language
We're using abp 7.2.3 with angular
Our application is pretty big (15MB) and we would like to reduce its size. One of the things we can do is to remove the biggest unused packages.
With webpack-bundle-analyzer, we determined that the following packages are quite big :
Q1. Is it necessary to keep both momentjs AND momentjs-min ? Q2. We'd like to include only locales we need. In order to do that, we tried moment-locales-webpack-plugin + ngx-build-plus but it doesn't work on our code (even on a freshly downloaded template). Any recommendation to make it work ? Our current workaround is to replace moment locale folder with a custom locale folder post build but it's not super clean. ~~Q3. Can we safely remove quill without breaking abp features ?~~ EDIT: I just found out that someone in the team needs the primeng editor, which is based on quill, so forget about this one. Q4. How can we adjust the Web.Host server log to know which request completed in how much time ? (example : "Request finished in xx ms (<REQUEST_NAME>)"). This would help us identify which backend requests need optimization.
Our project is on aspnetzero 7.2.3, with asp.net core & angular .net framework 4.6.1
I have a dto with an enum property :
public MyEnumType MyProperty { get; set; }
with MyEnumType :
public enum MyEnumType { Undefined = 0, First = 1, Second = 2, }
In the service-proxies however, my enum is translated like this :
export enum MyEnumType { _0 = 0, _1 = 1, _2 = 2, }
Is there a way to have access to the string names of an enum in the frontend ?
Hello,
does abp (CORS, etc) support the use of same port for the frontend & backend, with a different DNS ?
saying that for WAN : backend (443): https://server.project.blabla.com frontend (443): https://project.blabla.com
for IIS
i've read that is how it's done in IIS, but i wanted to be sure that there is no issue for abp about this point (since i'll have to wait few days for the dns modification)
thanks for the clarification ! (& sorry if it has already been asked)
We created a lot of custom user settings in our app using a custom SettingProvider class.
How can we allow our users to change these settings ?
We can of course update for the current session :
abp.setting.values[settingName] = settingValue;
but it's not recorded in database.
We're building an angular application with two separate web pages which share services and components.
We would like one of these pages to use the default Metronic theme (with the menu on the left side) and the other one to use the theme2 (with the menu in the topbar). Is it possible to use both themes in the same app ? We started from the zero 6.4 template.
Hello guys,
i think i already saw this question/response few months ago but i can't find it back. (sorry for my poor research)
i'm using aspnetzero 6.7 (efcore + angular).
Columns for AuditedEntity are set at the start of the table in dbmigration. Is there anyway to declare them at the end ?
maybe declaring them explicitly (+ovveride) in the class a the correct position could do the trick but i was thinking if there was anything simplier.
thanks !
Hello,
for deployement, i need to install my app/server within a LAN and use it on both LAN and WAN with distinct URLs.
i need to be accessed by LAN, which i does by
appconfig.json (client abp) :
"remoteServiceBaseUrl": "http://server:41010",
"appBaseUrl": "http://server",
appsettings.json (backend)
"ServerRootAddress": "http://server:41010/",
"ClientRootAddress": "http://server/",
"CorsOrigins": "http://server",
that works fine.
Next step is to also allow the application to be accessible via WAN.
The required url is something like that : "http://server.xxx.xxxx.xx" And that's where i'm blocked.
the "appBaseUrl" defined is used by CORS on server to validate the request. I either can put the "http://server" or "http://server.xxx.xxxx.xx" but not both of them.
Do you have any idea how i can resolve that ?
knowing that ... :
the only possibility that I see is to duplicate the client/frontend in 2 separate sites, and create virtual folders on IIS to keep the same port. It seems a little bit complex.
So, my question is : can we use multiple client URL "appBaseUrl") : "http://server" "http://server.xxx.xxxx.xx" in a single frontend app configuration, and allowing these urls in CORSORIGINS in backend ?
nb : sorry if it's a silly question, i didn't found any related question in the forum.
thanks !
daws
I'm designing app service methods in my backend and I call them in angular through the generated service.proxies.
public class MyAppService : ApplicationService, IMyAppService
{
public MyMethod(MyInput input){
...
}
}
public class MyInput {
DateTime start;
DateTime end;
MyDto dto;
}
public class MyDto {
property1 {get; set;}
...
property20 {get; set;}
}
My issue is that, in the frontend, the dto class is split into each of its fields when generating the proxy with swagger :
myServiceproxy{
myMethod( DateTime start, DateTime end, property1, ..., property20 ) {
...
}
}
Can I generate it so that it doesn't split my DTO object ? Like this :
myServiceproxy{
myMethod( DateTime start, DateTime end, MyDto dto ) {
...
}
}
(To be more specific, one of the properties of MyDto is also a Dto. But both DTO classes are used extensively as is in the frontend)
I'm using ASP.NET zero 5.2, ASP.NET Core + Angular
Hello there !
note: this subject is not related to #817@a1b35b3f-8ba1-4fb2-b52e-551e1df08387
<ins>current status</ins> applications
localization sources
Code in the application when we can select the localization source to use:
export abstract class AppComponentBase {
//localizationSourceName = AppConsts.localization.defaultLocalizationSourceName;
localizationSourceName = 'App';
Question : for each application, i want to use multiple sources without specifing it in each displayed text:
because I use some translations from abp for common part (user panel, errors etc) and I want to avoid duplicate everything in my 'App' file.
I saw in the doc that by default this is only one source. Do you see any way to use both sources (maybe a little rewrite of localizationService) IF i care about not having duplicate keys in the list of my translation.
thanks for your help ;)