Skip to content

Commit f66150a

Browse files
committed
5.1.5402
1 parent 54fc81b commit f66150a

File tree

63 files changed

+2190
-1373
lines changed

Some content is hidden

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

63 files changed

+2190
-1373
lines changed

Java/androidfsstorage/app/build.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "com.moowork.node" version "1.2.0"
2+
id "com.moowork.node" version "1.3.1"
33
}
44
apply plugin: 'com.android.application'
55
apply plugin: 'ru.tinkoff.gradle.jarjar'
@@ -14,6 +14,10 @@ android {
1414
versionName "1.0"
1515
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1616
}
17+
compileOptions {
18+
sourceCompatibility 1.8
19+
targetCompatibility 1.8
20+
}
1721
buildTypes {
1822
release {
1923
minifyEnabled true
@@ -30,16 +34,16 @@ android {
3034
jarJar {
3135
rules = [
3236
'stax-api-1.0.1.jar' : 'javax.xml.** com.ithit.webdav.xml.@1',
33-
'webdav-server-5.1.5291.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1'
37+
'webdav-server-5.1.5402.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1'
3438
]
3539
}
3640

3741
node {
3842
// Version of node to use.
39-
version = '12.22.7'
43+
version = '16.14.2'
4044

4145
// Version of npm to use.
42-
npmVersion = '6.14.0'
46+
npmVersion = '8.7.0'
4347

4448
// Base URL for fetching node distributions (change if you have a mirror).
4549
distBaseUrl = 'https://nodejs.org/dist'
@@ -71,11 +75,11 @@ dependencies {
7175
implementation 'commons-io:commons-io:2.7'
7276
implementation 'com.google.code.gson:gson:2.7'
7377
implementation 'com.android.support:appcompat-v7:27.1.1'
74-
implementation('com.ithit.webdav.integration:android-integration:5.1.5291', {
78+
implementation('com.ithit.webdav.integration:android-integration:5.1.5402', {
7579
exclude group: 'org.nanohttpd', module: 'nanohttpd'
7680
})
7781
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
7882
jarJar 'stax:stax-api:1.0.1'
79-
jarJar 'com.ithit.webdav:webdav-server:5.1.5291'
83+
jarJar 'com.ithit.webdav:webdav-server:5.1.5402'
8084
testImplementation 'junit:junit:4.12'
8185
}

Java/androidfsstorage/app/src/main/assets/wwwroot/js/package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"webdav.client" : "latest"
3+
"webdav.client": "*"
44
}
55
}

Java/deltav/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ This will download IT Hit WebDAV Ajax Library files into your project. Note that
8888
<p>On the diagram below you can see the classes in WebDAV DeltaV&nbsp;project.</p>
8989
<p><img id="__mcenew" alt="DeltaV diagram" src="https://www.webdavsystem.com/media/1561/deltavdiagram.png" rel="109210"></p>
9090
<p align="left">You can find more about&nbsp;building a server with versioning in&nbsp;<a title="DeltaV Server" href="https://www.webdavsystem.com/javaserver/doc/deltavserver/">Creating WebDAV Server with Versioning Support</a>&nbsp;article. You may also want to read&nbsp;<a title="Creating WebDAV Server" href="https://www.webdavsystem.com/javaserver/doc/">Creating a Class 1 WebDAV Server</a>&nbsp;and&nbsp;<a title="Class 2 / 3 Server" href="https://www.webdavsystem.com/javaserver/doc/create_class_2_webdav_server/">Creating Class 2 WebDAV Server</a>&nbsp;articles.</p>
91-
<h2>How Things Get Stored – Overview of the Oracle Back-end</h2>
91+
<h2>How Things Get Stored Overview of the Oracle Back-end</h2>
9292
<p>The database consists of 5 entities as depicted in the figure below. 2 of them, Property and Lock, are identical to the tables found in&nbsp;<a title="WebDAV SQL" href="https://www.webdavsystem.com/javaserver/server_examples/sql_storage/">SqlStorage example</a>&nbsp;- Properties and Lock. The&nbsp;<span class="code">Repository</span>&nbsp;table contains additional fields:&nbsp;<span class="code">CREATORDISPLAYNAME</span>,&nbsp;<span class="code">CHANGENOTES</span>,&nbsp;<span class="code">CHECKEDOUT</span>,&nbsp;<span class="code">AUTOVERSION</span>,&nbsp;<span class="code">VERSIONCONTROLLED,</span> <span class="code">CHECKEDINDURINGUNLCOK</span>and&nbsp;<span class="code">CHECKEDINONFILECOMPLETE</span>.</p>
9393
<p><img id="__mcenew" alt="DeltaV DB diagram" src="https://www.webdavsystem.com/media/1560/deltavstoragedb.jpg" rel="109208"></p>
9494
<h3>Version table</h3>

Java/deltav/pom.xml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.ithit.webdav.samples</groupId>
88
<artifactId>deltav</artifactId>
9-
<version>5.1.5291</version>
9+
<version>5.1.5402</version>
1010
<packaging>war</packaging>
1111

1212
<properties>
@@ -23,7 +23,7 @@
2323
<dependency>
2424
<groupId>com.ithit.webdav.integration</groupId>
2525
<artifactId>servlet-integration</artifactId>
26-
<version>5.1.5291</version>
26+
<version>5.1.5402</version>
2727
</dependency>
2828
<dependency>
2929
<groupId>commons-dbcp</groupId>
@@ -61,12 +61,12 @@
6161
<dependency>
6262
<groupId>org.apache.tika</groupId>
6363
<artifactId>tika-core</artifactId>
64-
<version>1.23</version>
64+
<version>1.28.1</version>
6565
</dependency>
6666
<dependency>
6767
<groupId>org.apache.tika</groupId>
6868
<artifactId>tika-parsers</artifactId>
69-
<version>1.23</version>
69+
<version>1.28.1</version>
7070
<exclusions>
7171
<exclusion>
7272
<artifactId>cxf-core</artifactId>
@@ -125,7 +125,7 @@
125125
<dependency>
126126
<groupId>com.ithit.webdav</groupId>
127127
<artifactId>webdav-server</artifactId>
128-
<version>5.1.5291</version>
128+
<version>5.1.5402</version>
129129
</dependency>
130130

131131
<dependency>
@@ -165,7 +165,7 @@
165165
<goal>copy-resources</goal>
166166
</goals>
167167
<configuration>
168-
<outputDirectory>${project.build.directory}/deltav-5.1.5291/META-INF</outputDirectory>
168+
<outputDirectory>${project.build.directory}/deltav-5.1.5402/META-INF</outputDirectory>
169169
<overwrite>true</overwrite>
170170
<resources>
171171
<resource>
@@ -244,7 +244,7 @@
244244
<server>filesystem</server>
245245
<port>11021</port>
246246
<path>/</path>
247-
<warSourceDirectory>target/deltav-5.1.5291</warSourceDirectory>
247+
<warSourceDirectory>target/deltav-5.1.5402</warSourceDirectory>
248248
</configuration>
249249
</plugin>
250250
<plugin>
@@ -275,7 +275,7 @@
275275
<plugin>
276276
<groupId>com.github.eirslett</groupId>
277277
<artifactId>frontend-maven-plugin</artifactId>
278-
<version>1.6</version>
278+
<version>1.12.1</version>
279279
<executions>
280280
<execution>
281281
<id>install node and npm</id>
@@ -284,8 +284,20 @@
284284
</goals>
285285
<configuration>
286286
<installDirectory>${java.io.tmpdir}</installDirectory>
287-
<nodeVersion>v12.22.7</nodeVersion>
288-
<npmVersion>6.14.0</npmVersion>
287+
<nodeVersion>v16.14.2</nodeVersion>
288+
<npmVersion>8.7.0</npmVersion>
289+
</configuration>
290+
</execution>
291+
<execution>
292+
<id>npm update</id>
293+
<goals>
294+
<goal>npm</goal>
295+
</goals>
296+
<phase>generate-resources</phase>
297+
<configuration>
298+
<arguments>update</arguments>
299+
<workingDirectory>src/main/webapp/WEB-INF/wwwroot/js</workingDirectory>
300+
<installDirectory>c:\temp\</installDirectory>
289301
</configuration>
290302
</execution>
291303
<execution>

Java/deltav/src/main/webapp/WEB-INF/MyCustomHandlerPage.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ <h3>Connect with WebDAV Client</h3>
143143

144144
</div>
145145
<div class="text-right">
146-
<button class="pause-all-button btn btn-outline-primary" title="Pause all upload">Pause upload</button>
147-
<button class="play-all-button btn btn-outline-primary" title="Resume all upload">Resume upload</button>
146+
<button class="pause-all-button btn btn-outline-primary" title="Pause all upload">Pause upload</button>
147+
<button class="play-all-button btn btn-outline-primary" title="Resume all upload">Resume upload</button>
148148
<button class="btn btn-outline-primary cancel-all-button" title="Cancel all">
149-
Сancel all upload
149+
Сancel all uploads
150150
</button>
151151
</div>
152152
</div>

Java/deltav/src/main/webapp/WEB-INF/wwwroot/css/webdav-layout.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,16 @@ header .versions {
414414
color: white;
415415
text-decoration: underline;
416416
}
417+
418+
.header-content .flex-column {
419+
position: relative;
420+
padding-bottom: 48px;
421+
}
422+
423+
.header-content .flex-column .btn {
424+
position: absolute;
425+
bottom: 10px;
426+
}
417427
/*End Header styles*/
418428

419429
/*Start Main layout styles*/

Java/deltav/src/main/webapp/WEB-INF/wwwroot/js/package-lock.json

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"webdav.client": "latest"
3+
"webdav.client": "*"
44
}
55
}

Java/deltav/src/main/webapp/WEB-INF/wwwroot/js/webdav-gridview.js

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
this.$el.find('tbody').html(
6262
aItems.map(function (oItem) {
6363
var locked = oItem.ActiveLocks.length > 0
64-
? ('<span class="ithit-grid-icon-locked"></span>' +
64+
? ('<span class="ithit-grid-icon-locked" title="' + self._RenderLokedIconTooltip(oItem) + '"></span>' +
6565
(oItem.ActiveLocks[0].LockScope === 'Shared' ? ('<span class="badge badge-pill badge-dark">' + oItem.ActiveLocks.length + '</span>') : ''))
6666
: '';
6767
/** @type {ITHit.WebDAV.Client.HierarchyItem} oItem */
@@ -109,6 +109,22 @@
109109
);
110110
},
111111

112+
/**
113+
* @param {ITHit.WebDAV.Client.HierarchyItem} oItem
114+
**/
115+
_RenderLokedIconTooltip(oItem) {
116+
var tooltipTitle = 'Exclusive lock: ' + oItem.ActiveLocks[0].Owner;
117+
if (oItem.ActiveLocks[0].LockScope === 'Shared') {
118+
var userNames = [];
119+
tooltipTitle = 'Shared lock' + (oItem.ActiveLocks.length > 1 ? '(s)':'') + ': ';
120+
for (var i = 0; i < oItem.ActiveLocks.length; i++) {
121+
userNames.push(oItem.ActiveLocks[i].Owner);
122+
}
123+
tooltipTitle += userNames.join(', ');
124+
}
125+
return tooltipTitle;
126+
},
127+
112128
/**
113129
* @param {ITHit.WebDAV.Client.HierarchyItem} oItem
114130
**/
@@ -154,7 +170,9 @@
154170
} else {
155171
var $btnGroup = $('<div class="btn-group"></div>');
156172
var displayRadioBtns = (isMicrosoftOfficeDocument && isGSuiteDocument);
157-
$('<button type="button" class="btn btn-primary btn-sm btn-labeled btn-default-edit" title="' + (displayRadioBtns ? self._GetActionGroupBtnTooltipText() : 'Edit document with desktop associated application.') + '"><span class="btn-label"><i class="' +
173+
var isExclusiveLocked = oItem.ActiveLocks.length > 0 && oItem.ActiveLocks[0].LockScope === 'Exclusive';
174+
$('<button type="button" class="btn btn-primary btn-sm btn-labeled btn-default-edit" title="' + (displayRadioBtns ? self._GetActionGroupBtnTooltipText() : 'Edit document with desktop associated application.') +
175+
'"' + self._GetDisabledGroupBtnAttribute(isExclusiveLocked) + '><span class="btn-label"><i class="' +
158176
(displayRadioBtns ? self._GetActionGroupBtnCssClass() : 'icon-edit') + '"></i></span><span class="d-none d-lg-inline-block btn-edit-label">Edit</span></button>')
159177
.appendTo($btnGroup).on('click', function () {
160178
var $radio = $(this).parent().find('input[type=radio]:checked');
@@ -169,7 +187,7 @@
169187
var $dropdownToggle = $('<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="sr-only">Toggle Dropdown</span></button>')
170188
.appendTo($btnGroup).prop("disabled", !isDavProtocolSupported && !isMicrosoftOfficeDocument);
171189

172-
this._RenderContextMenu(oItem, $btnGroup, isMicrosoftOfficeDocument, isGSuiteDocument, isDavProtocolSupported);
190+
this._RenderContextMenu(oItem, $btnGroup, isMicrosoftOfficeDocument, isGSuiteDocument, isDavProtocolSupported, isExclusiveLocked);
173191

174192
$btnGroup.on('shown.bs.dropdown', function () {
175193
self.ContextMenuID = oItem.Href;
@@ -203,6 +221,14 @@
203221
return tooltipText;
204222
},
205223

224+
_GetDisabledGroupBtnAttribute: function (isExclusiveLocked) {
225+
var attribute = '';
226+
if (this._defaultEditor == 'GSuiteEditor' && isExclusiveLocked) {
227+
attribute = ' disabled="disabled"';
228+
}
229+
return attribute;
230+
},
231+
206232
_GetActionGroupBtnCssClass: function () {
207233
var cssClassName = 'icon-edit';
208234
switch (this._defaultEditor) {
@@ -217,7 +243,7 @@
217243
return cssClassName;
218244
},
219245

220-
_RenderContextMenu: function (oItem, $btnGroup, isMicrosoftOfficeDocument, isGSuiteDocument, isDavProtocolSupported) {
246+
_RenderContextMenu: function (oItem, $btnGroup, isMicrosoftOfficeDocument, isGSuiteDocument, isDavProtocolSupported, isExclusiveLocked) {
221247
var self = this;
222248
var supportGSuiteFeature = oWebDAV.OptionsInfo.Features & ITHit.WebDAV.Client.Features.GSuite;
223249
var displayRadioBtns = (isMicrosoftOfficeDocument && isGSuiteDocument);

0 commit comments

Comments
 (0)