Shane Kilkelly 10 лет назад
Родитель
Сommit
cb28fe0891

+ 3 - 3
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)

+ 7 - 7
services/web/public/js/libs/biber-log-parser.js → 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;
 });