Skip to content

Commit

Permalink
Merge pull request #3 from oqtane/master
Browse files Browse the repository at this point in the history
completing preview 9 upgrade
  • Loading branch information
ADefWebserver authored Sep 15, 2019
2 parents 7ea1d1f + 2d8c35c commit 8e90a84
Show file tree
Hide file tree
Showing 39 changed files with 80 additions and 46 deletions.
3 changes: 2 additions & 1 deletion Oqtane.Client/App.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Shared
@using Microsoft.AspNetCore.Components.Authorization
@using Oqtane.Shared
@using Oqtane.Services
@inject IInstallationService InstallationService

Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Dashboard/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Routing
@using Oqtane.Modules
@using Oqtane.Services
@using Oqtane.Models;
Expand Down
4 changes: 3 additions & 1 deletion Oqtane.Client/Modules/Admin/Login/Index.razor
Original file line number Diff line number Diff line change
@@ -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 Microsoft.JSInterop
@using Oqtane.Models
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Admin/ModuleDefinitions/Add.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules.Controls
@using Oqtane.Modules
@using Oqtane.Services
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/ModuleDefinitions/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
@using Oqtane.Modules.Controls
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Admin/ModuleSettings/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
Expand Down
9 changes: 5 additions & 4 deletions Oqtane.Client/Modules/Admin/Pages/Add.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules.Controls
@using Oqtane.Models
@using Oqtane.Services
Expand Down Expand Up @@ -31,7 +32,7 @@
<option value="">&lt;Site Root&gt;</option>
@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>
</td>
Expand Down Expand Up @@ -141,14 +142,14 @@
Dictionary<string, string> panelayouts = new Dictionary<string, string>();

List<Page> pages;
string name;
string name = "";
string parentid;
string insert;
string insert = ">>";
List<Page> children;
int childid = -1;
string isnavigation = "True";
string editmode = "False";
string themetype;
string themetype = "";
string layouttype = "";
string icon = "";
string permissions = ""; // need to set default permissions
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Pages/Delete.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules.Controls
@using Oqtane.Models
@using Oqtane.Services
Expand Down Expand Up @@ -128,7 +129,7 @@
int PageId;
string name;
string path;
string parentid;
string parentid = "";
string isnavigation;
string editmode;
string themetype;
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Admin/Pages/Edit.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules.Controls
@using Oqtane.Models
@using Oqtane.Services
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Modules.Controls
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules.Controls
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Admin/Profile/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules.Controls
@using Oqtane.Modules
@using Oqtane.Models
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Admin/Register/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules
@using Oqtane.Models
@using Oqtane.Services
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Roles/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
@using Oqtane.Modules.Controls
Expand Down
9 changes: 5 additions & 4 deletions Oqtane.Client/Modules/Admin/Sites/Add.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Models
@using Oqtane.Services
@using Oqtane.Modules
Expand Down Expand Up @@ -66,10 +67,10 @@ else
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }

List<Tenant> tenants;
string tenantid;
string name;
string url;
string logo;
string tenantid = "";
string name = "";
string url = "";
string logo = "";

protected override async Task OnInitializedAsync()
{
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Sites/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
@using Oqtane.Modules.Controls
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Themes/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
@namespace Oqtane.Modules.Admin.Themes
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Admin/Users/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
@using Oqtane.Modules.Controls
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Controls/ActionLink.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules
@using Oqtane.Services
@using Oqtane.Shared
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Controls/AuditInfo.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Modules
@using Microsoft.AspNetCore.Components.Web
@namespace Oqtane.Modules.Controls
@inherits ModuleBase

Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Controls/FileUpload.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@namespace Oqtane.Modules.Controls
@using Microsoft.AspNetCore.Components.Web
@namespace Oqtane.Modules.Controls

@if (multiple)
{
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Controls/ModuleMessage.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Modules
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules
@namespace Oqtane.Modules.Controls
@inherits ModuleBase

Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Controls/PermissionGrid.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Modules
@using Oqtane.Models
@using Oqtane.Security
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Controls/TriStateCheckBox.razor
Original file line number Diff line number Diff line change
@@ -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" />

Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Counter/Index.razor
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules
@namespace Oqtane.Modules.Counter
@inherits ModuleBase
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/HtmlText/Edit.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules
@using Oqtane.Modules.Controls
@using Oqtane.Modules.HtmlText.Services
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/HtmlText/Index.razor
Original file line number Diff line number Diff line change
@@ -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.HtmlText.Models
@using System.Net.Http;
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Modules/Weather/Index.razor
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Modules
@using Oqtane.Modules.Weather.Services
@namespace Oqtane.Modules.Weather
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Oqtane.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<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.HttpClient" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.0.0-preview9.19424.4" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Shared/Installer.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Services
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Shared
@namespace Oqtane.Shared
Expand Down
7 changes: 4 additions & 3 deletions Oqtane.Client/Themes/Controls/ControlPanel.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Themes
Expand Down Expand Up @@ -93,10 +94,10 @@
List<ModuleDefinition> moduledefinitions;
Dictionary<string, string> containers = new Dictionary<string, string>();
int pagemanagementmoduleid = -1;
string moduledefinitionname;
string pane;
string moduledefinitionname = "";
string pane = "";
string title = "";
string containertype;
string containertype = "";

protected override async Task OnInitializedAsync()
{
Expand Down
4 changes: 3 additions & 1 deletion Oqtane.Client/Themes/Controls/Login.razor
Original file line number Diff line number Diff line change
@@ -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.Providers
@using Oqtane.Shared
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Themes/Controls/Logo.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Themes
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Themes
@namespace Oqtane.Themes.Controls
@inherits ThemeObjectBase

Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Themes/Controls/Menu.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Themes
@using Oqtane.Services
@using Oqtane.Models;
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Themes/Controls/Menu2.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Themes
@using Oqtane.Services
@using Oqtane.Models;
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Themes/Controls/ModuleActions.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Themes
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Themes
@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Shared
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Themes/Controls/ModuleTitle.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Oqtane.Themes
@using Microsoft.AspNetCore.Components.Web
@using Oqtane.Themes
@namespace Oqtane.Themes.Controls
@inherits ContainerBase

Expand Down
5 changes: 3 additions & 2 deletions Oqtane.Client/Themes/Controls/Profile.razor
Original file line number Diff line number Diff line change
@@ -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
@inherits ThemeObjectBase
@inject NavigationManager NavigationManager
Expand Down
11 changes: 5 additions & 6 deletions Oqtane.Server/Controllers/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ public async Task<User> Post([FromBody] User User)

if (ModelState.IsValid)
{
bool installed = true;
if (!Users.GetUsers().Any())
{
installed = false; // during initial installation we need to be able to create the host user
}

//bool installed = true;
//if (!Users.GetUsers().Any())
//{
// installed = false; // during initial installation we need to be able to create the host user
//}
IdentityUser identityuser = await IdentityUserManager.FindByNameAsync(User.Username);
if (identityuser == null)
{
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ Oqtane uses Blazor, a new web framework for .NET Core that lets you build intera

**To get started with Oqtane:**

1.&nbsp;Oqtane is currently compatible with **[.NET Core 3.0 Preview 8 SDK (3.0.0-preview8.19405.7)](https://dotnet.microsoft.com/download/dotnet-core/3.0)**. Microsoft continues to release new versions of .NET Core 3.0 on a regular basis and we do our best to keep up; however, for the best results you should use the most compatible .NET Core 3.0 version.
1.&nbsp;Oqtane is currently compatible with **[.NET Core 3.0 Preview 9 SDK (3.0.0-preview9.19424.4)](https://dotnet.microsoft.com/download/dotnet-core/3.0)**.

2.&nbsp;Install the latest **Preview** edition of [Visual Studio 2019](https://visualstudio.com/preview) with the **ASP.NET and web development** workload.
2.&nbsp;Install the latest **Preview** edition of [Visual Studio 2019](https://visualstudio.com/preview) with the **ASP.NET and web development** workload. Installing the latest **Preview** edition will also install the latest preview of .NET Core 3.

3.&nbsp;Install the latest [Blazor extension](https://go.microsoft.com/fwlink/?linkid=870389) from the Visual Studio Marketplace.

4.&nbsp;Enable Visual Studio to use preview SDKs: Open **Tools** > **Options** in the menu bar. Open the **Environment** node. Open the **Preview Features** tab. Check the box for **Use previews of the .NET Core SDK**. Select **OK**.

5.&nbsp;Download or Clone the Oqtane source code to your local system. Open the **Oqtane.sln** solution file. If you want to develop using **server-side** Blazor ( which includes a full debugging experience in Visual Studio ) you should choose to Build the solution using the default Debug configuration. If you want to develop using **client-side** Blazor ( WebAssembly ) you should first choose the "Wasm" configuration option in the Visual Studio toolbar and then Build.
3.&nbsp;Download or Clone the Oqtane source code to your local system. Open the **Oqtane.sln** solution file. If you want to develop using **server-side** Blazor ( which includes a full debugging experience in Visual Studio ) you should choose to Build the solution using the default Debug configuration. If you want to develop using **client-side** Blazor ( WebAssembly ) you should first choose the "Wasm" configuration option in the Visual Studio toolbar and then Build.

NOTE: If you have already installed a previous version of Oqtane and you wish to install a newer version, there is currently no upgrade path from one version to the next. The recommended upgrade approach is to get the latest code and build it, and then reset the DefaultConnection value to "" in the appsettings.json file in the Oqtane.server project. This will trigger a re-install when you run the application which will execute the latest database scripts.

Expand Down

0 comments on commit 8e90a84

Please sign in to comment.