Finish upgrade to Preview9
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Shared
|
@using Microsoft.AspNetCore.Components.Authorization
|
||||||
|
@using Oqtane.Shared
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@inject IInstallationService InstallationService
|
@inject IInstallationService InstallationService
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models;
|
@using Oqtane.Models;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Authorization
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Microsoft.JSInterop
|
@using Microsoft.JSInterop
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@ -31,7 +32,7 @@
|
|||||||
<option value=""><Site Root></option>
|
<option value=""><Site Root></option>
|
||||||
@foreach (Page page in pages)
|
@foreach (Page page in pages)
|
||||||
{
|
{
|
||||||
<option value="@(page.PageId)">@(new string('-',page.Level * 2))@(page.Name)</option>
|
<option value="@(page.PageId)">@(new string('-', page.Level * 2))@(page.Name)</option>
|
||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
@ -141,14 +142,14 @@
|
|||||||
Dictionary<string, string> panelayouts = new Dictionary<string, string>();
|
Dictionary<string, string> panelayouts = new Dictionary<string, string>();
|
||||||
|
|
||||||
List<Page> pages;
|
List<Page> pages;
|
||||||
string name;
|
string name = "";
|
||||||
string parentid;
|
string parentid;
|
||||||
string insert;
|
string insert = ">>";
|
||||||
List<Page> children;
|
List<Page> children;
|
||||||
int childid = -1;
|
int childid = -1;
|
||||||
string isnavigation = "True";
|
string isnavigation = "True";
|
||||||
string editmode = "False";
|
string editmode = "False";
|
||||||
string themetype;
|
string themetype = "";
|
||||||
string layouttype = "";
|
string layouttype = "";
|
||||||
string icon = "";
|
string icon = "";
|
||||||
string permissions = ""; // need to set default permissions
|
string permissions = ""; // need to set default permissions
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@ -128,7 +129,7 @@
|
|||||||
int PageId;
|
int PageId;
|
||||||
string name;
|
string name;
|
||||||
string path;
|
string path;
|
||||||
string parentid;
|
string parentid = "";
|
||||||
string isnavigation;
|
string isnavigation;
|
||||||
string editmode;
|
string editmode;
|
||||||
string themetype;
|
string themetype;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Modules.Controls
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@ -66,10 +67,10 @@ else
|
|||||||
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }
|
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }
|
||||||
|
|
||||||
List<Tenant> tenants;
|
List<Tenant> tenants;
|
||||||
string tenantid;
|
string tenantid = "";
|
||||||
string name;
|
string name = "";
|
||||||
string url;
|
string url = "";
|
||||||
string logo;
|
string logo = "";
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@namespace Oqtane.Modules.Admin.Themes
|
@namespace Oqtane.Modules.Admin.Themes
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Shared
|
@using Oqtane.Shared
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@namespace Oqtane.Modules.Controls
|
@namespace Oqtane.Modules.Controls
|
||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@namespace Oqtane.Modules.Controls
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@namespace Oqtane.Modules.Controls
|
||||||
|
|
||||||
@if (multiple)
|
@if (multiple)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Modules
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Modules
|
||||||
@namespace Oqtane.Modules.Controls
|
@namespace Oqtane.Modules.Controls
|
||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Security
|
@using Oqtane.Security
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@namespace Oqtane.Modules.Controls
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@namespace Oqtane.Modules.Controls
|
||||||
|
|
||||||
<img src="@src" title="@title" disabled=@Disabled @onclick="SetValue" />
|
<img src="@src" title="@title" disabled=@Disabled @onclick="SetValue" />
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@namespace Oqtane.Modules.Counter
|
@namespace Oqtane.Modules.Counter
|
||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.Controls
|
@using Oqtane.Modules.Controls
|
||||||
@using Oqtane.Modules.HtmlText.Services
|
@using Oqtane.Modules.HtmlText.Services
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Modules.HtmlText.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Modules.HtmlText.Services
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.HtmlText.Models
|
@using Oqtane.Modules.HtmlText.Models
|
||||||
@using System.Net.Http;
|
@using System.Net.Http;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
@using Oqtane.Modules.Weather.Services
|
@using Oqtane.Modules.Weather.Services
|
||||||
@namespace Oqtane.Modules.Weather
|
@namespace Oqtane.Modules.Weather
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19424.4" />
|
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19424.4" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview9.19424.4" PrivateAssets="all" />
|
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview9.19424.4" PrivateAssets="all" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.0.0-preview9.19424.4" />
|
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.0.0-preview9.19424.4" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.0.0-preview9.19424.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Services
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Shared
|
@using Oqtane.Shared
|
||||||
@namespace Oqtane.Shared
|
@namespace Oqtane.Shared
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Themes
|
@using Oqtane.Themes
|
||||||
@ -93,10 +94,10 @@
|
|||||||
List<ModuleDefinition> moduledefinitions;
|
List<ModuleDefinition> moduledefinitions;
|
||||||
Dictionary<string, string> containers = new Dictionary<string, string>();
|
Dictionary<string, string> containers = new Dictionary<string, string>();
|
||||||
int pagemanagementmoduleid = -1;
|
int pagemanagementmoduleid = -1;
|
||||||
string moduledefinitionname;
|
string moduledefinitionname = "";
|
||||||
string pane;
|
string pane = "";
|
||||||
string title = "";
|
string title = "";
|
||||||
string containertype;
|
string containertype = "";
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
@using Oqtane.Themes
|
@using Microsoft.AspNetCore.Components.Authorization
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Themes
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Providers
|
@using Oqtane.Providers
|
||||||
@using Oqtane.Shared
|
@using Oqtane.Shared
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Themes
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Themes
|
||||||
@namespace Oqtane.Themes.Controls
|
@namespace Oqtane.Themes.Controls
|
||||||
@inherits ThemeObjectBase
|
@inherits ThemeObjectBase
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Themes
|
@using Oqtane.Themes
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models;
|
@using Oqtane.Models;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Routing
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@using Oqtane.Themes
|
@using Oqtane.Themes
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models;
|
@using Oqtane.Models;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Themes
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Themes
|
||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Shared
|
@using Oqtane.Shared
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using Oqtane.Themes
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Themes
|
||||||
@namespace Oqtane.Themes.Controls
|
@namespace Oqtane.Themes.Controls
|
||||||
@inherits ContainerBase
|
@inherits ContainerBase
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
@using Oqtane.Themes
|
@using Microsoft.AspNetCore.Components.Authorization
|
||||||
@using Microsoft.AspNetCore.Components.Authorization
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Themes
|
||||||
@namespace Oqtane.Themes.Controls
|
@namespace Oqtane.Themes.Controls
|
||||||
@inherits ThemeObjectBase
|
@inherits ThemeObjectBase
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
|
@ -107,12 +107,11 @@ namespace Oqtane.Controllers
|
|||||||
|
|
||||||
if (ModelState.IsValid)
|
if (ModelState.IsValid)
|
||||||
{
|
{
|
||||||
bool installed = true;
|
//bool installed = true;
|
||||||
if (!Users.GetUsers().Any())
|
//if (!Users.GetUsers().Any())
|
||||||
{
|
//{
|
||||||
installed = false; // during initial installation we need to be able to create the host user
|
// installed = false; // during initial installation we need to be able to create the host user
|
||||||
}
|
//}
|
||||||
|
|
||||||
IdentityUser identityuser = await IdentityUserManager.FindByNameAsync(User.Username);
|
IdentityUser identityuser = await IdentityUserManager.FindByNameAsync(User.Username);
|
||||||
if (identityuser == null)
|
if (identityuser == null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user