Since I ran a build for production (and subsequently successfully published) I have a problem with debugging in VS Code. I am not hitting breakpoints and have to stop and relaunch the debugger for changes to be delivered to the browser. After this I can only apply breakpoints in a new tab in the editor marked as "read only inlined content from source map". I believe this has something to do with source map location and possibly down to a gulp process during the build. I'm sure it's down to my inexperience and not a Zero problem but it's as frustrating as hell.
Can anyone here throw me any pointers
aspnet-core, angular, 5.1.0 Hi Guys, I have spent a long time searching the aspnet-core and angular projects to try find the configuration I need to load into NSwag Studio to generate service-proxy and Dto code from the Zero web Api. I am doing this to create a service proxy file in an Ionic app. [attachment=0:3qfnc0br]Capture.PNG[/attachment:3qfnc0br] I need to know the paths for the .NET assembly path (I think I have this correct), whether I need the app.config or web.config and any additional paths to search for additional files. In a standard .NET Core project I use the dll from the release folder, the config from the root and the .nuget folder from the user folder. I'm not having any luck with Zero.
Help needed generating service proxies for Ionic project anyone?
I am having problems creating OrganizationUnits when seeding the project.
SeedHelper is a static class so I can not inject a repository, the appservice or the manager.
Inserting using the context is not possible because the entity requires a value for Code.
There is the possibility of adding project dependencies but this would break all separation of concerns.
My question is:
How do I create OrganizationUnits during seeding?
aspnet-core, angular: 5.2.0 I have implemented the Primeng datatable with the dropdown menu template as per your templates. Rather than implementing a modal I am redirecting to a new page. When the new page is displayed the drop-down menu remains in place. Select: [attachment=1:2cc9kuts]Capture.PNG[/attachment:2cc9kuts] Next page: [attachment=0:2cc9kuts]Capture1.PNG[/attachment:2cc9kuts] My component layout is: mainComponent --ListComponent --ReadComponent --CreateOrEditComponent My question is:
How do I remove the drop-down menu?
The version of the RAD tool in 5.2.0 offers the capability to modify client templates. Which is great but it will only create the two components in the angular FileTemplates folder. I tried to add a third template in this folder but it was ignored by the generator. Would it be possible to modify generation code to iterate through this folder and create a folder for the ComponentTemplate.txt (as it currently does) and then a sub-folder within this folder for each of the additional component templates? Thus for my own structure we would have:
component
--list-component
--create-or-update-component
--read-component
I don't think this would be a large change and it would give support to those of who do not like CRUD operations in modals and would also give us a details page for viewing related information. In addition the generation tool, carefully used, could also be used to generate client code for different platforms. For me I can see how I could use this for generation of code for the Ionic platform.
aspnet, angular, 5.1.0 If I am not mistaken 5.10 implements PrimeNG 4.2.2. Does that mean we still use DataTable and not TurboTable? I can't see "Prime" in the 5.3 milestone. Are there plans to upgrade?
I have three editions based on the number of devices registered with the system. The number of devices is defined as a feature. In DefaultEditionCreator I create these editions, for example here is the default edition:
var defaultEdition = _context.Editions.IgnoreQueryFilters().FirstOrDefault(e => e.Name == EditionManager.DefaultEditionName);
if (defaultEdition == null)
{
defaultEdition = new SubscribableEdition {
Name = EditionManager.DefaultEditionName,
DisplayName = EditionManager.DefaultEditionName,
MonthlyPrice = 200,
AnnualPrice = 2000,
TrialDayCount = 14,
WaitingDayAfterExpire = 3
};
_context.Editions.Add(defaultEdition);
_context.SaveChanges();
CreateFeatureIfNotExists(defaultEdition.Id, AppFeatures.MaxUserCount, false);
CreateFeatureIfNotExists(defaultEdition.Id, AppFeatures.MaxDeviceCount, true);
}
Now I create my ten device edition:
var tenDeviceEdition = _context.Editions.IgnoreQueryFilters().FirstOrDefault(e => e.Name == "10 devices");
if (tenDeviceEdition == null)
{
tenDeviceEdition = new SubscribableEdition
{
Name = "10 devices",
DisplayName = "10 devices",
MonthlyPrice = 350,
AnnualPrice = 3500,
WaitingDayAfterExpire = 7
};
_context.Editions.Add(tenDeviceEdition);
_context.SaveChanges();
CreateFeatureIfNotExists(tenDeviceEdition.Id, AppFeatures.MaxUserCount, false);
CreateFeatureIfNotExists(tenDeviceEdition.Id, AppFeatures.MaxDeviceCount, true);
}
Now I want to set the value of MaxDeviceCount for the ten device edition to 10. The method DefaultEditionCreator.CreateEditions() is synchronous. All of the methods for EditionManager and IEditionAppService are asynchronous. I want to set the edition feature value in a similar way to that used in the test, EditionAppService_Tests.Should_Update_Edition():
var output = await _editionAppService.GetEditionForEdit(new NullableIdDto(defaultEdition.Id));
//Changing a sample feature value
var chatFeature = output.FeatureValues.FirstOrDefault(f => f.Name == AppFeatures.ChatFeature);
if (chatFeature != null)
{
chatFeature.Value = chatFeature.Value = "true";
}
My question is:
Is there any way to set feature values for editions in DefaultEditionCreator.CreateEditions()?
aspnet-core, angular; 5.1.0 Are there any tests written for
MaxUserCount
?
I have searched github for Abp ([https://github.com/aspnetboilerplate/aspnetboilerplate/tree/dev/test])) and can't find any examples and there are no examples in the test project.
It would be nice to have this feature. I am extremely lazy when it comes to writing code and would just like you to show me best practices for your system.
Then I can copy your code for my own features... ;)
I have just added a 5.1.0 Angular project to github and I get the following message:
The handlebars dependency defined in package-lock.json has a known moderate severity security vulnerability in version range < 4.0.0 and should be updated.
Is this a known vulnerability which is being worked on?
Is the are any sample code for this functionality beyond the few lines in the documentation for Entities?