mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Merge branch 'master' into as-v1-dash-link
This commit is contained in:
commit
0b0fd576eb
11 changed files with 11053 additions and 7288 deletions
|
@ -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"]
|
||||||
|
|
2
services/web/Jenkinsfile
vendored
2
services/web/Jenkinsfile
vendored
|
@ -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']]])
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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":{
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
7455
services/web/public/js/libs/fineuploader-5.15.4.js
Normal file
7455
services/web/public/js/libs/fineuploader-5.15.4.js
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue