Initial commit

This commit is contained in:
oqtane
2019-05-04 20:32:08 -04:00
committed by Shaun Walker
parent 2f232eea7e
commit d71de1c21f
177 changed files with 8536 additions and 0 deletions

View File

@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Shared.Modules.HtmlText.Models
{
[Table("HtmlText")]
public class HtmlTextInfo
{
[Key]
public int HtmlTextId { get; set; }
public int ModuleId { get; set; }
public string Content { get; set; }
}
}

View File

@ -0,0 +1,32 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
public class Module
{
public int ModuleId { get; set; }
public int SiteId { get; set; }
public string ModuleDefinitionName { get; set; }
public string ViewPermissions { get; set; }
public string EditPermissions { get; set; }
[NotMapped]
public int PageModuleId { get; set; }
[NotMapped]
public int PageId { get; set; }
[NotMapped]
public string Title { get; set; }
[NotMapped]
public string Pane { get; set; }
[NotMapped]
public int Order { get; set; }
[NotMapped]
public string ContainerType { get; set; }
[NotMapped]
public string ModuleType { get; set; }
[NotMapped]
public int PaneModuleIndex { get; set; }
[NotMapped]
public int PaneModuleCount { get; set; }
}
}

View File

@ -0,0 +1,18 @@
namespace Oqtane.Models
{
public class ModuleDefinition
{
public string ModuleDefinitionName { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Version { get; set; }
public string Owner { get; set; }
public string Url { get; set; }
public string Contact { get; set; }
public string License { get; set; }
public string Dependencies { get; set; }
public string ControlTypeTemplate { get; set; }
public string ControlTypeRoutes { get; set; }
public string AssemblyName { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System.Collections.Generic;
namespace Oqtane.Models
{
public class Page
{
public int PageId { get; set; }
public int SiteId { get; set; }
public int? ParentId { get; set; }
public string Name { get; set; }
public string Path { get; set; }
public int Order { get; set; }
public string SkinType { get; set; }
public string LayoutType { get; set; }
public string Icon { get; set; }
public string Panes { get; set; }
public string ViewPermissions { get; set; }
public string EditPermissions { get; set; }
public bool IsNavigation { get; set; }
}
}

View File

@ -0,0 +1,15 @@
namespace Oqtane.Models
{
public class PageModule
{
public int PageModuleId { get; set; }
public int PageId { get; set; }
public int ModuleId { get; set; }
public string Title { get; set; }
public string Pane { get; set; }
public int Order { get; set; }
public string ContainerType { get; set; }
public Module Module { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace Oqtane.Models
{
public class Site
{
public int SiteId { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
}
}

View File

@ -0,0 +1,18 @@
namespace Oqtane.Models
{
public class Skin
{
public string SkinName { get; set; }
public string Name { get; set; }
public string Version { get; set; }
public string Owner { get; set; }
public string Url { get; set; }
public string Contact { get; set; }
public string License { get; set; }
public string Dependencies { get; set; }
public string SkinControls { get; set; }
public string PaneLayouts { get; set; }
public string ContainerControls { get; set; }
public string AssemblyName { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System;
namespace Oqtane.Models
{
public class Tenant
{
public int TenantId { get; set; }
public string Alias { get; set; }
public string DBConnectionString { get; set; }
public string DBSchema { get; set; }
public int SiteId { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
public class User
{
public int UserId { get; set; }
public string Username { get; set; }
public string DisplayName { get; set; }
public string Roles { get; set; }
public bool IsSuperUser { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace Oqtane.Modules
{
public interface IService
{
// empty interface used to decorate module services for auto registration
}
}

View File

@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>7.3</LangVersion>
<Configurations>Debug;Release;Wasm</Configurations>
<Version>0.0.1</Version>
<Product>Oqtane</Product>
<Authors>Shaun Walker</Authors>
<Company>.NET Foundation</Company>
<Description>.NET Core Web Application Framework for Blazor</Description>
<Copyright>.NET Foundation</Copyright>
<PackageProjectUrl>https://www.oqtane.org</PackageProjectUrl>
<RepositoryUrl>https://github.com/oqtane</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageReleaseNotes>Not for production use.</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Wasm|AnyCPU'">
<DefineConstants>TRACE;WASM</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
</ItemGroup>
</Project>