If you need to overwrite the Login page I can share the source code of this page with you. Which version do you need?
I'm a little confused. Do you change the permissions from the UI page(via code) or directly in the database?
If you change the permission from the UI page, the framework will clear the cache automatically, which means you don't need the extra code.
hi
Please try to create a number release.(1.0.0)
Will it directly pull from the git in runtime.
It will use caching, but you can force it to get the latest from Github in the project page.
In such case if im hosting my application in OnPrem deployment, where application maynot have access to internet, what could i do ?
I don't know about the OnPrem deployment
If you use Github as document source, your app must access the Github.com
hi
Can you share your project to liming.ma@volosoft.com ?
I will download and check it.
Thanks.
https://github.com/abpframework/abp/pull/21189/
hi
Yes, We will fix this in next version.
The fix code:
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Volo.Abp.DependencyInjection;
using Volo.Docs;
using Volo.Docs.Projects;
namespace Ensurity.SampleDocsProject.Web.Public.Pages.Docs;
[ExposeServices(typeof(Volo.Docs.Pages.Documents.IndexModel))]
public class MyIndexModel : Volo.Docs.Pages.Documents.IndexModel
{
public string DocumentsUrlPrefix { get; set; }
public IReadOnlyList<ProjectDto> Projects { get; set; }
private readonly IProjectAppService _projectAppService;
private readonly DocsUiOptions _uiOptions;
public MyIndexModel(IProjectAppService projectAppService, IOptions<DocsUiOptions> urlOptions)
: base(projectAppService, urlOptions)
{
_projectAppService = projectAppService;
_uiOptions = urlOptions.Value;
}
public override async Task<IActionResult> OnGetAsync()
{
if (_uiOptions.SingleProjectMode.Enable)
{
return Redirect("/Documents/Project/Index");
}
var listResult = await _projectAppService.GetListAsync();
if (listResult.Items.Count == 1)
{
return Redirect($"/Documents/Project/{listResult.Items[0].ShortName}");
}
Projects = listResult.Items;
return Page();
}
}
hi
Can you try to use abp get-source Volo.Abp.LeptonXTheme.Pro --preview