mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
include moment in package versions
This commit is contained in:
parent
8b6425317f
commit
837151a395
7 changed files with 16 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
|||
fs = require "fs"
|
||||
PackageVersions = require "./app/coffee/infrastructure/PackageVersions"
|
||||
pdfjs = PackageVersions.lib('pdfjs')
|
||||
|
||||
module.exports = (grunt) ->
|
||||
grunt.loadNpmTasks 'grunt-contrib-coffee'
|
||||
|
@ -159,12 +158,12 @@ module.exports = (grunt) ->
|
|||
inlineText: false
|
||||
preserveLicenseComments: false
|
||||
paths:
|
||||
"moment": "libs/moment-2.9.0"
|
||||
"moment": "libs/#{PackageVersions.lib('moment')}"
|
||||
"mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML"
|
||||
"libs/pdf": "libs/#{pdfjs}/pdf"
|
||||
"libs/pdf": "libs/#{PackageVersions.lib('pdfjs')}/pdf"
|
||||
shim:
|
||||
"libs/pdf":
|
||||
deps: ["libs/#{pdfjs}/compatibility"]
|
||||
deps: ["libs/#{PackageVersions.lib('pdfjs')}/compatibility"]
|
||||
|
||||
skipDirOptimize: true
|
||||
modules: [
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
version = {
|
||||
"pdfjs": "1.3.91p1"
|
||||
"moment": "2.9.0"
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -126,7 +126,12 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
window.requirejs = {
|
||||
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'main.js')}-#{fingerprint(jsPath + 'libs.js')}",
|
||||
"paths" : {
|
||||
"moment": "libs/moment-2.7.0"
|
||||
"moment": "libs/#{lib('moment')}"
|
||||
},
|
||||
"config":{
|
||||
"moment":{
|
||||
"noGlobal": true
|
||||
}
|
||||
}
|
||||
};
|
||||
script(
|
||||
|
|
|
@ -101,7 +101,7 @@ block content
|
|||
window.requirejs = {
|
||||
"paths" : {
|
||||
"mathjax": "#{buildJsPath('/libs/mathjax/MathJax.js', {cdn:false, fingerprint:false, qs:{config:'TeX-AMS_HTML'}})}",
|
||||
"moment": "libs/moment-2.7.0",
|
||||
"moment": "libs/#{lib('moment')}",
|
||||
"libs/pdf": "libs/#{lib('pdfjs')}/pdf",
|
||||
"ace": "#{lib('ace')}"
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
define [
|
||||
"base"
|
||||
"libs/moment-2.9.0"
|
||||
"moment"
|
||||
], (App, moment) ->
|
||||
moment.locale "en", calendar:
|
||||
lastDay : '[Yesterday]'
|
||||
|
@ -16,4 +16,4 @@ define [
|
|||
|
||||
App.filter "relativeDate", () ->
|
||||
(date) ->
|
||||
moment(date).calendar()
|
||||
moment(date).calendar()
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
define [
|
||||
"moment"
|
||||
"ide/track-changes/controllers/TrackChangesListController"
|
||||
"ide/track-changes/controllers/TrackChangesDiffController"
|
||||
"ide/track-changes/directives/infiniteScroll"
|
||||
], () ->
|
||||
], (moment) ->
|
||||
class TrackChangesManager
|
||||
constructor: (@ide, @$scope) ->
|
||||
@reset()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
define [
|
||||
"libs/moment-2.9.0"
|
||||
"moment"
|
||||
"libs/angular-autocomplete/angular-autocomplete"
|
||||
"libs/ui-bootstrap"
|
||||
"libs/ng-context-menu-0.1.4"
|
||||
|
|
Loading…
Reference in a new issue