diff --git a/.gitignore b/.gitignore index c1edce9..f41630f 100644 --- a/.gitignore +++ b/.gitignore @@ -136,6 +136,9 @@ _TeamCity* *.coverage *.coveragexml +# Visual Studio code extension +out/ + # NCrunch _NCrunch_* .*crunch*.local.xml @@ -221,7 +224,7 @@ ClientBin/ *.publishsettings orleans.codegen.cs -# Including strong name files can present a security risk +# Including strong name files can present a security risk # (https://github.com/github/gitignore/pull/2483#issue-259490424) #*.snk @@ -317,7 +320,7 @@ __pycache__/ # OpenCover UI analysis results OpenCover/ -# Azure Stream Analytics local run output +# Azure Stream Analytics local run output ASALocalRun/ # MSBuild Binary and Structured Log @@ -326,7 +329,7 @@ ASALocalRun/ # NVidia Nsight GPU debugger configuration file *.nvuser -# MFractors (Xamarin productivity tool) working folder +# MFractors (Xamarin productivity tool) working folder .mfractor/ ### macOS ### diff --git a/CHANGELOG.md b/CHANGELOG.md index d18832b..0c6d350 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## v0.2 +- Add more text to start view of extension +- Fix import issue with umlauts under Windows (see #5) +- Fix issue with page numbering by matuc (see #6) +- Add more information to clone sucess (see #7) ## v0.1 - Initial release \ No newline at end of file diff --git a/out/editorFunctions.js b/out/editorFunctions.js deleted file mode 100644 index 5753753..0000000 --- a/out/editorFunctions.js +++ /dev/null @@ -1,576 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @author Lucas Vogel - */ -const vscode = require("vscode"); -const helper_1 = require("./helper/helper"); -const languages_1 = require("./languages"); -const imageHelper_1 = require("./helper/imageHelper"); -const matucCommands_1 = require("./matucCommands"); -const editorFunctionsSnippets_1 = require("./snippets/editorFunctionsSnippets"); -const tableHelper_1 = require("./helper/tableHelper"); -const Papa = require("papaparse"); -const path = require("path"); -const listHelper_1 = require("./helper/listHelper"); -const insertHelper_1 = require("./helper/insertHelper"); -const headlineHelper_1 = require("./helper/headlineHelper"); -const settingsHelper_1 = require("./helper/settingsHelper"); -/** - * The Main Class to add Buttons and their functionality of the Editor Tools Bar. - */ -class EditorFunctions { - constructor(taskbarCallback, sidebarCallback, context) { - /** - * Setup of the Editor Functions. Here taskbar edit-buttons can be added. - */ - this.setup = () => { - this._taskbarCallback.addButton("bold.svg", this._language.get("bold"), this.bold, this._language.get("emphasis"), "agsbs.bold"); - this._taskbarCallback.addButton("italic.svg", this._language.get("italic"), this.italic, this._language.get("emphasis"), "agsbs.italic"); - this._taskbarCallback.addButton("strikethrough.svg", this._language.get("strikethrough"), this.strikethrough, this._language.get("emphasis"), "agsbs.strikethrough"); - this._taskbarCallback.addButton("h.svg", this._language.get("headline"), this.headline, this._language.get("headline"), "agsbs.h"); - this._taskbarCallback.addButton("h1.svg", this._language.get("headline1"), this.h1, this._language.get("headline"), "agsbs.h1"); - this._taskbarCallback.addButton("h2.svg", this._language.get("headline2"), this.h2, this._language.get("headline"), "agsbs.h2"); - this._taskbarCallback.addButton("h3.svg", this._language.get("headline3"), this.h3, this._language.get("headline"), "agsbs.h3"); - this._taskbarCallback.addButton("h4.svg", this._language.get("headline4"), this.h4, this._language.get("headline"), "agsbs.h4"); - this._taskbarCallback.addButton("h5.svg", this._language.get("headline5"), this.h5, this._language.get("headline"), "agsbs.h5"); - this._taskbarCallback.addButton("h6.svg", this._language.get("headline6"), this.h6, this._language.get("headline"), "agsbs.h6"); - this._taskbarCallback.addButton('numbered_list.svg', this._language.get('orderedList'), this.orderedList, this._language.get('list'), "agsbs.numberedList"); - this._taskbarCallback.addButton('list.svg', this._language.get('unorderedList'), this.unorderedList, this._language.get('list'), "agsbs.list"); - this._taskbarCallback.addButton('table.svg', this._language.get('insertTable'), this.insertTable, this._language.get('table'), "agsbs.table"); - this._taskbarCallback.addButton('import_table_csv.svg', this._language.get('importTableCsv'), this.insertCSVTable, this._language.get('table'), "agsbs.importTableCSV"); - this._taskbarCallback.addButton("edit_table.svg", this._language.get("editTable"), this.editTable, this._language.get("table"), "agsbs.editTable"); - this._taskbarCallback.addButton("formula.svg", this._language.get("formula"), this.formula, this._language.get("formatting"), "agsbs.formula"); - this._taskbarCallback.addButton("inline_formula.svg", this._language.get("formulaInline"), this.inlineFormula, this._language.get("formatting"), "agsbs.inlineFormula"); - this._taskbarCallback.addButton("code.svg", this._language.get("code"), this.code, this._language.get("formatting"), "agsbs.code"); - this._taskbarCallback.addButton("quote.svg", this._language.get("blockquote"), this.blockquote, this._language.get("formatting"), "agsbs.quote"); - this._taskbarCallback.addButton("link.svg", this._language.get("insertLink"), this.insertLink, this._language.get("insert"), "agsbs.link"); - this._taskbarCallback.addButton('image.svg', this._language.get('insertGraphic'), this.insertImage, this._language.get('insert'), "agsbs.image"); - this._taskbarCallback.addButton('footnote.svg', this._language.get('insertFootnote'), this.insertFootnote, this._language.get('insert'), "agsbs.footnote"); - this._taskbarCallback.addButton('annotation.svg', this._language.get('authorAnnotation'), this.insertAnnotation, this._language.get('insert'), "agsbs.annotation"); - this._taskbarCallback.addButton('hr.svg', this._language.get('horizontalRule'), this.insertHorizontalRule, this._language.get('separator'), "agsbs.hr"); - this._taskbarCallback.addButton('new_page.svg', this._language.get('newPage'), this.addNewPage, this._language.get('separator'), "agsbs.newPage"); - }; - /** - * Inserts a headline with a computed grade. - * It tries to smartly match what the next headline could be. - */ - this.headline = () => __awaiter(this, void 0, void 0, function* () { - var result = yield this._headlineHelper.getNextHeadlineString(); - var headlineGrade = (result.match(/\#/g) || []).length; - vscode.window.showInformationMessage(this._language.get("headlineInsertedWithGrade") + headlineGrade); - this._headlineHelper.setSpecificHeadline(headlineGrade); - }); - /** - * Inserts a headline with grade 1 - */ - this.h1 = () => __awaiter(this, void 0, void 0, function* () { - this._headlineHelper.setSpecificHeadline(1); - }); - /** - * Inserts a headline with grade 2 - */ - this.h2 = () => __awaiter(this, void 0, void 0, function* () { - this._headlineHelper.setSpecificHeadline(2); - }); - /** - * Inserts a headline with grade 3 - */ - this.h3 = () => __awaiter(this, void 0, void 0, function* () { - this._headlineHelper.setSpecificHeadline(3); - }); - /** - * Inserts a headline with grade 4 - */ - this.h4 = () => __awaiter(this, void 0, void 0, function* () { - this._headlineHelper.setSpecificHeadline(4); - }); - /** - * Inserts a headline with grade 5 - */ - this.h5 = () => __awaiter(this, void 0, void 0, function* () { - this._headlineHelper.setSpecificHeadline(5); - }); - /** - * Inserts a headline with grade 6 - */ - this.h6 = () => __awaiter(this, void 0, void 0, function* () { - this._headlineHelper.setSpecificHeadline(6); - }); - /** - * Inserts a new Page identifier. It uses Matuc to determine what Page it is. - */ - this.addNewPage = () => __awaiter(this, void 0, void 0, function* () { - var currentTextEditor = yield this._helper.getCurrentTextEditor(); - if (currentTextEditor.document.isDirty) { - yield currentTextEditor.document.save(); - vscode.window.showInformationMessage(this._language.get("documentHasBeenSaved")); - } - var matucIsInstalled = yield this._matucCommands.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var result = yield this._matucCommands.addPageNumber(); - if (result.includes("|| - ") === false) { - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError")); - return; - } - var insertText = "\n" + result + "\n"; - this._helper.insertStringAtStartOfLine(insertText); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Inserts a horizontal rule. - */ - this.insertHorizontalRule = () => __awaiter(this, void 0, void 0, function* () { - var text = "\n---\n\n"; - var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection(); - if (insertPosition === false) { - yield this._helper.insertStringAtStartOfLineOrLinebreak(text); - return; - } - else { - vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning")); - var thisCurrentEditor = yield this._helper.getCurrentTextEditor(); - var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end); - this._helper.insertStringAtStartOfLineOrLinebreak(text, thisCurrentEditor, newEndPosition); - } - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Adds the 'add Annotation'-Dialogue to to the sidebar. - */ - this.insertAnnotation = () => __awaiter(this, void 0, void 0, function* () { - var setttingsTextboxContentIsOptional = yield this._settings.get("optionalTextboxContent"); - var form = this._snippets.get("insertAnnotationHTMLPart1"); - if (setttingsTextboxContentIsOptional === false) { - form += "required='true'"; - } - form += this._snippets.get("insertAnnotationHTMLPart2"); - if (setttingsTextboxContentIsOptional === false) { - form += "required='true'"; - } - form += this._snippets.get("insertAnnotationHTMLPart3"); - var script = this._snippets.get("insertAnnotationSCRIPT"); - this._sidebarCallback.addToSidebar(form, this._language.get("insertTextbox"), this.insertAnnotationSidebarCallback, this._language.get("insert"), "", script); - }); - /** - * Adds an specified annotation to the text. - */ - this.insertAnnotationSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var annotationType = params.annotationType.value; - var color = params.color.value; - var title = params.titleOfBox.value; - var content = params.contentOfBox.value; - var text = ""; - if (annotationType === "textFrame") { - text = `
\n`; - text += `${title}\n`; - text += `${content}\n`; - text += `
\n`; - } - if (annotationType === "textBox") { - text = `
\n`; - text += `${title}\n`; - text += `${content}\n`; - text += `
\n`; - } - if (annotationType === "annotation") { - text = `
${content}
`; - if (title !== "") { - vscode.window.showWarningMessage(this._language.get("annotationNoTitleError")); - } - } - //Check if Annotation will be placed in Table (optional, but additional check); - var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection(); - if (insertPosition === false) { - yield this._helper.insertStringAtStartOfLineOrLinebreak(text); - return; - } - else { - vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning")); - var thisCurrentEditor = yield this._helper.getCurrentTextEditor(); - var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end); - this._helper.insertStringAtStartOfLineOrLinebreak(text, thisCurrentEditor, newEndPosition); - } - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Adds the form dialogue to the sidebar - */ - this.insertFootnote = () => __awaiter(this, void 0, void 0, function* () { - var form = this._snippets.get("insertFootnoteHTML"); - this._sidebarCallback.addToSidebar(form, this._language.get("insertFootnote"), this.insertFootnoteSidebarCallback, this._language.get("insertFootnote")); - }); - /** - * Adds a specified footnote to the text. - */ - this.insertFootnoteSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var label = params.footLabel.value; - var text = params.footText.value; - var currentLineLabel = "[^" + label + "]"; - var includesLabel = yield this._insertHelper.checkDocumentForString(currentLineLabel); - if (text.includes("[") || text.includes("]") || text.includes("^")) { - vscode.window.showErrorMessage(this._language.get("footLabelError")); - return false; - } - if (includesLabel === true) { - vscode.window.showErrorMessage(this._language.get("footLabelErrorDetail")); - return false; - } - var pageEndLabel = currentLineLabel + ": " + text; - var endPoint = yield this._insertHelper.getPageEndLine(); - if (endPoint === false) { - yield this._helper.insertStringAtStartOfLine(currentLineLabel + "\n" + pageEndLabel + "\n"); - } - else { - yield this._helper.insertStringAtStartOfLineOrLinebreak(currentLineLabel); - endPoint = yield this._insertHelper.getPageEndLine(); - var currentTextEditor = yield this._helper.getCurrentTextEditor(); - var newEndSelection = new vscode.Selection(endPoint, endPoint); - yield this._helper.insertStringAtStartOfLineOrLinebreak(pageEndLabel, currentTextEditor, newEndSelection); - } - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Adds a quote identifier at the start of the current line. - */ - this.blockquote = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtBeginningOfLine("> "); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Marks the current selection as code. - */ - this.code = () => __awaiter(this, void 0, void 0, function* () { - var currentTextEditor = yield this._helper.getCurrentTextEditor(); - var selection = yield this._helper.getWordsSelection(currentTextEditor); - var startInsertText = "```"; - var endInsertText = "```"; - if (selection.start.line !== selection.end.line) { - startInsertText = "\n" + startInsertText + "\n"; - endInsertText = "\n" + endInsertText; - } - yield this._helper.toggleCharactersAtStartAndEnd(startInsertText, endInsertText); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Toggles the current selection as a inline formula - */ - this.inlineFormula = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtStartAndEnd("$", "$"); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Toggles the current selection as a formula - */ - this.formula = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtStartAndEnd("$$ ", " $$"); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Toggles a unordered list. - */ - this.unorderedList = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtBeginningOfLine("- "); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Adds a Marker at the current line as a ordered list. - */ - this.orderedList = () => __awaiter(this, void 0, void 0, function* () { - this._listHelper.orderedList(); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Editing a existing Table - */ - this.editTable = () => __awaiter(this, void 0, void 0, function* () { - var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection(); - if (insertPosition === false) { - vscode.window.showErrorMessage(this._language.get("noTableFound")); - return; - } - else { - var tableData = yield this._tableHelper.loadSelectedTable(insertPosition); - var form = this._snippets.get('editTableHTML'); - form = form + ``; //TODO possible escape file string - var script = this._snippets.get('editTableSCRIPT'); - script += this._snippets.get('editTableScriptPart1'); - var jsonToInsert = JSON.stringify(tableData["data"]); - jsonToInsert = jsonToInsert.replace(/\\n/g, "\\\\n") - .replace(/\\"/g, "\\\\\"") - .replace(/\\'/g, "\\\\'") - .replace(/\\&/g, "\\\\&") - .replace(/\\r/g, "\\\\r") - .replace(/\\t/g, "\\\\t") - .replace(/\\b/g, "\\\\b") - .replace(/\\f/g, "|\f"); - script += jsonToInsert; - script += this._snippets.get('editTableScriptPart2'); - var style = this._snippets.get('editTableSTYLE'); - this._sidebarCallback.addToSidebar(form, this._language.get("insertTable"), this.editTableSidebarCallback, this._language.get("insert"), style, script); - } - }); - /** - * Callback of the Sidebar for editing a table - */ - this.editTableSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var hasHeader = params.tableHeadCheckbox.checked; - var tableType = params.tableType.value; - var rawdata = params.tableJSON.value; - var data; - try { - data = JSON.parse(rawdata); - } - catch (e) { - console.log(e); - return; - } - var tableData = yield this._tableHelper.generateCSVfromJSON(rawdata); - var fileName = params.hiddenFileName.value.replace(/^.*[\\\/]/, ''); - var folderName = params.hiddenFileName.value.substr(0, params.hiddenFileName.value.lastIndexOf("/") - 1); - var defaultGeneratedFolderName = yield this._tableHelper.getTableFolderName(); - var savedTable; - if (folderName === defaultGeneratedFolderName) { - savedTable = yield this._tableHelper.writeCSVFile(tableData, fileName); - } - else { - savedTable = yield this._tableHelper.writeCSVFile(tableData); - //if table exists in other folder, generate new Name, because the file could potentially already exists - // with that name so no other file will be overridden by accident - } - vscode.window.showInformationMessage(this._language.get("filehasBeenWritten") + params.hiddenFileName.value); - var extraText = ""; - if (savedTable !== false) { - var relSavedTablePathParts = savedTable.split(path.sep); - var relSavedTablePath = "." + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 2] + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 1]; - extraText = "exported to " + relSavedTablePath; - } - var table = this._tableHelper.generateTable(hasHeader, data, tableType, extraText); - var insertSelection = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection(); - if (insertSelection === false) { - vscode.window.showErrorMessage(this._language.get("originalTableNotFound")); - this._helper.insertStringAtStartOfLineOrLinebreak(table); - } - else { - this._helper.replaceSelection(table, insertSelection); - } - }); - /** - * Insert a Table from a CSV-File - */ - this.insertCSVTable = () => __awaiter(this, void 0, void 0, function* () { - var thisPath = yield this._helper.getCurrentDocumentFolderPath(); - var results = yield this._tableHelper.getAllTablesInFolder(thisPath); - var selectionTablesHTML = this._tableHelper.generateSelectTableOptionsHTML(results); - var form = ` - - `; - this._sidebarCallback.addToSidebar(form, this._language.get("importTableCsv"), this.insertCSVTableSidebarCallback, this._language.get("insert")); - }); - /** - * Callback for insert a table from a CSV-File - */ - this.insertCSVTableSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var urlData = params.selectTable.value; - var url; - if (urlData === "") { - vscode.window.showErrorMessage(this._language.get("noFileSelected")); - return false; - } - else { - try { - url = JSON.parse(urlData); - } - catch (e) { - vscode.window.showErrorMessage(this._language.get("importTableFromCsvError")); - console.log(e); - return false; - } - } - var content = yield this._helper.getContentOfFile(url.completePath); - content = content.replace(/\ +$/, ""); - content = content.replace(/\n+$/, ""); //removes trailing spaces and line breaks - var result = yield Papa.parse(content); - var extraText = this._language.get("importedFrom") + " " + url.relativePath; - var table = this._tableHelper.generateTable(false, result.data, "", extraText); - var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection(); - if (insertPosition === false) { - this._helper.insertStringAtStartOfLineOrLinebreak(table); - } - else { - vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning")); - var thisCurrentEditor = yield this._helper.getCurrentTextEditor(); - var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end); - this._helper.insertStringAtStartOfLineOrLinebreak(table, thisCurrentEditor, newEndPosition); - } - }); - /** - * Insert Table Button Function - */ - this.insertTable = () => __awaiter(this, void 0, void 0, function* () { - var form = this._snippets.get('insertTableHTML'); - var script = this._snippets.get('insertTableSCRIPT'); - var style = this._snippets.get('insertTableSTYLE'); - this._sidebarCallback.addToSidebar(form, this._language.get("insertTable"), this.insertTableSidebarCallback, this._language.get("insert"), style, script); - }); - /** - * Insert Table SidebarCallback Function - */ - this.insertTableSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var hasHeader = params.tableHeadCheckbox.checked; - var tableType = params.tableType.value; - var rawdata = params.tableJSON.value; - var data; - try { - data = JSON.parse(rawdata); - } - catch (e) { - console.log(e); - return; - } - var savedTable = yield this._tableHelper.generateCSVfromJSONandSave(rawdata); - var extraText = ""; - if (savedTable !== false) { - var relSavedTablePathParts = savedTable.split(path.sep); - var relSavedTablePath = "." + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 2] + path.sep + relSavedTablePathParts[relSavedTablePathParts.length - 1]; - extraText = "exported to " + relSavedTablePath; - } - var table = this._tableHelper.generateTable(hasHeader, data, tableType, extraText); - var insertPosition = yield this._tableHelper.getIfSelectionIsInTableAndReturnSelection(); - if (insertPosition === false) { - this._helper.insertStringAtStartOfLineOrLinebreak(table); - } - else { - vscode.window.showWarningMessage(this._language.get("tableInsertionPositionConflictWarning")); - var thisCurrentEditor = yield this._helper.getCurrentTextEditor(); - var newEndPosition = new vscode.Selection(insertPosition.end, insertPosition.end); - this._helper.insertStringAtStartOfLineOrLinebreak(table, thisCurrentEditor, newEndPosition); - } - }); - /** - * Inserts an Image - */ - this.insertImage = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matucCommands.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var thisPicturesFolderName = yield this._imageHelper.getPictureFolderName(); - var thisPath = yield this._helper.getCurrentDocumentFolderPath(); - var thisPicturesArray = yield this._imageHelper.getAllPicturesInFolder(thisPath, thisPicturesFolderName); - var allPicturesHTMLString = yield this._imageHelper.generateSelectImagesOptionsHTML(thisPicturesArray); - var form = ""; - var script = this._snippets.get("insertImageScript"); - form += this._snippets.get('insertImageFormPart1') + allPicturesHTMLString + this._snippets.get('insertImageFormPart2'); - this._sidebarCallback.addToSidebar(form, this._language.get("insertGraphic"), this.insertImageSidebarCallback, this._language.get("insert"), "", script); - }); - /** - * The Callback for inserting an image from the sidebar, inserts the image - * @param params parameters given by the callback about the html-elements of the html-form - */ - this.insertImageSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var altText = ""; - var pictureTitle = ""; - var pictureSelector = JSON.parse(params.selectPicture.value); - altText += params.altText.value; - pictureTitle += params.graphicTitle.value; - var pictureSource = ""; - pictureSource += pictureSelector.markdownReadyRelativePath; - var result = yield this._matucCommands.imageDescription(altText, params.outsourceCheckbox.checked, pictureSelector.basePath, pictureTitle, pictureSelector.markdownReadyRelativePath); - yield this._helper.insertStringAtStartOfSelection(result['internal'].verbatim); - //typescript does not like .internal, so this workaround is used. - if (result.hasOwnProperty("external")) { // if the description is outsourced, the returning JSON has a 'external' property - var fileName = yield this._imageHelper.getPictureFolderName(); - fileName += ".md"; - this._imageHelper.addImageDescriptionToFile(pictureSelector.basePath, fileName, result["external"].verbatim); - //typescript does not like .external, so this workaround is used. - } - }); - /** - * Adds a panel to the sidebar to add a link - */ - this.insertLink = () => { - var form = this._snippets.get("insertLinkForm"); - var script = ` - function valueChanged(){ - var urlElement = document.getElementById("url"); - var url = urlElement.value; - var linkTextElement = document.getElementById("linkText"); - var linkText = linkTextElement.value; - var linkTitleElement = document.getElementById("linkTitle"); - var linkTitle = linkTitleElement.value; - var a = document.getElementById("link"); - - a.href = url; - a.innerHTML = linkText; - a.title = linkTitle; - - } - `; - this._sidebarCallback.addToSidebar(form, this._language.get("insertLink"), this.insertLinkSidebarCallback, this._language.get("insertLinkSubmit"), "", script); - }; - /** - * gets called when the 'insert Link'-Button is pressed - */ - this.insertLinkSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var stringToInsert; - if (params.linkTitle.value !== "") { - stringToInsert = `[${params.linkText.value}](${params.url.value} "${params.linkTitle.value}") `; - } - else { - stringToInsert = `[${params.linkText.value}](${params.url.value}) `; - } - yield this._helper.insertStringAtStartOfSelection(stringToInsert); - }); - /** - * Makes the current text bold. - */ - this.bold = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtStartAndEnd("**", "**"); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Makes the current text italic. - */ - this.italic = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtStartAndEnd("*", "*"); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Makes the current text strikethrough. - */ - this.strikethrough = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.toggleCharactersAtStartAndEnd("~~", "~~"); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - this._helper = new helper_1.default; - this._imageHelper = new imageHelper_1.default(context); - this._sidebarCallback = sidebarCallback; - this._taskbarCallback = taskbarCallback; - this._language = new languages_1.default; - this._matucCommands = new matucCommands_1.default; - this._snippets = new editorFunctionsSnippets_1.default; - this._tableHelper = new tableHelper_1.default; - this._listHelper = new listHelper_1.default; - this._insertHelper = new insertHelper_1.default; - this._headlineHelper = new headlineHelper_1.default; - this._settings = new settingsHelper_1.default; - } -} -exports.default = EditorFunctions; -//# sourceMappingURL=editorFunctions.js.map \ No newline at end of file diff --git a/out/editorFunctions.js.map b/out/editorFunctions.js.map deleted file mode 100644 index 59d86cf..0000000 --- a/out/editorFunctions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"editorFunctions.js","sourceRoot":"","sources":["../src/editorFunctions.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AAGnC,sDAA+C;AAC/C,mDAA4C;AAC5C,gFAAwE;AACxE,sDAA+C;AAC/C,kCAAkC;AAClC,6BAA6B;AAC7B,oDAA6C;AAC7C,wDAAiD;AACjD,4DAAqD;AACrD,4DAAqD;AAErD;;GAEG;AACH;IAcI,YAAY,eAAe,EAAE,eAAe,EAAE,OAAO;QAerD;;WAEG;QACI,UAAK,GAAG,GAAG,EAAE;YAChB,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,EAA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line at end of file diff --git a/out/extension.js b/out/extension.js deleted file mode 100644 index e5ca995..0000000 --- a/out/extension.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @author Lucas Vogel - */ -const vscode = require("vscode"); -const helper_1 = require("./helper/helper"); -const settingsHelper_1 = require("./helper/settingsHelper"); -const sidebar_1 = require("./sidebar"); -const taskbar_1 = require("./taskbar"); -/** - * Gets triggered when the Extension is activated - * @param context Context of the extension, gets automatically handed over from VSCode at activation - */ -function activate(context) { - console.log('AGSBS is now active!'); - let extensionController = new ExtensionController(context); - let disposable = vscode.commands.registerCommand('agsbs.open', () => { - vscode.window.showInformationMessage('AGSBS is active.'); - }); - context.subscriptions.push(extensionController); - context.subscriptions.push(disposable); -} -exports.activate = activate; -/** - * this method is called when your extension is deactivated - */ -function deactivate() { - vscode.window.showInformationMessage('AGSBS deactivated.'); -} -exports.deactivate = deactivate; -/** - * Orchestrates Updates and all open Panels - */ -class ExtensionController { - constructor(context) { - this.disposable = vscode.commands.registerCommand("agsbs.focusDocument", () => { - this._helper.focusDocument(); - }); - let sidebar = new sidebar_1.default(context); - let taskbar = new taskbar_1.default(sidebar, context); - let helper = new helper_1.default(); - this._settingsHelper = new settingsHelper_1.default; - this._settingsHelper.setup(); //If settings are not set, this will initialize them - this._layout = { orientation: 1, groups: [{ groups: [{ size: 0.8 }, { size: 0.2 }], size: 0.85 }, { size: 0.15 }] }; - this._defaultLayout = { orientation: 1, groups: [{}] }; - this._helper = helper; - this._taskbar = taskbar; - this._sidebar = sidebar; - let subscriptions = []; //Create Disposable for Event subscriptions - vscode.window.onDidChangeActiveTextEditor(this._update, this, subscriptions); - // create a combined disposable from both event subscriptions - this._disposable = vscode.Disposable.from(...subscriptions); - this._update(); - } - getSidebarPanel(params) { - console.log("RETURN PANEL" + params); - return this._sidebarPanel; - } - dispose() { - this._disposable.dispose(); - } - /** - * Gets triggered when the Layout of the Editor changes. - */ - _update() { - return __awaiter(this, void 0, void 0, function* () { - let editor = vscode.window.activeTextEditor; - if (!editor) { //If no Editor is open, return. - return; - } - let doc = editor.document; - if (doc.languageId === "markdown" || doc.languageId === "multimarkdown") { //This gets executed if a Markdown File gets opened - //First, reset Workspace - if (this._sidebar.isVisible() === false || this._taskbar.isVisible() === false) { - yield this._helper.setEditorLayout(this._layout); - } - if (this._sidebar.isVisible() === false && this._taskbar.isVisible() === true) { - //If Sidebar is closed but Taskbar is open, close Taskbar to reset - yield this._taskbar.hide(this._taskbarPanel); - } - if (this._sidebar.isVisible() === true && this._taskbar.isVisible() === false) { - //If Sidebar is open but Taskbar is closed, close Sidebar to reset - yield this._sidebar.hide(this._sidebarPanel); - } - if (this._sidebar.isVisible() === false) { - this._sidebarPanel = yield this._sidebar.show(); - } - if (this._taskbar.isVisible() === false) { - this._taskbarPanel = yield this._taskbar.show(); - } - } - else { - //TODO: BUG when closing both panels, this should be reported as an Issue to VSCODE because an error is thrown in the core - //This will crash the Extension debugging Host forever and will force you to reinstall VSCODE from scratch. Seriously. - //Read the docs. - //await this._sidebar.hide(this._sidebarPanel); - //await this._taskbar.hide(this._taskbarPanel); - } - }); - } -} -//# sourceMappingURL=extension.js.map \ No newline at end of file diff --git a/out/extension.js.map b/out/extension.js.map deleted file mode 100644 index 33cd35f..0000000 --- a/out/extension.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;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C,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,EAAE;oBAC5E,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;iBACpD;gBACD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;oBAC3E,kEAAkE;oBAClE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBAChD;gBACD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,EAAE;oBAC3E,kEAAkE;oBAClE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBAChD;gBAED,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,EAAE;oBACrC,IAAI,CAAC,aAAa,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;iBACnD;gBACD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,KAAK,EAAE;oBACrC,IAAI,CAAC,aAAa,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;iBACnD;aACJ;iBAAM;gBACH,0HAA0H;gBAC1H,sHAAsH;gBACtH,gBAAgB;gBAEhB,+CAA+C;gBAC/C,gDAAgD;aACnD;QACL,CAAC;KAAA;CACJ"} \ No newline at end of file diff --git a/out/gitCommands.js b/out/gitCommands.js deleted file mode 100644 index d6da8a2..0000000 --- a/out/gitCommands.js +++ /dev/null @@ -1,132 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @author Jens Voegler - * @author Lucas Vogel - * This code was created by Jens Voegler and ported to VSCode by Lucas Vogel. - */ -const vscode = require("vscode"); -const helper_1 = require("./helper/helper"); -const languages_1 = require("./languages"); -const settingsHelper_1 = require("./helper/settingsHelper"); -const path = require("path"); -const exec = require('child_process').exec; -class GitCommands { - constructor() { - this._helper = new helper_1.default; - this._language = new languages_1.default; - this._settings = new settingsHelper_1.default; - } - /** - * Clones a Repo - * @param user ZIH-Username as a String - * @param repoName Name of the repo - */ - clone(user, repoName) { - return __awaiter(this, void 0, void 0, function* () { - var gitLocalPath = yield this._settings.get("gitLocalPath"); - var gitServerPath = yield this._settings.get("gitServerPath"); - if (gitServerPath.endsWith("/")) { - gitServerPath = gitServerPath.substring(0, gitServerPath.length - 1); - this._settings.update("gitServerPath", gitServerPath); //If Path in Settings ends with a / - } - if (gitServerPath === "") { - vscode.window.showErrorMessage(this._language.get("missingGitServerPath")); - return; - } - var gitCmd = `git clone ssh://${user}@${gitServerPath}/${repoName}`; - console.log("gitCmd " + gitCmd); - if (!(yield this._helper.folderExists(gitLocalPath))) { - this._helper.mkDir(gitLocalPath); - } - exec(gitCmd, { cwd: gitLocalPath }, (error, stdout, stderr) => { - if (error) { - console.warn(`exec error: ${error}`); - vscode.window.showErrorMessage(this._language.get("gitCloneError")); - } - else { - vscode.window.showInformationMessage(this._language.get("gitCloneSucess")); - var newFolderName = path.join(gitLocalPath, repoName); - this._helper.addWorkspaceFolder(newFolderName); - } - }); - }); - } - /** - * Executes `git pull`. - */ - pull(path) { - return __awaiter(this, void 0, void 0, function* () { - exec('git pull', { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - return; - } - console.log(`stdout: ${stdout}`); - console.log(`stderr: ${stderr}`); - }); - }); - } - /** - * Executes `git add -A`. - */ - addAll(path) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise(function (resolve, reject) { - exec('git add -A', { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error("path " + path); - console.error(`exec error: ${error}`); - reject(error); - } - resolve({ out: stdout, err: stderr }); - }); - }); - }); - } - /** - * Executes `git commit -am "message"`. - * @param {string} message The commit message. - * @param {string} path The path of the local git repository. - */ - commit(message, path) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise(function (resolve, reject) { - exec(`git commit -am "${message}"`, { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - vscode.window.showErrorMessage(this._language.get("commitChangesErrorDetail")); - console.log(error); - return reject(error); - } - resolve({ out: stdout, err: stderr }); - }); - }); - }); - } - /** - * Executes `git push`. - */ - push(path) { - return __awaiter(this, void 0, void 0, function* () { - exec('git push origin', { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - return; - } - console.log(`stdout: ${stdout}`); - console.log(`stderr: ${stderr}`); - }); - }); - } -} -exports.default = GitCommands; -//# sourceMappingURL=gitCommands.js.map \ No newline at end of file diff --git a/out/gitCommands.js.map b/out/gitCommands.js.map deleted file mode 100644 index 34082c2..0000000 --- a/out/gitCommands.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gitCommands.js","sourceRoot":"","sources":["../src/gitCommands.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;GAIG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AACnC,4DAAqD;AACrD,6BAA6B;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC;AAE3C;IAKC;QACC,IAAI,CAAC,OAAO,GAAG,IA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AE,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;QACJ,CAAC;KAAA;CAED;AA5GD,8BA4GC"} \ No newline at end of file diff --git a/out/helper/helper.js b/out/helper/helper.js deleted file mode 100644 index 03d1ccf..0000000 --- a/out/helper/helper.js +++ /dev/null @@ -1,705 +0,0 @@ -"use strict"; -/** - * @author Lucas Vogel - */ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const vscode = require("vscode"); -const path = require("path"); -const fs = require("fs"); -const languages_1 = require("../languages"); -const Papa = require("papaparse"); -class Helper { - constructor() { - this._language = new languages_1.default; - } - /** - * Sets the Editor layout to the given specifications - * @param layout Object of the Editor Layout - */ - setEditorLayout(layout) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - yield vscode.commands.executeCommand('vscode.setEditorLayout', layout); - resolve(true); - })); - }); - } - /** - * Puts the focus to the given editor - * @param editor optional. Editor to focus. - */ - focusDocument(editor) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - if (editor === undefined) { - var editor = yield this.getCurrentTextEditor(); - } - yield vscode.window.showTextDocument(editor.document, editor.viewColumn, false); - resolve(true); - })); - }); - } - /** - * Returns the path to the current document - */ - getCurrentDocumentFolderPath() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const textEditors = yield vscode.window.visibleTextEditors; - if (textEditors.length < 1) { - vscode.window.showErrorMessage(this._language.get('noOpenEditors')); - resolve(null); - } - if (textEditors.length > 1) { - vscode.window.showErrorMessage(this._language.get('tooManyOpenEditors')); - resolve(null); - } - var currentTextEditor = textEditors[0]; - var currentDocumentFileName = currentTextEditor.document.fileName; - var currentPath = currentDocumentFileName.substr(0, currentDocumentFileName.lastIndexOf(path.sep)); - resolve(currentPath.toString()); - })); - }); - } - /** - * Returns the last active TextEditor and returns it. In case of an error it will promt an Error to the user. - * @returns current Text Editor or null if it cannot be determined - */ - getCurrentTextEditor() { - return __awaiter(this, void 0, void 0, function* () { - const textEditors = yield vscode.window.visibleTextEditors; - if (textEditors !== undefined) { - if (textEditors.length < 1) { - vscode.window.showErrorMessage(this._language.get('noOpenEditors')); - return null; - } - if (textEditors.length > 1) { - vscode.window.showErrorMessage(this._language.get('tooManyOpenEditors')); - return null; - } - var currentTextEditor = textEditors[0]; - if (currentTextEditor.document.languageId !== "markdown") { - vscode.window.showErrorMessage(this._language.get('ActionErrorNotMarkdown')); - return null; - } - return currentTextEditor; - } - }); - } - /** - * Returns the primary Selection of the given Text Editor - * @param textEditor from type vscode.TextEditor, the TextEditor the selection is returned from - */ - getPrimarySelection(textEditor) { - return textEditor.selection; - } - getWordsSelection(textEditor) { - var selection = this.getPrimarySelection(textEditor); - var newSelection; - if (selection.isEmpty) { - var wordRange = textEditor.document.getWordRangeAtPosition(selection.active); - if (wordRange !== undefined) { //if there is no actual selection, but a marked word - newSelection = new vscode.Selection(wordRange.start, wordRange.end); - } - else { //if there is no actual selection and also no marked word - newSelection = new vscode.Selection(selection.start, selection.end); - } - } - else { //if there is a selection - newSelection = new vscode.Selection(selection.start, selection.end); - } - return newSelection; - } - /** - * Inserts a given string at the start of a selection - * @param charactersToInsert string that will be inserted - * @param currentTextEditor the current text editor - * @param selection the current selection - */ - insertStringAtStartOfSelection(charactersToInsert, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - const workSpaceEdit = new vscode.WorkspaceEdit(); - workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, charactersToInsert); - yield vscode.workspace.applyEdit(workSpaceEdit); - }); - } - /** - * Insert a String if characters at the beginning of the line of the selection. - * @param charactersToInsert a string of characters to insert at the beginning - * @param currentTextEditor optional. The text editor to work with - * @param selection optional. the selection to work with - */ - insertStringAtStartOfLine(charactersToInsert, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - const workSpaceEdit = new vscode.WorkspaceEdit(); - if (selection.start.character !== 0) { - var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0); - selection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineStart); - } - workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, charactersToInsert); - yield vscode.workspace.applyEdit(workSpaceEdit); - }); - } - /** - * Inserts a string at the start of a Line if the current Line is empty, or at a new line if it is not - * @param charactersToInsert String of characters - * @param currentTextEditor optional. The given text editor - * @param selection optional. A custom selection - */ - insertStringAtStartOfLineOrLinebreak(charactersToInsert, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - var lineLength = currentTextEditor.document.lineAt(selection.end.line).range.end.character; - if (lineLength === 0) { - var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0); - selection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineStart); - } - else { - var newStartPositionAtLineEnd = new vscode.Position(selection.end.line, lineLength); - selection = new vscode.Selection(newStartPositionAtLineEnd, newStartPositionAtLineEnd); - charactersToInsert = "\n" + charactersToInsert; - } - const workSpaceEdit = new vscode.WorkspaceEdit(); - workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, charactersToInsert); - yield vscode.workspace.applyEdit(workSpaceEdit); - }); - } - /** - * Wraps Characters around the current selected Area. - * @param currentTextEditor The TextEditor the Document is housed in - * @param position Start and End of the Selection - * @param startCharacters Characters that will be added at the beginning of the selection - * @param endCharacters Characters that will be added at the end of the selection - */ - wrapCharactersAroundSelection(currentTextEditor, selection, startCharacters, endCharacters) { - return __awaiter(this, void 0, void 0, function* () { - const workSpaceEdit = new vscode.WorkspaceEdit(); - workSpaceEdit.insert(currentTextEditor.document.uri, selection.start, startCharacters); - workSpaceEdit.insert(currentTextEditor.document.uri, selection.end, endCharacters); - var newLinesExtra = (startCharacters.match(/\n/g) || []).length; //Checks how many new lines there are - var startLine = selection.start.line + newLinesExtra; - var startCharacter = selection.start.character + startCharacters.length; - if (newLinesExtra !== 0) { - startCharacter = 0; - } - yield vscode.workspace.applyEdit(workSpaceEdit); - var newStartPosition = new vscode.Position(startLine, startCharacter); - var newEndPosition = newStartPosition; - if (selection.start.line !== selection.end.line) { - newEndPosition = new vscode.Position(selection.end.line + newLinesExtra, selection.end.character); - } - else { - var selectionLength = selection.end.character - selection.start.character; - newEndPosition = new vscode.Position(selection.start.line + newLinesExtra, startCharacter + selectionLength); - } - var newSelection = new vscode.Selection(newStartPosition, newEndPosition); - currentTextEditor.selection = newSelection; - }); - } - /** - * Deletes given character lengths from the start and end of a selection - * @param currentTextEditor the given Text Editor - * @param selection the selection the edits will be made on - * @param numberStartCharacters number of characters that will be sliced at the beginning - * @param numberEndCharacters number of characters that will be sliced at the end - */ - deleteCharactersInSelection(currentTextEditor, selection, numberStartCharacters, numberEndCharacters) { - return __awaiter(this, void 0, void 0, function* () { - var startPointStart = selection.start; - var startPointEnd = selection.start.translate(0, numberStartCharacters); - var start = new vscode.Range(startPointStart, startPointEnd); - var endPointStart = selection.end.translate(0, -1 * numberEndCharacters); - var endPointEnd = selection.end; - var end = new vscode.Range(endPointStart, endPointEnd); - const workSpaceEdit = new vscode.WorkspaceEdit(); - workSpaceEdit.delete(currentTextEditor.document.uri, start); - workSpaceEdit.delete(currentTextEditor.document.uri, end); - yield vscode.workspace.applyEdit(workSpaceEdit); - }); - } - /** - * checks if the given selection has the given characters at the beginning and end - * @param currentTextEditor the given Text Editor - * @param selection the Selection the check will be made on - * @param startCharacters the start Characters that will be checked - * @param endCharacters the end Characters that will be checked - */ - checkStringForMarkersAtBeginningAndEnd(currentTextEditor, selection, startCharacters, endCharacters) { - return __awaiter(this, void 0, void 0, function* () { - var selectedText = currentTextEditor.document.getText(selection); - if (selectedText === undefined) { - return false; - } - if ((startCharacters.length + endCharacters.length) > selectedText.length) { - return false; //if the selected text is shorter than the Characters to check against - } - var textlength = selectedText.length; - var startSubstring = selectedText.substr(0, startCharacters.length); - var endSubstring = selectedText.substr((textlength - endCharacters.length), textlength); - if (startCharacters === startSubstring && endCharacters === endSubstring) { - return true; - } - }); - } - /** - * Toggles given Characters at the beginning of a line - * @param characters characters that should be toggled - * @param line optional. Line to work with - * @param currentTextEditor optional. Editor to work with - */ - toggleCharactersAtBeginningOfLine(characters, line, currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (line === undefined) { - var selection = this.getWordsSelection(currentTextEditor); - line = selection.start.line; - } - var lineText = currentTextEditor.document.lineAt(line).text; - var startSubstring = lineText.substr(0, characters.length); - if (startSubstring === characters) { - const workSpaceEdit = new vscode.WorkspaceEdit(); - var startPosition = new vscode.Position(line, 0); - var endPosition = new vscode.Position(line, characters.length); - var characterSelection = new vscode.Selection(startPosition, endPosition); - yield workSpaceEdit.delete(currentTextEditor.document.uri, characterSelection); - yield vscode.workspace.applyEdit(workSpaceEdit); - } - else { - const workSpaceEdit = new vscode.WorkspaceEdit(); - workSpaceEdit.insert(currentTextEditor.document.uri, currentTextEditor.document.lineAt(line).range.start, characters); - yield vscode.workspace.applyEdit(workSpaceEdit); - } - }); - } - /** - * Toggles the existence of given Characters in a Selection, also checks around the selection for better matching - * @param startCharacters Characters at the beginning of the selection that will be added or removed - * @param endCharacters Characters at the end of the selection that will be added or removed - * @param currentTextEditor optional. The given Text Editor - * @param selection optional. The selection that will be edited and checked - */ - toggleCharactersAtStartAndEnd(startCharacters, endCharacters, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - if (startCharacters.length === 0) { - return false; - } - if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, selection, startCharacters, endCharacters)) === true) { - //If they match immediately - yield this.deleteCharactersInSelection(currentTextEditor, selection, startCharacters.length, endCharacters.length); - return true; - } - //If they don't match - var extendedSelection; - if (selection.start.character >= startCharacters.length) { //Extend selection to the Left if it is possible - extendedSelection = new vscode.Selection(selection.start.translate(0, -1 * startCharacters.length), selection.end); - if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) { - //Extended Selection, if the beginning was not selected - yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length); - return true; - } - } - if (selection.start.character >= (startCharacters.length + endCharacters.length)) { //Extend selection to the Left (stadt + endcharacters) if it is possible - //reason: if there is nothing selected, and the button gets pressed, the cursor will jump at the end after the characters - extendedSelection = new vscode.Selection(selection.start.translate(0, (-1 * startCharacters.length + -1 * endCharacters.length)), selection.end); - if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) { - //Extended Selection, if the beginning was not selected - yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length); - return true; - } - } - var lineLength = currentTextEditor.document.lineAt(selection.end.line).range.end.character; - if (selection.end.character <= lineLength - endCharacters.length) { //Extend selection to the Right if it is possible - extendedSelection = new vscode.Selection(selection.start, selection.end.translate(0, endCharacters.length)); - if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) { - //Extended Selection, if the beginning was not selected - yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length); - return true; - } - } - if (selection.start.character >= startCharacters.length && selection.end.character <= lineLength - endCharacters.length) { //Extend selection in both directions if it is possible - extendedSelection = new vscode.Selection(selection.start.translate(0, -1 * startCharacters.length), selection.end.translate(0, endCharacters.length)); - if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) { - //Extended Selection, if the beginning was not selected - yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length); - return true; - } - } - if (selection.start.character >= startCharacters.length && selection.end.character <= lineLength - endCharacters.length) { //Extend selection to the full length of the line - var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0); - var newStartPositionAtLineEnd = new vscode.Position(selection.end.line, lineLength); - extendedSelection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineEnd); - if ((yield this.checkStringForMarkersAtBeginningAndEnd(currentTextEditor, extendedSelection, startCharacters, endCharacters)) === true) { - //Extended Selection, if the beginning was not selected - yield this.deleteCharactersInSelection(currentTextEditor, extendedSelection, startCharacters.length, endCharacters.length); - return true; - } - } - //If they are different and the selection is not longer than the length of the startCharacters - yield this.wrapCharactersAroundSelection(currentTextEditor, selection, startCharacters, endCharacters); - return true; - }); - } - /** - * Creates a custom File Resource URI that can be used in the Webview - * @param name Name of the Icon WITH file extension. So for example "bold.png" - * @param context Context of the Extension - * @returns resource from type vscode.Uri - */ - getWebviewResourceIconURI(name, context) { - var ressource = this.getWebviewResourceURI(name, "icons", context); - return ressource; - } - /** - * Gets custom File Ressource URI for use in Webview. - * @param name Name of the File with extension - * @param folder Folder or Folder Structure the File is in - * @param context Context of the Webview - * @returns vscode URI for use in a WebView - */ - getWebviewResourceURI(name, folder, context) { - const onDiskPath = vscode.Uri.file(path.join(context.extensionPath, folder, name)); - // And get the special URI to use with the webview - const ressource = onDiskPath.with({ scheme: 'vscode-resource' }); - return ressource; - } - /** Generates a semi random UUID. - * @returns a UUID. - */ - generateUuid() { - return 'xxxx-xxxx-xxx-yxxx-xxxxx'.replace(/[xy]/g, function (c) { - var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8); - return v.toString(16); - }); - } - /** - * Returns the content of a given file - * @param fileName the complete path to the file - * @param encoding optional. If not set the default is utf-8 - * @returns string of the content - */ - getContentOfFile(fileName, encoding) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - if (encoding === undefined) { - encoding = 'utf8'; - } - if (fileName === "") { - vscode.window.showErrorMessage(this._language.get("readingFileError")); - reject(); - } - fs.readFile(fileName, encoding, function (err, data) { - if (err) { - vscode.window.showErrorMessage(this._language.get("readingFileError")); - reject(err); - } - resolve(data); - }); - })); - }); - } - /** - * Checks if a selection starts with a given string - * @param testText text to check if the selection begins with - * @param currentTextEditor optional. The given text editor - * @param selection optional. A custom selection - */ - checkIfSelectionStartsWith(testText, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - if (testText === undefined || testText === "") { - return false; - } - var selectedText = currentTextEditor.document.getText(selection); - if (selectedText.startsWith(testText)) { - return (true); - } - else { - return (false); - } - }); - } - /** - * Checks if a selection ends with a given string - * @param testText text to check if the selection begins with - * @param currentTextEditor optional. The given text editor - * @param selection optional. A custom selection - */ - checkIfSelectionEndsWith(testText, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - if (testText === undefined || testText === "") { - return false; - } - var selectedText = currentTextEditor.document.getText(selection); - if (selectedText.endsWith(testText)) { - return true; - } - selectedText = selectedText.replace(/\ +$/, ""); //removes trailing spaces - if (selectedText.endsWith(testText)) { - return true; - } - return false; - }); - } - /** - * Iterates upwards from the given selection until it found a line that begins with the given test string, or the beginning of the file - * @param testString text to check if the selection begins with - * @param antiString string, if this is found instead of the test string the search will stop - * @param currentTextEditor optional. The given text editor - * @param selection optional. A custom selection - */ - iterateUpwardsToCheckForString(testString, antiString, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - var selectionStartLine = selection.start.line; - var selectionStartsWith = yield this.checkIfSelectionStartsWith(testString, currentTextEditor, selection); - var selectionStartsWithAntiString = yield this.checkIfSelectionStartsWith(antiString, currentTextEditor, newSelection); //Check if the current line starts with the antistring - if (selectionStartsWithAntiString === true) { - return false; - } - var newEndPositionStart = new vscode.Position(selection.start.line, 0); - var newEndPositionEnd = new vscode.Position(selection.start.line, currentTextEditor.document.lineAt(selection.start.line).range.end.character); - var newEndSelectionAtFirstLine = new vscode.Selection(newEndPositionStart, newEndPositionEnd); - selectionStartsWithAntiString = yield this.checkIfSelectionEndsWith(antiString, currentTextEditor, newEndSelectionAtFirstLine); //Check if the current line ENDS with the antistring - if (selectionStartsWithAntiString === true) { - return false; - } - if (selectionStartsWith === true) { - return selection; - } - for (var i = selectionStartLine; i >= 0; i--) { - var newStartPosition = new vscode.Position(i, 0); - var newSelection = new vscode.Selection(newStartPosition, selection.end); - selectionStartLine = selection.start.line; - selectionStartsWith = yield this.checkIfSelectionStartsWith(testString, currentTextEditor, newSelection); - selectionStartsWithAntiString = yield this.checkIfSelectionStartsWith(antiString, currentTextEditor, newSelection); //Checks if this line starts with the antistring - if (selectionStartsWithAntiString === true) { - return false; - } - newEndPositionStart = new vscode.Position(newSelection.start.line, 0); - newEndPositionEnd = new vscode.Position(newSelection.start.line, currentTextEditor.document.lineAt(newSelection.start.line).range.end.character); - newEndSelectionAtFirstLine = new vscode.Selection(newEndPositionStart, newEndPositionEnd); - selectionStartsWithAntiString = yield this.checkIfSelectionEndsWith(antiString, currentTextEditor, newEndSelectionAtFirstLine); //Check if this line ends with the antistring - if (selectionStartsWithAntiString === true) { - return false; - } - if (selectionStartsWith === true) { - return newSelection; - } - } - return false; - }); - } - /** - * Iterates downwards from the given selection until it found a line that begins with the given test string, or the end of the file - * @param testString text to check if the selection ends with - * @param currentTextEditor optional. The given text editor - * @param selection optional. A custom selection - * @returns false if nothing is found, otherwise a new selection ending with the line - */ - iterateDownwardsToCheckForString(testString, currentTextEditor, selection) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - var selectionStartLine = selection.end.line; - var selectionStartsWith = yield this.checkIfSelectionEndsWith(testString, currentTextEditor, selection); - if (selectionStartsWith === true) { - return selection; - } - var documentEndLine = currentTextEditor.document.lineCount; - for (var i = selectionStartLine; i < documentEndLine; i++) { - var lineLength = currentTextEditor.document.lineAt(i).range.end.character; - var newEndPosition = new vscode.Position(i, lineLength); - var newSelection = new vscode.Selection(selection.start, newEndPosition); - selectionStartLine = selection.start.line; - selectionStartsWith = yield this.checkIfSelectionEndsWith(testString, currentTextEditor, newSelection); - if (selectionStartsWith === true) { - return newSelection; - } - } - return false; - }); - } - /** - * Makes a directory with a promise - * @param path path that will be created - * @returns promise that resolves into the path - */ - mkDir(path) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - fs.mkdir(path, (err) => { - if (err) { - vscode.window.showErrorMessage(this._language.get('createFolderError')); - console.log(err); - } - resolve(path); - }); - })); - } - /** - * Checks if a path to a folder exists - * @param path string absolute path to the folder - * @returns promise that resolves to true if path exist, otherwise false. - */ - folderExists(path) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - if (fs.existsSync(path)) { - resolve(true); - } - else { - resolve(false); - } - })); - } - /** - * Checks if file Exists - * @param path path to file - * @returns true if file exists, otherwise false - */ - fileExists(path) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - if (fs.existsSync(path)) { - resolve(true); - } - else { - resolve(false); - } - })); - } - /** - * Parses CSV to JSON - * @param csvData csv data as String - * @returns JSON if possible, otherwise false - */ - parseCSVtoJSON(csvData) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - try { - var result = Papa.parse(csvData); - resolve(result); - } - catch (e) { - console.log(e); - resolve(false); - } - })); - }); - } - /** - * Replaces a Selection with a different Text - * @param replacetext text that replaces the selection - * @param selection otional. The selection used - * @param currentTextEditor optional. The editor used - */ - replaceSelection(replacetext, selection, currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this.getWordsSelection(currentTextEditor); - } - const workSpaceEdit = new vscode.WorkspaceEdit(); - workSpaceEdit.replace(currentTextEditor.document.uri, selection, replacetext); - yield vscode.workspace.applyEdit(workSpaceEdit); - }); - } - /** - * gets the content of a line - * @param line number of the line - * @param currentTextEditor optional. The editor the Document is in - * @returns string of content or null if not possible - */ - getLineContent(line, currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this.getCurrentTextEditor(); - } - if (line < 0) { - return null; - } - var lengthOfDocument = currentTextEditor.document.lineCount; - if (line >= lengthOfDocument) { - return null; - } - var content = yield currentTextEditor.document.lineAt(line).text; - return content; - }); - } - /** - * returns the directory of a path to a given file - * @param filepath the full path to the file - * @returns Folder/ Directory or error - */ - getFolderFromFilePath(filepath) { - var filepath; - return __awaiter(this, void 0, void 0, function* () { - filepath = yield path.dirname(filepath); - return (filepath); - }); - } - /** - * adds a Folder to the open Worspaces - * @param path string to the Folder - */ - addWorkspaceFolder(path) { - return __awaiter(this, void 0, void 0, function* () { - var uri = vscode.Uri.file(path); - yield vscode.workspace.updateWorkspaceFolders(vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders.length : 0, null, { uri: uri }); - }); - } -} -exports.default = Helper; -//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/out/helper/helper.js.map b/out/helper/helper.js.map deleted file mode 100644 index a89da1f..0000000 --- a/out/helper/helper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/helper/helper.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;AAEH,iCAAiC;AACjC,6BAA6B;AAC7B,yBAAyB;AACzB,4CAAoC;AACpC,kCAAkC;AAElC;IAEI;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;IAGlC,CAAC;IACD;;;OAGG;IACU,eAAe,CAAC,MAAc;;YACvC,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzC,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;gBACvE,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAA,CAAC,CAAC;QAEP,CAAC;KAAA;IAED;;;OAGG;IACU,aAAa,CAAC,MAA0B;;YACjD,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzC,IAAI,MAAM,KAAK,SAAS,EAAE;oBACtB,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;iBAClD;gBACD,MAAM,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;gBAChF,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KA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AAC;YAC3C,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtB,CAAC;KAAA;IAED;;;OAGG;IACU,kBAAkB,CAAC,IAAY;;YACxC,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,MAAM,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QACxJ,CAAC;KAAA;CACJ;AA5sBD,yBA4sBC"} \ No newline at end of file diff --git a/out/helper/tableHelper.js b/out/helper/tableHelper.js index 9553e03..c0f98da 100644 --- a/out/helper/tableHelper.js +++ b/out/helper/tableHelper.js @@ -479,8 +479,15 @@ class TableHelper { currentTextEditor = yield this._helper.getCurrentTextEditor(); } return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - var tableStartRegex = //; + var tableStartRegex = //; var startLineText = currentTextEditor.document.lineAt(selection.start.line).text; + var pathSep = [["\\", "\/"], ["\/", "\\"]]; // [[winSep, unixSep],[unixSep, winSep]] + for (let i = 0; i < pathSep.length; ++i) { + if (startLineText.includes(pathSep[i][0]) && path.sep === pathSep[i][1]) { + startLineText = startLineText.replace(pathSep[i][0], pathSep[i][1]); + break; + } + } var parts = startLineText.match(tableStartRegex); if (parts.length !== 4) { //If The number of matched string parts from the first line is too long or too short resolve(false); diff --git a/out/helper/tableHelper.js.map b/out/helper/tableHelper.js.map index d2cdcff..c3859b2 100644 --- a/out/helper/tableHelper.js.map +++ b/out/helper/tableHelper.js.map @@ -1 +1 @@ -{"version":3,"file":"tableHelper.js","sourceRoot":"","sources":["../../src/helper/tableHelper.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;AAEH,iCAAiC;AACjC,6BAA6B;AA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AAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,uCAAuC;wBACvE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,YAAY,GAAG,EAAE,CAAC;oBACtB,IAAI,gBAAgB,GAAG,EAAE,CAAC;oBAC1B,gBAAgB,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;oBAC5C,gBAAgB,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;oBAC1C,gBAAgB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC;oBAClC,OAAO,CAAC,YAAY,CAAC,CAAC;iBACzB;YACL,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAjgBD,8BAigBC"} \ No newline at end of file +{"version":3,"file":"tableHelper.js","sourceRoot":"","sources":["../../src/helper/tableHelper.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;AAEH,iCAAiC;AACjC,6BAA6B;AAC7B,yBAAyB;AACzB,4CAAoC;AACpC,qCAA8B;AAC9B,kCAAkC;AAClC,qDAA8C;AAE9C;;GAEG;AACH;IAMI;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAc,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,yCAAyC;QACrF,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,CAAC,uCAAuC;IAC9E,CAAC;IAGD;;;OAGG;IACU,kBAAkB;;YAC3B,IAAI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gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,uCAAuC;wBACvE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;wBACnE,OAAO,CAAC,KAAK,CAAC,CAAC;qBAClB;oBACD,IAAI,YAAY,GAAG,EAAE,CAAC;oBACtB,IAAI,gBAAgB,GAAG,EAAE,CAAC;oBAC1B,gBAAgB,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;oBAC5C,gBAAgB,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;oBAC1C,gBAAgB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC;oBACxC,YAAY,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC;oBAClC,OAAO,CAAC,YAAY,CAAC,CAAC;iBACzB;YACL,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAxgBD,8BAwgBC"} \ No newline at end of file diff --git a/out/languages/de.js b/out/languages/de.js deleted file mode 100644 index 92d42f5..0000000 --- a/out/languages/de.js +++ /dev/null @@ -1,214 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class En { - constructor() { - this.get = (varname) => { - var result = this.d[varname]; - if (result === undefined) { - return varname; - } - return result; - }; - this.d = []; - // Default folder name for this language. Don't add Spaces at start and end - this.d['picuteFolderName'] = 'Bilder'; - this.d['yes'] = 'Ja'; - this.d['no'] = 'Nein'; - this.d['ok'] = 'Ok'; - this.d['result'] = 'Resultat'; - this.d['en'] = 'Englisch'; - this.d['de'] = 'Deutsch'; - this.d['fr'] = 'Französisch'; - this.d['noOpenEditors'] = 'Keine offenen Editoren.'; - this.d['tooManyOpenEditors'] = 'Zu viele offenen Editoren. Bitte öffnen Sie nur einen Editor ohne Split View.'; - this.d['ActionErrorNotMarkdown'] = 'Die aktuelle Datei ist keine Markdown-Datei und die aktuelle Aktion kann nicht ausgeführt werden. Bitte eine Markdown-Datei öffnen.'; - this.d['error'] = 'Ein Fehler ist aufgetreten.'; - this.d['checkFile'] = 'Kontrolliere Datei '; - // //main-navigation - this.d['projectTitle'] = 'Projekt'; - this.d['cloneExistingRepo'] = "Ein existierendes Repo klonen"; - this.d['newProject'] = 'Neues Projet erstellen'; - this.d['selectFolder'] = 'Ordner auswählen: (aus den offenen Worspace-Ordnern)'; - this.d['repoName'] = "Name des Git-Repos"; - this.d['clone'] = "Klonen"; - this.d['editProject'] = 'Projektdaten bearbeiten'; - this.d['documentTitle'] = 'Dokument'; - this.d['saveChanges'] = 'Änderungen speichern'; - this.d['newFile'] = 'Neue Datei erstellen'; - this.d['undo'] = 'Rückgängig | ctrl+z'; - this.d['redo'] = 'Wiederherstellen | crtl+shift+z'; - this.d['preview'] = 'HTML-Vorschau anzeigen'; - this.d['generateFile'] = 'HTML generieren'; - this.d['convertEntireProject'] = 'Generiere HTML für alle Projektdokumente'; - this.d['generate'] = 'Generieren'; - this.d['conversionProfile'] = 'Konvertierungprofil'; - this.d['blind'] = 'Blind'; - this.d['visuallyImpaired'] = 'Sehbehindert'; - this.d['publishTitle'] = 'Veröffentlichen'; - this.d['checkProject'] = 'Kontrolliere das gesamte Projekt'; - this.d['commitChanges'] = 'Änderungen hochladen'; - this.d['notInsideLecture'] = "Dieses Dokument ist nicht Teil eines Projektes."; - // //insert textboxes - this.d['insertTextbox'] = "Annotation/Textbox einfügen "; - this.d['insertTextboxContent'] = "Inhalt der Anmerkung oder Titel der Textbox/Textrahmen"; - this.d['textFrameCheckbox'] = "Textrahmen"; - this.d['textBoxCheckbox'] = "Textbox"; - this.d['annotation'] = "Anmerkung des Bearbeiters"; - this.d['color'] = "Farbe"; - this.d['colorRed'] = "Rot"; - this.d['colorBlue'] = "Blau"; - this.d['colorBrown'] = "Braun"; - this.d['colorGrey'] = "Grau"; - this.d['colorBlack'] = "Schwarz"; - this.d['colorGreen'] = "Grün"; - this.d['colorYellow'] = "Gelb"; - this.d['colorOrange'] = "Orange"; - this.d['colorViolet'] = "Violet"; - this.d['selectType'] = "Typ auswählen:"; - this.d['titleOfTextbox'] = "Titel der Textbox/Textrahmen"; - this.d['contentOfTextbox'] = "Inhalt der Textbox/Textrahmen"; - this.d['annotationNoTitleError'] = "Es ist kein Titel oder Farbe für die Anmerkung angeegben worden. Diese Attribute werden ignorriert."; - // //footer-panel - this.d['emphasis'] = 'Betonung'; - this.d['edit'] = "Bearbeiten"; - this.d['bold'] = 'Fett'; - this.d['italic'] = 'Kursiv'; - this.d['strikethrough'] = 'Durchgestrichen'; - this.d['headline'] = 'Überschrift'; - this.d['headline1'] = 'Überschrift Ebene 1'; - this.d['headline2'] = 'Überschrift Ebene 2'; - this.d['headline3'] = 'Überschrift Ebene 3'; - this.d['headline4'] = 'Überschrift Ebene 4'; - this.d['headline5'] = 'Überschrift Ebene 5'; - this.d['headline6'] = 'Überschrift Ebene 6'; - this.d['list'] = 'Liste'; - this.d['orderedList'] = 'Erzeuge nummerierte Liste'; - this.d['unorderedList'] = 'Erzeuge einfache Liste'; - this.d['table'] = 'Tabelle'; - this.d['insertTable'] = 'Einfügen einer Tabelle'; - this.d['importTableCsv'] = 'Importiere Tabelle aus einer CSV-Datei'; - this.d['editTableLayout'] = "Folgende Tabelle bearbeiten"; - this.d['editTable'] = "Tabelle bearbeiten"; - this.d['noTableFound'] = "Keine Tabelle gefunden"; - this.d['errorTableFileNonExistant'] = "Datei der Tabelle existiert nicht"; - this.d['parsingError'] = "Fehler beim Parsen der Tabelle."; - this.d['tableInsertionPositionConflictWarning'] = "Warnung: Dieser Inhalt kann nicht innerhalb einer Tabelle platziert werden. Stattdessen wurde es nach der aktuellen Tabelle eingefügt."; - this.d['insert'] = 'Einfügen'; - this.d['formula'] = 'Formel einfügen'; - this.d['formulaInline'] = 'Einfügen einer Inline-Formel'; - this.d['insertLink'] = 'Link einfügen'; - this.d['insertGraphic'] = 'Bild einfügen'; - this.d['insertFootnote'] = 'Fußnote einfügen'; - this.d['authorAnnotation'] = 'Anmerkung einfügen'; - this.d['formatting'] = 'Formatierungen'; - this.d['blockquote'] = 'Als Zitat formatieren'; - this.d['code'] = 'Formatiere als Quellcode'; - this.d['separator'] = 'Separator'; - this.d['horizontalRule'] = 'Füge horizontale Linie ein'; - this.d['newPage'] = 'Neue Seite einfügen'; - this.d['page'] = 'Seite'; - this.d['slide'] = 'Folie'; - // //git - this.d['gitUser'] = 'Nutzername (ZIH-Login)'; - this.d['gitCloneSucess'] = "Repo wurde erfolgreich geklont!"; - this.d['gitCloneError'] = "Während des Klonen ist ein Fehler aufgetreten. Überprüfen Sie, ob sie ihren privaten Schlüssel geladen haben."; - // //new-project - this.d['noFolder'] = 'Kein Ordner ausgewählt'; - this.d['preface'] = 'Vorwort einfügen'; - this.d['chapters'] = 'Kapitel'; - this.d['appendixChapters'] = 'Kapitel im Anhang'; - this.d['author'] = 'Author'; - this.d['title'] = 'Titel'; - this.d['institution'] = 'Institution'; - this.d['projectLanguage'] = 'Sprache'; - this.d['tableOfContents'] = 'Inhaltsverzeichnis hinzufügen zum Dokument'; - this.d['tocDepthExplanation'] = 'Tiefe des Inhaltsverzeichnisses, nur änderbar wenn es ein Inhaltsverzeichnis gibt'; - this.d['materialSource'] = 'Materialquelle'; - this.d['missingGitServerPath'] = "Git Server Pfad fehlt, dieser muss erst in den Einstellungen festgelegt werden."; - this.d['somethingWentWrongDuringCreatingNewProject'] = 'Ein unerwarteter Matuc-Fehler ist aufgetreten.'; - this.d['createdProjectSuccessfully'] = "Projekterstellung erfolgreich."; - // //edit metadata - this.d['sourceAuthor'] = 'Quell-Author'; - this.d['semYear'] = 'Semester der Bearbeitung'; - this.d['workingGroup'] = 'Arbeitsgruppe'; - this.d['updateEditedData'] = 'Update'; - this.d['toc_Depth'] = 'Tiefe des Inhaltsverziechnisses'; - this.d['updateSuccessfull'] = 'Das Update war erfolgreich.'; - // //commit-changes-dialog - this.d['commitMessage'] = 'Beschreiben Sie mit wenigen Worten was Sie geändert, ergänzt oder hinzugefügt haben...'; - this.d['commit'] = 'Commit'; - this.d['commitChangesErrorDetail'] = 'Vielleicht ist die Datei im falschen Ordner gespeichert?\n'; - // //matuc - this.d['matucNotInstalled'] = "Matuc ist nicht installiert. Sie müssen Matuc in der neuesten Version installieren um dieses Feature nutzen zu können."; - this.d['noConfiguration'] = "Konfigurationsdatei, .lecture_meta_data.dcxml, fehlt im Projekt"; - this.d['unExpectedMatucError'] = 'Ein unerwarteter Matuc-Fehler trat auf'; - this.d['documentHasBeenSaved'] = 'Das aktuelle Dokument wurde gespeichert, weil es für die aktuelle Aktion benötigt wurde.'; - // //editor functions - this.d["headlineNumberTooSmall"] = "Keine Überschrift möglich, da die gegebene Überschriftengröße außerhalb des möglichen Bereiches liegt. Die größte Überschriftengröße ist H1."; - this.d["headlineNumberTooBig"] = "Keine Überschrift möglich, da die gegebene Überschriftengröße außerhalb des möglichen Bereiches liegt. Die kleinste Überschriftengröße ist H6."; - this.d["headlineInsertedWithGrade"] = "Überschrift wurde eingefügt mit Größe : H"; - this.d['importTableFromCsvError'] = 'Fehler beim Importieren der Tabelle.'; - this.d['writingCSVTableFileError'] = 'Ein Fehler ist aufgetreten beim exportieren und speichern in eine CSV-Tabelle.'; - this.d['originalTableNotFound'] = "Die Originaltablelle, die bearbeitet wurde konnte nicht gefunden werden. Stattdessen wurde die Tabelle in der aktuellen Zeile eingefügt."; - this.d['hasBeenWritten'] = 'wurde geschrieben'; - this.d['filehasBeenWritten'] = "Datei wurde gespeichert: "; - //insert link dialog - this.d['linkText'] = 'Link Text'; - this.d['linkTitle'] = 'Link Titel (optional)'; - this.d['link'] = 'URL'; - this.d['insertLinkSubmit'] = 'Einfügen'; - // //insert table dialog - this.d['tableHeadCheckbox'] = 'Tabellenkopfzeile einfügen'; - this.d['tableType'] = 'Tabellentyp'; - this.d['simpleTable'] = "Simple Tabelle"; - this.d['pipeTable'] = "Pipe Tabelle"; - this.d['gridTable'] = "Raster Tabelle"; - this.d['rows'] = 'Reihen'; - this.d['row'] = 'Reihe'; - this.d['columns'] = 'Spalten'; - this.d['column'] = 'Spalte'; - this.d['thereAreNoTableInFolder'] = 'Es wurden keine Tabellen in dem Ordner gefunden.'; - this.d['selectTable'] = '... oder wähle hier eine aus'; - this.d['importTableError'] = "Fehler während des Tabellenimports"; - this.d['selectImageFile'] = 'Bild hier auswähen:'; - this.d['altText'] = 'Alternativtext'; - this.d['outsourceCheckbox'] = 'Beschreibung auslagern'; - this.d['thereAreNoPicturesInFolder'] = "Keine Bilder in dem Ordner gefunden: "; - this.d['noPictureFolderFound'] = "Kein Bilderordner gefunden, bitte Bilder zu folgendem Ordner hinzufügen: "; - this.d['or'] = 'oder'; - this.d['graphicsUri'] = 'Grafiklink hier einfügen:'; - this.d['graphicTitle'] = 'Titel für Bild'; - this.d['somethingWentWrongDuringInsertOfGraphic'] = 'Ein unerwarteter Fehler ist aufgetreten beim Einfügen des Bildes'; - this.d['imagesMdHasBeenWritten'] = 'wurde geschrieben'; - this.d['selectPictureFromHere'] = 'Bitte Auswählen:'; - // //insert footnote dialog - this.d['footLabel'] = 'Label für die Fußnote'; - this.d['footText'] = 'Text in der Fußnote'; - this.d['footLabelError'] = 'Ungültiges Label'; - this.d['footLabelErrorDetail'] = 'Label wurde bereits genutzt. Bitte ein anderes Label verweden.'; - // //import csv dialog - this.d['uriTable'] = 'Tabellenlink hier einfügen'; - // //mistkerl - this.d['mistkerlDidNotFindAnyErrorAndSavedFile'] = 'Gespeichert.'; - this.d['mistkerlDidNotFindAnyError'] = 'Es wurden keine Fehler gefunden.'; - this.d['abort'] = "Abbrechen"; - this.d['pagenumbering'] = 'Seitennummerierung'; - this.d['doYouWantToAutocorrect'] = 'Wenn die Seitennummerierung automatisch korrigiert werden soll, muss folgende Checkbox ausgewählt werden. Wenn nicht müssen die Seitennummern manuell korrigiert werden.'; - this.d['autocorrectPagenumberingCheckbox'] = 'Seitennummerierung automatisch korrigieren'; - this.d['checkLine'] = 'Zeiel überprüfen: '; - // Reading Files and Folders - this.d['readingFileError'] = 'Ein unerwarteter Fehler ist aufgetreten beim Lesen der Datei.'; - this.d['importedFrom'] = 'importiert von'; - this.d['createFolderError'] = "Es ist ein Fehler beim erstellen des Ordners augetreten."; - this.d['linuxNotSupportedYet'] = "Linux wird leider noch nicht unterstützt."; - this.d['noFileSelected'] = "Keine Datei ausgewählt."; - this.d['gitIsNotEnabled'] = "Git ist nicht aktiviert. Zu den Einstellungen -> Erweiterungen -> AGSBS und Git aktivieren um diese Funktion zu nutzen."; - this.d['sidebarWelcome'] = "Wilkommen bei AGSBS!"; - this.d['MatucIsInstalledWarning'] = "Matuc ist NICHT installiert! Manche Funktionen werden nicht verfügbar sein."; - this.d['osDocumentsFolderName'] = "Dokumente"; //The folder name of the documents folder in the userspace - this.d['preview'] = "Vorschau"; - this.d['previewNotAvailableCheckWorspaceFolder'] = "Die Vorschau ist aktuell nicht verfügbar. Bitte überprüfen Sie, ob der Ordner, in dem sich die aktuelle Datei befindet, als Workspace-Ordner geöffnet ist (auf der linken Seite des Editors)."; - } -} -exports.default = En; -//# sourceMappingURL=de.js.map \ No newline at end of file diff --git a/out/languages/de.js.map b/out/languages/de.js.map deleted file mode 100644 index 2672e5f..0000000 --- a/out/languages/de.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"de.js","sourceRoot":"","sources":["../../src/languages/de.ts"],"names":[],"mappings":";;AAEA;IAIC;QA6NO,QAAG,GAAG,CAAC,OAAO,EAAE,EAAE;YACxB,IAAI,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,MAAM,KAAK,SAAS,EAAE;gBACzB,OAAO,O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I,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,oBAAoB,CAAC;QAE3C,4BAA4B;QAC5B,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,+DAA+D,CAAC;QAC7F,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,gBAAgB,CAAC;QAC1C,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,0DAA0D,CAAC;QACzF,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,GAAG,2CAA2C,CAAC;QAC7E,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,yBAAyB,CAAC;QACrD,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,yHAAyH,CAAC;QACtJ,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,sBAAsB,CAAC;QAClD,IAAI,CAAC,CAAC,CAAC,yBAAyB,CAAC,GAAG,6EAA6E,CAAC;QAClH,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,GAAG,WAAW,CAAC,CAAA,0DAA0D;QAExG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC;QAE/B,IAAI,CAAC,CAAC,CAAC,wCAAwC,CAAC,GAAE,+LAA+L,CAAC;IACnP,CAAC;CAUD;AAzOD,qBAyOC"} \ No newline at end of file diff --git a/out/languages/en.js b/out/languages/en.js deleted file mode 100644 index 6aac089..0000000 --- a/out/languages/en.js +++ /dev/null @@ -1,303 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class En { - constructor() { - this.get = (varname) => { - var result = this.d[varname]; - if (result === undefined) { - return varname; - } - return result; - }; - this.d = []; - // Default folder name for this language. Don't add Spaces at start and end - this.d['picuteFolderName'] = 'pictures'; - this.d['yes'] = 'Yes'; - this.d['no'] = 'No'; - this.d['ok'] = 'Ok'; - this.d['result'] = 'Result'; - this.d['en'] = 'English'; - this.d['de'] = 'German'; - this.d['fr'] = 'French'; - this.d['noOpenEditors'] = 'No open Editors.'; - this.d['tooManyOpenEditors'] = 'Too many open editors. Please just open one file and without a split view.'; - this.d['ActionErrorNotMarkdown'] = 'The current File is not a Markdown file and the current Action cannot be executed. Please open a Markdown File.'; - this.d['error'] = 'A error occurs'; - this.d['checkFile'] = 'Check file '; - // //main-navigation - this.d['projectTitle'] = 'Project'; - this.d['cloneExistingRepo'] = "Clone an existing repo"; - this.d['newProject'] = 'Create new project'; - this.d['selectFolder'] = 'Select Folder: (from the open workspace folders)'; - this.d['repoName'] = "Git repo name"; - this.d['clone'] = "Clone"; - this.d['editProject'] = 'Edit project data'; - this.d['documentTitle'] = 'Document'; - this.d['saveChanges'] = 'Save changes'; - this.d['newFile'] = 'create new file'; - this.d['undo'] = 'Undo | ctrl+z'; - this.d['redo'] = 'Redo | crtl+shift+z'; - this.d['preview'] = 'Show html preview'; - this.d['generateFile'] = 'Generate HTML'; - this.d['convertEntireProject'] = 'Generate HTML for all project files'; - this.d['generate'] = 'Generate'; - this.d['conversionProfile'] = 'conversion profile'; - this.d['blind'] = 'blind'; - this.d['visuallyImpaired'] = 'visually impaired'; - this.d['publishTitle'] = 'Publish'; - this.d['checkProject'] = 'Check entire project'; - this.d['commitChanges'] = 'Upload changes'; - this.d['notInsideLecture'] = "This Document is not inside a lecture."; - // //insert textboxes - this.d['insertTextbox'] = "Add annotation/text box "; - this.d['insertTextboxContent'] = "Content of annotation or title of textbox/textframe"; - this.d['textFrameCheckbox'] = "text frame"; - this.d['textBoxCheckbox'] = "text box"; - this.d['annotation'] = "Annotation of the transcriber"; - this.d['color'] = "Color"; - this.d['colorRed'] = "Red"; - this.d['colorBlue'] = "Blue"; - this.d['colorBrown'] = "Brown"; - this.d['colorGrey'] = "Grey"; - this.d['colorBlack'] = "Black"; - this.d['colorGreen'] = "Green"; - this.d['colorYellow'] = "Yellow"; - this.d['colorOrange'] = "Orange"; - this.d['colorViolet'] = "Violett"; - this.d['selectType'] = "Select type:"; - this.d['titleOfTextbox'] = "Title of the textbox/textframe"; - this.d['contentOfTextbox'] = "Content of the textbox/textframe or annotation"; - // this.d['allColors'] = "colorRed, colorBlack, colorGreen, colorYellow, colorOrange, colorBlue, colorBrown, colorGrey, colorViolet"; - this.d['annotationNoTitleError'] = "there is no title or color for an annotation. These attributes will be ignored."; - // //footer-panel - this.d['emphasis'] = 'Emphasis'; - this.d['edit'] = "Edit"; - this.d['bold'] = 'Bold'; - this.d['italic'] = 'Italic'; - this.d['strikethrough'] = 'Strikethrough'; - this.d['headline'] = 'Headline'; - this.d['headline1'] = 'First level headline'; - this.d['headline2'] = 'Second level headline'; - this.d['headline3'] = 'Third level headline'; - this.d['headline4'] = 'Fourth level headline'; - this.d['headline5'] = 'Fifth level headline'; - this.d['headline6'] = 'Sixth level headline'; - this.d['list'] = 'List'; - this.d['orderedList'] = 'Create ordered list'; - this.d['unorderedList'] = 'Create unordered list'; - this.d['table'] = 'Table'; - this.d['insertTable'] = 'Insert table'; - this.d['importTableCsv'] = 'Import table from csv'; - this.d['editTableLayout'] = "Edit the Table below"; - this.d['editTable'] = "Edit Table"; - this.d['noTableFound'] = "No table found"; - this.d['errorTableFileNonExistant'] = "File of the table does not exist"; - this.d['parsingError'] = "Error parsing Table"; - this.d['tableInsertionPositionConflictWarning'] = "Warning: This content cannot be placed inside a table. Instead, it was appended after this table."; - this.d['insert'] = 'Insert'; - this.d['formula'] = 'Insert formula'; - this.d['formulaInline'] = 'Insert inline formula'; - this.d['insertLink'] = 'Insert link'; - this.d['insertGraphic'] = 'Insert graphic'; - this.d['insertFootnote'] = 'Insert footnote'; - this.d['authorAnnotation'] = 'Insert annotation'; - this.d['formatting'] = 'Formatting'; - this.d['blockquote'] = 'Create blockquote'; - this.d['code'] = 'Format as code'; - this.d['separator'] = 'Separator'; - this.d['horizontalRule'] = 'Add horizontal rule'; - this.d['newPage'] = 'Add new page'; - this.d['page'] = 'Page'; - this.d['slide'] = 'Slide'; - // //git - this.d['gitUser'] = 'Username (ZIH-Login)'; - this.d['gitCloneSucess'] = "Repo was cloned successfully!"; - this.d['gitCloneError'] = "An error occurs during the cloning. Check whether you load your private key."; - // //new-project - this.d['noFolder'] = 'No folder set'; - this.d['preface'] = 'Add a preface to the document.'; - this.d['chapters'] = 'Chapters'; - this.d['appendixChapters'] = 'Appendix chapters'; - this.d['author'] = 'Author'; - this.d['title'] = 'Title'; - this.d['institution'] = 'Institution'; - this.d['projectLanguage'] = 'Language'; - this.d['tableOfContents'] = 'Add a table of contents to the document.'; - this.d['tocDepthExplanation'] = 'Depth of table of contents, only changeable if table of contents is set'; - this.d['materialSource'] = 'Material source'; - this.d['missingGitServerPath'] = "Git server path is missing, you have to add one in the settings first."; - this.d['somethingWentWrongDuringCreatingNewProject'] = 'An unexpected matuc error occured'; - this.d['createdProjectSuccessfully'] = "Creation of project successfull."; - // //edit metadata - this.d['sourceAuthor'] = 'Source author'; - this.d['semYear'] = 'Semester of edit'; - this.d['workingGroup'] = 'Working group'; - this.d['updateEditedData'] = 'Update'; - this.d['toc_Depth'] = 'Depth of table of content'; - this.d['updateSuccessfull'] = 'The update was successfull.'; - // //commit-changes-dialog - this.d['commitMessage'] = 'Leave a few words about the changes you made...'; - this.d['commit'] = 'Commit'; - this.d['commitChangesErrorDetail'] = 'Maybe the file is stored in a wrong directory?\n'; - // //matuc - this.d['matucNotInstalled'] = "Matuc is not installed. You have to install the latest Matuc version to use this feature."; - this.d['noConfiguration'] = "No configuration, .lecture_meta_data.dcxml, in a directory exists in this project"; - this.d['unExpectedMatucError'] = 'An unexpected matuc error occured'; - this.d['documentHasBeenSaved'] = 'The current document has been saved, as it was neccessary for the execution of this action.'; - // //editor functions - this.d["headlineNumberTooSmall"] = "Headline cannot be changed or created because the given headline size is out of range. The maximum headline size is H1."; - this.d["headlineNumberTooBig"] = "Headline cannot be changed or created because the given headline size is out of range. The minimum headline size is H6."; - this.d["headlineInsertedWithGrade"] = "Headline was inserted with grade: H"; - this.d['importTableFromCsvError'] = 'Failed to import table'; - this.d['writingCSVTableFileError'] = 'A Error occured during the export and saving of the table to a CSV-File.'; - this.d['originalTableNotFound'] = "Original Table that has been edited could not be found. Instead, the table was inserted at the start of the current line."; - this.d['hasBeenWritten'] = 'has been written'; - this.d['filehasBeenWritten'] = "file has been written: "; - //insert link dialog - this.d['linkText'] = 'Link text'; - this.d['linkTitle'] = 'Link title (optional)'; - this.d['link'] = 'URL'; - this.d['insertLinkSubmit'] = 'Insert'; - // //insert table dialog - this.d['tableHeadCheckbox'] = 'Add a head to the table'; - this.d['tableType'] = 'Table Type'; - this.d['simpleTable'] = "Simple Table"; - this.d['pipeTable'] = "Pipe Table"; - this.d['gridTable'] = "Grid Table"; - this.d['rows'] = 'Rows'; - this.d['row'] = 'Row'; - this.d['columns'] = 'Columns'; - this.d['column'] = 'Column'; - this.d['thereAreNoTableInFolder'] = 'No tables found in folder.'; - this.d['selectTable'] = '...or select it from here'; - this.d['importTableError'] = "Error during table import"; - this.d['selectImageFile'] = 'Select the Image here'; - this.d['altText'] = 'Alt text'; - this.d['outsourceCheckbox'] = 'outsource Description'; - this.d['thereAreNoPicturesInFolder'] = "No pictures found in folder: "; - this.d['noPictureFolderFound'] = "No folder for pictures found, please add pictures to folder: "; - this.d['or'] = 'or'; - this.d['graphicsUri'] = 'paste graphic\'s link here'; - this.d['graphicTitle'] = 'Title for graphic'; - this.d['somethingWentWrongDuringInsertOfGraphic'] = 'An unexpected matuc error occured'; - this.d['imagesMdHasBeenWritten'] = 'has been written'; - this.d['selectPictureFromHere'] = 'select from here:'; - // //insert footnote dialog - this.d['footLabel'] = 'Label for footnote'; - this.d['footText'] = 'Text in footnote'; - this.d['footLabelError'] = 'Invalid label'; - this.d['footLabelErrorDetail'] = 'Label is already used. Please enter another label.'; - // //import csv dialog - this.d['uriTable'] = 'Insert table link here'; - // //mistkerl - this.d['mistkerlDidNotFindAnyErrorAndSavedFile'] = 'Saved.'; - this.d['mistkerlDidNotFindAnyError'] = 'No errors have been detected.'; - this.d['abort'] = "Cancel"; - this.d['pagenumbering'] = 'Pagenumbering'; - this.d['doYouWantToAutocorrect'] = 'If you want to automatically correct the Pagenumbering check the following box. Otherwise you have to do it manually.'; - this.d['autocorrectPagenumberingCheckbox'] = 'Autocorrect Pagenumbering'; - this.d['checkLine'] = 'Check line: '; - // Reading Files and Folders - this.d['readingFileError'] = 'An unexpected error occured reading the file.'; - this.d['importedFrom'] = 'imported from'; - this.d['createFolderError'] = "Error creating folder."; - this.d['linuxNotSupportedYet'] = "Linux is not supported yet."; - this.d['noFileSelected'] = "No File Selected."; - this.d['gitIsNotEnabled'] = "Git is not enabled. Go to Settings -> Extensions -> AGSBS and enable Git to use this function."; - this.d['sidebarWelcome'] = "Welcome to AGSBS!"; - this.d['MatucIsInstalledWarning'] = "Matuc is NOT installed! Some features might not work."; - this.d['osDocumentsFolderName'] = "Documents"; //The folder name of the documents folder in the userspace - this.d['preview'] = "Preview"; - this.d['previewNotAvailableCheckWorspaceFolder'] = "The Preview is currently not available. Please check if the folder (the current file is in) is open as a workspace folder on the left."; - //unused: - // this.d['SelectedWrongFileErrorDetail'] = 'Please select a .md or .html file.'; - // this.d['changesFromEditProjectDialogSaved'] = 'Your changes has been saved.'; - // this.d['wrongMatucVersion'] = "You have to install the latest Matuc version. Latest version is ${version}."; - // this.d['begin'] = "Begin"; - // this.d['end'] = "End"; - // this.d['errorMessage'] = 'Error message is:'; - // this.d['addContentHere'] = "Add AND FORMAT CONTENT HERE"; - // //temporary warnings - // this.d['noGitSupportJet'] = 'Git is not supported'; - // this.d['noGitSupportJetDetail'] = 'We are working on it, please try again later'; - // this.d['languageTitle'] = 'Language'; - // this.d['english'] = 'Englisch'; - // this.d['german'] = 'German'; - // //dialog - // this.d['close'] = 'close'; - // this.d['submit'] = 'Submit'; - // this.d['textboxContentPlaceholder'] = "Only required for annotation of the transcriber"; - //this.d['textBox'] = "text frame"; - // this.d['textFrame'] = "text box"; - // this.d['gitPassword'] = 'Password'; - // this.d['useGit'] = 'Use a given git repository'; - // this.d['directory'] = 'Directory'; - // this.d['source'] = 'Source'; - //this.d['tocDepth'] = 'Depth'; - // this.d['create'] = 'Create'; - // this.d['newProjectDialogMissingGitValue'] = 'Missing git value'; - // this.d['newProjectDialogMissingGitValueSource'] = 'Please enter your git path or dismiss adding a git repository.'; - // this.d['newProjectDialogMissingGitValueUsername'] = 'Please enter your git username or dismiss adding a git repository.'; - // this.d['newProjectDialogMissingGitValuePassword'] = 'Please enter your git password or dismiss adding a git repository.'; - // this.d['newProjectDialogNoPath'] = 'No path is set'; - // this.d['newProjectDialogNoPathDetail'] = 'Please choose a path where you want to save your new project.'; - // this.d['newProjectDialogNoChapters'] = 'No Chapters Set'; - // this.d['newProjectDialogNoChaptersDetail'] = 'There is no way to create a project with 0 chapters.'; - // this.d['newProjectDialogMissingMetadataValue'] = 'Missing Metadata'; - // this.d['newProjectDialogMissingMetadataValueTitle'] = 'Please enter the name of your project.'; - // this.d['newProjectDialogMissingMetadataValueAuthor'] = 'Please enter your name, your nickname or the name of someone else.'; - // this.d['newProjectDialogMissingMetadataValueInstitution'] = 'Please enter the name of your Institution (i.e. university, company, mom).'; - // this.d['edit'] = 'Save'; - // this.d['alternatePrefix'] = 'Use "A" as prefix to appendix chapter numbering and turn the extra heading "appendix" (or translated equivalent) off'; - // this.d['outputFormat'] = 'Output format'; - // this.d['appendixPrefix'] = 'Appendix Prefix'; - // this.d['SelectedWrongFileError'] = 'File does not belong to your project'; - // this.d['somethingWentWrongDuringSavingProjectMetadata'] = 'An unexpected matuc error occured'; - // this.d['commitChangesSuccess'] = 'Your changes have been committed successfully.'; - // this.d['commitChangesError'] = 'Your changes could not have been committed.'; - // this.d['userWantsToCommitChanges'] = 'Do you want to commit your changes now?'; - // //view functions - // this.d['noMdWarningPreview'] = 'No markdown file'; - // this.d['noMdDetailPreview'] = 'Please open a markdown file (*.md) to preview.'; - // this.d['head'] = 'Head'; - // this.d['field'] = 'Field'; - // this.d['toFastError'] = 'You are too fast, Dude'; - // this.d['toFastErrorDetails'] = 'Please, do not treat the table this hard.'; - // this.d['selectTableType'] = 'Table type'; - // this.d['ErrorNoTable'] = 'No tables found!'; - // this.d['noMdWarningGenerate'] = 'No markdown file'; - // this.d['noMdDetailGenerate'] = 'Please select a markdown file (*.md) to generate a html file.'; - // this.d['headlineError'] = 'No headline possible'; - // this.d['headlineErrorDetail'] = 'Only a fully selected line can be declared as headline.'; - // this.d['blockquoteError'] = 'No blockquote possible'; - // this.d['blockquoteErrorDetail'] = 'Only a fully selected line can be declared as blockquote.'; - // this.d['addHorizontalRuleError'] = 'No horizontal rule possible'; - // this.d['addHorizontalRuleErrorDetail'] = 'Text can not be set as horizontal rule.'; - // this.d['addListError'] = 'No list possible'; - // this.d['addListErrorDetail'] = 'Only fully selected lines can be set as list items.'; - // this.d['importTableFromCsvErrorDetail'] = 'Can not replace text by table from CSV.'; - // this.d['AddPageNumberError'] = 'Error during the generation of the page number. Matuc-Message is'; - //this.d['multilineTable'] = "Multiline Table"; - // this.d['addTableToFolder'] = 'Save csv tables in folder '; - // this.d['importTableErrorText'] = "Check the csv table"; - // //insert graphic dialog - // this.d['selectMdFile'] = 'Open .md file'; - // this.d['selectPicture'] = 'Found picture'; - // this.d['graphicFile'] = 'Pick a file'; - // this.d['thereAreNoCsvFileInFolder'] = "No csv-file found in folder or the file names contain spaces."; - // this.d['addPictureToFolder'] = "Save pictures in folder "; - // this.d['addCsvFileToFolder'] = "Save csvlfile in folder "; - // this.d['ErrorNoPicture'] = "Not pictures found!"; - // this.d['ErrorNoCsvFile'] = "Not csv files found!"; - // this.d['import'] = 'Import'; - // this.d['mistkerlFoundGlobalError'] = 'A global error in your markdown occured.'; - // this.d['mistkerlFoundErrorInFile'] = 'There are errors in '; - // this.d['line'] = 'Line '; - // //dialog warningPagenumbering - // this.d['warningPagenumbering'] = "Warning"; - // this.d['correct'] = "Correct"; - // this.d['textAutoCorrection'] = "Press Correct if the page number\n should be corrected automatically.\n Press Abort for a manually correction!"; - } -} -exports.default = En; -//# sourceMappingURL=en.js.map \ No newline at end of file diff --git a/out/languages/en.js.map b/out/languages/en.js.map deleted file mode 100644 index a3f76a7..0000000 --- a/out/languages/en.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/languages/en.ts"],"names":[],"mappings":";;AAEA;IAIC;QAoUO,QAAG,GAAG,CAAC,OAAO,EAAE,EAAE;YACxB,IAAI,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,MAAM,KAAK,SAAS,EAAE;gBACzB,OAAO,OAAO,CAAC;aACf;YACD,OAAO,MAAM,CAAC;QACf,CAAC,CAAA;QAzUA,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;QAEZ,2EAA2E;QAC3E,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC;QACxC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;QAC5B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;QACzB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;QACxB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;QACxB,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,GAAG,4EAA4E,CAAC;QAC5G,IAAI,CAAC,CAAC,CAAC,wBAAwB,CAAC,GAAG,iHAAiH,CAAC;QACrJ,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,gBAAgB,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AhVD,qBAgVC"} \ No newline at end of file diff --git a/out/matucCommands.js b/out/matucCommands.js deleted file mode 100644 index 86a6d38..0000000 --- a/out/matucCommands.js +++ /dev/null @@ -1,506 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @author Jens Voegler - * @author Lucas Vogel - * This Code was written under the supervision of Jens Voegler and ported to VSCode from Lucas Vogel with minimal changes. - */ -const vscode = require("vscode"); -const languages_1 = require("./languages"); -const helper_1 = require("./helper/helper"); -const osLocale = require('os-locale'); -const path = require('path'); -const exec = require('child_process').exec; -/** - * This Class contains all Functions regarding matuc - */ -class MatucCommands { - constructor() { - this._language = new languages_1.default; - this._helper = new helper_1.default; - } - /** - * Check if Matuc is installed on the device. - * @returns true if installed, otherwise false. - */ - matucIsInstalled() { - return __awaiter(this, void 0, void 0, function* () { - var result = yield this.getMatucVersion(); - if (result !== false) { - return true; - } - else { - return false; - } - }); - } - /** - * Get the installed Version of Matuc. - * @returns version of Matuc if installed, otherwise false. - */ - getMatucVersion() { - return __awaiter(this, void 0, void 0, function* () { - var cmd = ""; - cmd += `matuc_js version`; - return new Promise(function (resolve, reject) { - try { - exec(cmd, (error, stdout, stderr) => { - if (error) { - resolve(false); - } - if (stdout.includes("result") && stdout.includes("version")) { - var fragment; - try { - fragment = JSON.parse(stdout); - } - catch (e) { - resolve(false); - } - let result = fragment["result"]["version"]; - if (result !== undefined && result !== null) { - resolve(result); - } - } - else { - resolve(false); - } - }); - } - catch (e) { - resolve(false); - } - }); - }); - } - /** - * Generats an image description using matuc. - * @param desc Description of the image - * @param outsourced Boolean, if the description is outsourced or nor - * @param currentPath the current working directory, is used to determine the current working directory (cwd) - * @param title title of the image, is used in the outsourced matuc picture description file - * @param relPathToImg path to the image in a relative form - */ - imageDescription(desc, outsourced, currentPath, title, relPathToImg) { - var cmd = ""; - if (desc.includes("\n")) { - outsourced = true; - desc = desc.replace(/\n/g, '\\n'); //TODO: Check if neccessary - } - cmd += `matuc_js imgdsc -d \"${desc}\" `; - cmd = outsourced ? cmd + '-o ' : cmd; - cmd = title ? cmd + '-t "' + title + '" ' : cmd; - cmd += `${relPathToImg}`; - console.log(cmd); - return new Promise(function (resolve, reject) { - exec(cmd, { cwd: currentPath }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - let fragment = JSON.parse(stdout); - reject(fragment.error + "\n" + fragment.usage); - } - let fragment = JSON.parse(stdout); - resolve(fragment.result); - }); - }); - } - /** - * Get what pagenumber has to be inserted at a specific point in a fole - * @param selection optional. the selection, only the start-line of the selection will be handled - * @param currentTextEditor optional. The TextEditor to work with. - */ - addPageNumber(selection, currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this._helper.getCurrentTextEditor(); - } - if (selection === undefined) { - selection = this._helper.getWordsSelection(currentTextEditor); - } - var line = selection.start.line; - var thisPath = currentTextEditor.document.uri.path; - var cmd = `matuc_js addpnum -f ${thisPath} ${line}`; - return new Promise(function (resolve, reject) { - try { - exec(cmd, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - try { - let fragment = JSON.parse(stdout); - reject(fragment.error + "\n" + fragment.usage); - } - catch (e) { - resolve(false); - } - } - try { - let fragment = JSON.parse(stdout); - resolve(fragment.result.pagenumber); - } - catch (e) { - resolve(false); - } - }); - } - catch (e) { - resolve(false); - } - }); - }); - } - /** - * Initializes a Metadata-File - * @param path path to the document where the Metadata applies - */ - initMetaData(path) { - return __awaiter(this, void 0, void 0, function* () { - // see matuc-commands.js line 183 - return new Promise(function (resolve, reject) { - exec('matuc conf init', { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - return reject(error); - } - resolve({ out: stdout, err: stderr }); - }); - }); - }); - } - /** - * Updates the Metadata - * @param alternatePrefix if the Checkbox "Appendix Prefix" is checked. the type is not clear but most propably a boolean. - * @param outputFormat aparently not used and not documented in the original matuc code of Atom. - * @param editor Author of the Project - * @param institution Institution where this is written - * @param title Title of the Project - * @param language Language the Project is written in - * @param source Material source that is used - * @param sourceAuthor Source Author that is used - * @param semYear Semester this the project is written - * @param tocDepth depth of the table of content - * @param workingGroup Working Group of the Author - * @param path Path to the Folder - */ - updateMetaData(alternatePrefix, outputFormat, editor, institution, title, language, source, sourceAuthor, semYear, tocDepth, workingGroup, path) { - return __awaiter(this, void 0, void 0, function* () { - // multiple parameters are needed - var cmd; - cmd = 'matuc_js conf update '; - cmd = alternatePrefix ? cmd + '-a ' : cmd; - cmd = editor ? cmd + '-e "' + editor + '" ' : cmd; - cmd = institution ? cmd + '-i "' + institution + '" ' : cmd; - cmd = title ? cmd + '-l "' + title + '" ' : cmd; - cmd = language ? cmd + '-L "' + language + '" ' : cmd; - cmd = source ? cmd + '-s "' + source + '" ' : cmd; - cmd = sourceAuthor ? cmd + '-A "' + sourceAuthor + '" ' : cmd; - cmd = semYear ? cmd + '-S "' + semYear + '" ' : cmd; - cmd = tocDepth ? cmd + '--toc-depth ' + tocDepth + ' ' : cmd; - cmd = workingGroup ? cmd + '-w "' + workingGroup + '" ' : cmd; - console.log("cmd update " + cmd); - return new Promise(function (resolve, reject) { - exec(cmd, { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - return reject(error); - } - resolve({ out: stdout, err: stderr }); - }); - }); - }); - } - /** - * Checks all markdown files in the project folder invoking mistkerl and saves the currend opened file, executes `matuc_js mk` - */ - checkEntireProject(path, currentTextEditor) { - var path; - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this._helper.getCurrentTextEditor(); - } - var filepath = currentTextEditor.document.uri.fsPath; - var folderpath = yield this._helper.getFolderFromFilePath(filepath); - var folderpathAbove = folderpath.substr(0, folderpath.lastIndexOf("/")); //Go one Folder above to the root oh the project - path = folderpathAbove; - var cmd = `matuc_js mk \"${path}\"`; - currentTextEditor.document.save(); - exec(cmd, (error, stdout, stderr) => { - if (error) { - console.log(cmd); - console.error(`exec error: ${error}`); - return; - } - var mistkerl = JSON.parse(stdout); - if (typeof mistkerl.result === 'string') { - vscode.window.showInformationMessage(this._language.get("mistkerlDidNotFindAnyError")); - } - else { - vscode.window.showErrorMessage(mistkerl.result); - } - }); - }); - } - /** - * Checks if a File is within the lecture - * @param pathToFile absolute path to the file - */ - checkIfFileIsWithinLecture(pathToFile) { - return __awaiter(this, void 0, void 0, function* () { - var cmd; - cmd = `matuc_js iswithinlecture \"${pathToFile}\"`; - console.log("cmd checkIfFileIsWithinLecture : " + cmd); - var isWithinLecture; - return new Promise(function (resolve, reject) { - exec(cmd, (error, stdout, stderr) => { - if (error) { - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError")); - reject(error); - } - isWithinLecture = JSON.parse(stdout).result['is within a lecture']; - resolve(isWithinLecture); - }); - }); - }); - } - /** - * Loads and show config, .lecture_meta_data.dcxml, of project. - * @param path - */ - showConfig(path) { - return __awaiter(this, void 0, void 0, function* () { - var cmd; - if (process.platform === 'win32') { - cmd = `matuc_js conf show`; - } - if (process.platform === 'darwin') { - cmd = 'matuc_js conf show '; - } - if (process.platform === 'linux') { - vscode.window.showErrorMessage(this._language.get("linuxNotSupportedYet")); - return false; - } - return new Promise(function (resolve, reject) { - console.log("Execute"); - exec(cmd, { cwd: path }, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError")); - resolve(false); - } - var currentConfig = JSON.parse(stdout); - resolve(currentConfig.result['Current settings']); - }); - }); - }); - } - /** - * Creates a new matuc project, executes `matuc_js new` - * @param {int} countOfAppendixChapters The count of chapters in appendix - * @param {int} countOfChapters The count of chapters - * @param {boolean} preface Whether a preface shall be added - * @param {string} language Sets the language for the matuc project - * @param {string} path Sets the path where the project shall be stored - */ - newProject(countOfAppendixChapters, countOfChapters, preface, language, path) { - return __awaiter(this, void 0, void 0, function* () { - var cmd = 'matuc new '; - cmd = countOfAppendixChapters ? cmd + '-a ' + countOfAppendixChapters + ' ' : cmd; - cmd = countOfChapters !== null ? cmd + '-c ' + countOfChapters + ' ' : cmd; - cmd = preface === true ? cmd + '-p ' : cmd; - cmd = language !== null ? cmd + '-l ' + language + ' ' : cmd; - cmd = path !== null ? cmd + "\"" + path + "\"" : cmd + '.'; - console.log("command is " + cmd); - return new Promise(function (resolve, reject) { - exec(cmd, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - return reject(error); - } - resolve({ out: stdout, err: stderr }); - }); - }); - }); - } - /** - * Generates and returns a os locale - * @returns the OS-Locale string - */ - getOsLocale() { - var env = Object.create(process.env); - var lang = "de_De"; - osLocale().then(locale => { - lang = locale; - }); - env.LANG = `${lang}.UTF-8`; // form should be "de_DE.UTF-8"; - return env; - } - /** - * Converts a File - * @param profile the given profile, "visually" for the visually impaied or "blind" for the blind - * @param currentTextEditor optional. The current Text editor to work with. - */ - convertFile(profile, currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this._helper.getCurrentTextEditor(); - } - var path = currentTextEditor.document.uri.fsPath; - if (yield currentTextEditor.document.isDirty) { - yield currentTextEditor.document.save(); - } - var cmd = `matuc_js conv "${path}"`; - if (profile === 'visually') { - cmd += ` -p vid`; - } - console.log("matuc conv command " + cmd); - exec(cmd, { env: this.getOsLocale() }, (error, stdout, stderr) => { - if (error) { - let fragment = JSON.parse(stdout); - let message = ""; - if (fragment.error.hasOwnProperty('line')) { - message += "\n\n\n" + this._language.get("checkLine") + fragment.error.line; - } - if (fragment.error.hasOwnProperty('path')) { - message += "\n\n" + this._language.get("checkFile") + " " + fragment.error.path; - } - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError") + message); - console.error(`exec error: ${error}`); - return; - } - console.log(`stdout: ${stdout}`); - console.log(`stderr: ${stderr}`); - //load generate HTML-file - this.loadGeneratedHtml(path); - }); - }); - } - // add quotes to path if necessary and loads generate Html afterthat - loadGeneratedHtml(path) { - let cmd = ''; - if (process.platform === 'win32') { - cmd = `\"${path.replace("md", "html")}\"`; - } - else if (process.platform === 'darwin') { - cmd = `open ./\"${path.replace("md", "html")}\"`; - } - exec(cmd, (error, stdout, stderr) => { - if (error) { - console.error(`load generate html`); - console.error(`exec error: ${error}`); - return; - } - }); - } - /** - * Checks and saves changes in the current opened file invoking mistkerl, executes `matuc_js mk` - @param currentTextEditor optional. The Text Editor to work with. - */ - checkAndSaveChanges(currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this._helper.getCurrentTextEditor(); - } - var path = currentTextEditor.document.uri.fsPath; - if (yield currentTextEditor.document.isDirty) { - yield currentTextEditor.document.save(); - } - var cmd = `matuc_js mk \"${path}\" `; - exec(cmd, (error, stdout, stderr) => { - if (error) { - console.error(`exec error: ${error}`); - return; - } - var mistkerl = JSON.parse(stdout); - if (typeof mistkerl.result === 'string') { - vscode.window.showInformationMessage(this._language.get("mistkerlDidNotFindAnyErrorAndSavedFile")); - } - else { - vscode.window.showErrorMessage(mistkerl.result); - } - console.log(`stdout: ${stdout}`); - console.log(`stderr: ${stderr}`); - }); - }); - } - /** - * Converts a whole project. - * @param profile the given profile, "visually" for the visually impaied or "blind" for the blind - * @param currentTextEditor optional. The current Text editor to work with. - */ - convertEntireProject(profile, currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this._helper.getCurrentTextEditor(); - } - currentTextEditor.document.save(); - var path = currentTextEditor.document.uri.fsPath; - var cmd; - if (process.platform === 'win32') { - cmd = 'matuc_js master'; - cmd += ` \"${path}\\..\"`; - } - else { - // OS X and Linux - cmd = `matuc_js master ${path}/..`; - } - if (profile === 'visually') { - cmd += ` -p vid`; - } - console.log(cmd); - exec(cmd, { env: this.getOsLocale(), cwd: path }, (error, stdout, stderr) => { - if (error) { - let fragment = JSON.parse(stdout); - let message = ""; - if (fragment.error.message.startsWith("No configuration")) { - message = this._language.get("noConfiguration"); - } - else { - message = fragment.error.message; - if (fragment.error.hasOwnProperty('path')) { - message += "\n\n\n" + this._language.get("checkFile") + " " + fragment.error.path; - } - } - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError") + message); - console.error(`exec error: ${error}`); - return; - } - else { - this.loadGeneratedHtml(path); - } - console.log(`stdout: ${stdout}`); - console.log(`stderr: ${stderr}`); - }); - //open file - }); - } - /** - * Fixes the page numbering of a given file - * @param currentTextEditor optional. Current Text Editor to work with. - */ - fixpnumInPlace(currentTextEditor) { - return __awaiter(this, void 0, void 0, function* () { - if (currentTextEditor === undefined) { - currentTextEditor = yield this._helper.getCurrentTextEditor(); - } - currentTextEditor.document.save(); - var path = currentTextEditor.document.uri.fsPath; - var cmd = `matuc_js fixpnums -i -f \"${path}\"`; - return new Promise(function (resolve, reject) { - exec(cmd, (error, stdout, stderr) => { - if (error) { - return reject(error); - } - resolve({ out: "fixpnums inplace", err: stderr }); - }); - }); - }); - } -} -exports.default = MatucCommands; -//# sourceMappingURL=matucCommands.js.map \ No newline at end of file diff --git a/out/matucCommands.js.map b/out/matucCommands.js.map deleted file mode 100644 index 27fdc5c..0000000 --- a/out/matucCommands.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"matucCommands.js","sourceRoot":"","sources":["../src/matucCommands.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;GAIG;AACH,iCAAiC;AACjC,2CAAmC;AACnC,4CAAqC;AACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACtC,MAAM,IAAI,GAAG,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O,CAAC,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;gBACjC,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;YACH,WAAW;QACZ,CAAC;KAAA;IAED;;;OAGG;IACU,cAAc,CAAC,iBAAqC;;YAChE,IAAI,iBAAiB,KAAK,SAAS,EAAE;gBACpC,iBAAiB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;aAC9D;YACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YAClC,IAAI,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;YACjD,IAAI,GAAG,GAAG,6BAA6B,IAAI,IAAI,CAAC;YAChD,OAAO,IAAI,OAAO,CAAC,UAAU,OAAO,EAAE,MAAM;gBAC3C,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;oBACnC,IAAI,KAAK,EAAE;wBACV,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;qBACrB;oBACD,OAAO,CAAC,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACJ,CAAC;KAAA;CACD;AAhdD,gCAgdC"} \ No newline at end of file diff --git a/out/projectToolsFunctions.js b/out/projectToolsFunctions.js deleted file mode 100644 index fc4120a..0000000 --- a/out/projectToolsFunctions.js +++ /dev/null @@ -1,383 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @author Lucas Vogel - */ -const vscode = require("vscode"); -const helper_1 = require("./helper/helper"); -const languages_1 = require("./languages"); -const matucCommands_1 = require("./matucCommands"); -const projectHelper_1 = require("./helper/projectHelper"); -const projectToolsFunctionsSnippets_1 = require("./snippets/projectToolsFunctionsSnippets"); -const settingsHelper_1 = require("./helper/settingsHelper"); -const gitCommands_1 = require("./gitCommands"); -/** - * This Class contains all functions of the project tools bar in the Taskbar. Here all Buttons are registered. - */ -class ProjectToolsFunctions { - constructor(taskbarCallback, sidebarCallback, context) { - /** - * Registering all Buttons. - */ - this.setup = () => __awaiter(this, void 0, void 0, function* () { - var gitIsEnabled = yield this._settings.get("enableGitUseage"); - this._taskbarCallback.addProjectTool("new_project.svg", this._language.get("newProject"), this.createNewProject, this._language.get("projectTitle"), "agsbs.newProject"); - this._taskbarCallback.addProjectTool("edit.svg", this._language.get("editProject"), this.editProjectData, this._language.get("projectTitle"), "agsbs.edit"); - if (gitIsEnabled === true) { - this._taskbarCallback.addProjectTool("clone.svg", this._language.get("cloneExistingRepo"), this.cloneRepo, this._language.get("projectTitle"), "agsbs.clone"); - } - this._taskbarCallback.addProjectTool("save.svg", this._language.get("saveChanges"), this.saveChanges, this._language.get("documentTitle")); - this._taskbarCallback.addProjectTool("new_file.svg", this._language.get("newFile"), this.createNewFile, this._language.get("documentTitle"), "agsbs.newFile"); - this._taskbarCallback.addProjectTool("undo.svg", this._language.get("undo"), this.undo, this._language.get("documentTitle")); - this._taskbarCallback.addProjectTool("redo.svg", this._language.get("redo"), this.redo, this._language.get("documentTitle")); - this._taskbarCallback.addProjectTool("preview.svg", this._language.get("preview"), this.showHTMLPreview, this._language.get("documentTitle"), "agsbs.preview"); - this._taskbarCallback.addProjectTool("generate.svg", this._language.get("generateFile"), this.generateHTML, this._language.get("documentTitle"), "agsbs.generateFile"); - this._taskbarCallback.addProjectTool("create_all.svg", this._language.get("convertEntireProject"), this.generateHTMLForAllProjects, this._language.get("documentTitle"), "agsbs.convertEntireProject"); - this._taskbarCallback.addProjectTool("check_all.svg", this._language.get("checkProject"), this.publish, this._language.get("publishTitle"), "agsbs.checkProject"); - if (gitIsEnabled === true) { - this._taskbarCallback.addProjectTool("commit.svg", this._language.get("commitChanges"), this.commitChanges, this._language.get("publishTitle"), "agsbs.commitChanges"); - } - }); - /** - * Lets you create a new Project - */ - this.createNewProject = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matuc.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var optionsHTML = yield this._projectHelper.getAllWorkspaceFoldersAsHTMLWithSpeciallyEscapedJSON(); - var form = ''; - form += this._snippets.get("newProjectHTMLPart1"); - form += optionsHTML; - form += this._snippets.get("newProjectHTMLPart2"); - var script = this._snippets.get("newProjectSCRIPT"); - this._sidebarCallback.addToSidebar(form, this._language.get("newProject"), this.createNewProjectSidebarCallback, this._language.get("insert"), "", script); - }); - /** - * Callback for creating a new project - */ - this.createNewProjectSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var path, chapterCount, appendixChapterCount, preface, projectLanguage, tableOfContents, title, editor, institution, sourceMaterial, sourceAuthor, depthOfTableOfContents; - var pathDataObject = this._projectHelper.convertSpeciallyEscapedJSONToObject(params.folder.value); - path = pathDataObject.uri; - chapterCount = params.chapters.value; - if (params.appendixChapters.value === '') { - appendixChapterCount = 0; - } - else { - appendixChapterCount = params.appendixChapters.value; - } - preface = params.preface.checked; - projectLanguage = params.language.value; - tableOfContents = params.tableOfContents.checked; - if (tableOfContents) { - depthOfTableOfContents = params.tocDepth.value; - } - else { - depthOfTableOfContents = 0; - } - title = params.title.value; - editor = params.author.value; - institution = params.institution.value; - sourceMaterial = params.materialSource.value; - sourceAuthor = params.sourceAuthor.value; - try { - let alternatePrefix, outputFormat, semYear, workingGroup; - yield this._matuc.newProject(appendixChapterCount, chapterCount, preface, projectLanguage, path); - yield this._matuc.initMetaData(path); - yield this._matuc.updateMetaData(alternatePrefix, outputFormat, editor, institution, title, projectLanguage, sourceMaterial, sourceAuthor, semYear, depthOfTableOfContents, workingGroup, path); - } - catch (e) { - vscode.window.showErrorMessage(this._language.get("somethingWentWrongDuringCreatingNewProject")); - console.log(e); - return; - } - vscode.window.showInformationMessage(this._language.get("createdProjectSuccessfully")); - }); - /** - * Lets you edit the Metadata of the current project - */ - this.editProjectData = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matuc.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var currentEditor = yield this._helper.getCurrentTextEditor(); - var folder = yield this._helper.getFolderFromFilePath(currentEditor.document.uri.fsPath); - var config = yield this._matuc.showConfig(folder); - if (config === false) { - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError")); - return; - } - var form = this._projectHelper.getEditProjectHTMLForm(config, folder); - this._sidebarCallback.addToSidebar(form, this._language.get("editProject"), this.editProjectDataSidebarCallback, this._language.get("updateEditedData")); - }); - /** - * Callback for editing the Metadata of the current project. - */ - this.editProjectDataSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - const alternatePrefix = params.preface.checked; - const editor = params.author.value; - const institution = params.institution.value; - const title = params.title.value; - const projectLanguage = params.language.value; - const source = params.materialSource.value; - const sourceAuthor = params.sourceAuthor.value; - const semYear = params.semYear.value; - const tocDepth = params.tocDepth.value; - const workingGroup = params.workingGroup.value; - var thisPath = params.folder.value; - thisPath = thisPath.replace("\\\\`", "'"); - try { - yield this._matuc.updateMetaData(alternatePrefix, null, editor, institution, title, projectLanguage, source, sourceAuthor, semYear, tocDepth, workingGroup, thisPath); - } - catch (e) { - console.log(e); - vscode.window.showErrorMessage(this._language.get("unExpectedMatucError")); - return; - } - vscode.window.showInformationMessage(this._language.get("updateSuccessfull")); - }); - /** - * Saves the changes made in the current file - */ - this.saveChanges = () => __awaiter(this, void 0, void 0, function* () { - var currentEditor = yield this._helper.getCurrentTextEditor(); - currentEditor.document.save(); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * creates a new file in the current Project - */ - this.createNewFile = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.focusDocument(); //Puts focus back to the text editor - yield vscode.commands.executeCommand('workbench.action.files.newUntitledFile'); - yield vscode.commands.executeCommand('workbench.action.files.save'); - }); - /** - * Undoes the last step. - */ - this.undo = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.focusDocument(); //Puts focus back to the text editor - yield vscode.commands.executeCommand('undo'); - }); - /** - * Redoes the last step - */ - this.redo = () => __awaiter(this, void 0, void 0, function* () { - yield this._helper.focusDocument(); //Puts focus back to the text editor - yield vscode.commands.executeCommand('redo'); - }); - /** - * shows a HTML Preview if available. - */ - this.showHTMLPreview = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matuc.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - yield this._helper.focusDocument(); //Puts focus back to the text editor - // try{ - // vscode.commands.executeCommand("markdown-preview-enhanced.openPreview"); - // return; - // } catch(e){ - // console.log(e); - // } // no Markdown enhanced because it ALLWAYS opens to the right. Bad :( - vscode.commands.executeCommand("markdown.showPreview"); - }); - /** - * Generates the HTML for the current File - */ - this.generateHTML = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matuc.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var currentEditor = yield this._helper.getCurrentTextEditor(); - var filePath = currentEditor.document.uri.fsPath; - var isInLecture = yield this._matuc.checkIfFileIsWithinLecture(filePath); - if (isInLecture === false) { - vscode.window.showErrorMessage(this._language.get("notInsideLecture")); - return; - } - var conversionProfilePromise = yield this._settings.get("conversionProfile"); - var conversionProfile = conversionProfilePromise; - if (conversionProfile !== "blind" && conversionProfile !== "visually impaired" && conversionProfile !== "visually") { - //Fallback if conversion profile cannot be resolved - var form = this._projectHelper.getConversionProfileHTML(); - this._sidebarCallback.addToSidebar(form, this._language.get("generateFile"), this.generateHTMLSidebarCallback, this._language.get("generate")); - } - else { - if (conversionProfile === "visually impaired") { - conversionProfile = "visually"; - } - yield this._matuc.checkAndSaveChanges(); - yield this._matuc.convertFile(conversionProfile); - this._helper.focusDocument(); //Puts focus back to the text editor - } - }); - /** - * Callback for generating the HTML for the current File. Fallback if this is not set in the settings. - */ - this.generateHTMLSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var profile = params.conversionProfile.value; - yield this._matuc.checkAndSaveChanges(); - yield this._matuc.convertFile(profile); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Generates HTML for all projects - */ - this.generateHTMLForAllProjects = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matuc.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var currentEditor = yield this._helper.getCurrentTextEditor(); - var filePath = currentEditor.document.uri.fsPath; - var isInLecture = yield this._matuc.checkIfFileIsWithinLecture(filePath); - if (isInLecture === false) { - vscode.window.showErrorMessage(this._language.get("notInsideLecture")); - return; - } - var conversionProfilePromise = yield this._settings.get("conversionProfile"); - var conversionProfile = conversionProfilePromise; - if (conversionProfile !== "blind" && conversionProfile !== "visually impaired" && conversionProfile !== "visually") { - var form = this._projectHelper.getConversionProfileHTML(); - this._sidebarCallback.addToSidebar(form, this._language.get("convertEntireProject"), this.generateHTMLForAllProjectsSidebarCallback, this._language.get("generate")); - } - else { - if (conversionProfile === "visually impaired") { - conversionProfile = "visually"; - } - yield this._matuc.checkAndSaveChanges(); - yield this._matuc.convertEntireProject(conversionProfile); - this._helper.focusDocument(); //Puts focus back to the text editor - } - }); - /** - * Callback for generating the HTML for all projects, as a fallback when the setting is manually selected every time - */ - this.generateHTMLForAllProjectsSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var profile = params.conversionProfile.value; - yield this._matuc.checkAndSaveChanges(); - yield this._matuc.convertEntireProject(profile); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * publishes the whole Project - */ - this.publish = () => __awaiter(this, void 0, void 0, function* () { - var matucIsInstalled = yield this._matuc.matucIsInstalled(); - if (matucIsInstalled === false) { - vscode.window.showErrorMessage(this._language.get("matucNotInstalled")); - return; - } - var currentEditor = yield this._helper.getCurrentTextEditor(); - var filePath = currentEditor.document.uri.fsPath; - var isInLecture = yield this._matuc.checkIfFileIsWithinLecture(filePath); - if (isInLecture === false) { - vscode.window.showErrorMessage(this._language.get("notInsideLecture")); - return; - } - var form = ` - ${this._language.get("doYouWantToAutocorrect")}
-
-
- - - `; - this._sidebarCallback.addToSidebar(form, this._language.get("pagenumbering"), this.publishSidebarCallback, this._language.get("generate")); - this._helper.focusDocument(); //Puts focus back to the text editor - }); - /** - * Checks the whole project - */ - this.publishSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - if (params.autoCorrectPageNumbering.checked === true) { - yield this._matuc.fixpnumInPlace(); - } - var currentEditor = yield this._helper.getCurrentTextEditor(); - var filePath = currentEditor.document.uri.fsPath; - this._matuc.checkEntireProject(filePath); - }); - /** - * Adds Form to sidebar to clone a project - */ - this.cloneRepo = () => __awaiter(this, void 0, void 0, function* () { - var gitIsEnabled = yield this._settings.get("enableGitUseage"); - if (gitIsEnabled === false) { - vscode.window.showErrorMessage(this._language.get("gitIsNotEnabled")); - return; - } - var form = ` - - -
- - - `; - this._sidebarCallback.addToSidebar(form, this._language.get("cloneExistingRepo"), this.cloneRepoSidebarCallback, this._language.get("clone")); - }); - /** - * clones a project - */ - this.cloneRepoSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var userName = params.gitUser.value; - var repoName = params.repoName.value; - this._git.clone(userName, repoName); - }); - /** - * Adds commt changes dialogue to the sidebar - */ - this.commitChanges = () => __awaiter(this, void 0, void 0, function* () { - var gitIsEnabled = yield this._settings.get("enableGitUseage"); - if (gitIsEnabled === false) { - vscode.window.showErrorMessage(this._language.get("gitIsNotEnabled")); - return; - } - var form = ` - -
- - `; - this._sidebarCallback.addToSidebar(form, this._language.get("commitChanges"), this.commitChangesSidebarCallback, this._language.get("commit")); - }); - /** - * commits the changes, and pushes them. - */ - this.commitChangesSidebarCallback = (params) => __awaiter(this, void 0, void 0, function* () { - var commitMessage = params.commitChanges.value; - var currentTexteditor = yield this._helper.getCurrentTextEditor(); - var projectFolder = this._helper.getFolderFromFilePath(currentTexteditor.document.uri.fsPath); - yield this._git.addAll(projectFolder); - yield this._git.commit(commitMessage, projectFolder); - yield this._git.push(projectFolder); - }); - this._helper = new helper_1.default; - this._language = new languages_1.default; - this._sidebarCallback = sidebarCallback; - this._taskbarCallback = taskbarCallback; - this._matuc = new matucCommands_1.default; - this._projectHelper = new projectHelper_1.default; - this._snippets = new projectToolsFunctionsSnippets_1.default; - this._settings = new settingsHelper_1.default; - this._git = new gitCommands_1.default; - } -} -exports.default = ProjectToolsFunctions; -//# sourceMappingURL=projectToolsFunctions.js.map \ No newline at end of file diff --git a/out/projectToolsFunctions.js.map b/out/projectToolsFunctions.js.map deleted file mode 100644 index de18931..0000000 --- a/out/projectToolsFunctions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"projectToolsFunctions.js","sourceRoot":"","sources":["../src/projectToolsFunctions.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AAGnC,mDAA4C;AAC5C,0DAAmD;AACnD,4FAAoF;AACpF,4DAAqD;AACrD,+CAAwC;AAExC;;GAEG;AACH;IAWI,YAAY,eAAe,EAAE,eAAe,EAAE,OAAO;QAYrD;;WAEG;QACI,UAAK,GAAG,GAAS,EAAE;YACtB,IAAI,YAAY,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,C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1eb 100644 --- a/out/sidebar.js +++ b/out/sidebar.js @@ -119,6 +119,7 @@ class Sidebar { var matucIsInstalled = yield this._matuc.matucIsInstalled(); var welcomeText = this._language.get("sidebarWelcome"); var form = "

" + welcomeText + "

"; + form = this._addMultipleText(["textWhatToDo", "sendingError"], form); if (matucIsInstalled === false) { form += "

" + this._language.get("MatucIsInstalledWarning"); } @@ -207,6 +208,17 @@ class Sidebar { })); }); } + /** + * Create multiple paragraph basing on a string list and returns new element + * @param textList the string list + * @param element where the paragraph should be appended + */ + _addMultipleText(textList, element) { + textList.forEach(item => { + element += "

" + this._language.get(item) + "

"; + }); + return element; + } } exports.default = Sidebar; //# sourceMappingURL=sidebar.js.map \ No newline at end of file diff --git a/out/sidebar.js.map b/out/sidebar.js.map deleted file mode 100644 index 48c0aa6..0000000 --- a/out/sidebar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../src/sidebar.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AACrC,2CAAmC;AACnC,gEAAyD;AACzD,mDAA4C;AAE5C;;GAEG;AACH;IAUI,YAAY,OAAO;QA2EnB;;;WAGG;QACK,+BAA0B,GAAG,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,oCAAoC;YACpF,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QACjC,CAAC,CAAA;QAgBD;;;;;;;WAOG;QACI,iBAAY,GAAG,CAAO,IAAY,EAAE,QAAgB,EAAE,QAAa,EAAE,UAAmB,EAAE,GAAY,EAAE,MAAe,EAAE,EAAE;YAC9H,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC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AAC,CAAC,sBAAsB;oBACtD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;gBACvB,CAAC,EAAE,IAAI,CAAC,CAAC;gBACT,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE;oBACxC,IAAI,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE;wBAChC,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;qBAC5C;yBAAM;wBACH,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;4BAClC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;yBAClD;qBACJ;gBACL,CAAC,EAAE,SAAS,CAAC,CAAC;gBACd,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;gBAEpB,IAAI,IAAI,CAAC,iBAAiB,KAAK,KAAK,EAAE;oBAClC,IAAI,CAAC,kBAAkB,EAAE,CAAC;iBAC7B;gBAED,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA,cAAc;YACjC,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;IAYD;;;;OAIG;IACU,IAAI,CAAC,KAA0B;;YACxC,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzC,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;gBACtB,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;gBAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;gBACnB,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;CAqGJ;AAhND,0BAgNC"} \ No newline at end of file diff --git a/out/taskbar.js b/out/taskbar.js deleted file mode 100644 index a6240de..0000000 --- a/out/taskbar.js +++ /dev/null @@ -1,259 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @author Lucas Vogel - */ -const vscode = require("vscode"); -const helper_1 = require("./helper/helper"); -const editorFunctions_1 = require("./editorFunctions"); -const projectToolsFunctions_1 = require("./projectToolsFunctions"); -/** - * Main class of the taskbar - */ -class Taskbar { - constructor(sidebarCallback, context) { - /** this Function gets called from the Webview when a button is clicked. - * It calls one of the callbacks from EditorFunctions. - * @param message The content of the message from the Webview - */ - this._messageFromWebviewHandler = (message) => { - this._callbacks[message.text](); - }; - /** Adds a Button to the Taskbar - * @param iconName the Name of the Icon in the Icon Folder, with file extension (so for example "icon.svg") - * @param name Displayname of the Icon - * @param callback callback to the function, must be an arrow function - * @param section optional section the button is displayed in - * @param commandIdentifier optional. The identifier used in the package.json command and key binding. - */ - this.addButton = (iconName, name, callback, section, commandIdentifier) => { - var id = this._helper.generateUuid(); - var newSection = ""; - if (section !== undefined) { - newSection = section; - } - if (this._sectionIsInWebview(newSection) === false) { - var newSectionHTML = this._generateSectionHTML(section); - this._addToHTML("TOOLS_END", newSectionHTML); - } - var icon = this._helper.getWebviewResourceIconURI(iconName, this._context); - //use Images as Background Mask to allow dynamic color change with css variables (allow themes) - var html = ``; - this._callbacks[id] = callback; - newSection = "SECTION-" + newSection; - this._addToHTML(newSection, html); - if (commandIdentifier !== undefined) { - if (!commandIdentifier.includes("agsbs.")) { - commandIdentifier = "agsbs." + commandIdentifier; - } - try { - let disposable = vscode.commands.registerCommand(commandIdentifier, () => { - callback(); - }); - } - catch (e) { - //If it tries to re-register a command an error will be trown. However, - //because there is no check if a command is already registered, this is the workarround - console.log("No need to re-register editor command."); - } - } - }; - /** Adds a Button to the Taskbar Project Tools - * @param iconName the Name of the Icon in the Icon Folder, with file extension (so for example "icon.svg") - * @param name Displayname of the Icon - * @param section optional section the button is displayed in - * @param commandIdentifier optional. The identifier used in the package.json command and key binding. - */ - this.addProjectTool = (iconName, name, callback, section, commandIdentifier) => { - var id = this._helper.generateUuid(); - var newSection = ""; - if (section !== undefined) { - newSection = section; - } - if (this._sectionIsInWebview(newSection) === false) { - var newSectionHTML = this._generateSectionHTML(section); - this._addToHTML("PROJECTTOOLS_END", newSectionHTML); - } - var icon = this._helper.getWebviewResourceIconURI(iconName, this._context); - //use Images as Background Mask to allow dynamic color change with css variables (allow themes) - var html = ``; - this._callbacks[id] = callback; - newSection = "SECTION-" + newSection; - this._addToHTML(newSection, html); - if (commandIdentifier !== undefined) { - if (!commandIdentifier.includes("agsbs.")) { - commandIdentifier = "agsbs." + commandIdentifier; - } - try { - let disposable = vscode.commands.registerCommand(commandIdentifier, () => { - callback(); - }); - } - catch (e) { - //If it tries to re-register a command an error will be trown. However, - //because there is no check if a command is already registered, this is the workarround - console.log("No need to re-register project tool command."); - } - } - }; - /** This adds HTML to the taskbars Webview, at the given point. - * This point is predefined in the _getBaseHTML-Function and _generateSectionHTML, for example SECTION-*, HEAD_END, BODY_START or BODY_END - * @param section section Name, see examples above - * @param html html to insert - */ - this._addToHTML = (section, html) => { - var marker = ""; - var oldHTML = this._panel.webview.html; - html = html + marker; - var newHTML = oldHTML.replace(marker, html); - this._panel.webview.html = newHTML; - }; - /** Generate a HTML snippet to insert into the Webview for a given Name - * @param name Name of the section - * @returns a HTML snippet - */ - this._generateSectionHTML = (name) => { - return `
${name}
`; - }; - this._context = context; - this._taskbarIsVisible = false; - this._sidebarCallback = sidebarCallback; - this._helper = new helper_1.default; - this._editorFunctions = new editorFunctions_1.default(this, this._sidebarCallback, context); - this._projectToolsFunctions = new projectToolsFunctions_1.default(this, this._sidebarCallback, context); - this._panel = null; - this._callbacks = []; - let disposable = vscode.commands.registerCommand("agsbs.focusTaskbar", () => { - this.focus(); - }); - } - /** - * Puts the focus on the sidebar. - */ - focus() { - this._panel.reveal(this._panel.viewColumn); - } - /** - * Returns the current State of visibility of the Taskbar. - * @return The current visibility from type Boolean. - */ - isVisible() { - return this._taskbarIsVisible; - } - /** - * Opens a Taskbar Webview - * @return A WebviewPanel from Type vscode.WebviewPanel - */ - show() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - this._taskbarIsVisible = true; - var panel = vscode.window.createWebviewPanel('agsbstaskbar', // Identifies the type of the webview. Used internally - "AGSBS Toolbar", // Title of the panel displayed to the user - //vscode.ViewColumn.One, // Editor column to show the new webview panel in. - { - viewColumn: vscode.ViewColumn.Three, - preserveFocus: true - }, { - enableScripts: true - } // Webview options - ); - this._panel = panel; - panel.webview.html = this._getBaseHTML(); - panel.onDidDispose(() => { - this._taskbarIsVisible = false; //When panel is closed - this._panel = null; - }, null); - panel.webview.onDidReceiveMessage(message => { - this._messageFromWebviewHandler(message); - }, undefined); - this._editorFunctions.setup(); - this._projectToolsFunctions.setup(); - resolve(panel); //return panel; - })); - }); - } - /** - * Gets triggered when the Layout of the Editor changes. - * @param panel The WebviewPanel that should be closed, from fype vscode.WebviewPanel - */ - hide(panel) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - yield panel.dispose(); - this._taskbarIsVisible = false; - this._panel = null; - resolve(true); - })); - }); - } - /** Checks if a section is in the Webview HTML - * @param section name of the sectiton - * @returns Boolean, true if the section is already in the WebView - */ - _sectionIsInWebview(section) { - var webViewHTML = this._panel.webview.html; - var sectionIndicator = ""; - if (webViewHTML.includes(sectionIndicator)) { - return true; - } - else { - return false; - } - } - /** - * Returns the base Frame HTML for the Webview - */ - _getBaseHTML() { - // var fontAwesomeFont = this._helper.getWebviewResourceURI("fontawesome-webfont.woff2","style/fonts",this._context); - // var fontAwesome = this._helper.getWebviewResourceURI("fontawesome.css","style",this._context); - //If font Awesome is needed, it can be imported here. - var style = this._helper.getWebviewResourceURI("taskbar.css", "style", this._context); - var html = ` - - - - - AGSBS - - - - - -
- - - -
- -
- - - -
- - - - `; - return html; - } -} -exports.default = Taskbar; -//# sourceMappingURL=taskbar.js.map \ No newline at end of file diff --git a/out/taskbar.js.map b/out/taskbar.js.map deleted file mode 100644 index 881dffe..0000000 --- a/out/taskbar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"taskbar.js","sourceRoot":"","sources":["../src/taskbar.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;GAEG;AACH,iCAAiC;AACjC,4CAAqC;AAErC,uDAAgD;AAChD,mEAA4D;AAE5D;;GAEG;AACH;IAUI,YAAY,eAAe,EAAE,OAAO;QA8BpC;;;WAGG;QACK,+BAA0B,GAAG,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,CAAC,CAAA;QAiDD;;;;;;WAMG;QACI,cAAS,GAAG,CAAC,QAAgB,EAAE,IAAY,EAAE,QAAa,EAAE,OAAe,EAAE,iBAA0B,EAAE,EAAE;YAE9G,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YACrC,IAAI,UAAU,GAAG,EAAE,CAAC;YACpB,IAAI,OAAO,KAAK,SAAS,EAAE;gBACvB,UAAU,GAAG,OAAO,CAAC;aACxB;YACD,IAAI,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,KAAK,KAAK,EAAE;gBAChD,IAAI,cAAc,GAAG,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;gBACxD,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;aAChD;YACD,IAAI,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC3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AG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;QAC3C,IAAI,gBAAgB,GAAG,cAAc,GAAG,OAAO,GAAG,KAAK,CAAC;QACxD,IAAI,WAAW,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;YACxC,OAAO,IAAI,CAAC;SACf;aAAM;YACH,OAAO,KAAK,CAAC;SAChB;IACL,CAAC;IAED;;OAEG;IACK,YAAY;QAEhB,qHAAqH;QACrH,iGAAiG;QACjG,qDAAqD;QAErD,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,aAAa,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtF,IAAI,IAAI,GAAG;;;;;;4CAMyB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BhC,CAAC;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AApQD,0BAoQC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3e4ecbb..8d5752d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,29 @@ { - "name": "agsbs", + "name": "agsbsextension", "version": "0.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "7.5.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "2.4.2", + "esutils": "2.0.3", + "js-tokens": "4.0.0" + } + }, "@types/mocha": { "version": "2.2.48", "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.48.tgz", @@ -11,136 +31,57 @@ "dev": true }, "@types/node": { - "version": "8.10.36", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.36.tgz", - "integrity": "sha512-SL6KhfM7PTqiFmbCW3eVNwVBZ+88Mrzbuvn9olPsfv43mbiWaFY+nRcz/TGGku0/lc2FepdMbImdMY1JrQ+zbw==", + "version": "8.10.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.51.tgz", + "integrity": "sha512-cArrlJp3Yv6IyFT/DYe+rlO8o3SIHraALbBW/+CcCYW/a9QucpLI+n2p4sRxAvl2O35TiecpX2heSZtJjvEO+Q==", "dev": true }, - "ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", "dev": true, "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" + "es6-promisify": "5.0.0" } }, - "ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "ajv": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", + "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "fast-deep-equal": "2.0.1", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.4.1", + "uri-js": "4.2.2" } }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "color-convert": "1.9.3" } }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", - "dev": true - }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { - "sprintf-js": "~1.0.2" - } - }, - "arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1", - "array-slice": "^0.2.3" - } - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", - "dev": true - }, - "array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", - "dev": true - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" + "sprintf-js": "1.0.3" } }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, "asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", "dev": true, "requires": { - "safer-buffer": "~2.1.0" + "safer-buffer": "2.1.2" } }, "assert-plus": { @@ -167,32 +108,6 @@ "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", "dev": true }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - }, - "dependencies": { - "chalk": { - "version": "1.1.3", - "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - } - } - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -205,16 +120,7 @@ "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, "requires": { - "tweetnacl": "^0.14.3" - } - }, - "block-stream": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", - "dev": true, - "requires": { - "inherits": "~2.0.0" + "tweetnacl": "0.14.5" } }, "brace-expansion": { @@ -223,31 +129,14 @@ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { - "balanced-match": "^1.0.0", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, "browser-stdout": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", - "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", - "dev": true - }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, "buffer-from": { @@ -269,70 +158,20 @@ "dev": true }, "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true - }, - "clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", - "dev": true - }, - "clone-stats": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", - "dev": true - }, - "cloneable-readable": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", - "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.5.0" } }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" }, "color-convert": { "version": "1.9.3", @@ -350,18 +189,18 @@ "dev": true }, "combined-stream": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", - "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "requires": { - "delayed-stream": "~1.0.0" + "delayed-stream": "1.0.0" } }, "commander": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.18.0.tgz", - "integrity": "sha512-6CYPa+JP2ftfRU2qkDK+UTVeQYosOg/2GbcjIcKPHfinyOLPVGXu/ovN86RP49Re5ndJK1N0kuiidFFuepc4ZQ==", + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", + "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", "dev": true }, "concat-map": { @@ -370,15 +209,6 @@ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, - "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -390,11 +220,11 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "nice-try": "1.0.5", + "path-key": "2.0.1", + "semver": "5.6.0", + "shebang-command": "1.2.0", + "which": "1.3.1" } }, "dashdash": { @@ -403,7 +233,7 @@ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, "requires": { - "assert-plus": "^1.0.0" + "assert-plus": "1.0.0" } }, "debug": { @@ -415,15 +245,6 @@ "ms": "2.0.0" } }, - "deep-assign": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/deep-assign/-/deep-assign-1.0.0.tgz", - "integrity": "sha1-sJJ0O+hCfcYh6gBnzex+cN0Z83s=", - "dev": true, - "requires": { - "is-obj": "^1.0.0" - } - }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -436,32 +257,14 @@ "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true }, - "duplexer": { - "version": "0.1.1", - "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", - "dev": true - }, - "duplexify": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.1.tgz", - "integrity": "sha512-vM58DwdnKmty+FSPzT14K9JXb90H+j5emaR4KYbr2KTIz00WHGbWOe5ghQTx233ZCLZtrGDALzKwcjEtSt35mA==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" + "jsbn": "0.1.1", + "safer-buffer": "2.1.2" } }, "end-of-stream": { @@ -469,7 +272,22 @@ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", "requires": { - "once": "^1.4.0" + "once": "1.4.0" + } + }, + "es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "dev": true + }, + "es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", + "dev": true, + "requires": { + "es6-promise": "4.2.8" } }, "escape-string-regexp": { @@ -485,57 +303,23 @@ "dev": true }, "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "event-stream": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.6.tgz", - "integrity": "sha512-dGXNg4F/FgVzlApjzItL+7naHutA3fDqbV/zAZqDDlXTjiMnQmZKu+prImWKszeBM5UQeGvAl3u1wBiKeDh61g==", - "dev": true, - "requires": { - "duplexer": "^0.1.1", - "flatmap-stream": "^0.1.0", - "from": "^0.1.7", - "map-stream": "0.0.7", - "pause-stream": "^0.0.11", - "split": "^1.0.1", - "stream-combiner": "^0.2.2", - "through": "^2.3.8" - } - }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "^2.1.0" + "cross-spawn": "6.0.5", + "get-stream": "4.1.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" } }, "extend": { @@ -544,32 +328,6 @@ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true }, - "extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", - "dev": true, - "requires": { - "kind-of": "^1.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - } - } - }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", @@ -577,9 +335,9 @@ "dev": true }, "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", "dev": true }, "fast-json-stable-stringify": { @@ -588,61 +346,6 @@ "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", "dev": true }, - "fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", - "dev": true, - "requires": { - "pend": "~1.2.0" - } - }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "dev": true - }, - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "first-chunk-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", - "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", - "dev": true - }, - "flatmap-stream": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.1.tgz", - "integrity": "sha512-lAq4tLbm3sidmdCN8G3ExaxH7cUCtP5mgDvrYowsx84dcYkJJ4I28N7gkxA6+YlSXzaGLJYIDEi9WGfXzMiXdw==", - "dev": true - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -655,41 +358,23 @@ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" + "asynckit": "0.4.0", + "combined-stream": "1.0.8", + "mime-types": "2.1.24" } }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "fstream": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "inherits": "~2.0.0", - "mkdirp": ">=0.5 0", - "rimraf": "2" - } - }, "get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "requires": { - "pump": "^3.0.0" + "pump": "3.0.0" } }, "getpass": { @@ -698,395 +383,29 @@ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { - "assert-plus": "^1.0.0" + "assert-plus": "1.0.0" } }, "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.4", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "glob-stream": { - "version": "5.3.5", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", - "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", - "dev": true, - "requires": { - "extend": "^3.0.0", - "glob": "^5.0.3", - "glob-parent": "^3.0.0", - "micromatch": "^2.3.7", - "ordered-read-streams": "^0.3.0", - "through2": "^0.6.0", - "to-absolute-glob": "^0.1.1", - "unique-stream": "^2.0.2" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - } - } - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, "growl": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", - "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true }, - "gulp-chmod": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/gulp-chmod/-/gulp-chmod-2.0.0.tgz", - "integrity": "sha1-AMOQuSigeZslGsz2MaoJ4BzGKZw=", - "dev": true, - "requires": { - "deep-assign": "^1.0.0", - "stat-mode": "^0.2.0", - "through2": "^2.0.0" - } - }, - "gulp-filter": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/gulp-filter/-/gulp-filter-5.1.0.tgz", - "integrity": "sha1-oF4Rr/sHz33PQafeHLe2OsN4PnM=", - "dev": true, - "requires": { - "multimatch": "^2.0.0", - "plugin-error": "^0.1.2", - "streamfilter": "^1.0.5" - } - }, - "gulp-gunzip": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulp-gunzip/-/gulp-gunzip-1.0.0.tgz", - "integrity": "sha1-FbdBFF6Dqcb1CIYkG1fMWHHxUak=", - "dev": true, - "requires": { - "through2": "~0.6.5", - "vinyl": "~0.4.6" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - } - } - }, - "gulp-remote-src-vscode": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/gulp-remote-src-vscode/-/gulp-remote-src-vscode-0.5.0.tgz", - "integrity": "sha512-/9vtSk9eI9DEWCqzGieglPqmx0WUQ9pwPHyHFpKmfxqdgqGJC2l0vFMdYs54hLdDsMDEZFLDL2J4ikjc4hQ5HQ==", - "dev": true, - "requires": { - "event-stream": "^3.3.4", - "node.extend": "^1.1.2", - "request": "^2.79.0", - "through2": "^2.0.3", - "vinyl": "^2.0.1" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } - } - }, - "gulp-sourcemaps": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", - "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", - "dev": true, - "requires": { - "convert-source-map": "^1.1.1", - "graceful-fs": "^4.1.2", - "strip-bom": "^2.0.0", - "through2": "^2.0.0", - "vinyl": "^1.0.0" - }, - "dependencies": { - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", - "dev": true - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - } - } - }, - "gulp-symdest": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/gulp-symdest/-/gulp-symdest-1.1.0.tgz", - "integrity": "sha1-wWUyBzLRks5W/ZQnH/oSMjS/KuA=", - "dev": true, - "requires": { - "event-stream": "^3.3.1", - "mkdirp": "^0.5.1", - "queue": "^3.1.0", - "vinyl-fs": "^2.4.3" - } - }, - "gulp-untar": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/gulp-untar/-/gulp-untar-0.0.7.tgz", - "integrity": "sha512-0QfbCH2a1k2qkTLWPqTX+QO4qNsHn3kC546YhAP3/n0h+nvtyGITDuDrYBMDZeW4WnFijmkOvBWa5HshTic1tw==", - "dev": true, - "requires": { - "event-stream": "~3.3.4", - "streamifier": "~0.1.1", - "tar": "^2.2.1", - "through2": "~2.0.3", - "vinyl": "^1.2.0" - }, - "dependencies": { - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", - "dev": true - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - } - } - }, - "gulp-vinyl-zip": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/gulp-vinyl-zip/-/gulp-vinyl-zip-2.1.0.tgz", - "integrity": "sha1-JOQGhdwFtxSZlSRQmeBZAmO+ja0=", - "dev": true, - "requires": { - "event-stream": "^3.3.1", - "queue": "^4.2.1", - "through2": "^2.0.3", - "vinyl": "^2.0.2", - "vinyl-fs": "^2.0.0", - "yauzl": "^2.2.1", - "yazl": "^2.2.1" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "queue": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/queue/-/queue-4.5.0.tgz", - "integrity": "sha512-DwxpAnqJuoQa+wyDgQuwkSshkhlqIlWEvwvdAY27fDPunZ2cVJzXU4JyjY+5l7zs7oGLaYAQm4MbLOVFAHFBzA==", - "dev": true, - "requires": { - "inherits": "~2.0.0" - } - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } - } - }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -1094,22 +413,13 @@ "dev": true }, "har-validator": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", - "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", - "dev": true, - "requires": { - "ajv": "^5.3.0", - "har-schema": "^2.0.0" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ajv": "6.10.2", + "har-schema": "2.0.0" } }, "has-flag": { @@ -1124,15 +434,43 @@ "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", "dev": true }, + "http-proxy-agent": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", + "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", + "dev": true, + "requires": { + "agent-base": "4.3.0", + "debug": "3.1.0" + } + }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.16.1" + } + }, + "https-proxy-agent": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.2.tgz", + "integrity": "sha512-c8Ndjc9Bkpfx/vCJueCPy0jlP4ccCCSNDp8xwCZzPjKJUm+B+u9WX2x98Qx4n1PiMNTWo3D7KK5ifNV/yJyRzg==", + "dev": true, + "requires": { + "agent-base": "4.3.0", + "debug": "3.1.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": "2.1.2" } }, "inflight": { @@ -1141,14 +479,14 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "once": "1.4.0", + "wrappy": "1.0.2" } }, "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "invert-kv": { @@ -1156,92 +494,6 @@ "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" }, - "is": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/is/-/is-3.2.1.tgz", - "integrity": "sha1-0Kwq1V63sL7JJqUmb2xmKqqD3KU=", - "dev": true - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "dev": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-obj": { - "version": "1.0.1", - "resolved": "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "dev": true - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true - }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -1253,38 +505,11 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "is-valid-glob": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", - "integrity": "sha1-1LVcafUYhvm2XHDWwmItN+KfSP4=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", @@ -1292,19 +517,19 @@ "dev": true }, "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, "js-yaml": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", - "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "1.0.10", + "esprima": "4.0.1" } }, "jsbn": { @@ -1320,32 +545,17 @@ "dev": true }, "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "dev": true, - "requires": { - "jsonify": "~0.0.0" - } - }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -1355,22 +565,7 @@ "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "kind-of": { - "version": "1.1.0", - "resolved": "http://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", - "dev": true - }, - "lazystream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", - "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", - "dev": true, - "requires": { - "readable-stream": "^2.0.5" + "verror": "1.10.0" } }, "lcid": { @@ -1378,123 +573,40 @@ "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", "requires": { - "invert-kv": "^2.0.0" + "invert-kv": "2.0.0" } }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", - "dev": true - }, "map-age-cleaner": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", "requires": { - "p-defer": "^1.0.0" + "p-defer": "1.0.0" } }, - "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", - "dev": true - }, - "math-random": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", - "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", - "dev": true - }, "mem": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/mem/-/mem-4.0.0.tgz", "integrity": "sha512-WQxG/5xYc3tMbYLXoXPm81ET2WDULiU5FxbuIoNbJqLOOI8zehXFdZuiUEgfdrU2mVB1pxBZUGlYORSrpuJreA==", "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^1.0.0", - "p-is-promise": "^1.1.0" - } - }, - "merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - }, - "dependencies": { - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "map-age-cleaner": "0.1.3", + "mimic-fn": "1.2.0", + "p-is-promise": "1.1.0" } }, "mime-db": { - "version": "1.37.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", - "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==", + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", "dev": true }, "mime-types": { - "version": "2.1.21", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", - "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", "dev": true, "requires": { - "mime-db": "~1.37.0" + "mime-db": "1.40.0" } }, "mimic-fn": { @@ -1508,7 +620,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "1.1.11" } }, "minimist": { @@ -1527,33 +639,28 @@ } }, "mocha": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-4.1.0.tgz", - "integrity": "sha512-0RVnjg1HJsXY2YFDoTNzcc1NKhYuXKRrBAG2gDygmJJA136Cs2QlRliZG1mA0ap7cuaT30mw16luAeln+4RiNA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", + "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", "dev": true, "requires": { - "browser-stdout": "1.3.0", - "commander": "2.11.0", + "browser-stdout": "1.3.1", + "commander": "2.15.1", "debug": "3.1.0", - "diff": "3.3.1", + "diff": "3.5.0", "escape-string-regexp": "1.0.5", "glob": "7.1.2", - "growl": "1.10.3", + "growl": "1.10.5", "he": "1.1.1", + "minimatch": "3.0.4", "mkdirp": "0.5.1", - "supports-color": "4.4.0" + "supports-color": "5.4.0" }, "dependencies": { "commander": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", - "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", - "dev": true - }, - "diff": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz", - "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", "dev": true }, "glob": { @@ -1562,27 +669,21 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.4", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, - "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", - "dev": true - }, "supports-color": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", - "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "^2.0.0" + "has-flag": "3.0.0" } } } @@ -1593,47 +694,17 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, - "multimatch": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", - "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", - "dev": true, - "requires": { - "array-differ": "^1.0.0", - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "minimatch": "^3.0.0" - } - }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" }, - "node.extend": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz", - "integrity": "sha1-p7iCyC1sk6SGOlUEvV3o7IYli5Y=", - "dev": true, - "requires": { - "is": "^3.1.0" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, "npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "requires": { - "path-key": "^2.0.0" + "path-key": "2.0.1" } }, "oauth-sign": { @@ -1642,38 +713,12 @@ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", "dev": true }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "dev": true, - "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - } - }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "requires": { - "wrappy": "1" - } - }, - "ordered-read-streams": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", - "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", - "dev": true, - "requires": { - "is-stream": "^1.0.1", - "readable-stream": "^2.0.1" + "wrappy": "1.0.2" } }, "os-locale": { @@ -1681,9 +726,9 @@ "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" + "execa": "1.0.0", + "lcid": "2.0.0", + "mem": "4.0.0" } }, "p-defer": { @@ -1702,45 +747,19 @@ "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=" }, "papaparse": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-4.6.2.tgz", - "integrity": "sha512-P/4p6S6wZyXAjcFPnJAjFn7lxMIkd+23prFELhcbfWswQfg7dG1XJfV8/lKvk5lu5BGSSJZFHSDMejjFcB1feg==" + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-4.6.3.tgz", + "integrity": "sha512-LRq7BrHC2kHPBYSD50aKuw/B/dGcg29omyJbKWY3KsYUZU69RKwaBHu13jGmCYBtOc4odsLCrFyk6imfyNubJQ==" }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, + "path": { + "version": "0.12.7", + "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", + "integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=", "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } + "process": "0.11.10", + "util": "0.10.4" } }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -1758,56 +777,21 @@ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, - "pause-stream": { - "version": "0.0.11", - "resolved": "http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dev": true, - "requires": { - "through": "~2.3" - } - }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, - "plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", - "dev": true, - "requires": { - "ansi-cyan": "^0.1.1", - "ansi-red": "^0.1.1", - "arr-diff": "^1.0.1", - "arr-union": "^2.0.1", - "extend-shallow": "^1.1.2" - } - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" }, "psl": { - "version": "1.1.29", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", - "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.3.0.tgz", + "integrity": "sha512-avHdspHO+9rQTLbv1RO+MPYeP/SzsCoxofjVnHanETfQhTJrmB0HlDoW+EiN/R+C0BZ+gERab9NY0lPN2TxNag==", "dev": true }, "pump": { @@ -1815,14 +799,14 @@ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "end-of-stream": "1.4.1", + "once": "1.4.0" } }, "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true }, "qs": { @@ -1832,91 +816,9 @@ "dev": true }, "querystringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.0.tgz", - "integrity": "sha512-sluvZZ1YiTLD5jsqZcDmFyV2EwToyXZBfpoVOmktMmW+VEnhgakFHnasVph65fOjGPTWN0Nw3+XQaSeMayr0kg==", - "dev": true - }, - "queue": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/queue/-/queue-3.1.0.tgz", - "integrity": "sha1-bEnQHwCeIlZ4h4nyv/rGuLmZBYU=", - "dev": true, - "requires": { - "inherits": "~2.0.0" - } - }, - "randomatic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.0.tgz", - "integrity": "sha512-KnGPVE0lo2WoXxIZ7cPR8YBpiol4gsSuOwDSg410oHh80ZMp5EiypNqL2K4Z77vJn6lB5rap7IkAmcUlalcnBQ==", - "dev": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "dev": true, - "requires": { - "is-equal-shallow": "^0.1.3" - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.1.tgz", + "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==", "dev": true }, "request": { @@ -1925,26 +827,26 @@ "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", "dev": true, "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" + "aws-sign2": "0.7.0", + "aws4": "1.8.0", + "caseless": "0.12.0", + "combined-stream": "1.0.8", + "extend": "3.0.2", + "forever-agent": "0.6.1", + "form-data": "2.3.3", + "har-validator": "5.1.3", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.24", + "oauth-sign": "0.9.0", + "performance-now": "2.1.0", + "qs": "6.5.2", + "safe-buffer": "5.2.0", + "tough-cookie": "2.4.3", + "tunnel-agent": "0.6.0", + "uuid": "3.3.2" } }, "requires-port": { @@ -1954,34 +856,24 @@ "dev": true }, "resolve": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", - "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", - "dev": true, - "requires": { - "path-parse": "^1.0.5" - } - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", "dev": true, "requires": { - "glob": "^7.0.5" + "path-parse": "1.0.6" } }, "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", "dev": true }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "semver": { "version": "5.6.0", @@ -1993,7 +885,7 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "requires": { - "shebang-regex": "^1.0.0" + "shebang-regex": "1.0.0" } }, "shebang-regex": { @@ -2013,22 +905,13 @@ "dev": true }, "source-map-support": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", - "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "requires": { - "through": "2" + "buffer-from": "1.1.1", + "source-map": "0.6.1" } }, "sprintf-js": { @@ -2038,94 +921,20 @@ "dev": true }, "sshpk": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.1.tgz", - "integrity": "sha512-mSdgNUaidk+dRU5MhYtN9zebdzF2iG0cNPWy8HG+W8y+fT1JnSkh0fzzpjOa0L7P8i1Rscz38t0h4gPcKz43xA==", - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "stat-mode": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz", - "integrity": "sha1-5sgLYjEj19gM8TLOU480YokHJQI=", - "dev": true - }, - "stream-combiner": { - "version": "0.2.2", - "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", - "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", - "dev": true, - "requires": { - "duplexer": "~0.1.1", - "through": "~2.3.4" - } - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, - "streamfilter": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/streamfilter/-/streamfilter-1.0.7.tgz", - "integrity": "sha512-Gk6KZM+yNA1JpW0KzlZIhjo3EaBJDkYfXtYSbOwNIQ7Zd6006E6+sCFlW1NDvFG/vnXhKmw6TJJgiEQg/8lXfQ==", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "streamifier": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", - "integrity": "sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8=", - "dev": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-bom-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz", - "integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=", + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, "requires": { - "first-chunk-stream": "^1.0.0", - "strip-bom": "^2.0.0" + "asn1": "0.2.4", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.2", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.2", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "safer-buffer": "2.1.2", + "tweetnacl": "0.14.5" } }, "strip-eof": { @@ -2134,66 +943,12 @@ "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" }, "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "tar": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", - "dev": true, - "requires": { - "block-stream": "*", - "fstream": "^1.0.2", - "inherits": "2" - } - }, - "through": { - "version": "2.3.8", - "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", - "dev": true, - "requires": { - "readable-stream": "^2.1.5", - "xtend": "~4.0.1" - } - }, - "through2-filter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-2.0.0.tgz", - "integrity": "sha1-YLxVoNrLdghdsfna6Zq0P4PWIuw=", - "dev": true, - "requires": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - } - }, - "to-absolute-glob": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-0.1.1.tgz", - "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "extend-shallow": "^2.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } + "has-flag": "3.0.0" } }, "tough-cookie": { @@ -2202,34 +957,43 @@ "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", "dev": true, "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" + "psl": "1.3.0", + "punycode": "1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } } }, "tslib": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", - "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", "dev": true }, "tslint": { - "version": "5.11.0", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.11.0.tgz", - "integrity": "sha1-mPMMAurjzecAYgHkwzywi0hYHu0=", - "dev": true, - "requires": { - "babel-code-frame": "^6.22.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^3.2.0", - "glob": "^7.1.1", - "js-yaml": "^3.7.0", - "minimatch": "^3.0.4", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.8.0", - "tsutils": "^2.27.2" + "version": "5.18.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.18.0.tgz", + "integrity": "sha512-Q3kXkuDEijQ37nXZZLKErssQVnwCV/+23gFEMROi8IlbaBG6tXqLPQJ5Wjcyt/yHPKBC+hD5SzuGaMora+ZS6w==", + "dev": true, + "requires": { + "@babel/code-frame": "7.5.5", + "builtin-modules": "1.1.1", + "chalk": "2.4.2", + "commander": "2.20.0", + "diff": "3.5.0", + "glob": "7.1.4", + "js-yaml": "3.13.1", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "resolve": "1.12.0", + "semver": "5.6.0", + "tslib": "1.10.0", + "tsutils": "2.29.0" } }, "tsutils": { @@ -2238,7 +1002,7 @@ "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", "dev": true, "requires": { - "tslib": "^1.8.1" + "tslib": "1.10.0" } }, "tunnel-agent": { @@ -2247,7 +1011,7 @@ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "requires": { - "safe-buffer": "^5.0.1" + "safe-buffer": "5.2.0" } }, "tweetnacl": { @@ -2262,31 +1026,39 @@ "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==", "dev": true }, - "unique-stream": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.2.1.tgz", - "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dev": true, "requires": { - "json-stable-stringify": "^1.0.0", - "through2-filter": "^2.0.0" + "punycode": "2.1.1" } }, "url-parse": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.3.tgz", - "integrity": "sha512-rh+KuAW36YKo0vClhQzLLveoj8FwPJNu65xLb7Mrt+eZht0IPT0IXgSv8gcMegZ6NvjJUALf6Mf25POlMwD1Fw==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz", + "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==", "dev": true, "requires": { - "querystringify": "^2.0.0", - "requires-port": "^1.0.0" + "querystringify": "2.1.1", + "requires-port": "1.0.0" } }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true + "util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "requires": { + "inherits": "2.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + } + } }, "uuid": { "version": "3.3.2", @@ -2294,113 +1066,40 @@ "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", "dev": true }, - "vali-date": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", - "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=", - "dev": true - }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { - "assert-plus": "^1.0.0", + "assert-plus": "1.0.0", "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "extsprintf": "1.3.0" } }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - }, - "vinyl-fs": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", - "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", - "dev": true, - "requires": { - "duplexify": "^3.2.0", - "glob-stream": "^5.3.2", - "graceful-fs": "^4.0.0", - "gulp-sourcemaps": "1.6.0", - "is-valid-glob": "^0.3.0", - "lazystream": "^1.0.0", - "lodash.isequal": "^4.0.0", - "merge-stream": "^1.0.0", - "mkdirp": "^0.5.0", - "object-assign": "^4.0.0", - "readable-stream": "^2.0.4", - "strip-bom": "^2.0.0", - "strip-bom-stream": "^1.0.0", - "through2": "^2.0.0", - "through2-filter": "^2.0.0", - "vali-date": "^1.0.0", - "vinyl": "^1.0.0" - }, - "dependencies": { - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", - "dev": true - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - } - } - }, - "vinyl-source-stream": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.2.tgz", - "integrity": "sha1-YrU6E1YQqJbpjKlr7jqH8Aio54A=", + "vscode": { + "version": "1.1.36", + "resolved": "https://registry.npmjs.org/vscode/-/vscode-1.1.36.tgz", + "integrity": "sha512-cGFh9jmGLcTapCpPCKvn8aG/j9zVQ+0x5hzYJq5h5YyUXVGa1iamOaB2M2PZXoumQPES4qeAP1FwkI0b6tL4bQ==", "dev": true, "requires": { - "through2": "^2.0.3", - "vinyl": "^0.4.3" + "glob": "7.1.4", + "mocha": "5.2.0", + "request": "2.88.0", + "semver": "5.6.0", + "source-map-support": "0.5.13", + "url-parse": "1.4.7", + "vscode-test": "0.4.3" } }, - "vscode": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/vscode/-/vscode-1.1.21.tgz", - "integrity": "sha512-tJl9eL15ZMm6vzCYYeQ26sSYRuXGMGPsaeIAmG2rOOYRn01jdaDg6I4b9G5Ed6FISdmn6egpKThk4o4om8Ax/A==", + "vscode-test": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.3.tgz", + "integrity": "sha512-EkMGqBSefZH2MgW65nY05rdRSko15uvzq4VAPM5jVmwYuFQKE7eikKXNJDRxL+OITXHB6pI+a3XqqD32Y3KC5w==", "dev": true, "requires": { - "glob": "^7.1.2", - "gulp-chmod": "^2.0.0", - "gulp-filter": "^5.0.1", - "gulp-gunzip": "1.0.0", - "gulp-remote-src-vscode": "^0.5.0", - "gulp-symdest": "^1.1.0", - "gulp-untar": "^0.0.7", - "gulp-vinyl-zip": "^2.1.0", - "mocha": "^4.0.1", - "request": "^2.83.0", - "semver": "^5.4.1", - "source-map-support": "^0.5.0", - "url-parse": "^1.4.3", - "vinyl-source-stream": "^1.1.0" + "http-proxy-agent": "2.1.0", + "https-proxy-agent": "2.2.2" } }, "which": { @@ -2408,38 +1107,13 @@ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "requires": { - "isexe": "^2.0.0" + "isexe": "2.0.0" } }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", - "dev": true - }, - "yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", - "dev": true, - "requires": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "yazl": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.4.3.tgz", - "integrity": "sha1-7CblzIfVYBud+EMtvdPNLlFzoHE=", - "dev": true, - "requires": { - "buffer-crc32": "~0.2.3" - } } } } diff --git a/package.json b/package.json index a8f6be4..477a172 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,29 @@ { - "name": "agsbs", - "displayName": "agsbs", + "name": "agsbsextension", + "displayName": "AGSBS extension", "description": "This package is developed to make the transcription process more effective of our working group", - "version": "0.0.1", - "publisher": "absbs", - "engines": { - "vscode": "^1.28.0" - }, + "version": "0.1.0", + "publisher": "TUD-AGSBS", "categories": [ "Other" ], + "keywords": [ + "blind, visually impaired, accessible materials, transcript, markdown, html, epub, pandoc, table editor, csv import, csv export" + ], + "engines": { + "vscode": "^1.28.0" + }, + "author": { + "name": "Jens Voegler" + }, + "license": "", + "bugs": { + "url": "https://github.com/TUD-INF-IAI-MCI/agsbs_matuc_extension/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/TUD-INF-IAI-MCI/agsbs_matuc_extension" + }, "activationEvents": [ "onCommand:agsbs.open", "onLanguage:markdown", @@ -22,18 +36,6 @@ "command": "agsbs.open", "title": "AGSBS: Open AGSBS" }, - { - "command": "agsbs.focusSidebar", - "title": "AGSBS: Focus AGSBS Sidebar" - }, - { - "command": "agsbs.focusTaskbar", - "title": "AGSBS: Focus AGSBS Taskbar" - }, - { - "command": "agsbs.focusDocument", - "title": "AGSBS: Focus the open Document" - }, { "command": "agsbs.bold", "title": "AGSBS: Make Selection Bold" @@ -133,9 +135,7 @@ { "command": "agsbs.newPage", "title": "AGSBS: Inserts a 'new page' marker" - } - - , + }, { "command": "agsbs.newProject", "title": "AGSBS: Open a sidebar dialogue to add a new project" @@ -173,241 +173,238 @@ "title": "AGSBS: Commits and pushes all changes." } ], - "keybindings": [ - { - "command": "agsbs.focusDocument", - "key": "alt+shift+6", - "mac": "alt+shift+6", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.focusTaskbar", - "key": "alt+shift+8", - "mac": "alt+shift+8", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.focusSidebar", - "key": "alt+shift+9", - "mac": "alt+shift+9", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.bold", - "key": "alt+shift+b", - "mac": "alt+shift+b", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.italic", - "key": "alt+shift+i", - "mac": "alt+shift+i", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.strikethrough", - "key": "alt+shift+s", - "mac": "alt+shift+s", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h", - "key": "alt+shift+h", - "mac": "alt+shift+h", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h1", - "key": "alt+shift+1", - "mac": "alt+shift+1", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h2", - "key": "alt+shift+2", - "mac": "alt+shift+2", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h3", - "key": "alt+shift+3", - "mac": "alt+shift+3", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h4", - "key": "alt+shift+4", - "mac": "alt+shift+4", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h5", - "key": "alt+shift+5", - "mac": "alt+shift+5", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.h6", - "key": "alt+shift+6", - "mac": "alt+shift+6", - "when": "editorLangId == markdown" - }, - { - "command": "agsbs.numberedList", - "key": "alt+shift+o", - "mac": "alt+shift+o", - "when": "editorLangId == markdown" + "keybindings": [ + { + "command": "agsbs.bold", + "key": "alt+shift+b", + "mac": "alt+shift+b", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.italic", + "key": "alt+shift+i", + "mac": "alt+shift+i", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.strikethrough", + "key": "alt+shift+s", + "mac": "alt+shift+s", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h", + "key": "alt+shift+h", + "mac": "alt+shift+h", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h1", + "key": "alt+shift+1", + "mac": "alt+shift+1", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h2", + "key": "alt+shift+2", + "mac": "alt+shift+2", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h3", + "key": "alt+shift+3", + "mac": "alt+shift+3", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h4", + "key": "alt+shift+4", + "mac": "alt+shift+4", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h5", + "key": "alt+shift+5", + "mac": "alt+shift+5", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.h6", + "key": "alt+shift+6", + "mac": "alt+shift+6", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.numberedList", + "key": "alt+shift+o", + "mac": "alt+shift+o", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.list", + "key": "alt+shift+u", + "mac": "alt+shift+u", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.formula", + "key": "alt+shift+f", + "mac": "alt+shift+f", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.inlineFormula", + "key": "ctrl+shift+f", + "mac": "cmd+shift+f", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.code", + "key": "alt+shift+c", + "mac": "alt+shift+c", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.quote", + "key": "alt+shift+q", + "mac": "alt+shift+q", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.link", + "key": "alt+shift+l", + "mac": "alt+shift+l", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.hr", + "key": "alt+shift+r", + "mac": "alt+shift+r", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.newPage", + "key": "alt+shift+p", + "mac": "alt+shift+p", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.newProject", + "key": "f2", + "mac": "f2", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.newFile", + "key": "alt+shift+n", + "mac": "alt+shift+n", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.generateFile", + "key": "f6", + "mac": "f6", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.convertEntireProject", + "key": "f7", + "mac": "f7", + "when": "editorLangId == markdown" + }, + { + "command": "agsbs.checkProject", + "key": "f4", + "mac": "f4", + "when": "editorLangId == markdown" + } + ], + "configuration": { + "type": "object", + "title": "AGSBS", + "properties": { + "agsbs.csvDelimiter": { + "type": "string", + "default": ";", + "description": "Default: ;" }, - { - "command": "agsbs.list", - "key": "alt+shift+u", - "mac": "alt+shift+u", - "when": "editorLangId == markdown" + "agsbs.enableGitAutoCommit": { + "type": "boolean", + "default": false, + "description": "Enable Git Auto commit" }, - { - "command": "agsbs.formula", - "key": "alt+shift+f", - "mac": "alt+shift+f", - "when": "editorLangId == markdown" + "agsbs.enableGitUseage": { + "type": "boolean", + "default": true, + "description": "Enable Git Useage (You have to restart the AGSBS Toolbar for this change to take effect)" }, - { - "command": "agsbs.inlineFormula", - "key": "ctrl+shift+f", - "mac": "cmd+shift+f", - "when": "editorLangId == markdown" + "agsbs.usesHttpsOrSshForGit": { + "type": "string", + "default": "ssh", + "enum": [ + "ssh", + "https" + ], + "enumDescriptions": [ + "Uses ssh for git", + "Uses https for git" + ] }, - { - "command": "agsbs.code", - "key": "alt+shift+c", - "mac": "alt+shift+c", - "when": "editorLangId == markdown" + "agsbs.gitLocalPath": { + "type": "string", + "default": "", + "description": "Default is ...Documents/agsbs_git" }, - { - "command": "agsbs.quote", - "key": "alt+shift+q", - "mac": "alt+shift+q", - "when": "editorLangId == markdown" + "agsbs.gitServerPath": { + "type": "string", + "default": "", + "description": "Enter the Path to the repo" }, - { - "command": "agsbs.link", - "key": "alt+shift+l", - "mac": "alt+shift+l", - "when": "editorLangId == markdown" + "agsbs.gitUserName": { + "type": "string", + "default": "Enter your user name", + "description": "Required for working with existing git repositories" }, - { - "command": "agsbs.hr", - "key": "alt+shift+r", - "mac": "alt+shift+r", - "when": "editorLangId == markdown" + "agsbs.optionalTextboxContent": { + "type": "boolean", + "default": false, + "description": "If this is checked, the title and text of a textbox is not required and empty containers are inserted." }, - { - "command": "agsbs.newPage", - "key": "alt+shift+p", - "mac": "alt+shift+p", - "when": "editorLangId == markdown" - } - - , - { - "command": "agsbs.newProject", - "key": "f2", - "mac": "f2", - "when": "editorLangId == markdown" + "agsbs.pictureFolderName": { + "type": "string", + "default": "Bilder", + "description": "The name of the Folder in the project that will be searched for pictures." }, - { - "command": "agsbs.newFile", - "key": "alt+shift+n", - "mac": "alt+shift+n", - "when": "editorLangId == markdown" + "agsbs.tableFolderName": { + "type": "string", + "default": "Tabellen", + "description": "The name of the Folder in the project that will be searched for tables." }, - { - "command": "agsbs.generateFile", - "key": "f6", - "mac": "f6", - "when": "editorLangId == markdown" + "agsbs.generatedTableFolderName": { + "type": "string", + "default": "generatedTables", + "description": "The name of the Folder in the project that will save all the generated tables." }, - { - "command": "agsbs.convertEntireProject", - "key": "f7", - "mac": "f7", - "when": "editorLangId == markdown" + "agsbs.conversionProfile": { + "type": "string", + "default": "check manually every time", + "enum": [ + "check manually every time", + "blind", + "visually impaired" + ], + "description": "Only the named Version supports all functions of Matuc" }, - { - "command": "agsbs.checkProject", - "key": "f4", - "mac": "f4", - "when": "editorLangId == markdown" + "agsbs.requiredVersion": { + "type": "string", + "default": "0.0.1", + "enum": [ + "0.0.1" + ], + "description": "Only the named Version supports all functions of Matuc" } - ], - "configuration": { - "type": "object", - "title": "AGSBS", - "properties": { - "agsbs.csvDelimiter": { - "type": "string", - "default": ";", - "description": "Default: ;" - }, - "agsbs.enableGitAutoCommit": { - "type": "boolean", - "default": false, - "description": "Enable Git Auto commit" - }, - "agsbs.enableGitUseage": { - "type": "boolean", - "default": true, - "description": "Enable Git Useage (You have to restart the AGSBS Toolbar for this change to take effect)" - }, - "agsbs.gitLocalPath": { - "type": "string", - "default": "", - "description": "Default is ...Documents/agsbs_git" - }, - "agsbs.gitServerPath": { - "type": "string", - "default": "", - "description": "Enter the Path to the repo" - }, - "agsbs.optionalTextboxContent": { - "type": "boolean", - "default": false, - "description": "If this is checked, the title and text of a textbox is not required and empty containers are inserted." - }, - "agsbs.pictureFolderName": { - "type": "string", - "default": "Bilder", - "description": "The name of the Folder in the project that will be searched for pictures." - }, - "agsbs.tableFolderName": { - "type": "string", - "default": "Tabellen", - "description": "The name of the Folder in the project that will be searched for tables." - }, - "agsbs.generatedTableFolderName": { - "type": "string", - "default": "generatedTables", - "description": "The name of the Folder in the project that will save all the generated tables." - }, - "agsbs.conversionProfile": { - "type": "string", - "default": "check manually every time", - "enum": [ - "check manually every time", - "blind", - "visually impaired" - ], - "description": "Only the named Version supports all functions of Matuc" - }, - "agsbs.requiredVersion": { - "type": "string", - "default": "0.0.1", - "enum": [ - "0.0.1" - ], - "description": "Only the named Version supports all functions of Matuc" - } } - } + } }, "scripts": { "vscode:prepublish": "npm run compile", @@ -417,14 +414,17 @@ "test": "npm run compile && node ./node_modules/vscode/bin/test" }, "devDependencies": { + "@types/mocha": "^2.2.42", + "@types/node": "^8.10.51", + "tslint": "^5.18.0", "typescript": "^2.6.1", - "vscode": "^1.1.21", - "tslint": "^5.8.0", - "@types/node": "^8.10.25", - "@types/mocha": "^2.2.42" + "vscode": "^1.1.36" }, "dependencies": { + "chardet": "0.7.0", + "iconv-lite": "0.4.24", "os-locale": "^3.1.0", - "papaparse": "^4.6.2" + "papaparse": "^4.6.3", + "path": "^0.12.7" } } diff --git a/src/editorFunctions.ts b/src/editorFunctions.ts index 2346ae4..24375a4 100644 --- a/src/editorFunctions.ts +++ b/src/editorFunctions.ts @@ -87,7 +87,7 @@ export default class EditorFunctions { } /** - * Inserts a headline with a computed grade. + * Inserts a headline with a computed grade. * It tries to smartly match what the next headline could be. */ public headline = async () => { @@ -268,14 +268,16 @@ export default class EditorFunctions { vscode.window.showErrorMessage(this._language.get("footLabelErrorDetail")); return false; } - var pageEndLabel = currentLineLabel + ": " + text; + var pageEndLabel = "\n" + currentLineLabel + ": " + text + "\n"; var endPoint: any = await this._insertHelper.getPageEndLine(); + var currentTextEditor = await this._helper.getCurrentTextEditor(); + var selection = this._helper.getPrimarySelection(currentTextEditor); + var position = new vscode.Range(selection.active, selection.end); + await this._helper.insertStringAtStartOfSelection(currentLineLabel, undefined, position); if (endPoint === false) { - await this._helper.insertStringAtStartOfLine(currentLineLabel + "\n" + pageEndLabel + "\n"); + this._helper.insertStringAtStartOfLineOrLinebreak(pageEndLabel); } else { - await this._helper.insertStringAtStartOfLineOrLinebreak(currentLineLabel); endPoint = await this._insertHelper.getPageEndLine(); - var currentTextEditor = await this._helper.getCurrentTextEditor(); var newEndSelection = new vscode.Selection(endPoint, endPoint); await this._helper.insertStringAtStartOfLineOrLinebreak(pageEndLabel, currentTextEditor, newEndSelection); } @@ -427,7 +429,7 @@ export default class EditorFunctions { this._sidebarCallback.addToSidebar(form, this._language.get("importTableCsv"), this.insertCSVTableSidebarCallback, this._language.get("insert")); } - /** + /** * Callback for insert a table from a CSV-File */ public insertCSVTableSidebarCallback = async (params) => { diff --git a/src/extension.ts b/src/extension.ts index 1e533d5..85de00c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -13,14 +13,17 @@ import Taskbar from './taskbar'; * @param context Context of the extension, gets automatically handed over from VSCode at activation */ export function activate(context: vscode.ExtensionContext) { - console.log('AGSBS is now active!'); + console.log('AGSBS extension is now active!'); let extensionController = new ExtensionController(context); - - let disposable = vscode.commands.registerCommand('agsbs.open', () => { vscode.window.showInformationMessage('AGSBS is active.'); + extensionController.showSidebar(); }); + let git = vscode.commands.registerCommand('agsbs.clone', () => { + //this.extensionController.showSidebar(); + vscode.commands.executeCommand("agsbs.showGitView"); + }); context.subscriptions.push(extensionController); context.subscriptions.push(disposable); } @@ -72,7 +75,7 @@ class ExtensionController { this._taskbar = taskbar; this._sidebar = sidebar; - let subscriptions: vscode.Disposable[] = []; //Create Disposable for Event subscriptions + let subscriptions: vscode.Disposable[] = []; //Create Disposable for Event subscriptions vscode.window.onDidChangeActiveTextEditor(this._update, this, subscriptions); // create a combined disposable from both event subscriptions @@ -83,9 +86,17 @@ class ExtensionController { this._disposable.dispose(); } + /** + * Shows Side bar + */ + public async showSidebar() { + if (this._sidebar.isVisible() === false) { + this._sidebarPanel = await this._sidebar.show(); + } + } /** - * Gets triggered when the Layout of the Editor changes. + * Gets triggered when the Layout of the Editor changes. */ private async _update() { let editor = vscode.window.activeTextEditor; @@ -119,7 +130,6 @@ class ExtensionController { //Read the docs. //await this._sidebar.hide(this._sidebarPanel); - //await this._taskbar.hide(this._taskbarPanel); } } } diff --git a/src/gitCommands.ts b/src/gitCommands.ts index e10637e..e144156 100644 --- a/src/gitCommands.ts +++ b/src/gitCommands.ts @@ -29,6 +29,7 @@ export default class GitCommands { public async clone(user, repoName) { var gitLocalPath: any = await this._settings.get("gitLocalPath"); var gitServerPath: any = await this._settings.get("gitServerPath"); + var usesHttpsOrSshForGit = await this._settings.get("usesHttpsOrSshForGit"); if (gitServerPath.endsWith("/")) { gitServerPath = gitServerPath.substring(0, gitServerPath.length - 1); this._settings.update("gitServerPath", gitServerPath); //If Path in Settings ends with a / @@ -37,7 +38,7 @@ export default class GitCommands { vscode.window.showErrorMessage(this._language.get("missingGitServerPath")); return; } - var gitCmd = `git clone ssh://${user}@${gitServerPath}/${repoName}`; + var gitCmd = `git clone ${usesHttpsOrSshForGit}://${user}@${gitServerPath}/${repoName}`; console.log("gitCmd " + gitCmd); if (!await this._helper.folderExists(gitLocalPath)) { this._helper.mkDir(gitLocalPath); @@ -111,8 +112,10 @@ export default class GitCommands { exec('git push origin', { cwd: path }, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); + vscode.window.showErrorMessage(this._language.get("gitPushError")); return; } + vscode.window.showInformationMessage(this._language.get("gitPushSuccess")) console.log(`stdout: ${stdout}`); console.log(`stderr: ${stderr}`); }); diff --git a/src/helper/helper.ts b/src/helper/helper.ts index 66ada50..751170a 100644 --- a/src/helper/helper.ts +++ b/src/helper/helper.ts @@ -7,6 +7,8 @@ import * as path from 'path'; import * as fs from 'fs'; import Language from '../languages'; import * as Papa from 'papaparse'; +import * as chardet from 'chardet'; +import * as iconvLite from 'iconv-lite'; export default class Helper { private _language: Language; @@ -36,7 +38,12 @@ export default class Helper { if (editor === undefined) { var editor = await this.getCurrentTextEditor(); } - await vscode.window.showTextDocument(editor.document, editor.viewColumn, false); + if(editor != null){ + await vscode.window.showTextDocument(editor.document, editor.viewColumn, false); + } else { + //cause if repo is cloned and no editor is open + await vscode.window.showWarningMessage(this._language.get("noEditorIsOpenCannotLoadDocument")); + } resolve(true); }); } @@ -108,15 +115,33 @@ export default class Helper { newSelection = new vscode.Selection(selection.start, selection.end); } } else { //if there is a selection - newSelection = new vscode.Selection(selection.start, selection.end); + newSelection = new vscode.Selection(selection.start, selection.end); } return newSelection; } + /** + * Look for next blank line after current cursor position + * @param currentTextEditor the current text editor + * @returns {int} number of next blank line + */ + public async getNextBlankLineAfterPos(currentTextEditor?: vscode.TextEditor) { + if (currentTextEditor === undefined) { + currentTextEditor = await this.getCurrentTextEditor(); + } + var lineCount = currentTextEditor.document.lineCount; + var currentLine = currentTextEditor.selection.active.line; + for (var i = currentLine; i < lineCount; i++){ + if (currentTextEditor.document.lineAt(i).isEmptyOrWhitespace){ + return i; // next blank line + } + } + return lineCount + 1 ; // use end of file / editor + } /** * Inserts a given string at the start of a selection - * @param charactersToInsert string that will be inserted + * @param charactersToInsert string that will be inserted * @param currentTextEditor the current text editor * @param selection the current selection */ @@ -137,7 +162,7 @@ export default class Helper { } /** - * Insert a String if characters at the beginning of the line of the selection. + * Insert a String if characters at the beginning of the line of the selection. * @param charactersToInsert a string of characters to insert at the beginning * @param currentTextEditor optional. The text editor to work with * @param selection optional. the selection to work with @@ -153,6 +178,11 @@ export default class Helper { if (selection.start.character !== 0) { var newStartPositionAtLineStart = new vscode.Position(selection.start.line, 0); selection = new vscode.Selection(newStartPositionAtLineStart, newStartPositionAtLineStart); + } else { + // insert footnote after a string + var nextBlankLine = await this.getNextBlankLineAfterPos(); + var newCursorPos = new vscode.Position(nextBlankLine +1, 0); + selection = new vscode.Selection(newCursorPos, newCursorPos); } workSpaceEdit.insert( currentTextEditor.document.uri, @@ -161,6 +191,7 @@ export default class Helper { ); await vscode.workspace.applyEdit(workSpaceEdit); } + /** * Inserts a string at the start of a Line if the current Line is empty, or at a new line if it is not * @param charactersToInsert String of characters @@ -261,7 +292,7 @@ export default class Helper { /** * checks if the given selection has the given characters at the beginning and end - * @param currentTextEditor the given Text Editor + * @param currentTextEditor the given Text Editor * @param selection the Selection the check will be made on * @param startCharacters the start Characters that will be checked * @param endCharacters the end Characters that will be checked @@ -443,18 +474,23 @@ export default class Helper { public async getContentOfFile(fileName: string, encoding?: string) { return new Promise(async (resolve, reject) => { if (encoding === undefined) { - encoding = 'utf8'; + encoding = chardet.detectFileSync(fileName); } if (fileName === "") { vscode.window.showErrorMessage(this._language.get("readingFileError")); reject(); } - fs.readFile(fileName, encoding, function (err, data) { + fs.readFile(fileName, function (err, data) { if (err) { vscode.window.showErrorMessage(this._language.get("readingFileError")); reject(err); } - resolve(data); + // ToDo check under OS X + if(encoding){ + resolve(iconvLite.decode(data, encoding)); + }else{ + resolve(data); + } }); }); } @@ -724,4 +760,27 @@ export default class Helper { var uri = vscode.Uri.file(path); await vscode.workspace.updateWorkspaceFolders(vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders.length : 0, null, { uri: uri }); } + + public normalizePath(path2normalize: string){ + return path.normalize(path2normalize); + } + + public async ShowMkErrorMessage(mkResult: Object) { + Object.keys(mkResult).forEach(key => { + var location = key.split(path.sep).reverse()[0]; // file name or directory name + var errorMessage = ""; // text of the errorMessageq + var mkMessageContent = mkResult[key][0]; + if(typeof(mkMessageContent) === 'string'){ // mkResult can be a string: + errorMessage = `error in ${location} more details ${mkMessageContent}`; + } else { + // mk is an object and looks like the following example + // {line number: " Detailed description of error"} + Object.keys(mkMessageContent).forEach(key2 => { + errorMessage = `Fehler in ${location}: ${key2} : ${mkMessageContent[key2]}`; + }); + } + vscode.window.showErrorMessage(errorMessage); + }); + + } } diff --git a/src/helper/tableHelper.ts b/src/helper/tableHelper.ts index f347395..e2668af 100644 --- a/src/helper/tableHelper.ts +++ b/src/helper/tableHelper.ts @@ -488,8 +488,15 @@ export default class TableHelper { currentTextEditor = await this._helper.getCurrentTextEditor(); } return new Promise(async (resolve, reject) => { - var tableStartRegex = //; + var tableStartRegex = //; var startLineText = currentTextEditor.document.lineAt(selection.start.line).text; + var pathSep = [["\\", "\/"], ["\/", "\\"]]; // [[winSep, unixSep],[unixSep, winSep]] + for (let i = 0; i < pathSep.length; ++i) { + if (startLineText.includes(pathSep[i][0]) && path.sep === pathSep[i][1]) { + startLineText = startLineText.replace(pathSep[i][0], pathSep[i][1]); + break; + } + } var parts = startLineText.match(tableStartRegex); if (parts.length !== 4) { //If The number of matched string parts from the first line is too long or too short resolve(false); diff --git a/src/languages/de.ts b/src/languages/de.ts index ff8efab..adfeb31 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -112,7 +112,10 @@ export default class En { // //git this.d['gitUser'] = 'Nutzername (ZIH-Login)'; this.d['gitCloneSucess'] = "Repo wurde erfolgreich geklont!"; - this.d['gitCloneError'] = "Während des Klonen ist ein Fehler aufgetreten. Überprüfen Sie, ob sie ihren privaten Schlüssel geladen haben."; + this.d['gitCloneError'] = "Während des Klonen ist ein Fehler aufgetreten. Überprüfen Sie, ob sie ihren privaten Schlüssel geladen haben oder der Ordner bereits existiert. Mehr Informationen finden Sie auf der Konsole."; + this.d['gitPushError'] = "Während des Push auf den Server ist ein Fehler aufgetreten. Mehr Informationen finden Sie im Terminal"; + this.d['gitPushSuccess'] = "Der Git-Push auf den Server war erfolgreich"; + // //new-project this.d['noFolder'] = 'Kein Ordner ausgewählt'; this.d['preface'] = 'Vorwort einfügen'; @@ -208,7 +211,7 @@ export default class En { this.d['doYouWantToAutocorrect'] = 'Wenn die Seitennummerierung automatisch korrigiert werden soll, muss folgende Checkbox ausgewählt werden. Wenn nicht müssen die Seitennummern manuell korrigiert werden.'; this.d['autocorrectPagenumberingCheckbox'] = 'Seitennummerierung automatisch korrigieren'; this.d['checkLine'] = 'Zeiel überprüfen: '; - + // Reading Files and Folders this.d['readingFileError'] = 'Ein unerwarteter Fehler ist aufgetreten beim Lesen der Datei.'; this.d['importedFrom'] = 'importiert von'; @@ -216,13 +219,20 @@ export default class En { this.d['linuxNotSupportedYet'] = "Linux wird leider noch nicht unterstützt."; this.d['noFileSelected'] = "Keine Datei ausgewählt."; this.d['gitIsNotEnabled'] = "Git ist nicht aktiviert. Zu den Einstellungen -> Erweiterungen -> AGSBS und Git aktivieren um diese Funktion zu nutzen."; - this.d['sidebarWelcome'] = "Wilkommen bei AGSBS!"; + this.d['sidebarWelcome'] = "Wilkommen in der AGSBS Erweiterung für Visual studio Code!"; + this.d['textWhatToDo'] = "Sie können mit der Bearbeitung der Dateien beginnen.
" + + "Hierfür können Sie die Icons in der unteren Taskleiste verwenden"; + this.d['sendingError'] = "Wenn Sie einen Fehler finden, melden Sie Ihn bitte an per
Mail an "+ + "Fehler per E-Mail melden "; this.d['MatucIsInstalledWarning'] = "Matuc ist NICHT installiert! Manche Funktionen werden nicht verfügbar sein."; this.d['osDocumentsFolderName'] = "Dokumente";//The folder name of the documents folder in the userspace this.d['preview'] = "Vorschau"; - this.d['previewNotAvailableCheckWorspaceFolder'] ="Die Vorschau ist aktuell nicht verfügbar. Bitte überprüfen Sie, ob der Ordner, in dem sich die aktuelle Datei befindet, als Workspace-Ordner geöffnet ist (auf der linken Seite des Editors)."; + this.d['previewNotAvailableCheckWorspaceFolder'] = "Die Vorschau ist aktuell nicht verfügbar. Bitte überprüfen Sie, ob der Ordner, in dem sich die aktuelle Datei befindet, als Workspace-Ordner geöffnet ist (auf der linken Seite des Editors)."; + + //information message + this.d['noEditorIsOpenCannotLoadDocument'] = "Es konnte keine Datei geladen werden, öffne/oder legen Sie eine neue Datei an"; } public get = (varname) => { diff --git a/src/languages/en.ts b/src/languages/en.ts index cffdff3..2365dfa 100644 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -66,7 +66,6 @@ export default class En { this.d['selectType'] = "Select type:"; this.d['titleOfTextbox'] = "Title of the textbox/textframe"; this.d['contentOfTextbox'] = "Content of the textbox/textframe or annotation"; - // this.d['allColors'] = "colorRed, colorBlack, colorGreen, colorYellow, colorOrange, colorBlue, colorBrown, colorGrey, colorViolet"; this.d['annotationNoTitleError'] = "there is no title or color for an annotation. These attributes will be ignored."; // //footer-panel @@ -113,7 +112,10 @@ export default class En { // //git this.d['gitUser'] = 'Username (ZIH-Login)'; this.d['gitCloneSucess'] = "Repo was cloned successfully!"; - this.d['gitCloneError'] = "An error occurs during the cloning. Check whether you load your private key."; + this.d['gitCloneError'] = "An error occurs during the cloning. Check whether you load your private key or whether the git directory is existing. Find more information in the terminal"; + this.d['gitPushError'] = "During the push an error occurs. Find more information in the terminal"; + this.d['gitPushSuccess'] = "Git push was successful"; + // //new-project this.d['noFolder'] = 'No folder set'; this.d['preface'] = 'Add a preface to the document.'; @@ -209,7 +211,7 @@ export default class En { this.d['doYouWantToAutocorrect'] = 'If you want to automatically correct the Pagenumbering check the following box. Otherwise you have to do it manually.'; this.d['autocorrectPagenumberingCheckbox'] = 'Autocorrect Pagenumbering'; this.d['checkLine'] = 'Check line: '; - + // Reading Files and Folders this.d['readingFileError'] = 'An unexpected error occured reading the file.'; this.d['importedFrom'] = 'imported from'; @@ -217,13 +219,19 @@ export default class En { this.d['linuxNotSupportedYet'] = "Linux is not supported yet."; this.d['noFileSelected'] = "No File Selected."; this.d['gitIsNotEnabled'] = "Git is not enabled. Go to Settings -> Extensions -> AGSBS and enable Git to use this function."; - this.d['sidebarWelcome'] = "Welcome to AGSBS!"; + this.d['sidebarWelcome'] = "Welcome to AGSBS extension for Visual Studio Code!"; + this.d['sendingError'] = "If you find a bug or have another issue please send a mail."+ + "Send mail"; this.d['MatucIsInstalledWarning'] = "Matuc is NOT installed! Some features might not work."; this.d['osDocumentsFolderName'] = "Documents";//The folder name of the documents folder in the userspace this.d['preview'] = "Preview"; this.d['previewNotAvailableCheckWorspaceFolder'] ="The Preview is currently not available. Please check if the folder (the current file is in) is open as a workspace folder on the left."; + + //information message + this.d['noEditorIsOpenCannotLoadDocument'] = "Cannot open a file, open/create a file"; + //unused: // this.d['SelectedWrongFileErrorDetail'] = 'Please select a .md or .html file.'; @@ -326,6 +334,7 @@ export default class En { // this.d['textAutoCorrection'] = "Press Correct if the page number\n should be corrected automatically.\n Press Abort for a manually correction!"; + } public get = (varname) => { diff --git a/src/matucCommands.ts b/src/matucCommands.ts index 24797e0..f9f5129 100644 --- a/src/matucCommands.ts +++ b/src/matucCommands.ts @@ -115,8 +115,8 @@ export default class MatucCommands { selection = this._helper.getWordsSelection(currentTextEditor); } var line = selection.start.line; - var thisPath = currentTextEditor.document.uri.path; - var cmd = `matuc_js addpnum -f ${thisPath} ${line}`; + var thisPath = currentTextEditor.document.uri.fsPath; + var cmd = `matuc_js addpnum -f "${thisPath}" ${line}`; return new Promise(function (resolve, reject) { try { exec(cmd, (error, stdout, stderr) => { @@ -145,12 +145,12 @@ export default class MatucCommands { /** * Initializes a Metadata-File - * @param path path to the document where the Metadata applies + * @param docpath path to the document where the Metadata applies */ - public async initMetaData(path: string) { + public async initMetaData(docpath: string) { // see matuc-commands.js line 183 return new Promise(function (resolve, reject) { - exec('matuc conf init', { cwd: path }, (error, stdout, stderr) => { + exec('matuc conf init', { cwd: docpath }, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return reject(error); @@ -173,10 +173,10 @@ export default class MatucCommands { * @param semYear Semester this the project is written * @param tocDepth depth of the table of content * @param workingGroup Working Group of the Author - * @param path Path to the Folder + * @param folderPath Path to the Folder */ public async updateMetaData(alternatePrefix, outputFormat, editor: string, institution: string, - title: string, language: string, source: string, sourceAuthor: string, semYear, tocDepth: number, workingGroup: string, path: string) { + title: string, language: string, source: string, sourceAuthor: string, semYear, tocDepth: number, workingGroup: string, folderPath: string) { // multiple parameters are needed var cmd; cmd = 'matuc_js conf update '; @@ -192,7 +192,7 @@ export default class MatucCommands { cmd = workingGroup ? cmd + '-w "' + workingGroup + '" ' : cmd; console.log("cmd update " + cmd); return new Promise(function (resolve, reject) { - exec(cmd, { cwd: path }, (error, stdout, stderr) => { + exec(cmd, { cwd: folderPath }, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return reject(error); @@ -203,17 +203,17 @@ export default class MatucCommands { } /** - * Checks all markdown files in the project folder invoking mistkerl and saves the currend opened file, executes `matuc_js mk` + * Checks all markdown files in the project folder invoking mistkerl and saves the current opened file, executes `matuc_js mk` */ - public async checkEntireProject(path: string, currentTextEditor?: vscode.TextEditor) { + public async checkEntireProject(pathToFile: string, currentTextEditor?: vscode.TextEditor) { if (currentTextEditor === undefined) { currentTextEditor = await this._helper.getCurrentTextEditor(); } var filepath = currentTextEditor.document.uri.fsPath; var folderpath = await this._helper.getFolderFromFilePath(filepath); - var folderpathAbove = folderpath.substr(0, folderpath.lastIndexOf("/")); //Go one Folder above to the root oh the project - var path = folderpathAbove; - var cmd = `matuc_js mk \"${path}\"`; + var libPath = require('path'); + var folderpathAbove = folderpath.substr(0, folderpath.lastIndexOf(`${libPath.sep}`)); //Go one Folder above to the root oh the project + var cmd = `matuc_js mk \"${filepath}\"`; currentTextEditor.document.save(); exec(cmd, (error, stdout, stderr) => { if (error) { @@ -225,7 +225,7 @@ export default class MatucCommands { if (typeof mistkerl.result === 'string') { vscode.window.showInformationMessage(this._language.get("mistkerlDidNotFindAnyError")); } else { - vscode.window.showErrorMessage(mistkerl.result); + this._helper.ShowMkErrorMessage(mistkerl.result); } }); } @@ -254,9 +254,9 @@ export default class MatucCommands { /** * Loads and show config, .lecture_meta_data.dcxml, of project. - * @param path + * @param filePath */ - public async showConfig(path: string) { + public async showConfig(filePath: string) { var cmd; if (process.platform === 'win32') { cmd = `matuc_js conf show`; @@ -270,14 +270,21 @@ export default class MatucCommands { } return new Promise(function (resolve, reject) { console.log("Execute"); - exec(cmd, { cwd: path }, (error, stdout, stderr) => { + exec(cmd, { cwd: filePath }, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); vscode.window.showErrorMessage(this._language.get("unExpectedMatucError")); resolve(false); } var currentConfig = JSON.parse(stdout); - resolve(currentConfig.result['Current settings']); + // check why Aktuelle Einstellungen is default also for english data + if (currentConfig.result.hasOwnProperty("Aktuelle Einstellungen")){ + resolve(currentConfig.result['Aktuelle Einstellungen']); + } else if(currentConfig.result.hasOwnProperty("Current settings")) { + resolve(currentConfig.result['Current settings']); + } else { + reject(); + } }); }); } @@ -288,15 +295,15 @@ export default class MatucCommands { * @param {int} countOfChapters The count of chapters * @param {boolean} preface Whether a preface shall be added * @param {string} language Sets the language for the matuc project - * @param {string} path Sets the path where the project shall be stored + * @param {string} projectPath Sets the path where the project shall be stored */ - public async newProject(countOfAppendixChapters: number, countOfChapters: number, preface: boolean, language: string, path: string) { + public async newProject(countOfAppendixChapters: number, countOfChapters: number, preface: boolean, language: string, projectPath: string) { var cmd = 'matuc new '; cmd = countOfAppendixChapters ? cmd + '-a ' + countOfAppendixChapters + ' ' : cmd; cmd = countOfChapters !== null ? cmd + '-c ' + countOfChapters + ' ' : cmd; cmd = preface === true ? cmd + '-p ' : cmd; cmd = language !== null ? cmd + '-l ' + language + ' ' : cmd; - cmd = path !== null ? cmd + "\"" + path + "\"" : cmd + '.'; + cmd = projectPath !== null ? cmd + "\"" + projectPath + "\"" : cmd + '.'; console.log("command is " + cmd); return new Promise(function (resolve, reject) { exec(cmd, (error, stdout, stderr) => { @@ -324,7 +331,7 @@ export default class MatucCommands { } /** - * Converts a File + * Converts a File * @param profile the given profile, "visually" for the visually impaied or "blind" for the blind * @param currentTextEditor optional. The current Text editor to work with. */ @@ -332,14 +339,11 @@ export default class MatucCommands { if (currentTextEditor === undefined) { currentTextEditor = await this._helper.getCurrentTextEditor(); } - var path = currentTextEditor.document.uri.fsPath; + var filePath = currentTextEditor.document.uri.fsPath; if (await currentTextEditor.document.isDirty) { await currentTextEditor.document.save(); } - var cmd = `matuc_js conv "${path}"`; - if (profile === 'visually') { - cmd += ` -p vid`; - } + var cmd = `matuc_js conv "${filePath}"`; console.log("matuc conv command " + cmd); exec(cmd, { env: this.getOsLocale() }, (error, stdout, stderr) => { if (error) { @@ -353,22 +357,24 @@ export default class MatucCommands { } vscode.window.showErrorMessage(this._language.get("unExpectedMatucError") + message); console.error(`exec error: ${error}`); + console.log(`stderr: ${stderr}`); + console.log(`stdout: ${stdout}`); return; } console.log(`stdout: ${stdout}`); - console.log(`stderr: ${stderr}`); + //load generate HTML-file - this.loadGeneratedHtml(path); + this.loadGeneratedHtml(filePath); }); } // add quotes to path if necessary and loads generate Html afterthat - loadGeneratedHtml(path) { + loadGeneratedHtml(filePath) { let cmd = ''; if (process.platform === 'win32') { - cmd = `\"${path.replace("md", "html")}\"`; + cmd = `\"${filePath.replace("md", "html")}\"`; } else if (process.platform === 'darwin') { - cmd = `open ./\"${path.replace("md", "html")}\"`; + cmd = `open ./\"${filePath.replace("md", "html")}\"`; } exec(cmd, (error, stdout, stderr) => { if (error) { @@ -389,11 +395,11 @@ export default class MatucCommands { if (currentTextEditor === undefined) { currentTextEditor = await this._helper.getCurrentTextEditor(); } - var path = currentTextEditor.document.uri.fsPath; + var filePath = currentTextEditor.document.uri.fsPath; if (await currentTextEditor.document.isDirty) { await currentTextEditor.document.save(); } - var cmd = `matuc_js mk \"${path}\" `; + var cmd = `matuc_js mk \"${filePath}\" `; exec(cmd, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); @@ -420,20 +426,18 @@ export default class MatucCommands { currentTextEditor = await this._helper.getCurrentTextEditor(); } currentTextEditor.document.save(); - var path = currentTextEditor.document.uri.fsPath; + var filePath = currentTextEditor.document.uri.fsPath; + var projectPath = path.dirname(path.dirname(filePath)); var cmd; if (process.platform === 'win32') { - cmd = 'matuc_js master'; - cmd += ` \"${path}\\..\"`; + cmd = 'matuc_js conv'; + cmd += ` \"${projectPath}\"`; } else { // OS X and Linux - cmd = `matuc_js master ${path}/..`; - } - if (profile === 'visually') { - cmd += ` -p vid`; + cmd = `matuc_js conv ${projectPath}/..`; } console.log(cmd); - exec(cmd, { env: this.getOsLocale(), cwd: path }, (error, stdout, stderr) => { + exec(cmd, { env: this.getOsLocale()}, (error, stdout, stderr) => { if (error) { let fragment = JSON.parse(stdout); let message = ""; @@ -455,6 +459,7 @@ export default class MatucCommands { console.log(`stderr: ${stderr}`); }); //open file + this.loadGeneratedHtml(filePath); } /** diff --git a/src/projectToolsFunctions.ts b/src/projectToolsFunctions.ts index 5981aca..508e363 100644 --- a/src/projectToolsFunctions.ts +++ b/src/projectToolsFunctions.ts @@ -36,6 +36,9 @@ export default class ProjectToolsFunctions { this._snippets = new ProjectToolsFunctionSnippets; this._settings = new SettingsHelper; this._git = new GitCommands; + let disposable = vscode.commands.registerCommand("agsbs.showGitView", () => { + this.cloneRepo(); + }); } /** @@ -165,7 +168,7 @@ export default class ProjectToolsFunctions { vscode.window.showInformationMessage(this._language.get("updateSuccessfull")); } - /** + /** * Saves the changes made in the current file */ public saveChanges = async () => { @@ -293,7 +296,7 @@ export default class ProjectToolsFunctions { } /** - * Callback for generating the HTML for all projects, as a fallback when the setting is manually selected every time + * Callback for generating the HTML for all projects, as a fallback when the setting is manually selected every time */ public generateHTMLForAllProjectsSidebarCallback = async (params) => { var profile = params.conversionProfile.value; @@ -351,9 +354,10 @@ export default class ProjectToolsFunctions { vscode.window.showErrorMessage(this._language.get("gitIsNotEnabled")); return; } + var gitUserName = await this._settings.get("gitUserName"); var form = ` - +
@@ -393,7 +397,7 @@ export default class ProjectToolsFunctions { public commitChangesSidebarCallback = async (params) => { var commitMessage = params.commitChanges.value; var currentTexteditor = await this._helper.getCurrentTextEditor(); - var projectFolder = this._helper.getFolderFromFilePath(currentTexteditor.document.uri.fsPath); + var projectFolder = await this._helper.getFolderFromFilePath(currentTexteditor.document.uri.fsPath); await this._git.addAll(projectFolder); await this._git.commit(commitMessage, projectFolder); await this._git.push(projectFolder); diff --git a/src/sidebar.ts b/src/sidebar.ts index 995e874..bbdddff 100644 --- a/src/sidebar.ts +++ b/src/sidebar.ts @@ -209,8 +209,9 @@ export default class Sidebar { */ private _addWelcomeMessage = async () => { var matucIsInstalled = await this._matuc.matucIsInstalled(); - var welcomeText = this._language.get("sidebarWelcome"); + var welcomeText = this._language.get("sidebarWelcome"); var form = "

" + welcomeText + "

"; + form = this._addMultipleText(["textWhatToDo", "sendingError"], form); if (matucIsInstalled === false) { form += "

" + this._language.get("MatucIsInstalledWarning"); } @@ -218,4 +219,16 @@ export default class Sidebar { this._addToHTML("HEADLINE", form); } + /** + * Create multiple paragraph basing on a string list and returns new element + * @param textList the string list + * @param element where the paragraph should be appended + */ + private _addMultipleText(textList, element) { + textList.forEach(item => { + element += "

"+this._language.get(item) +"

"; + }); + return element; + } + }