Skip to content

Commit

Permalink
feat: Add only office templates for docx, spreadsheets, slide
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed May 28, 2021
1 parent e39e3a7 commit 77cefa5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ if (isDrive) configurationFiles.push(require('./webpack/drive.config.js'))

if (isDrive && target === 'mobile')
configurationFiles.push(require('./webpack/mobile.config.js'))

if (target !== 'mobile')
configurationFiles.push(require('./webpack/appicon.config.js'))

const extraConfig = {
module: {
rules: [
Expand Down
Binary file added src/drive/assets/onlyOffice/slide.pptx
Binary file not shown.
Binary file added src/drive/assets/onlyOffice/spreadsheet.xlsx
Binary file not shown.
Binary file added src/drive/assets/onlyOffice/text.docx
Binary file not shown.
9 changes: 8 additions & 1 deletion webpack/drive.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { DefinePlugin } = require('webpack')
const { environment } = require('cozy-scripts/config/webpack.vars.js')
const CopyPlugin = require('copy-webpack-plugin')

const production = environment === 'production'

Expand All @@ -13,6 +14,12 @@ module.exports = {
? 'https://9259817fbb44484b8b7a0a817d968ae4@sentry.cozycloud.cc/6'
: 'https://29bd1255b6d544a1b65435a634c9ff67@sentry.cozycloud.cc/2'
)
})
}),
new CopyPlugin([
{
from: `src/drive/assets/onlyOffice`,
to: 'onlyOffice'
}
])
]
}

0 comments on commit 77cefa5

Please sign in to comment.