Skip to content

Commit d68860f

Browse files
committed
Merge pull request 'release/v1.10.0 from release/v1.10.0 into master
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/document-server-integration/pulls/9
2 parents 89c6028 + fdd90fd commit d68860f

File tree

355 files changed

+13814
-8006
lines changed

Some content is hidden

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

355 files changed

+13814
-8006
lines changed

.github/workflows/lint-ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Install Dependencies
3232
run: |
33-
bundle update
33+
bundle install
3434
3535
- name: Rubocop
3636
run: |

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
path = web/documentserver-example/java/src/main/resources/assets/document-formats
4949
url = https://github.com/ONLYOFFICE/document-formats
5050
branch = master
51-
[submodule "web/documentserver-example/java-spring/src/main/resources/assets/document-formats"]
52-
path = web/documentserver-example/java-spring/src/main/resources/assets/document-formats
53-
url = https://github.com/ONLYOFFICE/document-formats
54-
branch = master
5551
[submodule "web/documentserver-example/csharp/assets/document-templates"]
5652
path = web/documentserver-example/csharp/assets/document-templates
5753
url = https://github.com/ONLYOFFICE/document-templates

3rd-Party.license

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Document Server integration example uses code from the following 3rd party projects.
22

3-
43
web/documentserver-example/csharp
54

65
jQuery.BlockUI - The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser. (https://github.com/malsup/blockui/)
@@ -132,6 +131,10 @@ Jackson Databind - General-purpose data-binding functionality and tree-model for
132131
License: Apache 2.0
133132
License File: jackson-databind.license
134133

134+
Jackson Dataformat Properties - Support for reading and writing content of "Java Properties" style configuration files as if there was implied nesting structure (by default using dots as separators). (https://github.com/FasterXML/jackson-dataformats-text/blob/master/LICENSE)
135+
License: Apache 2.0
136+
License File: jackson-dataformat-properties.license
137+
135138
jQuery.BlockUI - The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser. (https://github.com/malsup/blockui/)
136139
License: MIT, GPL
137140
License File: jQuery.BlockUI.license
@@ -156,6 +159,10 @@ jQuery.UI - jQuery UI is an open source library of interface components —
156159
License: MIT
157160
License File: jQuery.UI.license
158161

162+
JSON - JSON is a light-weight, language independent, data interchange format. (https://github.com/stleary/JSON-java/blob/master/LICENSE)
163+
License Public Domain
164+
License File: json.license
165+
159166
JSON.simple - JSON.simple is a simple Java toolkit for JSON. You can use JSON.simple to encode or decode JSON text. (https://github.com/fangyidong/json-simple/blob/master/LICENSE.txt)
160167
License: Apache 2.0
161168
License File: JSON.simple.license
@@ -168,11 +175,11 @@ ModelMapper - ModelMapper is an intelligent object mapping library that automa
168175
License: Apache 2.0
169176
License File modelmapper.license
170177

171-
Prime JWT - is intended to be fast and easy to use. Prime JWT has a single external dependency on Jackson. (https://github.com/ws-apps/prime-jwt/blob/master/LICENSE)
178+
Spring Boot - Helps create Spring-powered, production-grade applications and services. Has external dependencies on Spring Framework. (https://github.com/spring-projects/spring-boot/blob/main/LICENSE.txt)
172179
License: Apache 2.0
173-
License File: prime-jwt.license
180+
License File: spring-boot.license
174181

175-
Spring Boot - Helps create Spring-powered, production-grade applications and services. Has external dependencies on Spring Framework. (https://github.com/spring-projects/spring-boot/blob/main/LICENSE.txt)
182+
Spring Boot Web - Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container. (https://github.com/spring-projects/spring-boot/blob/main/LICENSE.txt)
176183
License: Apache 2.0
177184
License File: spring-boot.license
178185

@@ -271,6 +278,9 @@ urllib - Request HTTP URLs in a complex world — basic and digest authen
271278
License: MIT
272279
License File: urllib.license
273280

281+
utf7 - Encodes and decodes JavaScript (Unicode/UCS-2) strings to UTF-7 ASCII strings. (https://github.com/kkaefer/utf7/blob/master/LICENSE)
282+
License: MIT
283+
License File: utf7.license
274284

275285

276286
web/documentserver-example/php

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Change Log
22

3+
## 1.10.0
4+
- nodejs: converting function on index page
5+
- java-spring: using java docs-integration-sdk
6+
- tabs menu
7+
- creating and editing pdf instead docxf
8+
- filling by default
9+
- forgotten files
10+
- delete all files
11+
- save as for pdf
12+
- handling conversion -9 error
13+
- change inserted image
14+
- different goback for users
15+
316
## 1.9.0
417
- nodejs: filling by default
518
- nodejs: docxf, oform as pdf documentType

Readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
## Integration examples
22

3-
Test examples are simple document management systems that can be built into your application for testing.
3+
These test examples are simple document management systems that can be built into your application for testing.
44
Do NOT use these integration examples on your own server without proper code modifications!
55
In case you enabled any of the test examples, disable it before going for production.
66

77
These examples show the way to integrate [ONLYOFFICE Docs][2] into your own website or application using one of the programming languages.
8-
The package contains examples written in .Net (C# MVC), .Net (C#), Java, Node.js, PHP and Ruby.
8+
The package contains examples written in .Net (C# MVC), .Net (C#), Java, Java Spring, Node.js, PHP, Python and Ruby.
99

1010
You should change `http://documentserver` to your server address in these files:
1111
* [.Net (C# MVC)](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/csharp-mvc) - `web/documentserver-example/csharp-mvc/web.appsettings.config`
1212
* [.Net (C#)](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/csharp) - `web/documentserver-example/csharp/settings.config`
1313
* [Java](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/java) - `web/documentserver-example/java/src/main/resources/settings.properties`
1414
* [Java Spring](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/java-spring) - `web/documentserver-example/java-spring/src/main/resources/application.properties`
1515
* [Node.js](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/nodejs) - `web/documentserver-example/nodejs/config/default.json`
16-
* [PHP](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/php) - `web/documentserver-example/php/config.json`
17-
* [Python](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/python) - `web/documentserver-example/python/config.py`
18-
* [Ruby](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/ruby) - `web/documentserver-example/ruby/config/application.rb`
16+
* [PHP](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/php) - `web/documentserver-example/php/src/configuration/ConfigurationManager.php`
17+
* [Python](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/python) - `web/documentserver-example/python/src/configuration/configuration.py`
18+
* [Ruby](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/ruby) - `web/documentserver-example/ruby/app/configuration/configuration.rb`
1919

2020
More information on how to use these examples can be found here: [http://api.onlyoffice.com/editors/demopreview](http://api.onlyoffice.com/editors/demopreview "http://api.onlyoffice.com/editors/demopreview")
2121

web/documentserver-example/csharp-mvc/App_Start/BundleConfig.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@ public static void RegisterBundles(BundleCollection bundles)
3838

3939
// create the main script bundle
4040
bundles.Add(new ScriptBundle("~/bundles/scripts").Include(
41+
"~/Scripts/formats.js",
4142
"~/Scripts/jscript.js"
4243
));
4344

45+
// create the forgotten page script bundle
46+
bundles.Add(new ScriptBundle("~/bundles/forgotten").Include(
47+
"~/Scripts/forgotten.js"
48+
));
49+
4450
// create a style bundle
4551
bundles.Add(new StyleBundle("~/Content/css").Include(
4652
"~/Content/stylesheet.css",
@@ -52,6 +58,11 @@ public static void RegisterBundles(BundleCollection bundles)
5258
bundles.Add(new StyleBundle("~/Content/editor").Include(
5359
"~/Content/editor.css"
5460
));
61+
62+
// create the forgotten page style bundle
63+
bundles.Add(new StyleBundle("~/Content/forgotten").Include(
64+
"~/Content/forgotten.css"
65+
));
5566
}
5667
}
5768
}
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
.center {
2+
width: auto;
3+
}
4+
5+
.left-panel {
6+
width: 256px;
7+
}
8+
9+
.main-panel {
10+
width: 832px;
11+
margin: 0 32px;
12+
padding: 48px 0;
13+
left: 0;
14+
}
15+
16+
.tableRow {
17+
display: flex;
18+
width: 100%;
19+
justify-content: space-between;
20+
align-items: center;
21+
border-bottom: 1px solid #E2E2E2;
22+
}
23+
24+
.tableRow td:first-child {
25+
width: 70%;
26+
flex-grow: 0;
27+
max-width: none;
28+
}
29+
30+
.tableHeader td:first-child {
31+
text-align: left;
32+
}
33+
34+
.tableHeader td:last-child, .tableRow td:last-child {
35+
width: 10%;
36+
text-align: center;
37+
padding: 0 !important;
38+
}
39+
40+
.tableHeader {
41+
width: 100%;
42+
}
43+
44+
.stored-edit {
45+
display: block;
46+
padding-top: 0;
47+
max-width: none;
48+
}
49+
50+
menu.links {
51+
width: 100%;
52+
}
53+
54+
.scroll-table-body table {
55+
table-layout: fixed;
56+
}
57+
58+
.stored-edit span {
59+
font-size: 12px;
60+
line-height: normal;
61+
position: static;
62+
}
63+
64+
.scroll-table-body {
65+
overflow-y: auto;
66+
}
67+
68+
.stored-list {
69+
height: calc(100% - 58px);
70+
}
71+
72+
header {
73+
min-width:auto;
74+
}
75+
76+
header a {
77+
display: block;
78+
margin: 0 auto;
79+
width: 1152px;
80+
}
81+
82+
@media (max-width: 1279px) and (min-width: 1024px) {
83+
.left-panel {
84+
width: 208px;
85+
}
86+
87+
.main-panel {
88+
width: 688px;
89+
}
90+
91+
header a {
92+
width: 928px;
93+
}
94+
95+
header img {
96+
margin-left: 16px;
97+
}
98+
}
99+
100+
@media (max-width: 1023px) and (min-width: 593px) {
101+
.center {
102+
max-width: 768px;
103+
width: calc(100% - 80px);
104+
}
105+
106+
.table-main {
107+
width: 100%;
108+
}
109+
110+
.left-panel {
111+
width: 208px;
112+
}
113+
114+
.main-panel {
115+
width: calc(100% - 32px);
116+
}
117+
118+
.tableHeader td:last-child, .tableRow td:last-child {
119+
width: 20%;
120+
}
121+
122+
header a {
123+
width: 768px;
124+
}
125+
126+
header img {
127+
margin-left: 40px;
128+
}
129+
}
130+
131+
@media (max-width: 592px) and (min-width: 320px) {
132+
.center, .table-main {
133+
width: 100%;
134+
}
135+
136+
.left-panel {
137+
display: none;
138+
}
139+
140+
.main-panel {
141+
width: 100%;
142+
margin: 0;
143+
padding: 28px 16px;
144+
}
145+
146+
.tableHeader td:last-child, .tableRow td:last-child {
147+
width: 25%;
148+
}
149+
150+
header a {
151+
width: auto;
152+
}
153+
154+
.scroll-table-body {
155+
top: 40px;
156+
}
157+
158+
.tableRow {
159+
padding: 8px 0;
160+
}
161+
}

web/documentserver-example/csharp-mvc/Content/images/file_docxf.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)