-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve data type settings
- Loading branch information
Showing
15 changed files
with
91 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
@inherits UmbracoViewPage<Home> | ||
|
||
@{ | ||
Layout = "_Layout"; | ||
} | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col"> | ||
<h1 class="display-1">@Model.Name</h1> | ||
<div> | ||
@await Html.GetBlockGridHtmlAsync(Model.GridContent) | ||
</div> | ||
<div> | ||
<h2>Extended Dropdown Editor</h2> | ||
@foreach (var item in Model.ExtendedDropdown) | ||
{ | ||
<div>@item</div> | ||
} | ||
</div> | ||
<div> | ||
<h2>Extended Dropdown Editor (Single)</h2> | ||
<div>@Model.ExtendedDropdownSingle</div> | ||
|
||
</div> | ||
<div> | ||
<h2>Extended Dropdown Editor by URL</h2> | ||
<div>@Model.ExtendedDropdownByUrl</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@inherits UmbracoViewPage<Home> | ||
|
||
@{ | ||
Layout = "_Layout"; | ||
} | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col"> | ||
<h1 class="display-1">@Model.Name</h1> | ||
<div> | ||
@await Html.GetBlockGridHtmlAsync(Model.GridContent) | ||
</div> | ||
<div> | ||
<h2>Extended Dropdown Editor</h2> | ||
@foreach (var item in Model.ExtendedDropdown ?? []) | ||
{ | ||
<div>@item</div> | ||
} | ||
</div> | ||
<div> | ||
<h2>Extended Dropdown Editor (Single)</h2> | ||
<div>@Model.ExtendedDropdownSingle</div> | ||
|
||
</div> | ||
<div> | ||
<h2>Extended Dropdown Editor by URL</h2> | ||
<div>@Model.ExtendedDropdownByUrl</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
"Earth", | ||
"Mars", | ||
"Jupiter", | ||
"Saturn", | ||
"Uranus", | ||
"Neptune", | ||
"Pluto" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 1 addition & 13 deletions
14
src/TestSite.14/uSync/v14/DataTypes/BasePageExtendedDropdownEditor.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DataType Key="2e896ebc-8d71-4a93-b870-fc0812cce270" Alias="Base Page - - Extended Dropdown Editor" Level="1"> | ||
<Info> | ||
<Name>Base Page - - Extended Dropdown Editor</Name> | ||
<EditorAlias>Umbraco.Label</EditorAlias> | ||
<EditorUIAlias>jcdcdev.Umbraco.PropertyEditorUi.ExtendedDropdown</EditorUIAlias> | ||
</Info> | ||
<Config><![CDATA[{ | ||
"file": [ | ||
"%2Fwwwroot%2Fdata%25dot%25json" | ||
], | ||
"multiple": true | ||
}]]></Config> | ||
</DataType> | ||
<Empty Key="2e896ebc-8d71-4a93-b870-fc0812cce270" Alias="Base Page - - Extended Dropdown Editor" Change="Rename" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/TestSite.14/uSync/v14/DataTypes/ExtendedDropdownEditor.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DataType Key="2e896ebc-8d71-4a93-b870-fc0812cce270" Alias="Extended Dropdown Editor" Level="1"> | ||
<Info> | ||
<Name>Extended Dropdown Editor</Name> | ||
<EditorAlias>jcdcdev.Umbraco.ExtendedDropdown</EditorAlias> | ||
<EditorUIAlias>jcdcdev.Umbraco.PropertyEditorUi.ExtendedDropdown</EditorUIAlias> | ||
</Info> | ||
<Config><![CDATA[{ | ||
"file": [ | ||
"%2Fwwwroot%2Fdata%25dot%25json" | ||
], | ||
"multiple": true | ||
}]]></Config> | ||
</DataType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Empty Key="8f687492-637e-4279-b7b6-8914de004853" Alias="en-US" Change="Delete" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Template Key="90db0a7e-bfee-4808-ac56-4c6794c33559" Alias="home" Level="1"> | ||
<Template Key="dc1a98bb-ad81-4117-a40f-04bdbf341a2c" Alias="home" Level="1"> | ||
<Name>Home</Name> | ||
<Parent /> | ||
</Template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters