changing default theme to Oqtane theme
This commit is contained in:
@ -98,9 +98,6 @@
|
||||
private string _message = string.Empty;
|
||||
private string _image = string.Empty;
|
||||
private string _guid;
|
||||
private int _folderId = -1;
|
||||
private bool _uploadMultiple;
|
||||
private int _fileId;
|
||||
|
||||
[Parameter]
|
||||
public string Id { get; set; } // optional - for setting the id of the FileManager component for accessibility
|
||||
|
@ -17,7 +17,6 @@ namespace Oqtane.Themes
|
||||
[CascadingParameter]
|
||||
protected Module ModuleState { get; set; }
|
||||
|
||||
public virtual string Name { get; set; }
|
||||
|
||||
public string ThemePath()
|
||||
{
|
||||
|
@ -2,6 +2,5 @@
|
||||
{
|
||||
public interface IContainerControl
|
||||
{
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
||||
|
9
Oqtane.Client/Themes/OqtaneTheme/NoTitle.razor
Normal file
9
Oqtane.Client/Themes/OqtaneTheme/NoTitle.razor
Normal file
@ -0,0 +1,9 @@
|
||||
@namespace Oqtane.Themes.OqtaneTheme
|
||||
@inherits ContainerBase
|
||||
<div class="container">
|
||||
@if (PageState.EditMode)
|
||||
{
|
||||
<ModuleActions />
|
||||
}
|
||||
<ModuleInstance />
|
||||
</div>
|
@ -13,32 +13,21 @@ namespace Oqtane.Themes
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; }
|
||||
|
||||
// optional interface properties
|
||||
|
||||
[CascadingParameter]
|
||||
protected PageState PageState { get; set; }
|
||||
public virtual string Panes { get; set; }
|
||||
public virtual List<Resource> Resources { get; set; }
|
||||
|
||||
// path method
|
||||
|
||||
public string ThemePath()
|
||||
{
|
||||
return "Themes/" + GetType().Namespace + "/";
|
||||
}
|
||||
|
||||
public async Task IncludeCSS(string Url)
|
||||
{
|
||||
if (!Url.StartsWith("http"))
|
||||
{
|
||||
Url = ThemePath() + Url;
|
||||
}
|
||||
var interop = new Interop(JSRuntime);
|
||||
await interop.IncludeCSS("Theme", Url);
|
||||
}
|
||||
|
||||
public async Task LoadBootstrapTheme(string url, string integrity = null)
|
||||
{
|
||||
var interop = new Interop(JSRuntime);
|
||||
string crossorigin = string.IsNullOrEmpty(integrity) ? string.Empty : "anonymous";
|
||||
await interop.IncludeLink("bootstrap", "stylesheet", url, "text/css", integrity, crossorigin);
|
||||
}
|
||||
// url methods
|
||||
|
||||
public string NavigateUrl()
|
||||
{
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="mx-auto text-center">
|
||||
<img src="oqtane.png" />
|
||||
<img src="oqtane-black.png" />
|
||||
</div>
|
||||
</div>
|
||||
<hr class="app-rule" />
|
||||
|
Reference in New Issue
Block a user