mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Orchard.Layouts: Fixing code styling in ElementSessionState and removing ElementInstance
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
//using System.Collections.Generic;
|
|
||||||
//using Orchard.Layouts.Framework.Elements;
|
|
||||||
|
|
||||||
//namespace Orchard.Layouts.Models {
|
|
||||||
// public class ElementInstance {
|
|
||||||
|
|
||||||
// public ElementInstance(string id, ElementDescriptor elementDescriptor, int index = 0, IDictionary<string, string> Data = null) {
|
|
||||||
// Id = id;
|
|
||||||
// ElementDescriptor = elementDescriptor;
|
|
||||||
// Data = Data ?? new Dictionary<string, string>();
|
|
||||||
// Children = new List<ElementInstance>();
|
|
||||||
// Index = index;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public string Id { get; set; }
|
|
||||||
|
|
||||||
// public ElementDescriptor ElementDescriptor { get; set; }
|
|
||||||
// public ElementInstance Parent { get; set; }
|
|
||||||
// public IList<ElementInstance> Children { get; set; }
|
|
||||||
// public int Index { get; set; }
|
|
||||||
// public IDictionary<string, string> Data { get; set; }
|
|
||||||
// public bool IsTemplated { get; set; }
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Orchard.Layouts.Models {
|
namespace Orchard.Layouts.Models {
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class ElementSessionState {
|
public class ElementSessionState {
|
||||||
public string TypeName { get; set; }
|
public string TypeName { get; set; }
|
||||||
public string ElementData { get; set; }
|
public string ElementData { get; set; }
|
||||||
public string ElementEditorData { get; set; }
|
public string ElementEditorData { get; set; }
|
||||||
|
|||||||
@@ -500,7 +500,6 @@
|
|||||||
<Compile Include="Framework\Harvesters\IElementHarvester.cs" />
|
<Compile Include="Framework\Harvesters\IElementHarvester.cs" />
|
||||||
<Compile Include="Services\ILayoutSerializer.cs" />
|
<Compile Include="Services\ILayoutSerializer.cs" />
|
||||||
<Compile Include="Helpers\ElementDataHelper.cs" />
|
<Compile Include="Helpers\ElementDataHelper.cs" />
|
||||||
<Compile Include="Models\ElementInstance.cs" />
|
|
||||||
<Compile Include="Elements\Column.cs" />
|
<Compile Include="Elements\Column.cs" />
|
||||||
<Compile Include="Services\LayoutSerializer.cs" />
|
<Compile Include="Services\LayoutSerializer.cs" />
|
||||||
<Compile Include="Providers\SnippetElementHarvester.cs" />
|
<Compile Include="Providers\SnippetElementHarvester.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user