Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-v8' into temp8-4217-datatype…
Browse files Browse the repository at this point in the history
…-edits-updates-content-editor
  • Loading branch information
nielslyngsoe committed Mar 22, 2019
2 parents d806855 + 3761d2e commit 054bc28
Show file tree
Hide file tree
Showing 36 changed files with 88 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public override IEnumerable<IContent> GetAllVersionsSlim(int nodeId, int skip, i
.OrderByDescending<ContentVersionDto>(x => x.Current)
.AndByDescending<ContentVersionDto>(x => x.VersionDate);

return MapDtosToContent(Database.Fetch<DocumentDto>(sql), true, true);
return MapDtosToContent(Database.Fetch<DocumentDto>(sql), true, true).Skip(skip).Take(take);
}

public override IContent GetVersion(int versionId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Use this directive make an element sticky and follow the page when scrolling.
}

if (attr.scrollableContainer) {
scrollableContainer = $(attr.scrollableContainer);
scrollableContainer = bar.closest(attr.scrollableContainer);
} else {
scrollableContainer = $(window);
}
Expand Down Expand Up @@ -121,7 +121,7 @@ Use this directive make an element sticky and follow the page when scrolling.
function calculateSize() {
var width = bar.innerWidth();
clonedBar.css({
width: width
width: width + 10 // + 10 (5*2) because we need to add border to avoid seeing the shadow beneath. Look at the CSS.
});
}

Expand Down
8 changes: 4 additions & 4 deletions src/Umbraco.Web.UI.Client/src/less/components/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -167,23 +167,23 @@ a.umb-editor-header__close-split-view:hover {
text-decoration: none !important;
font-size: 13px;
//color: @gray-4;
color: @ui-action-disgrete-type;
color: @ui-action-discreet-type;
//background-color: @white;
}

a.umb-variant-switcher__toggle {
transition: color 0.2s ease-in-out;
&:hover {
//background-color: @gray-10;
color: @ui-action-disgrete-type-hover;
color: @ui-action-discreet-type-hover;
.umb-variant-switcher__expand {
color: @ui-action-disgrete-type-hover;
color: @ui-action-discreet-type-hover;
}
}
}

