Просмотр исходного кода

switch to patched version of pdfjs

Brian Gough 10 лет назад
Родитель
Сommit
64dc1784d3

+ 2 - 2
services/web/Gruntfile.coffee

@@ -159,10 +159,10 @@ module.exports = (grunt) ->
 					paths:
 						"moment": "libs/moment-2.9.0"
 						"mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML"
-						"libs/pdf": "libs/pdfjs-1.3.91/pdf"
+						"libs/pdf": "libs/pdfjs-1.3.91p1/pdf"
 					shim:
 						"libs/pdf":
-							deps: ["libs/pdfjs-1.3.91/compatibility"]
+							deps: ["libs/pdfjs-1.3.91p1/compatibility"]
 
 					skipDirOptimize: true
 					modules: [

+ 3 - 3
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -27,9 +27,9 @@ for path in [
 	"#{jsPath}main.js",
 	"#{jsPath}libs.js",
 	"#{jsPath}ace/ace.js",
-	"#{jsPath}libs/pdfjs-1.3.91/pdf.js",
-	"#{jsPath}libs/pdfjs-1.3.91/pdf.worker.js",
-	"#{jsPath}libs/pdfjs-1.3.91/compatibility.js",
+	"#{jsPath}libs/pdfjs-1.3.91p1/pdf.js",
+	"#{jsPath}libs/pdfjs-1.3.91p1/pdf.worker.js",
+	"#{jsPath}libs/pdfjs-1.3.91p1/compatibility.js",
 	"/stylesheets/style.css"
 ]
 	filePath = Path.join __dirname, "../../../", "public#{path}"

+ 3 - 3
services/web/app/views/project/editor.jade

@@ -102,13 +102,13 @@ block content
 			"paths" : {
 				"mathjax": "#{buildJsPath('/libs/mathjax/MathJax.js', {cdn:false, fingerprint:false, qs:{config:'TeX-AMS_HTML'}})}",
 				"moment": "libs/moment-2.7.0",
-				"libs/pdf": "libs/pdfjs-1.3.91/pdf"
+				"libs/pdf": "libs/pdfjs-1.3.91p1/pdf",
 			},
 			"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}-#{fingerprint(jsPath + 'libs.js')}",
 			"waitSeconds": 0,
 			"shim": {
 				"libs/pdf": {
-					deps: ["libs/pdfjs-1.3.91/compatibility"]
+					deps: ["libs/pdfjs-1.3.91p1/compatibility"]
 				},
 				"ace/ext-searchbox": {
 					deps: ["ace/ace"]
@@ -127,7 +127,7 @@ block content
 
 	- locals.suppressDefaultJs = true
 
-	- var pdfPath = 'libs/pdfjs-1.3.91/pdf.worker.js'
+	- var pdfPath = 'libs/pdfjs-1.3.91p1/pdf.worker.js'
 	- var fingerprintedPath = fingerprint(jsPath+pdfPath)
 	- var pdfJsWorkerPath = buildJsPath(pdfPath, {cdn:false,qs:{fingerprint:fingerprintedPath}}) // don't use worker for cdn