This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first: get excel file from server, with responseType: "arraybuffer" | |
const data = new Uint8Array(this.excelData); | |
const arr = new Array(); | |
for (let i = 0; i !== data.length; ++i) { | |
arr[i] = String.fromCharCode(data[i]); | |
} | |
const bstr = arr.join(""); | |
const workbook = XLSX.read(bstr, { type: "binary" }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2016-12-18T05:41:16.256Z"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const osMimeTypes = { | |
windowsMimeTypes: [ | |
"text/scriptlet", | |
"image/x-wmf", | |
"audio/mid", | |
"audio/wav", | |
"image/x-xbitmap", | |
"application/x-msdownload", | |
"video/x-ms-wm", | |
"application/x-msterminal", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author : Mohammad Sharifi | |
// for dotnettips.info | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
util = require('gulp-util'), | |
connect = require('gulp-connect'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
size = require('gulp-size'), | |
uncss = require('gulp-uncss'), |