mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-13 10:11:36 -07:00
* fix: apply automatic eslint fixes * lint: allow hashbang comment for tiddlywiki.js * lint: first back of manual lint fixes for unused vars * lint: added more fixes for unused vars * lint: missed files * lint: updated eslint config with selected rules from #9669
24 lines
575 B
JavaScript
24 lines
575 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/xlsx-utils/deserializer.js
|
|
type: application/javascript
|
|
module-type: tiddlerdeserializer
|
|
|
|
XLSX file deserializer
|
|
|
|
\*/
|
|
|
|
"use strict";
|
|
|
|
/*
|
|
Parse an XLSX file into tiddlers
|
|
*/
|
|
exports["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] = function(text,fields) {
|
|
// Collect output tiddlers in an array
|
|
var XLSXImporter = require("$:/plugins/tiddlywiki/xlsx-utils/importer.js").XLSXImporter,
|
|
importer = new XLSXImporter({
|
|
text: text,
|
|
wiki: $tw.wiki
|
|
});
|
|
// Return the output tiddlers
|
|
return importer.getResults();
|
|
};
|