Skip to content

Commit

Permalink
New: Integrate new excel viewer into preview (box#2)
Browse files Browse the repository at this point in the history
* New: Add fake excel viewer and add it to docLoader

* New: Finish the dummy-viewer

* New: Can parse using sheetjs on the client

* New: SheetJS prototype

* New: Parse xlsx in the viewer

* Fix: Eslint

* New: Remove XLSX package

* Fix: Remove lodash and fix following issues

* Fix: Grids text overlap

* Fix: install modules from public instead of jfrog

* Fix: use meaningful filename
  • Loading branch information
mxiao6 authored and Mingze Xiao committed Jul 10, 2018
1 parent a3391a9 commit fa252b1
Show file tree
Hide file tree
Showing 28 changed files with 23,708 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ function updateConfig(conf, language, index) {
entry: {
annotations: ['box-annotations'],
preview: [`${lib}/Preview.js`],
csv: [`${lib}/viewers/text/BoxCSV.js`]
csv: [`${lib}/viewers/text/BoxCSV.js`],
excel: [`${lib}/viewers/doc/BoxExcel`]
},
output: {
path: path.resolve('dist', version, language),
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"box-react-ui": "^23.5.0",
"chai": "^4.1.2",
"chai-dom": "^1.5.0",
"chart.js": "^2.7.2",
"codeceptjs": "^1.1.8",
"conventional-changelog-cli": "^2.0.1",
"conventional-github-releaser": "^3.1.2",
Expand All @@ -47,8 +48,10 @@
"fetch-mock-forwarder": "^1.0.0",
"file-loader": "^1.1.5",
"fscreen": "^1.0.2",
"html-to-react": "^1.3.3",
"husky": "^0.14.3",
"i18n-webpack-plugin": "^1.0.0",
"immutable": "^3.8.2",
"jsuri": "^1.3.1",
"karma": "^2.0.4",
"karma-chai": "^0.1.0",
Expand All @@ -70,6 +73,7 @@
"mocha": "^5.2.0",
"mock-local-storage": "^1.0.2",
"mojito-rb-gen": "^0.0.1",
"moment": "^2.22.2",
"node-noop": "^1.0.0",
"node-sass": "^4.7.2",
"nsp": "^3.2.1",
Expand All @@ -81,7 +85,10 @@
"prettier-eslint-cli": "^4.4.2",
"raw-loader": "^0.5.1",
"react": "^16.2.0",
"react-chartjs-2": "^2.7.2",
"react-dom": "^16.2.0",
"react-draggable": "^3.0.5",
"react-tether": "^1.0.1",
"react-virtualized": "^9.13.0",
"sass-loader": "^7.0.3",
"saucelabs": "^1.4.0",
Expand Down
6 changes: 6 additions & 0 deletions patch/applyPatch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
echo -e '\033[0;36mStart applying the patch...\033[0m'
echo -e '\033[0;34mPatching SheetJS...\033[0m'
rm -rf ../node_modules/xlsx
cp -R ./xlsx ../node_modules
echo -e '\033[0;32mDone.\033[0m'
686 changes: 686 additions & 0 deletions patch/xlsx/README.html

Large diffs are not rendered by default.

Loading

0 comments on commit fa252b1

Please sign in to comment.