mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
write hashes for all files we fingerprint
This commit is contained in:
10
services/web/.gitignore
vendored
10
services/web/.gitignore
vendored
@@ -69,12 +69,16 @@ Gemfile.lock
|
||||
|
||||
public/js/libs/fineuploader-5.15.4.*.js
|
||||
public/js/libs/fineuploader-*.js
|
||||
public/js/libs/pdfjs-1.7.225/compatibility.*.js
|
||||
public/js/libs/pdfjs-1.7.225/pdf.*.js
|
||||
public/js/libs/pdfjs-1.7.225/pdf.worker.*.js
|
||||
public/js/libs/pdfjs-*/compatibility.*.js
|
||||
public/js/libs/pdfjs-*/pdf.*.js
|
||||
public/js/libs/pdfjs-*/pdf.worker.*.js
|
||||
public/js/libs/require.*.js
|
||||
public/stylesheets/ol-style.*.css
|
||||
public/stylesheets/style.*.css
|
||||
public/js/ace-*/ace.*.js
|
||||
public/js/ace-*/mode-latex.*.js
|
||||
public/js/ace-*/snippets/latex.*.js
|
||||
public/js/ace-*/worker-latex.*.js
|
||||
|
||||
*.swp
|
||||
.DS_Store
|
||||
|
||||
@@ -60,8 +60,7 @@ for paths in pathList
|
||||
logger.log "#{filePath}: #{hash}"
|
||||
fingerprints[filePath] = hash
|
||||
|
||||
if paths.length == 1
|
||||
path = paths[0]
|
||||
for path in paths
|
||||
splitPath = path.split("/")
|
||||
filenameSplit = splitPath.pop().split(".")
|
||||
filenameSplit.splice(filenameSplit.length-1, 0, hash)
|
||||
|
||||
Reference in New Issue
Block a user