@lvce-editor/source-control-worker 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1045,13 +1045,13 @@ const Text = 12;
|
|
|
1045
1045
|
const Img = 17;
|
|
1046
1046
|
const TextArea = 62;
|
|
1047
1047
|
|
|
1048
|
-
const
|
|
1048
|
+
const Button$1 = 'event.button';
|
|
1049
1049
|
const ClientX = 'event.clientX';
|
|
1050
1050
|
const ClientY = 'event.clientY';
|
|
1051
|
-
const Button$1 = 'event.button';
|
|
1052
1051
|
const DeltaMode = 'event.deltaMode';
|
|
1053
1052
|
const DeltaY = 'event.deltaY';
|
|
1054
1053
|
const TargetName = 'event.target.name';
|
|
1054
|
+
const TargetValue = 'event.target.value';
|
|
1055
1055
|
|
|
1056
1056
|
const User = 1;
|
|
1057
1057
|
|
|
@@ -1727,6 +1727,12 @@ const pathBaseName = path => {
|
|
|
1727
1727
|
return path.slice(path.lastIndexOf('/') + 1);
|
|
1728
1728
|
};
|
|
1729
1729
|
|
|
1730
|
+
const getActualDecorationIcon = (iconDefinitions, icon) => {
|
|
1731
|
+
if (typeof icon === 'number') {
|
|
1732
|
+
return iconDefinitions[icon];
|
|
1733
|
+
}
|
|
1734
|
+
return icon;
|
|
1735
|
+
};
|
|
1730
1736
|
const getDisplayItemsGroup = (group, expandedGroups, iconDefinitions) => {
|
|
1731
1737
|
const displayItems = [];
|
|
1732
1738
|
const {
|
|
@@ -1768,10 +1774,7 @@ const getDisplayItemsGroup = (group, expandedGroups, iconDefinitions) => {
|
|
|
1768
1774
|
} = item;
|
|
1769
1775
|
const baseName = pathBaseName(file);
|
|
1770
1776
|
const folderName = file.slice(0, -baseName.length - 1);
|
|
1771
|
-
|
|
1772
|
-
if (typeof icon === 'number') {
|
|
1773
|
-
actualDecorationIcon = iconDefinitions[icon];
|
|
1774
|
-
}
|
|
1777
|
+
const actualDecorationIcon = getActualDecorationIcon(iconDefinitions, icon);
|
|
1775
1778
|
displayItems.push({
|
|
1776
1779
|
file,
|
|
1777
1780
|
label: baseName,
|