Format exporting
This commit is contained in:
@@ -1180,14 +1180,14 @@ module.exports = function (options) {
|
|||||||
{
|
{
|
||||||
association: db.TranslationChapter.Chapter,
|
association: db.TranslationChapter.Chapter,
|
||||||
},
|
},
|
||||||
{
|
request.query.sheets ? {
|
||||||
association: db.TranslationChapter.TranslationChunks,
|
association: db.TranslationChapter.TranslationChunks,
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
association: db.TranslationChunk.Translation
|
association: db.TranslationChunk.Translation
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
} : null,
|
||||||
translationChapterTranslatorInclude,
|
translationChapterTranslatorInclude,
|
||||||
{
|
{
|
||||||
association: db.TranslationChapter.TranslationChapterProofReaders,
|
association: db.TranslationChapter.TranslationChapterProofReaders,
|
||||||
@@ -1239,7 +1239,7 @@ module.exports = function (options) {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
].filter(i => i)
|
||||||
}).then(translationChapters => {
|
}).then(translationChapters => {
|
||||||
if (request.query.sheets) {
|
if (request.query.sheets) {
|
||||||
// Return sheets
|
// Return sheets
|
||||||
@@ -1265,6 +1265,18 @@ module.exports = function (options) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
worksheet.cell(3,2,3,3,true)
|
||||||
|
.string(translationChapter.chapter.name)
|
||||||
|
.style({
|
||||||
|
font: {
|
||||||
|
bold: true,
|
||||||
|
},
|
||||||
|
alignment: {
|
||||||
|
horizontal: 'center',
|
||||||
|
wrapText: true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
worksheet.cell(4,2)
|
worksheet.cell(4,2)
|
||||||
.string(translationChapter.translationArtifactVersion.artifactVersion.artifact.dialect.name)
|
.string(translationChapter.translationArtifactVersion.artifactVersion.artifact.dialect.name)
|
||||||
.style({
|
.style({
|
||||||
@@ -1346,7 +1358,6 @@ module.exports = function (options) {
|
|||||||
// Format Rows...
|
// Format Rows...
|
||||||
worksheet.row(5).freeze()
|
worksheet.row(5).freeze()
|
||||||
worksheet.row(1).setHeight(5)
|
worksheet.row(1).setHeight(5)
|
||||||
worksheet.row(3).setHeight(5)
|
|
||||||
worksheet.row(5).setHeight(5)
|
worksheet.row(5).setHeight(5)
|
||||||
})
|
})
|
||||||
if (translationChapters.length > 0) {
|
if (translationChapters.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user