mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
lint compliance
This commit is contained in:
parent
1e52e13d07
commit
8f96735cc3
@ -10,7 +10,6 @@ define([
|
||||
'/components/pako/dist/pako.min.js',
|
||||
'/common/common-hash.js',
|
||||
'/api/config',
|
||||
'jquery',
|
||||
], function (
|
||||
Util,
|
||||
FileCrypto,
|
||||
@ -19,7 +18,6 @@ define([
|
||||
pako,
|
||||
Hash,
|
||||
ApiConfig,
|
||||
$,
|
||||
) {
|
||||
const Nacl = window.nacl;
|
||||
const x2js = new X2JS();
|
||||
@ -82,11 +80,6 @@ define([
|
||||
}
|
||||
};
|
||||
|
||||
const xmlAsJsonContent = (xml) => {
|
||||
var decompressedXml = decompressDrawioXml(xml);
|
||||
return numbersToNumbers(x2js.xml2js(decompressedXml));
|
||||
};
|
||||
|
||||
// As described here: https://drawio-app.com/extracting-the-xml-from-mxfiles/
|
||||
const decompressDrawioXml = function(xmlDocStr) {
|
||||
var TEXT_NODE = 3;
|
||||
@ -122,6 +115,12 @@ define([
|
||||
return result;
|
||||
};
|
||||
|
||||
const xmlAsJsonContent = (xml) => {
|
||||
var decompressedXml = decompressDrawioXml(xml);
|
||||
return numbersToNumbers(x2js.xml2js(decompressedXml));
|
||||
};
|
||||
|
||||
|
||||
const parseDrawioStyle = (styleAttrValue) => {
|
||||
if (!styleAttrValue) {
|
||||
return {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user