.umb-variant-switcher__expand {
color: @ui-action-disgrete-type;
color: @ui-action-discreet-type;
margin-top: 3px;
margin-left: 5px;
margin-right: -5px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.umb-editor-sub-header {
padding: 10px 0;
margin-bottom: 10px;
background: @gray-10;
background: @brownGrayLight;
border-left: 5px solid @brownGrayLight;
border-right: 5px solid @brownGrayLight;
margin-left: -5px;
margin-right: -5px;
display: flex;
justify-content: space-between;
margin-top: -10px;
Expand All @@ -12,7 +16,7 @@
&.nested {
margin-top: 0;
margin-bottom: 0;
background: @gray-10;
background: @brownGrayLight;
}
}

Expand All @@ -25,10 +29,14 @@

.umb-editor-sub-header.-umb-sticky-bar {
box-shadow: 0 6px 3px -3px rgba(0,0,0,.16);
transition: box-shadow 1s;
top: calc(@appHeaderHeight + @editorHeaderHeight);
transition: box-shadow 240ms;
margin-top: 0;
margin-bottom: 0;
top: calc(@appHeaderHeight + @editorHeaderHeight);

.umb-editor--infinityMode & {
top: calc(@editorHeaderHeight);
}
}

.umb-group-builder__property-preview .umb-editor-sub-header {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
// file select link
.file-select {
font-size: 15px;
color: @ui-action-disgrete-type;
color: @ui-action-discreet-type;
cursor: pointer;

margin-top: 10px;

&:hover {
color: @ui-action-disgrete-type-hover;
color: @ui-action-discreet-type-hover;
text-decoration: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
transition: opacity 150ms;

&:hover {
color: @ui-action-disgrete-type-hover;
color: @ui-action-discreet-type-hover;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@
display: flex;
align-items: center;
justify-content: center;
border: 1px dashed @ui-action-disgrete-border;
color: @ui-action-disgrete-type;
border: 1px dashed @ui-action-discreet-border;
color: @ui-action-discreet-type;
font-weight: bold;
padding: 5px 15px;
box-sizing: border-box;
}

.umb-node-preview-add:hover {
color: @ui-action-disgrete-type-hover;
border-color: @ui-action-disgrete-border-hover;
color: @ui-action-discreet-type-hover;
border-color: @ui-action-discreet-border-hover;
text-decoration: none;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ a.umb-package-details__back-link {

.umb-gallery__thumbnail {
flex: 0 1 100px;
border: 1px solid @ui-action-disgrete-border;
border: 1px solid @ui-action-discreet-border;
border-radius: 3px;
margin: 5px;
padding: 10px;
Expand All @@ -418,7 +418,7 @@ a.umb-package-details__back-link {

.umb-gallery__thumbnail:hover {
cursor: pointer;
border-color: @ui-action-disgrete-border-hover;
border-color: @ui-action-discreet-border-hover;
}

/* PACKAGE LIST */
Expand Down
8 changes: 4 additions & 4 deletions src/Umbraco.Web.UI.Client/src/less/listview.less
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@

.list-view-add-layout {
margin-top: 10px;
color: @ui-action-disgrete-type;
border: 1px dashed @ui-action-disgrete-border;
color: @ui-action-discreet-type;
border: 1px dashed @ui-action-discreet-border;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -250,6 +250,6 @@

.list-view-add-layout:hover {
text-decoration: none;
color: @ui-action-disgrete-type-hover;
border-color: @ui-action-disgrete-border-hover;
color: @ui-action-discreet-type-hover;
border-color: @ui-action-discreet-border-hover;
}
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/less/panel.less
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@
justify-content: center;
align-items: center;
background: @white;
border: 1px solid @ui-action-disgrete-border;
border: 1px solid @ui-action-discreet-border;
animation: fadeIn 0.5s;
border-radius: 3px;
width: 50px;
&:hover {
.icon {
opacity: 0.8;
}
border-color: @ui-action-disgrete-border-hover;
border-color: @ui-action-discreet-border-hover;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/less/property-editors.less
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@
transition: all 150ms ease-in-out;

&:hover {
color: @ui-action-disgrete-type-hover;
border-color: @ui-action-disgrete-type-hover;
color: @ui-action-discreet-type-hover;
border-color: @ui-action-discreet-type-hover;
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/Umbraco.Web.UI.Client/src/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@
@ui-action-border: @blueExtraDark;
@ui-action-border-hover: @blueMid;

@ui-action-disgrete: white;
@ui-action-disgrete-hover: @sand-7;
@ui-action-disgrete-type: @blueExtraDark;
@ui-action-disgrete-type-hover: @blueMid;
@ui-action-disgrete-border: @gray-7;
@ui-action-disgrete-border-hover: @blueMid;
@ui-action-discreet: white;
@ui-action-discreet-hover: @sand-7;
@ui-action-discreet-type: @blueExtraDark;
@ui-action-discreet-type-hover: @blueMid;
@ui-action-discreet-border: @gray-7;
@ui-action-discreet-border-hover: @blueMid;

@type-white: @white;
@type-black: @blueNight;
Expand Down
28 changes: 14 additions & 14 deletions src/Umbraco.Web.UI.Client/src/views/content/assigndomain.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<form name="vm.domainForm" ng-submit="vm.save()" novalidate>

<div ng-hide="vm.loading" class="umb-dialog-body">

<umb-pane ng-if="!currentNode.metaData.variesByCulture">
<h5 class="umb-pane-title"><localize key="assignDomain_setLanguage">Culture</localize></h5>
<label for="assignDomain_language" class="control-label"><localize key="general_language"></localize></label>
Expand All @@ -18,14 +18,14 @@ <h5 class="umb-pane-title"><localize key="assignDomain_setLanguage">Culture</loc

<h5 class="umb-pane-title"><localize key="assignDomain_setDomains">Domains</localize></h5>
<small class="db" style="margin-bottom: 10px;">
<localize key="assignDomain_domainHelp"></localize>
<localize key="assignDomain_domainHelpWithVariants"></localize>
</small>
<div class="umb-el-wrap hidelabel">
<table class="table table-condensed table-bordered domains" style="margin-bottom: 10px;" ng-if="vm.domains.length > 0">
<thead>
<tr>
<th>
<localize key="assignDomain_domain"></localize>
<localize key="assignDomain_domain"></localize>
<span class="umb-control-required">*</span>
</th>
<th>
Expand All @@ -45,17 +45,17 @@ <h5 class="umb-pane-title"><localize key="assignDomain_setDomains">Domains</loca
<span ng-show="domain.duplicate" class="help-inline"><localize key="assignDomain_duplicateDomain"></localize><span ng-show="domain.other">({{domain.other}})</span></span>
</td>
<td>
<select
style="width: 100%; margin-bottom: 0;"
name="domain_language_{{$index}}"
class="language"
ng-model="domain.lang"
<select
style="width: 100%; margin-bottom: 0;"
name="domain_language_{{$index}}"
class="language"
ng-model="domain.lang"
ng-options="lang.name for lang in vm.languages"
required>
</select>
</td>
<td>
<umb-button
<umb-button
icon="icon-trash"
action="vm.removeDomain($index)"
type="button"
Expand All @@ -66,8 +66,8 @@ <h5 class="umb-pane-title"><localize key="assignDomain_setDomains">Domains</loca
</tbody>
</table>
</div>
<umb-button

<umb-button
label-key="assignDomain_addNew"
action="vm.addDomain()"
type="button"
Expand All @@ -80,14 +80,14 @@ <h5 class="umb-pane-title"><localize key="assignDomain_setDomains">Domains</loca

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar">

<umb-button
<umb-button
label-key="general_close"
action="vm.closeDialog()"
type="button"
button-style="link">
</umb-button>

<umb-button
<umb-button
label-key="buttons_save"
type="submit"
button-style="success"
Expand All @@ -97,5 +97,5 @@ <h5 class="umb-pane-title"><localize key="assignDomain_setDomains">Domains</loca
</div>

</form>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.CheckboxListContro
}

function updateViewModel(configItems) {

//check if it's already in sync


//get the checked vals from the view model
var selectedVals = _.map(
_.filter($scope.selectedItems,
Expand All @@ -47,22 +45,22 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.CheckboxListContro
return m.value;
}
);
//get all of the same values between the arrays
var same = _.intersection($scope.model.value, selectedVals);
//if the lengths are the same as the value, then we are in sync, just exit

if (same.length === $scope.model.value.length === selectedVals.length) {

//if the length is zero, then we are in sync, just exit.
if (_.difference($scope.model.value, selectedVals).length === 0) {
return;
}

$scope.selectedItems = [];


var iConfigItem;
for (var i = 0; i < configItems.length; i++) {
var isChecked = _.contains($scope.model.value, configItems[i].value);
iConfigItem = configItems[i];
var isChecked = _.contains($scope.model.value, iConfigItem.value);
$scope.selectedItems.push({
checked: isChecked,
key: configItems[i].id,
val: configItems[i].value
key: iConfigItem.id,
val: iConfigItem.value
});
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div ng-controller="Umbraco.PropertyEditors.GridController" class="umb-grid umb-property-editor clearfix" id="umb-grid">

<umb-editor-sub-header ng-if="showReorderButton()" style="background-color: white;">
<umb-editor-sub-header ng-if="showReorderButton()" style="background-color: white; border-color: white;">

<umb-editor-sub-header-content-right>
<umb-button
Expand Down
2 changes: 0 additions & 2 deletions src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
<key alias="domainCreated">Nová doména '%0%' byla vytvořena</key>
<key alias="domainDeleted">Doména '%0%' je odstraněna</key>
<key alias="domainExists">Doména '%0%' už byla přiřazena</key>
<key alias="domainHelp"><![CDATA[Platná doménová jména jsou: "example.com", "www.example.com", "example.com:8080" nebo
"https://www.example.com/".<br /><br />Jednoúrovňové cesty v doménách jsou podporovány, např. "example.com/en". Měli byste se jich nicméně vyvarovat. Raději použijte nastavení kultury výše.]]></key>
<key alias="domainUpdated">Doména '%0%' byla aktualizována</key>
<key alias="orEdit">Editace aktuálních domén</key>
<key alias="inherit">Dědit</key>
Expand Down
7 changes: 4 additions & 3 deletions src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
<key alias="domainExists">Domænet '%0%' er oprettet</key>
<key alias="domainUpdated">Domænet '%0%' er nu opdateret</key>
<key alias="orEdit">eller rediger nuværende domæner</key>
<key alias="domainHelp">f.eks. ditdomaene.com, www.ditdomaene.com</key>
<key alias="domainHelpWithVariants"><![CDATA[Gyldige domænenavne er: "example.com", "www.example.com", "example.com:8080" eller "https://www.example.com/".
Yderlgiere understøttes også første niveau af stien efter domænet, f.eks. "Example.com/en" eller "/en". ]]></key>
<key alias="inherit">Nedarv</key>
<key alias="setLanguage">Sprog</key>
<key alias="setLanguageHelp"><![CDATA[Indstil sproget for noder under den aktuelle node,<br /> eller nedarv sprog fra forældre noder. Gælder også<br />
Expand Down Expand Up @@ -277,7 +278,7 @@
<key alias="languagesToUnpublish">Vælg sproget du vil afpublicere. Afpublicering af et obligatorisk sprog vil afpublicere alle sprog.</key>
<key alias="publishedLanguages">Udgivne sprog</key>
<key alias="unpublishedLanguages">Ikke-udgivne sprog</key>
<key alias="unmodifiedLanguages">Uændrede sprog</key>
<key alias="unmodifiedLanguages">Uændrede sprog</key>
<key alias="untouchedLanguagesForFirstTime">Disse sprog er ikke blevet oprettet</key>
<key alias="readyToPublish">Klar til at udgive?</key>
<key alias="readyToSave">Klar til at gemme?</key>
Expand Down Expand Up @@ -986,7 +987,7 @@ Mange hilsner fra Umbraco robotten
<key alias="contentPublishedFailedInvalid"><![CDATA[
%0% kunne ikke publiceres da følgende egenskaber : %1% ikke overholdte valderingsreglerne.
]]></key>
<key alias="contentPublishedFailedByEvent">%0% kunne ikke udgives, fordi et 3. parts modul annullerede handlingen</key>
<key alias="contentPublishedFailedByEvent">%0% kunne ikke udgives, fordi et 3. parts modul annullerede handlingen</key>
<key alias="contentPublishedFailedByMissingName"><![CDATA[%0% kan ikke udgives, fordi det mangler et navn.]]></key>
<key alias="includeUnpublished">Medtag ikke-udgivede undersider</key>
<key alias="inProgress">Publicerer - vent venligst...</key>
Expand Down
Loading

0 comments on commit 054bc28

Please sign in to comment.