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