Skip to content

Commit

Permalink
Final work for 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbutterfield committed Jan 24, 2025
1 parent 8202a4d commit 9e32512
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
var hasBrightContrast = Model.Content.Value<string>("contrast") == "ffffff";
}

<pre>Content Picker: @Model.Content.ContentPicker?.Name (@Model.Content.ContentPicker?.Url())</pre>
<pre>Dropdown: @Model.Content.Dropdown</pre>

<div
class="hero"
style="background-color:#@backgroundColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ public void Filter(List<PackageManifest> manifests)
Scripts = new string[]
{
$"/{Constants.Configuration.AppPluginsRoot}/js/controllers/block-preview.controller.js",
$"/{Constants.Configuration.AppPluginsRoot}/js/directives/published-check.directive.js",
$"/{Constants.Configuration.AppPluginsRoot}/js/directives/bind-compile.directive.js",
$"/{Constants.Configuration.AppPluginsRoot}/js/resources/preview.resource.js"
},
Stylesheets = new string[]
{
$"/{Constants.Configuration.AppPluginsRoot}/css/block-preview.css"
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
padding: 8px 35px 8px 14px;
position: relative;
}
.preview-alert uui-loader {
margin-right: 16px;
}

.preview-alert, .preview-alert a, .preview-alert h4 {
color: #fff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}

function loadPreview() {
$scope.markup = $sce.trustAsHtml('<div class="preview-alert preview-alert-info">Loading preview</div>');
$scope.markup = $sce.trustAsHtml('<div class="preview-alert preview-alert-info"><uui-loader style="color: #fff"></uui-loader>Loading preview...</div>');
$scope.loading = true;

if ($scope.isGrid) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
@import '/App_Plugins/Umbraco.Community.BlockPreview/css/block-preview.css?umb__rnd={{cacheBuster}}';
</style>

<div ng-if="loading === false"
ng-bind-compile="markup"
publication-check
<div ng-bind-compile="markup"
settings="block.settingsData">
<div class="preview-alert preview-alert-info">Loading preview...</div>
<div class="preview-alert preview-alert-info">
<uui-loader style="color: #fff"></uui-loader>
Loading preview...
</div>
</div>

</div>

0 comments on commit 9e32512

Please sign in to comment.