From cb28fe08914d53a052e4bccc48e9f500c9da0bc9 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 8 Mar 2016 16:18:02 +0000 Subject: [PATCH] use the renamed bib-parser. --- .../ide/pdf/controllers/PdfController.coffee | 6 +++--- .../{biber-log-parser.js => bib-log-parser.js} | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) rename services/web/public/js/libs/{biber-log-parser.js => bib-log-parser.js} (83%) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 04e69d2970..8586d218a7 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -1,8 +1,8 @@ define [ "base" "libs/latex-log-parser" - "libs/biber-log-parser" -], (App, LogParser, BiberLogParser) -> + "libs/bib-log-parser" +], (App, LogParser, BibLogParser) -> App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) -> autoCompile = true $scope.$on "project:joined", () -> @@ -107,7 +107,7 @@ define [ $http.get "/project/#{$scope.project_id}/output/output.blg" + qs .success (log) -> window._s = $scope - biberLogEntries = BiberLogParser.parse(log, {}) + biberLogEntries = BibLogParser.parse(log, {}) if $scope.pdf.logEntries entries = $scope.pdf.logEntries all = biberLogEntries.errors.concat(biberLogEntries.warnings) diff --git a/services/web/public/js/libs/biber-log-parser.js b/services/web/public/js/libs/bib-log-parser.js similarity index 83% rename from services/web/public/js/libs/biber-log-parser.js rename to services/web/public/js/libs/bib-log-parser.js index d9b85189a3..6e93111b27 100644 --- a/services/web/public/js/libs/biber-log-parser.js +++ b/services/web/public/js/libs/bib-log-parser.js @@ -1,15 +1,15 @@ // Generated by CoffeeScript 1.10.0 define(function() { - var BiberLogParser, LINE_SPLITTER_REGEX, MESSAGE_LEVELS; + var BibLogParser, LINE_SPLITTER_REGEX, MESSAGE_LEVELS; LINE_SPLITTER_REGEX = /^\[(\d+)].*>\s(INFO|WARN|ERROR)\s-\s(.*)$/; MESSAGE_LEVELS = { "INFO": "info", "WARN": "warning", "ERROR": "error" }; - BiberLogParser = function(text, options) { + BibLogParser = function(text, options) { if (typeof text !== 'string') { - throw new Error("BiberLogParser Error: text parameter must be a string"); + throw new Error("BibLogParser Error: text parameter must be a string"); } this.text = text.replace(/(\r\n)|\r/g, '\n'); this.options = options || {}; @@ -55,9 +55,9 @@ define(function() { }); return result; }; - }).call(BiberLogParser.prototype); - BiberLogParser.parse = function(text, options) { - return new BiberLogParser(text, options).parse(); + }).call(BibLogParser.prototype); + BibLogParser.parse = function(text, options) { + return new BibLogParser(text, options).parse(); }; - return BiberLogParser; + return BibLogParser; });