Swashbuckle cannot change index.html (CustomAsset doesn't exist) - html

I'm using Swashbuckle for my ASP.NET core project and I want to modify my index.html and I saw this page: https://github.com/domaindrivendev/Swashbuckle/tree/swagger_2.0#provide-your-own-indexhtml that explains exactly how to do that, but the thing is that the method CustomAsset method doesn't seem to exist anymore. I can use the InjectOnCompleteJavascript method and InjectStylesheet without any problem, but there's no CustomAsset to include my html page. Do you know if there's another way to replace the swagger UI?
Thanks,
Claude

I was cursing why this method was not found in dotnetcore.
I moved through from version 1.0.0 of Swashbuckle.AspNetCore and found that at version 1.2.0 a new property appeared called IndexStream
This looks like the new way to provide an Index.html override.

Related

How to load HTML after LoadString() deprecation

I'm using CefSharp WinForms on a .NET project and after upgrading on a version greater than 75.x, I cannot use the method "LoadString" any more. I made some research on web for alternative solution but no luck so far. Some info regarding this issue can be found on "https://magpcss.org/ceforum/viewtopic.php?f=6&t=17231" but it seems that it is not so clear how to solve this problem.
Basically, I was using the above method to load HTML string into the browser (e.g. LoadString("hello world- this is my html", "about:blank")). Now if I use the "LoadHtml" method, I'm getting an empty page.
Did anyone else had a similar issue and found a solution for it?

abp.auth.gantedPermissions is always empty

I am trying to follow these examples:
http://aspnetboilerplate.com/Pages/Documents/Authorization
Everything works fine in backend, but in JavaScript frontend, abp.auth.gantedPermissions is empty.
I'm probably missing something but I have no clue what it could be.
abp.auth.gantedPermissions is misspelled. It should be abp.auth.grantedPermissions.
If you just misspelled it when writing the question, you can try the following:
Add AbpZeroCoreModule as a dependency of your Core module. The reason this fixes the issue is that, if the AbpZeroCoreModule is not referenced, the NullPermissionChecker is used and as the name implies, it doesn't provide any permissions at all.

FullFragging example

Is there a FullFragging example with an ActionBar? I don't want to use the support library and I'm having a hard time translating my app from straight up Android to mvvmcross with full fragging.
Thanks.
Possible duplicate of this?
MvxFragments are based on the support library so that it works back to Android 2.2. In the end it looks just like the same thing. I ended up implementing this and it basically just exists in the action bar. You have to set up the tabhost and etc in the xml but I would look at this example.

MVVMCross MvxImageView not displaying picture

I use MvxImageView with a binding to ImageUrls with the following format:
http://mysite/service/service.svc/rest/Image/flag/<picture size>/country/<Country ID>
an example would be:
http://mysite/service/service.svc/rest/Image/flag/48/country/104
http://mysite/service/service.svc/rest/Image/flag/48/country/141
which returns a 48x48 pixel image of the Swiss flag in png format for the first link and a Spanish flag for the second link.
Does MvxImageView or any of its helpers depend on a unique filenames including an file extension?
Or could even the "service.svc" be the problem and be interpreted as the filename?
According to the webserver logs the App doesn't even open the Url. When I tried with another picture from another server it worked perfectly fine.
EDIT:
On further investigation I've found out that the Accept Header of the request isn't accepted by my webservice. Can I add it somewhere?
So my Question transforms to: How can I override the MvxFileDownloadRequest class to add an accept header?
How can I override the MvxFileDownloadRequest class to add an accept header?
The only way to do this is to implement your own IMvxHttpFileDownloader implementation and to register it with IoC in place of the default one.
The source for the default one is https://github.com/MvvmCross/MvvmCross/blob/v3.1/Plugins/Cirrious/DownloadCache/Cirrious.MvvmCross.Plugins.DownloadCache/MvxHttpFileDownloader.cs and this question was similar - MvvmCross HTTP DownloadCache with authentication - if this is a common request, then happy to see this pushed back into MvvmCross core.

Dojo build requesting already inlined Dijit templates

I am a developer on a large Dojo project and I am having some issues with the Google Closure compiler.
We have around a hundred templates for Dijit widgets so the plan was to make the Closure compiler inline the HTML in the JavaScript file rather than require them AMD style.
To achieve this I changed the "mini" parameter in /profiles/app.profile.js from true to false.
When compiling, everything seems to work fine, even when running the app i have no issues but something strange happens.
Even if the HTML templates are correctly inlined in the dojo.js file, dojo is still making HTTP requests to the corresponding template file to the server !
By inspecting a "beautified" version of what the Closure Compiler produced I can observe that each HTML template is present in two different places :
1) Inlined in the JavaScript in the following format :
"url:path/to/my/template.html":"<p>Some more HTML</p>"
2) As a required pseudo-module in the AMD require :
dojo/text!./path/to/my/template.html
I searched the bug reports on their website in the BuildSystem category : BuildSystem but ultimately couldn't find any relevant help.
Is this me just wrongly using the Google Closure Compiler or is this a open / unreported bug ?
How can I fix this issue ?
Thanks a lot in advance !
If you are referring to an issue that only exists in 1.9.0, then it is https://bugs.dojotoolkit.org/ticket/17141.