summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-02 19:07:47 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-02 19:07:47 +0200
commit8bcc2b1bcc5a3dccef0e1da017e3ca2d0eb5e041 (patch)
tree599eb31a30ebb7eefd8e4a1719683611fbad43b7 /js
parent4490422601824d920de5f9d6e3df0897dec0b414 (diff)
update deps
Diffstat (limited to 'js')
-rw-r--r--js/bower.json14
-rw-r--r--js/build/app.js2
-rw-r--r--js/controller/ContentController.js3
-rw-r--r--js/vendor/momentjs/CHANGELOG.md374
-rw-r--r--js/vendor/momentjs/README.md39
-rw-r--r--js/vendor/momentjs/benchmarks/clone.js10
-rw-r--r--js/vendor/momentjs/locale/af.js65
-rw-r--r--js/vendor/momentjs/locale/ar-ma.js56
-rw-r--r--js/vendor/momentjs/locale/ar-sa.js96
-rw-r--r--js/vendor/momentjs/locale/ar.js97
-rw-r--r--js/vendor/momentjs/locale/az.js101
-rw-r--r--js/vendor/momentjs/locale/be.js150
-rw-r--r--js/vendor/momentjs/locale/bg.js86
-rw-r--r--js/vendor/momentjs/locale/bn.js106
-rw-r--r--js/vendor/momentjs/locale/bo.js103
-rw-r--r--js/vendor/momentjs/locale/br.js107
-rw-r--r--js/vendor/momentjs/locale/bs.js138
-rw-r--r--js/vendor/momentjs/locale/ca.js66
-rw-r--r--js/vendor/momentjs/locale/cs.js155
-rw-r--r--js/vendor/momentjs/locale/cv.js59
-rw-r--r--js/vendor/momentjs/locale/cy.js77
-rw-r--r--js/vendor/momentjs/locale/da.js56
-rw-r--r--js/vendor/momentjs/locale/de-at.js72
-rw-r--r--js/vendor/momentjs/locale/de.js71
-rw-r--r--js/vendor/momentjs/locale/el.js94
-rw-r--r--js/vendor/momentjs/locale/en-au.js62
-rw-r--r--js/vendor/momentjs/locale/en-ca.js59
-rw-r--r--js/vendor/momentjs/locale/en-gb.js63
-rw-r--r--js/vendor/momentjs/locale/eo.js65
-rw-r--r--js/vendor/momentjs/locale/es.js75
-rw-r--r--js/vendor/momentjs/locale/et.js76
-rw-r--r--js/vendor/momentjs/locale/eu.js60
-rw-r--r--js/vendor/momentjs/locale/fa.js97
-rw-r--r--js/vendor/momentjs/locale/fi.js105
-rw-r--r--js/vendor/momentjs/locale/fo.js56
-rw-r--r--js/vendor/momentjs/locale/fr-ca.js54
-rw-r--r--js/vendor/momentjs/locale/fr.js58
-rw-r--r--js/vendor/momentjs/locale/gl.js71
-rw-r--r--js/vendor/momentjs/locale/he.js77
-rw-r--r--js/vendor/momentjs/locale/hi.js105
-rw-r--r--js/vendor/momentjs/locale/hr.js139
-rw-r--r--js/vendor/momentjs/locale/hu.js105
-rw-r--r--js/vendor/momentjs/locale/hy-am.js112
-rw-r--r--js/vendor/momentjs/locale/id.js67
-rw-r--r--js/vendor/momentjs/locale/is.js124
-rw-r--r--js/vendor/momentjs/locale/it.js59
-rw-r--r--js/vendor/momentjs/locale/ja.js58
-rw-r--r--js/vendor/momentjs/locale/ka.js107
-rw-r--r--js/vendor/momentjs/locale/km.js55
-rw-r--r--js/vendor/momentjs/locale/ko.js63
-rw-r--r--js/vendor/momentjs/locale/lb.js137
-rw-r--r--js/vendor/momentjs/locale/lt.js118
-rw-r--r--js/vendor/momentjs/locale/lv.js77
-rw-r--r--js/vendor/momentjs/locale/mk.js86
-rw-r--r--js/vendor/momentjs/locale/ml.js64
-rw-r--r--js/vendor/momentjs/locale/mr.js104
-rw-r--r--js/vendor/momentjs/locale/ms-my.js66
-rw-r--r--js/vendor/momentjs/locale/my.js88
-rw-r--r--js/vendor/momentjs/locale/nb.js57
-rw-r--r--js/vendor/momentjs/locale/ne.js105
-rw-r--r--js/vendor/momentjs/locale/nl.js67
-rw-r--r--js/vendor/momentjs/locale/nn.js56
-rw-r--r--js/vendor/momentjs/locale/pl.js98
-rw-r--r--js/vendor/momentjs/locale/pt-br.js56
-rw-r--r--js/vendor/momentjs/locale/pt.js60
-rw-r--r--js/vendor/momentjs/locale/ro.js72
-rw-r--r--js/vendor/momentjs/locale/ru.js166
-rw-r--r--js/vendor/momentjs/locale/sk.js156
-rw-r--r--js/vendor/momentjs/locale/sl.js144
-rw-r--r--js/vendor/momentjs/locale/sq.js61
-rw-r--r--js/vendor/momentjs/locale/sr-cyrl.js105
-rw-r--r--js/vendor/momentjs/locale/sr.js105
-rw-r--r--js/vendor/momentjs/locale/sv.js63
-rw-r--r--js/vendor/momentjs/locale/ta.js112
-rw-r--r--js/vendor/momentjs/locale/th.js58
-rw-r--r--js/vendor/momentjs/locale/tl-ph.js58
-rw-r--r--js/vendor/momentjs/locale/tr.js92
-rw-r--r--js/vendor/momentjs/locale/tzm-latn.js55
-rw-r--r--js/vendor/momentjs/locale/tzm.js55
-rw-r--r--js/vendor/momentjs/locale/uk.js157
-rw-r--r--js/vendor/momentjs/locale/uz.js55
-rw-r--r--js/vendor/momentjs/locale/vi.js62
-rw-r--r--js/vendor/momentjs/locale/zh-cn.js108
-rw-r--r--js/vendor/momentjs/locale/zh-tw.js84
-rw-r--r--js/vendor/momentjs/min/locales.js6811
-rw-r--r--js/vendor/momentjs/min/locales.min.js4
-rw-r--r--js/vendor/momentjs/min/moment-with-locales.js9083
-rw-r--r--js/vendor/momentjs/min/moment-with-locales.min.js10
-rw-r--r--js/vendor/traceur-runtime/bower.json11
89 files changed, 23086 insertions, 9 deletions
diff --git a/js/bower.json b/js/bower.json
index f48e00076..75294baf9 100644
--- a/js/bower.json
+++ b/js/bower.json
@@ -24,13 +24,13 @@
"tests"
],
"dependencies": {
- "angular": "~1.2.16",
- "angular-route": "~1.2.16",
- "angular-mocks": "~1.2.16",
- "angular-sanitize": "~1.2.16",
- "jquery": "~2.1.1",
- "momentjs": "~2.6.0",
- "angular-animate": "~1.2.16",
+ "angular": "~1.3.*",
+ "angular-route": "~1.3.*",
+ "angular-mocks": "~1.3.*",
+ "angular-sanitize": "~1.3.*",
+ "angular-animate": "~1.3.*",
+ "jquery": "~2.*",
+ "momentjs": "~2.*",
"traceur-runtime": "~0.0.41"
}
}
diff --git a/js/build/app.js b/js/build/app.js
index b2cb2dafe..427447d8d 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -282,7 +282,7 @@ var $__build_47_app__ = function () {
throw undefined;
} catch (languageCode) {
languageCode = SettingsResource.get('language');
- date = moment.unix(timestamp).lang(languageCode).fromNow() + '';
+ date = moment.unix(timestamp).locale(languageCode).fromNow() + '';
return date;
}
}
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js
index a42ff04f6..a14e4d67c 100644
--- a/js/controller/ContentController.js
+++ b/js/controller/ContentController.js
@@ -108,7 +108,8 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data,
this.getRelativeDate = (timestamp) => {
if (timestamp !== undefined && timestamp !== '') {
let languageCode = SettingsResource.get('language');
- let date = moment.unix(timestamp).lang(languageCode).fromNow() + '';
+ let date =
+ moment.unix(timestamp).locale(languageCode).fromNow() + '';
return date;
} else {
return '';
diff --git a/js/vendor/momentjs/CHANGELOG.md b/js/vendor/momentjs/CHANGELOG.md
new file mode 100644
index 000000000..8aa611329
--- /dev/null
+++ b/js/vendor/momentjs/CHANGELOG.md
@@ -0,0 +1,374 @@
+Changelog
+=========
+
+### 2.8.2
+
+Minor bugfixes:
+
+* [#1874](https://github.com/moment/moment/issues/1874) use `Object.prototype.hasOwnProperty`
+ instead of `obj.hasOwnProperty` (ie8 bug)
+* [#1873](https://github.com/moment/moment/issues/1873) add `duration#toString()`
+* [#1859](https://github.com/moment/moment/issues/1859) better month/weekday names in norwegian
+* [#1812](https://github.com/moment/moment/issues/1812) meridiem parsing for greek
+* [#1804](https://github.com/moment/moment/issues/1804) spanish del -> de
+* [#1800](https://github.com/moment/moment/issues/1800) korean LT improvement
+
+### 2.8.1
+
+* bugfix [#1813](https://github.com/moment/moment/issues/1813): fix moment().lang([key]) incompatibility
+
+### 2.8.0 [See changelog](https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4)
+
+* incompatible changes
+ * [#1761](https://github.com/moment/moment/issues/1761): moments created without a language are no longer following the global language, in case it changes. Only newly created moments take the global language by default. In case you're affected by this, wait, comment on [#1797](https://github.com/moment/moment/issues/1797) and wait for a proper reimplementation
+ * [#1642](https://github.com/moment/moment/issues/1642): 45 days is no longer "a month" according to humanize, cutoffs for month, and year have changed. Hopefully your code does not depend on a particular answer from humanize (which it shouldn't anyway)
+ * [#1784](https://github.com/moment/moment/issues/1784): if you use the human readable English datetime format in a weird way (like storing them in a database) that would break when the format changes you're at risk.
+
+* deprecations (old behavior will be dropped in 3.0)
+ * [#1761](https://github.com/moment/moment/issues/1761) `lang` is renamed to `locale`, `langData` -> `localeData`. Also there is now `defineLocale` that should be used when creating new locales
+ * [#1763](https://github.com/moment/moment/issues/1763) `add(unit, value)` and `subtract(unit, value)` are now deprecated. Use `add(value, unit)` and `subtract(value, unit)` instead.
+ * [#1759](https://github.com/moment/moment/issues/1759) rename `duration.toIsoString` to `duration.toISOString`. The js standard library and moment's `toISOString` follow that convention.
+
+* new locales
+ * [#1789](https://github.com/moment/moment/issues/1789) Tibetan (bo)
+ * [#1786](https://github.com/moment/moment/issues/1786) Africaans (af)
+ * [#1778](https://github.com/moment/moment/issues/1778) Burmese (my)
+ * [#1727](https://github.com/moment/moment/issues/1727) Belarusian (be)
+
+* bugfixes, locale bugfixes, performance improvements, features
+
+### 2.7.0 [See changelog](https://gist.github.com/ichernev/b0a3d456d5a84c9901d7)
+
+* new languages
+
+ * [#1678](https://github.com/moment/moment/issues/1678) Bengali (bn)
+ * [#1628](https://github.com/moment/moment/issues/1628) Azerbaijani (az)
+ * [#1633](https://github.com/moment/moment/issues/1633) Arabic, Saudi Arabia (ar-sa)
+ * [#1648](https://github.com/moment/moment/issues/1648) Austrian German (de-at)
+
+* features
+
+ * [#1663](https://github.com/moment/moment/issues/1663) configurable relative time thresholds
+ * [#1554](https://github.com/moment/moment/issues/1554) support anchor time in moment.calendar
+ * [#1693](https://github.com/moment/moment/issues/1693) support moment.ISO_8601 as parsing format
+ * [#1637](https://github.com/moment/moment/issues/1637) add moment.min and moment.max and deprecate min/max instance methods
+ * [#1704](https://github.com/moment/moment/issues/1704) support string value in add/subtract
+ * [#1647](https://github.com/moment/moment/issues/1647) add spm support (package manager)
+
+* bugfixes
+
+### 2.6.0 [See changelog](https://gist.github.com/ichernev/10544682)
+
+* languages
+ * [#1529](https://github.com/moment/moment/issues/1529) Serbian-Cyrillic (sr-cyr)
+ * [#1544](https://github.com/moment/moment/issues/1544), [#1546](https://github.com/moment/moment/issues/1546) Khmer Cambodia (km)
+
+* features
+ * [#1419](https://github.com/moment/moment/issues/1419), [#1468](https://github.com/moment/moment/issues/1468), [#1467](https://github.com/moment/moment/issues/1467), [#1546](https://github.com/moment/moment/issues/1546) better handling of timezone-d moments around DST
+ * [#1462](https://github.com/moment/moment/issues/1462) add weeksInYear and isoWeeksInYear
+ * [#1475](https://github.com/moment/moment/issues/1475) support ordinal parsing
+ * [#1499](https://github.com/moment/moment/issues/1499) composer support
+ * [#1577](https://github.com/moment/moment/issues/1577), [#1604](https://github.com/moment/moment/issues/1604) put Date parsing in moment.createFromInputFallback so it can be properly deprecated and controlled in the future
+ * [#1545](https://github.com/moment/moment/issues/1545) extract two-digit year parsing in moment.parseTwoDigitYear, so it can be overwritten
+ * [#1590](https://github.com/moment/moment/issues/1590) (see [#1574](https://github.com/moment/moment/issues/1574)) set AMD global before module definition to better support non AMD module dependencies used in AMD environment
+ * [#1589](https://github.com/moment/moment/issues/1589) remove global in Node.JS environment (was not working before, nobody complained, was scheduled for removal anyway)
+ * [#1586](https://github.com/moment/moment/issues/1586) support quarter setting and parsing
+
+* 18 bugs fixed
+
+### 2.5.1
+
+* languages
+ * [#1392](https://github.com/moment/moment/issues/1392) Armenian (hy-am)
+
+* bugfixes
+ * [#1429](https://github.com/moment/moment/issues/1429) fixes [#1423](https://github.com/moment/moment/issues/1423) weird chrome-32 bug with js object creation
+ * [#1421](https://github.com/moment/moment/issues/1421) remove html entities from Welsh
+ * [#1418](https://github.com/moment/moment/issues/1418) fixes [#1401](https://github.com/moment/moment/issues/1401) improved non-padded tokens in strict matching
+ * [#1417](https://github.com/moment/moment/issues/1417) fixes [#1404](https://github.com/moment/moment/issues/1404) handle buggy moment object created by property cloning
+ * [#1398](https://github.com/moment/moment/issues/1398) fixes [#1397](https://github.com/moment/moment/issues/1397) fix Arabic-like week number parsing
+ * [#1396](https://github.com/moment/moment/issues/1396) add leftZeroFill(4) to GGGG and gggg formats
+ * [#1373](https://github.com/moment/moment/issues/1373) use lowercase for months and days in Catalan
+
+* testing
+ * [#1374](https://github.com/moment/moment/issues/1374) run tests on multiple browser/os combos via SauceLabs and Travis
+
+### 2.5.0 [See changelog](https://gist.github.com/ichernev/8104451)
+
+* New languages
+ * Luxemburish (lb) [1247](https://github.com/moment/moment/issues/1247)
+ * Serbian (rs) [1319](https://github.com/moment/moment/issues/1319)
+ * Tamil (ta) [1324](https://github.com/moment/moment/issues/1324)
+ * Macedonian (mk) [1337](https://github.com/moment/moment/issues/1337)
+
+* Features
+ * [1311](https://github.com/moment/moment/issues/1311) Add quarter getter and format token `Q`
+ * [1303](https://github.com/moment/moment/issues/1303) strict parsing now respects number of digits per token (fix [1196](https://github.com/moment/moment/issues/1196))
+ * 0d30bb7 add jspm support
+ * [1347](https://github.com/moment/moment/issues/1347) improve zone parsing
+ * [1362](https://github.com/moment/moment/issues/1362) support merideam parsing in Korean
+
+* 22 bugfixes
+
+### 2.4.0
+
+* **Deprecate** globally exported moment, will be removed in next major
+* New languages
+ * Farose (fo) [#1206](https://github.com/moment/moment/issues/1206)
+ * Tagalog/Filipino (tl-ph) [#1197](https://github.com/moment/moment/issues/1197)
+ * Welsh (cy) [#1215](https://github.com/moment/moment/issues/1215)
+* Bugfixes
+ * properly handle Z at the end of iso RegExp [#1187](https://github.com/moment/moment/issues/1187)
+ * chinese meridian time improvements [#1076](https://github.com/moment/moment/issues/1076)
+ * fix language tests [#1177](https://github.com/moment/moment/issues/1177)
+ * remove some failing tests (that should have never existed :))
+ [#1185](https://github.com/moment/moment/issues/1185)
+ [#1183](https://github.com/moment/moment/issues/1183)
+ * handle russian noun cases in weird cases [#1195](https://github.com/moment/moment/issues/1195)
+
+### 2.3.1
+
+Removed a trailing comma [1169] and fixed a bug with `months`, `weekdays` getters [#1171](https://github.com/moment/moment/issues/1171).
+
+### 2.3.0 [See changelog](https://gist.github.com/ichernev/6864354)
+
+Changed isValid, added strict parsing.
+Week tokens parsing.
+
+### 2.2.1
+
+Fixed bug in string prototype test.
+Updated authors and contributors.
+
+### 2.2.0 [See changelog](https://gist.github.com/ichernev/00f837a9baf46a3565e4)
+
+Added bower support.
+
+Language files now use UMD.
+
+Creating moment defaults to current date/month/year.
+
+Added a bundle of moment and all language files.
+
+### 2.1.0 [See changelog](https://gist.github.com/timrwood/b8c2d90d528eddb53ab5)
+
+Added better week support.
+
+Added ab