mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-01 17:01:26 +00:00
Merge pull request #1337 from sharelatex/mm-f1000-realrevisionurl
Real revisionURL for F1000 exports GitOrigin-RevId: 6a9284c36680824fcc0be3b2f926deff27cb7cf8
This commit is contained in:
parent
985f0a97bc
commit
ccb9ae6317
1 changed files with 5 additions and 4 deletions
|
@ -49,14 +49,14 @@ pathList = [
|
|||
"/stylesheets/ol-ieee-style.css"
|
||||
].concat(Modules.moduleAssetFiles(jsPath))
|
||||
|
||||
if !Settings.useMinifiedJs
|
||||
if !Settings.useMinifiedJs
|
||||
logger.log "not using minified JS, not hashing static files"
|
||||
else
|
||||
logger.log "Generating file hashes..."
|
||||
for path in pathList
|
||||
content = getFileContent(path)
|
||||
hash = crypto.createHash("md5").update(content).digest("hex")
|
||||
|
||||
|
||||
splitPath = path.split("/")
|
||||
filenameSplit = splitPath.pop().split(".")
|
||||
filenameSplit.splice(filenameSplit.length-1, 0, hash)
|
||||
|
@ -145,7 +145,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
|
||||
if opts.removeExtension == true
|
||||
path = path.slice(0,-3)
|
||||
|
||||
|
||||
if qs? and qs.length > 0
|
||||
path = path + "?" + qs
|
||||
return path
|
||||
|
@ -343,7 +343,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
|
||||
webRouter.use (req, res, next) ->
|
||||
isOl = (Settings.brandPrefix == 'ol-')
|
||||
res.locals.uiConfig =
|
||||
res.locals.uiConfig =
|
||||
defaultResizerSizeOpen : if isOl then 7 else 24
|
||||
defaultResizerSizeClosed : if isOl then 7 else 24
|
||||
eastResizerCursor : if isOl then "ew-resize" else null
|
||||
|
@ -372,4 +372,5 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
res.locals.ExposedSettings =
|
||||
isOverleaf: Settings.overleaf?
|
||||
appName: Settings.appName
|
||||
siteUrl: Settings.siteUrl
|
||||
next()
|
||||
|
|
Loading…
Reference in a new issue