Merge branch 'master' into as-v1-dash-link

This commit is contained in:
James Allen 2017-12-04 10:02:42 +00:00
commit 0b0fd576eb
11 changed files with 11053 additions and 7288 deletions

View file

@ -196,6 +196,7 @@ module.exports = (grunt) ->
"mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML" "mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML"
"pdfjs-dist/build/pdf": "libs/#{PackageVersions.lib('pdfjs')}/pdf" "pdfjs-dist/build/pdf": "libs/#{PackageVersions.lib('pdfjs')}/pdf"
"ace": "#{PackageVersions.lib('ace')}" "ace": "#{PackageVersions.lib('ace')}"
"fineuploader": "libs/#{PackageVersions.lib('fineuploader')}"
shim: shim:
"pdfjs-dist/build/pdf": "pdfjs-dist/build/pdf":
deps: ["libs/#{PackageVersions.lib('pdfjs')}/compatibility"] deps: ["libs/#{PackageVersions.lib('pdfjs')}/compatibility"]

View file

@ -42,7 +42,7 @@ pipeline {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/tpr-webmodule'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/tpr-webmodule.git ']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/tpr-webmodule'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/tpr-webmodule.git ']]])
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/learn-wiki'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@bitbucket.org:sharelatex/learn-wiki-web-module.git']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/learn-wiki'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@bitbucket.org:sharelatex/learn-wiki-web-module.git']]])
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/templates'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/templates-webmodule.git']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/templates'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/templates-webmodule.git']]])
checkout([$class: 'GitSCM', branches: [[name: '*/sk-unlisted-projects']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/track-changes'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/track-changes-web-module.git']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/track-changes'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/track-changes-web-module.git']]])
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/overleaf-integration'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/overleaf-integration-web-module.git']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/overleaf-integration'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/overleaf-integration-web-module.git']]])
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/overleaf-account-merge'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/overleaf-account-merge.git']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'modules/overleaf-account-merge'], [$class: 'CloneOption', shallow: true]], userRemoteConfigs: [[credentialsId: 'GIT_DEPLOY_KEY', url: 'git@github.com:sharelatex/overleaf-account-merge.git']]])
} }

View file

@ -30,11 +30,11 @@ clean:
rm -rf $$dir/test/unit/js; \ rm -rf $$dir/test/unit/js; \
rm -rf $$dir/test/acceptance/js; \ rm -rf $$dir/test/acceptance/js; \
done done
# Deletes node_modules volume
docker-compose down --volumes
# Regenerate docker-shared.yml - not stictly a 'clean', # Regenerate docker-shared.yml - not stictly a 'clean',
# but lets `make clean install` work nicely # but lets `make clean install` work nicely
bin/generate_volumes_file bin/generate_volumes_file
# Deletes node_modules volume
docker-compose down --volumes
# Need regenerating if you change the web modules you have installed # Need regenerating if you change the web modules you have installed
docker-shared.yml: docker-shared.yml:

View file

@ -24,6 +24,7 @@ jsPath =
ace = PackageVersions.lib('ace') ace = PackageVersions.lib('ace')
pdfjs = PackageVersions.lib('pdfjs') pdfjs = PackageVersions.lib('pdfjs')
fineuploader = PackageVersions.lib('fineuploader')
getFileContent = (filePath)-> getFileContent = (filePath)->
filePath = Path.join __dirname, "../../../", "public#{filePath}" filePath = Path.join __dirname, "../../../", "public#{filePath}"
@ -37,6 +38,7 @@ getFileContent = (filePath)->
logger.log "Generating file fingerprints..." logger.log "Generating file fingerprints..."
pathList = [ pathList = [
["#{jsPath}libs/#{fineuploader}.js"]
["#{jsPath}libs/require.js"] ["#{jsPath}libs/require.js"]
["#{jsPath}ide.js"] ["#{jsPath}ide.js"]
["#{jsPath}main.js"] ["#{jsPath}main.js"]

View file

@ -2,6 +2,7 @@ version = {
"pdfjs": "1.7.225" "pdfjs": "1.7.225"
"moment": "2.9.0" "moment": "2.9.0"
"ace": "1.2.5" "ace": "1.2.5"
"fineuploader": "5.15.4"
} }
module.exports = { module.exports = {

View file

@ -132,7 +132,8 @@ html(itemscope, itemtype='http://schema.org/Product')
// minimal requirejs configuration (can be extended/overridden) // minimal requirejs configuration (can be extended/overridden)
window.requirejs = { window.requirejs = {
"paths" : { "paths" : {
"moment": "libs/#{lib('moment')}" "moment": "libs/#{lib('moment')}",
"fineuploader": "libs/#{lib('fineuploader')}"
}, },
"urlArgs": "fingerprint=#{fingerprint(jsPath + 'main.js')}-#{fingerprint(jsPath + 'libs.js')}", "urlArgs": "fingerprint=#{fingerprint(jsPath + 'main.js')}-#{fingerprint(jsPath + 'libs.js')}",
"config":{ "config":{

View file

@ -130,7 +130,8 @@ block requirejs
"moment": "libs/#{lib('moment')}", "moment": "libs/#{lib('moment')}",
"pdfjs-dist/build/pdf": "libs/#{lib('pdfjs')}/pdf", "pdfjs-dist/build/pdf": "libs/#{lib('pdfjs')}/pdf",
"pdfjs-dist/build/pdf.worker": "#{pdfWorkerPath}", "pdfjs-dist/build/pdf.worker": "#{pdfWorkerPath}",
"ace": "#{lib('ace')}" "ace": "#{lib('ace')}",
"fineuploader": "libs/#{lib('fineuploader')}"
}, },
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}-#{fingerprint(jsPath + 'libs.js')}", "urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}-#{fingerprint(jsPath + 'libs.js')}",
"waitSeconds": 0, "waitSeconds": 0,

View file

@ -1,6 +1,6 @@
define [ define [
"base" "base"
"libs/fineuploader" "fineuploader"
], (App, qq) -> ], (App, qq) ->
App.directive 'fineUpload', ($timeout) -> App.directive 'fineUpload', ($timeout) ->
return { return {

View file

@ -1,12 +1,10 @@
define [ define [
"moment"
"libs/angular-autocomplete/angular-autocomplete" "libs/angular-autocomplete/angular-autocomplete"
"libs/ui-bootstrap" "libs/ui-bootstrap"
"libs/ng-context-menu-0.1.4" "libs/ng-context-menu-0.1.4"
"libs/underscore-1.3.3" "libs/underscore-1.3.3"
"libs/algolia-2.5.2" "libs/algolia-2.5.2"
"libs/jquery.storage" "libs/jquery.storage"
"libs/fineuploader"
"libs/angular-sanitize-1.2.17" "libs/angular-sanitize-1.2.17"
"libs/angular-cookie" "libs/angular-cookie"
"libs/passfield" "libs/passfield"

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff