Skip to content

Commit 94144f2

Browse files
committed
feature: new property editor UI
1 parent 41736bf commit 94144f2

File tree

60 files changed

+4090
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4090
-627
lines changed

.github/README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,17 @@ Min and max `TimeUnit` values are derived from the Data Type settings. The below
5151
Model.ReadingTime.DisplayTime(minUnit: TimeUnit.Second, maxUnit: TimeUnit.Second)
5252
```
5353

54-
55-
5654
## Configuration
5755

5856
You can change the average words per minute in the data type settings.
5957

60-
When creating a new data type, the default will be 200 words per minute. To change this default, adjust your `appsettings.json` file:
61-
62-
```json
63-
{
64-
"ReadingTime": {
65-
"WordsPerMinute": 200
66-
}
67-
}
68-
```
58+
When creating a new data type, the default will be 200 words per minute.
6959

7060
## Limitations
7161

7262
**Values are derived from published content only.**
7363

74-
Draft content is _not_ included in the calculation.
64+
Unpublished (saved) content is _not_ included in the calculation.
7565

7666
**Words per minute applies to all variants.**
7767

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,4 @@ src/.idea
358358
.idea/
359359
*.csproj.DotSettings
360360
**/umbraco/Data/TEMP/
361+
/src/jcdcdev.Umbraco.ReadingTime/wwwroot/App_Plugins/jcdcdev.Umbraco.ReadingTime/dist/

src/TestSite.14/TestSite.14.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Umbraco.Cms" Version="14.0.0-rc4"/>
11-
<PackageReference Include="uSync" Version="14.0.0-rc4"/>
10+
<PackageReference Include="Umbraco.Cms" Version="[14.0.0,15.0.0)"/>
11+
<PackageReference Include="uSync" Version="14.0.0"/>
1212
</ItemGroup>
1313

1414
<ItemGroup>

src/TestSite.14/Views/home.cshtml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@inherits UmbracoViewPage<Home>
1+
@using jcdcdev.Umbraco.ReadingTime.Core.Extensions
2+
@inherits UmbracoViewPage<Home>
23

34
@{
45
Layout = "_Layout";
@@ -8,6 +9,13 @@
89
<div class="row">
910
<div class="col">
1011
<h1 class="display-1">@Model.Name</h1>
12+
@if (Model.ReadingTime.IsValid())
13+
{
14+
<h2>
15+
<i class="bi bi-clock me-2"></i>
16+
@Umbraco.GetDictionaryValue("ReadingTime") @Model.ReadingTime.DisplayTime()
17+
</h2>
18+
}
1119
<div>
1220
@await Html.GetBlockGridHtmlAsync(Model.GridContent)
1321
</div>

0 commit comments

Comments
 (0)