mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
Merge branch 'release/1.8.0' into develop
# Conflicts: # CHANGELOG.md
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -5,7 +5,7 @@
|
||||
[submodule "web/documentserver-example/nodejs/public/assets/document-formats"]
|
||||
path = web/documentserver-example/nodejs/public/assets/document-formats
|
||||
url = https://github.com/ONLYOFFICE/document-formats
|
||||
branch = master
|
||||
branch = feature/v8.0
|
||||
[submodule "web/documentserver-example/csharp-mvc/assets/document-templates"]
|
||||
path = web/documentserver-example/csharp-mvc/assets/document-templates
|
||||
url = https://github.com/ONLYOFFICE/document-templates
|
||||
|
||||
@ -3,6 +3,10 @@
|
||||
- nodejs: handling conversion -9 error
|
||||
- different goback for users
|
||||
- nodejs: converting function on index page
|
||||
|
||||
## 1.8.0
|
||||
- nodejs: pdf, djvu, xps, oxps as pdf documentType
|
||||
- nodejs: filling pdf
|
||||
- version number to page meta
|
||||
- ar skin languages
|
||||
- sr-Latn-RS skin languages
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<appSettings>
|
||||
<clear />
|
||||
<add key="version" value="1.7.0"/>
|
||||
<add key="version" value="1.8.0"/>
|
||||
|
||||
<add key="filesize-max" value="52428800"/>
|
||||
<add key="storage-path" value=""/>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<appSettings>
|
||||
<clear />
|
||||
<add key="version" value="1.7.0"/>
|
||||
<add key="version" value="1.8.0"/>
|
||||
|
||||
<add key="filesize-max" value="52428800"/>
|
||||
<add key="storage-path" value=""/>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
server.version=1.7.0
|
||||
server.version=1.8.0
|
||||
|
||||
server.address=
|
||||
server.port=4000
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
version=1.7.0
|
||||
version=1.8.0
|
||||
|
||||
filesize-max=5242880
|
||||
storage-folder=app_data
|
||||
|
||||
@ -950,18 +950,21 @@ app.get('/editor', (req, res) => { // define a handler for editing document
|
||||
|
||||
const templatesImageUrl = req.DocManager.getTemplateImageUrl(fileUtility.getFileType(fileName));
|
||||
const createUrl = req.DocManager.getCreateUrl(fileUtility.getFileType(fileName), userid, type, lang);
|
||||
const templates = [
|
||||
{
|
||||
image: '',
|
||||
title: 'Blank',
|
||||
url: createUrl,
|
||||
},
|
||||
{
|
||||
image: templatesImageUrl,
|
||||
title: 'With sample content',
|
||||
url: `${createUrl}&sample=true`,
|
||||
},
|
||||
];
|
||||
let templates = null;
|
||||
if (createUrl != null) {
|
||||
templates = [
|
||||
{
|
||||
image: '',
|
||||
title: 'Blank',
|
||||
url: createUrl,
|
||||
},
|
||||
{
|
||||
image: templatesImageUrl,
|
||||
title: 'With sample content',
|
||||
url: `${createUrl}&sample=true`,
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
const userGroup = user.group;
|
||||
const { reviewGroups } = user;
|
||||
@ -1008,7 +1011,11 @@ app.get('/editor', (req, res) => { // define a handler for editing document
|
||||
if (!canEdit && mode === 'edit') {
|
||||
mode = 'view';
|
||||
}
|
||||
const submitForm = mode === 'fillForms' && userid === 'uid-1';
|
||||
|
||||
let submitForm = false;
|
||||
if (mode === 'fillForms') {
|
||||
submitForm = userid === 'uid-1';
|
||||
}
|
||||
|
||||
if (user.goback != null) {
|
||||
user.goback.url = `${req.DocManager.getServerUrl()}`;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.7.0",
|
||||
"version": "1.8.0",
|
||||
"log": {
|
||||
"appenders": [
|
||||
{
|
||||
|
||||
@ -214,7 +214,11 @@ DocManager.prototype.getCallback = function getCallback(fileName) {
|
||||
// get url to the created file
|
||||
DocManager.prototype.getCreateUrl = function getCreateUrl(docType, userid, type, lang) {
|
||||
const server = this.getServerUrl();
|
||||
const ext = this.getInternalExtension(docType).replace('.', '');
|
||||
let ext = this.getInternalExtension(docType);
|
||||
if (ext === null) {
|
||||
return null;
|
||||
}
|
||||
ext = ext.replace('.', '');
|
||||
const handler = `/editor?fileExt=${ext}&userid=${userid}&type=${type}&lang=${lang}`;
|
||||
|
||||
return server + handler;
|
||||
@ -381,7 +385,7 @@ DocManager.prototype.getInternalExtension = function getInternalExtension(fileTy
|
||||
return '.pptx';
|
||||
}
|
||||
|
||||
return '.docx'; // the default value is .docx
|
||||
return null; // the default value is null
|
||||
};
|
||||
|
||||
// get the template image url
|
||||
|
||||
@ -68,6 +68,7 @@ fileUtility.fileType = {
|
||||
word: 'word',
|
||||
cell: 'cell',
|
||||
slide: 'slide',
|
||||
pdf: 'pdf',
|
||||
};
|
||||
|
||||
fileUtility.getSuppotredExtensions = function getSuppotredExtensions() {
|
||||
|
||||
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 1h8l4 4v10H2V1z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14 5l-4-4H2v14h12V5zm-4-5l5 5v11H1V0h9z" fill="#BFBFBF"/><path fill="#9E1919" d="M3 10h10v4H3z"/><path d="M7 7V2H3v5h4zM8 3V2h2v1H8zM8 5V4h5v1H8zM13 6H8v1h5V6zM13 8H3v1h10V8z" fill="#BFBFBF"/><path opacity=".3" d="M9 1h1v3h4l1 1H9V1z" fill="#333"/></svg>
|
||||
|
After Width: | Height: | Size: 441 B |
BIN
web/documentserver-example/nodejs/public/images/pdf.ico
Normal file
BIN
web/documentserver-example/nodejs/public/images/pdf.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.1 KiB |
@ -586,6 +586,11 @@ footer table tr td:first-child {
|
||||
background-image: url("../images/icon_pptx.svg");
|
||||
}
|
||||
|
||||
.stored-edit.pdf,
|
||||
.uploadFileName.pdf {
|
||||
background-image: url("../images/icon_pdf.svg");
|
||||
}
|
||||
|
||||
.stored-edit span {
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
|
||||
Submodule web/documentserver-example/php/assets/document-formats updated: 2c3e099f1e...05bf7a6e6d
@ -22,7 +22,7 @@ use Example\Common\URL;
|
||||
|
||||
class ConfigurationManager
|
||||
{
|
||||
public string $version = '1.7.0';
|
||||
public string $version = '1.8.0';
|
||||
|
||||
public function getVersion(): string
|
||||
{
|
||||
|
||||
Submodule web/documentserver-example/python/assets/document-formats updated: 2c3e099f1e...05bf7a6e6d
@ -22,7 +22,7 @@ from src.common import string
|
||||
|
||||
|
||||
class ConfigurationManager:
|
||||
version = '1.7.0'
|
||||
version = '1.8.0'
|
||||
|
||||
def getVersion(self) -> str:
|
||||
return self.version
|
||||
|
||||
@ -31,7 +31,7 @@ class ConfigurationManager
|
||||
|
||||
sig { void }
|
||||
def initialize
|
||||
@version = '1.7.0'
|
||||
@version = '1.8.0'
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(URI::Generic)) }
|
||||
|
||||
Reference in New Issue
Block a user