logster 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/Guardfile +8 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +38 -0
  7. data/Rakefile +18 -0
  8. data/assets/javascript/app.js +377 -0
  9. data/assets/javascript/external/ember.js +44267 -0
  10. data/assets/javascript/external/ember.min.js +19 -0
  11. data/assets/javascript/external/handlebars.min.js +28 -0
  12. data/assets/javascript/external/jquery.min.js +5 -0
  13. data/assets/javascript/external/lodash.min.js +56 -0
  14. data/assets/javascript/external/moment.min.js +6 -0
  15. data/assets/javascript/templates/application.handlebars +1 -0
  16. data/assets/javascript/templates/index.handlebars +48 -0
  17. data/assets/javascript/templates/message.handlebars +7 -0
  18. data/assets/stylesheets/app.css +188 -0
  19. data/bower_components/ember/.bower.json +22 -0
  20. data/bower_components/ember/.gitignore +5 -0
  21. data/bower_components/ember/Makefile +9 -0
  22. data/bower_components/ember/README.md +12 -0
  23. data/bower_components/ember/bower.json +11 -0
  24. data/bower_components/ember/component.json +13 -0
  25. data/bower_components/ember/composer.json +27 -0
  26. data/bower_components/ember/ember-template-compiler.js +320 -0
  27. data/bower_components/ember/ember.js +44267 -0
  28. data/bower_components/ember/ember.min.js +19 -0
  29. data/bower_components/ember/ember.prod.js +42649 -0
  30. data/bower_components/ember/package.json +11 -0
  31. data/bower_components/handlebars/.bower.json +16 -0
  32. data/bower_components/handlebars/.gitignore +2 -0
  33. data/bower_components/handlebars/README.md +11 -0
  34. data/bower_components/handlebars/bower.json +6 -0
  35. data/bower_components/handlebars/component.json +9 -0
  36. data/bower_components/handlebars/composer.json +35 -0
  37. data/bower_components/handlebars/handlebars-source.gemspec +21 -0
  38. data/bower_components/handlebars/handlebars.amd.js +2719 -0
  39. data/bower_components/handlebars/handlebars.amd.min.js +28 -0
  40. data/bower_components/handlebars/handlebars.js +2746 -0
  41. data/bower_components/handlebars/handlebars.js.nuspec +17 -0
  42. data/bower_components/handlebars/handlebars.min.js +28 -0
  43. data/bower_components/handlebars/handlebars.runtime.amd.js +515 -0
  44. data/bower_components/handlebars/handlebars.runtime.amd.min.js +27 -0
  45. data/bower_components/handlebars/handlebars.runtime.js +530 -0
  46. data/bower_components/handlebars/handlebars.runtime.min.js +27 -0
  47. data/bower_components/handlebars/lib/handlebars/source.rb +11 -0
  48. data/bower_components/jquery/.bower.json +37 -0
  49. data/bower_components/jquery/MIT-LICENSE.txt +21 -0
  50. data/bower_components/jquery/bower.json +27 -0
  51. data/bower_components/jquery/dist/jquery.js +9111 -0
  52. data/bower_components/jquery/dist/jquery.min.js +5 -0
  53. data/bower_components/jquery/dist/jquery.min.map +1 -0
  54. data/bower_components/jquery/src/ajax.js +806 -0
  55. data/bower_components/jquery/src/ajax/jsonp.js +89 -0
  56. data/bower_components/jquery/src/ajax/load.js +75 -0
  57. data/bower_components/jquery/src/ajax/parseJSON.js +13 -0
  58. data/bower_components/jquery/src/ajax/parseXML.js +28 -0
  59. data/bower_components/jquery/src/ajax/script.js +64 -0
  60. data/bower_components/jquery/src/ajax/var/nonce.js +5 -0
  61. data/bower_components/jquery/src/ajax/var/rquery.js +3 -0
  62. data/bower_components/jquery/src/ajax/xhr.js +130 -0
  63. data/bower_components/jquery/src/attributes.js +11 -0
  64. data/bower_components/jquery/src/attributes/attr.js +143 -0
  65. data/bower_components/jquery/src/attributes/classes.js +158 -0
  66. data/bower_components/jquery/src/attributes/prop.js +96 -0
  67. data/bower_components/jquery/src/attributes/support.js +35 -0
  68. data/bower_components/jquery/src/attributes/val.js +153 -0
  69. data/bower_components/jquery/src/callbacks.js +205 -0
  70. data/bower_components/jquery/src/core.js +500 -0
  71. data/bower_components/jquery/src/core/access.js +60 -0
  72. data/bower_components/jquery/src/core/init.js +123 -0
  73. data/bower_components/jquery/src/core/parseHTML.js +39 -0
  74. data/bower_components/jquery/src/core/ready.js +96 -0
  75. data/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
  76. data/bower_components/jquery/src/css.js +455 -0
  77. data/bower_components/jquery/src/css/addGetHookIf.js +24 -0
  78. data/bower_components/jquery/src/css/curCSS.js +57 -0
  79. data/bower_components/jquery/src/css/defaultDisplay.js +69 -0
  80. data/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  81. data/bower_components/jquery/src/css/support.js +83 -0
  82. data/bower_components/jquery/src/css/swap.js +28 -0
  83. data/bower_components/jquery/src/css/var/cssExpand.js +3 -0
  84. data/bower_components/jquery/src/css/var/getStyles.js +5 -0
  85. data/bower_components/jquery/src/css/var/isHidden.js +13 -0
  86. data/bower_components/jquery/src/css/var/rmargin.js +3 -0
  87. data/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
  88. data/bower_components/jquery/src/data.js +175 -0
  89. data/bower_components/jquery/src/data/Data.js +181 -0
  90. data/bower_components/jquery/src/data/accepts.js +20 -0
  91. data/bower_components/jquery/src/data/var/data_priv.js +5 -0
  92. data/bower_components/jquery/src/data/var/data_user.js +5 -0
  93. data/bower_components/jquery/src/deferred.js +149 -0
  94. data/bower_components/jquery/src/deprecated.js +13 -0
  95. data/bower_components/jquery/src/dimensions.js +50 -0
  96. data/bower_components/jquery/src/effects.js +642 -0
  97. data/bower_components/jquery/src/effects/Tween.js +114 -0
  98. data/bower_components/jquery/src/effects/animatedSelector.js +13 -0
  99. data/bower_components/jquery/src/event.js +859 -0
  100. data/bower_components/jquery/src/event/alias.js +39 -0
  101. data/bower_components/jquery/src/event/support.js +9 -0
  102. data/bower_components/jquery/src/exports/amd.js +18 -0
  103. data/bower_components/jquery/src/exports/global.js +32 -0
  104. data/bower_components/jquery/src/intro.js +44 -0
  105. data/bower_components/jquery/src/jquery.js +36 -0
  106. data/bower_components/jquery/src/manipulation.js +583 -0
  107. data/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
  108. data/bower_components/jquery/src/manipulation/support.js +24 -0
  109. data/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  110. data/bower_components/jquery/src/offset.js +204 -0
  111. data/bower_components/jquery/src/outro.js +1 -0
  112. data/bower_components/jquery/src/queue.js +142 -0
  113. data/bower_components/jquery/src/queue/delay.js +22 -0
  114. data/bower_components/jquery/src/selector-native.js +171 -0
  115. data/bower_components/jquery/src/selector-sizzle.js +14 -0
  116. data/bower_components/jquery/src/selector.js +1 -0
  117. data/bower_components/jquery/src/serialize.js +111 -0
  118. data/bower_components/jquery/src/sizzle/dist/sizzle.js +2015 -0
  119. data/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  120. data/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  121. data/bower_components/jquery/src/traversing.js +200 -0
  122. data/bower_components/jquery/src/traversing/findFilter.js +100 -0
  123. data/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
  124. data/bower_components/jquery/src/var/arr.js +3 -0
  125. data/bower_components/jquery/src/var/class2type.js +4 -0
  126. data/bower_components/jquery/src/var/concat.js +5 -0
  127. data/bower_components/jquery/src/var/hasOwn.js +5 -0
  128. data/bower_components/jquery/src/var/indexOf.js +5 -0
  129. data/bower_components/jquery/src/var/pnum.js +3 -0
  130. data/bower_components/jquery/src/var/push.js +5 -0
  131. data/bower_components/jquery/src/var/rnotwhite.js +3 -0
  132. data/bower_components/jquery/src/var/slice.js +5 -0
  133. data/bower_components/jquery/src/var/strundefined.js +3 -0
  134. data/bower_components/jquery/src/var/support.js +4 -0
  135. data/bower_components/jquery/src/var/toString.js +5 -0
  136. data/bower_components/jquery/src/var/trim.js +3 -0
  137. data/bower_components/jquery/src/wrap.js +78 -0
  138. data/bower_components/lodash/.bower.json +34 -0
  139. data/bower_components/lodash/LICENSE.txt +22 -0
  140. data/bower_components/lodash/bower.json +23 -0
  141. data/bower_components/lodash/dist/lodash.compat.js +7157 -0
  142. data/bower_components/lodash/dist/lodash.compat.min.js +61 -0
  143. data/bower_components/lodash/dist/lodash.js +6785 -0
  144. data/bower_components/lodash/dist/lodash.min.js +56 -0
  145. data/bower_components/lodash/dist/lodash.underscore.js +4979 -0
  146. data/bower_components/lodash/dist/lodash.underscore.min.js +39 -0
  147. data/bower_components/moment/.bower.json +31 -0
  148. data/bower_components/moment/LICENSE +22 -0
  149. data/bower_components/moment/bower.json +20 -0
  150. data/bower_components/moment/lang/ar-ma.js +56 -0
  151. data/bower_components/moment/lang/ar.js +56 -0
  152. data/bower_components/moment/lang/bg.js +86 -0
  153. data/bower_components/moment/lang/br.js +107 -0
  154. data/bower_components/moment/lang/bs.js +139 -0
  155. data/bower_components/moment/lang/ca.js +66 -0
  156. data/bower_components/moment/lang/cs.js +155 -0
  157. data/bower_components/moment/lang/cv.js +59 -0
  158. data/bower_components/moment/lang/cy.js +77 -0
  159. data/bower_components/moment/lang/da.js +56 -0
  160. data/bower_components/moment/lang/de.js +71 -0
  161. data/bower_components/moment/lang/el.js +79 -0
  162. data/bower_components/moment/lang/en-au.js +62 -0
  163. data/bower_components/moment/lang/en-ca.js +59 -0
  164. data/bower_components/moment/lang/en-gb.js +63 -0
  165. data/bower_components/moment/lang/eo.js +65 -0
  166. data/bower_components/moment/lang/es.js +75 -0
  167. data/bower_components/moment/lang/et.js +76 -0
  168. data/bower_components/moment/lang/eu.js +60 -0
  169. data/bower_components/moment/lang/fa.js +97 -0
  170. data/bower_components/moment/lang/fi.js +103 -0
  171. data/bower_components/moment/lang/fo.js +56 -0
  172. data/bower_components/moment/lang/fr-ca.js +54 -0
  173. data/bower_components/moment/lang/fr.js +58 -0
  174. data/bower_components/moment/lang/gl.js +71 -0
  175. data/bower_components/moment/lang/he.js +77 -0
  176. data/bower_components/moment/lang/hi.js +105 -0
  177. data/bower_components/moment/lang/hr.js +140 -0
  178. data/bower_components/moment/lang/hu.js +105 -0
  179. data/bower_components/moment/lang/hy-am.js +113 -0
  180. data/bower_components/moment/lang/id.js +67 -0
  181. data/bower_components/moment/lang/is.js +124 -0
  182. data/bower_components/moment/lang/it.js +59 -0
  183. data/bower_components/moment/lang/ja.js +58 -0
  184. data/bower_components/moment/lang/ka.js +108 -0
  185. data/bower_components/moment/lang/km.js +55 -0
  186. data/bower_components/moment/lang/ko.js +63 -0
  187. data/bower_components/moment/lang/lb.js +160 -0
  188. data/bower_components/moment/lang/lt.js +118 -0
  189. data/bower_components/moment/lang/lv.js +77 -0
  190. data/bower_components/moment/lang/mk.js +86 -0
  191. data/bower_components/moment/lang/ml.js +64 -0
  192. data/bower_components/moment/lang/mr.js +104 -0
  193. data/bower_components/moment/lang/ms-my.js +66 -0
  194. data/bower_components/moment/lang/nb.js +57 -0
  195. data/bower_components/moment/lang/ne.js +105 -0
  196. data/bower_components/moment/lang/nl.js +67 -0
  197. data/bower_components/moment/lang/nn.js +56 -0
  198. data/bower_components/moment/lang/pl.js +98 -0
  199. data/bower_components/moment/lang/pt-br.js +56 -0
  200. data/bower_components/moment/lang/pt.js +60 -0
  201. data/bower_components/moment/lang/ro.js +72 -0
  202. data/bower_components/moment/lang/ru.js +163 -0
  203. data/bower_components/moment/lang/sk.js +156 -0
  204. data/bower_components/moment/lang/sl.js +144 -0
  205. data/bower_components/moment/lang/sq.js +61 -0
  206. data/bower_components/moment/lang/sr-cyr.js +106 -0
  207. data/bower_components/moment/lang/sr.js +106 -0
  208. data/bower_components/moment/lang/sv.js +63 -0
  209. data/bower_components/moment/lang/ta.js +112 -0
  210. data/bower_components/moment/lang/th.js +58 -0
  211. data/bower_components/moment/lang/tl-ph.js +58 -0
  212. data/bower_components/moment/lang/tr.js +93 -0
  213. data/bower_components/moment/lang/tzm-la.js +55 -0
  214. data/bower_components/moment/lang/tzm.js +55 -0
  215. data/bower_components/moment/lang/uk.js +157 -0
  216. data/bower_components/moment/lang/uz.js +55 -0
  217. data/bower_components/moment/lang/vi.js +62 -0
  218. data/bower_components/moment/lang/zh-cn.js +108 -0
  219. data/bower_components/moment/lang/zh-tw.js +84 -0
  220. data/bower_components/moment/min/langs.js +5991 -0
  221. data/bower_components/moment/min/langs.min.js +3 -0
  222. data/bower_components/moment/min/moment-with-langs.js +7993 -0
  223. data/bower_components/moment/min/moment-with-langs.min.js +9 -0
  224. data/bower_components/moment/min/moment.min.js +6 -0
  225. data/bower_components/moment/moment.js +2489 -0
  226. data/bower_components/moment/readme.md +368 -0
  227. data/lib/logster.rb +9 -0
  228. data/lib/logster/logger.rb +31 -0
  229. data/lib/logster/message.rb +42 -0
  230. data/lib/logster/middleware/reporter.rb +13 -0
  231. data/lib/logster/middleware/viewer.rb +122 -0
  232. data/lib/logster/rails/railtie.rb +39 -0
  233. data/lib/logster/redis_store.rb +124 -0
  234. data/lib/logster/version.rb +3 -0
  235. data/logster.gemspec +30 -0
  236. data/test/logster/middleware/test_viewer.rb +34 -0
  237. data/test/logster/test_redis_store.rb +112 -0
  238. data/test/test_helper.rb +6 -0
  239. data/website/Gemfile +6 -0
  240. data/website/config.ru +2 -0
  241. data/website/data/data.json +1 -0
  242. data/website/docker_container/logster.yml +95 -0
  243. data/website/sample.rb +85 -0
  244. data/website/scripts/persist_logs.rb +13 -0
  245. metadata +375 -0
@@ -0,0 +1,106 @@
1
+ // moment.js language configuration
2
+ // language : Serbian-latin (sr)
3
+ // author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+
15
+ var translator = {
16
+ words: { //Different grammatical cases
17
+ m: ['jedan minut', 'jedne minute'],
18
+ mm: ['minut', 'minute', 'minuta'],
19
+ h: ['jedan sat', 'jednog sata'],
20
+ hh: ['sat', 'sata', 'sati'],
21
+ dd: ['dan', 'dana', 'dana'],
22
+ MM: ['mesec', 'meseca', 'meseci'],
23
+ yy: ['godina', 'godine', 'godina']
24
+ },
25
+ correctGrammaticalCase: function (number, wordKey) {
26
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
27
+ },
28
+ translate: function (number, withoutSuffix, key) {
29
+ var wordKey = translator.words[key];
30
+ if (key.length === 1) {
31
+ return withoutSuffix ? wordKey[0] : wordKey[1];
32
+ } else {
33
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
34
+ }
35
+ }
36
+ };
37
+
38
+ return moment.lang('sr', {
39
+ months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
40
+ monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
41
+ weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
42
+ weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
43
+ weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
44
+ longDateFormat: {
45
+ LT: "H:mm",
46
+ L: "DD. MM. YYYY",
47
+ LL: "D. MMMM YYYY",
48
+ LLL: "D. MMMM YYYY LT",
49
+ LLLL: "dddd, D. MMMM YYYY LT"
50
+ },
51
+ calendar: {
52
+ sameDay: '[danas u] LT',
53
+ nextDay: '[sutra u] LT',
54
+
55
+ nextWeek: function () {
56
+ switch (this.day()) {
57
+ case 0:
58
+ return '[u] [nedelju] [u] LT';
59
+ case 3:
60
+ return '[u] [sredu] [u] LT';
61
+ case 6:
62
+ return '[u] [subotu] [u] LT';
63
+ case 1:
64
+ case 2:
65
+ case 4:
66
+ case 5:
67
+ return '[u] dddd [u] LT';
68
+ }
69
+ },
70
+ lastDay : '[juče u] LT',
71
+ lastWeek : function () {
72
+ var lastWeekDays = [
73
+ '[prošle] [nedelje] [u] LT',
74
+ '[prošlog] [ponedeljka] [u] LT',
75
+ '[prošlog] [utorka] [u] LT',
76
+ '[prošle] [srede] [u] LT',
77
+ '[prošlog] [četvrtka] [u] LT',
78
+ '[prošlog] [petka] [u] LT',
79
+ '[prošle] [subote] [u] LT'
80
+ ];
81
+ return lastWeekDays[this.day()];
82
+ },
83
+ sameElse : 'L'
84
+ },
85
+ relativeTime : {
86
+ future : "za %s",
87
+ past : "pre %s",
88
+ s : "nekoliko sekundi",
89
+ m : translator.translate,
90
+ mm : translator.translate,
91
+ h : translator.translate,
92
+ hh : translator.translate,
93
+ d : "dan",
94
+ dd : translator.translate,
95
+ M : "mesec",
96
+ MM : translator.translate,
97
+ y : "godinu",
98
+ yy : translator.translate
99
+ },
100
+ ordinal : '%d.',
101
+ week : {
102
+ dow : 1, // Monday is the first day of the week.
103
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
104
+ }
105
+ });
106
+ }));
@@ -0,0 +1,63 @@
1
+ // moment.js language configuration
2
+ // language : swedish (sv)
3
+ // author : Jens Alm : https://github.com/ulmus
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('sv', {
15
+ months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
17
+ weekdays : "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
18
+ weekdaysShort : "sön_mån_tis_ons_tor_fre_lör".split("_"),
19
+ weekdaysMin : "sö_må_ti_on_to_fr_lö".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "YYYY-MM-DD",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[Idag] LT',
29
+ nextDay: '[Imorgon] LT',
30
+ lastDay: '[Igår] LT',
31
+ nextWeek: 'dddd LT',
32
+ lastWeek: '[Förra] dddd[en] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "om %s",
37
+ past : "för %s sedan",
38
+ s : "några sekunder",
39
+ m : "en minut",
40
+ mm : "%d minuter",
41
+ h : "en timme",
42
+ hh : "%d timmar",
43
+ d : "en dag",
44
+ dd : "%d dagar",
45
+ M : "en månad",
46
+ MM : "%d månader",
47
+ y : "ett år",
48
+ yy : "%d år"
49
+ },
50
+ ordinal : function (number) {
51
+ var b = number % 10,
52
+ output = (~~ (number % 100 / 10) === 1) ? 'e' :
53
+ (b === 1) ? 'a' :
54
+ (b === 2) ? 'a' :
55
+ (b === 3) ? 'e' : 'e';
56
+ return number + output;
57
+ },
58
+ week : {
59
+ dow : 1, // Monday is the first day of the week.
60
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
61
+ }
62
+ });
63
+ }));
@@ -0,0 +1,112 @@
1
+ // moment.js language configuration
2
+ // language : tamil (ta)
3
+ // author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ /*var symbolMap = {
15
+ '1': '௧',
16
+ '2': '௨',
17
+ '3': '௩',
18
+ '4': '௪',
19
+ '5': '௫',
20
+ '6': '௬',
21
+ '7': '௭',
22
+ '8': '௮',
23
+ '9': '௯',
24
+ '0': '௦'
25
+ },
26
+ numberMap = {
27
+ '௧': '1',
28
+ '௨': '2',
29
+ '௩': '3',
30
+ '௪': '4',
31
+ '௫': '5',
32
+ '௬': '6',
33
+ '௭': '7',
34
+ '௮': '8',
35
+ '௯': '9',
36
+ '௦': '0'
37
+ }; */
38
+
39
+ return moment.lang('ta', {
40
+ months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split("_"),
41
+ monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split("_"),
42
+ weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split("_"),
43
+ weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split("_"),
44
+ weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split("_"),
45
+ longDateFormat : {
46
+ LT : "HH:mm",
47
+ L : "DD/MM/YYYY",
48
+ LL : "D MMMM YYYY",
49
+ LLL : "D MMMM YYYY, LT",
50
+ LLLL : "dddd, D MMMM YYYY, LT"
51
+ },
52
+ calendar : {
53
+ sameDay : '[இன்று] LT',
54
+ nextDay : '[நாளை] LT',
55
+ nextWeek : 'dddd, LT',
56
+ lastDay : '[நேற்று] LT',
57
+ lastWeek : '[கடந்த வாரம்] dddd, LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : "%s இல்",
62
+ past : "%s முன்",
63
+ s : "ஒரு சில விநாடிகள்",
64
+ m : "ஒரு நிமிடம்",
65
+ mm : "%d நிமிடங்கள்",
66
+ h : "ஒரு மணி நேரம்",
67
+ hh : "%d மணி நேரம்",
68
+ d : "ஒரு நாள்",
69
+ dd : "%d நாட்கள்",
70
+ M : "ஒரு மாதம்",
71
+ MM : "%d மாதங்கள்",
72
+ y : "ஒரு வருடம்",
73
+ yy : "%d ஆண்டுகள்"
74
+ },
75
+ /* preparse: function (string) {
76
+ return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
77
+ return numberMap[match];
78
+ });
79
+ },
80
+ postformat: function (string) {
81
+ return string.replace(/\d/g, function (match) {
82
+ return symbolMap[match];
83
+ });
84
+ },*/
85
+ ordinal : function (number) {
86
+ return number + 'வது';
87
+ },
88
+
89
+
90
+ // refer http://ta.wikipedia.org/s/1er1
91
+
92
+ meridiem : function (hour, minute, isLower) {
93
+ if (hour >= 6 && hour <= 10) {
94
+ return " காலை";
95
+ } else if (hour >= 10 && hour <= 14) {
96
+ return " நண்பகல்";
97
+ } else if (hour >= 14 && hour <= 18) {
98
+ return " எற்பாடு";
99
+ } else if (hour >= 18 && hour <= 20) {
100
+ return " மாலை";
101
+ } else if (hour >= 20 && hour <= 24) {
102
+ return " இரவு";
103
+ } else if (hour >= 0 && hour <= 6) {
104
+ return " வைகறை";
105
+ }
106
+ },
107
+ week : {
108
+ dow : 0, // Sunday is the first day of the week.
109
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
110
+ }
111
+ });
112
+ }));
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : thai (th)
3
+ // author : Kridsada Thanabulpong : https://github.com/sirn
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('th', {
15
+ months : "มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),
16
+ monthsShort : "มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),
17
+ weekdays : "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),
18
+ weekdaysShort : "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"), // yes, three characters difference
19
+ weekdaysMin : "อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),
20
+ longDateFormat : {
21
+ LT : "H นาฬิกา m นาที",
22
+ L : "YYYY/MM/DD",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY เวลา LT",
25
+ LLLL : "วันddddที่ D MMMM YYYY เวลา LT"
26
+ },
27
+ meridiem : function (hour, minute, isLower) {
28
+ if (hour < 12) {
29
+ return "ก่อนเที่ยง";
30
+ } else {
31
+ return "หลังเที่ยง";
32
+ }
33
+ },
34
+ calendar : {
35
+ sameDay : '[วันนี้ เวลา] LT',
36
+ nextDay : '[พรุ่งนี้ เวลา] LT',
37
+ nextWeek : 'dddd[หน้า เวลา] LT',
38
+ lastDay : '[เมื่อวานนี้ เวลา] LT',
39
+ lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
40
+ sameElse : 'L'
41
+ },
42
+ relativeTime : {
43
+ future : "อีก %s",
44
+ past : "%sที่แล้ว",
45
+ s : "ไม่กี่วินาที",
46
+ m : "1 นาที",
47
+ mm : "%d นาที",
48
+ h : "1 ชั่วโมง",
49
+ hh : "%d ชั่วโมง",
50
+ d : "1 วัน",
51
+ dd : "%d วัน",
52
+ M : "1 เดือน",
53
+ MM : "%d เดือน",
54
+ y : "1 ปี",
55
+ yy : "%d ปี"
56
+ }
57
+ });
58
+ }));
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : Tagalog/Filipino (tl-ph)
3
+ // author : Dan Hagman
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('tl-ph', {
15
+ months : "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),
16
+ monthsShort : "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),
17
+ weekdays : "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),
18
+ weekdaysShort : "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),
19
+ weekdaysMin : "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "MM/D/YYYY",
23
+ LL : "MMMM D, YYYY",
24
+ LLL : "MMMM D, YYYY LT",
25
+ LLLL : "dddd, MMMM DD, YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: "[Ngayon sa] LT",
29
+ nextDay: '[Bukas sa] LT',
30
+ nextWeek: 'dddd [sa] LT',
31
+ lastDay: '[Kahapon sa] LT',
32
+ lastWeek: 'dddd [huling linggo] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "sa loob ng %s",
37
+ past : "%s ang nakalipas",
38
+ s : "ilang segundo",
39
+ m : "isang minuto",
40
+ mm : "%d minuto",
41
+ h : "isang oras",
42
+ hh : "%d oras",
43
+ d : "isang araw",
44
+ dd : "%d araw",
45
+ M : "isang buwan",
46
+ MM : "%d buwan",
47
+ y : "isang taon",
48
+ yy : "%d taon"
49
+ },
50
+ ordinal : function (number) {
51
+ return number;
52
+ },
53
+ week : {
54
+ dow : 1, // Monday is the first day of the week.
55
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
56
+ }
57
+ });
58
+ }));
@@ -0,0 +1,93 @@
1
+ // moment.js language configuration
2
+ // language : turkish (tr)
3
+ // authors : Erhan Gundogan : https://github.com/erhangundogan,
4
+ // Burak Yiğit Kaya: https://github.com/BYK
5
+
6
+ (function (factory) {
7
+ if (typeof define === 'function' && define.amd) {
8
+ define(['moment'], factory); // AMD
9
+ } else if (typeof exports === 'object') {
10
+ module.exports = factory(require('../moment')); // Node
11
+ } else {
12
+ factory(window.moment); // Browser global
13
+ }
14
+ }(function (moment) {
15
+
16
+ var suffixes = {
17
+ 1: "'inci",
18
+ 5: "'inci",
19
+ 8: "'inci",
20
+ 70: "'inci",
21
+ 80: "'inci",
22
+
23
+ 2: "'nci",
24
+ 7: "'nci",
25
+ 20: "'nci",
26
+ 50: "'nci",
27
+
28
+ 3: "'üncü",
29
+ 4: "'üncü",
30
+ 100: "'üncü",
31
+
32
+ 6: "'ncı",
33
+
34
+ 9: "'uncu",
35
+ 10: "'uncu",
36
+ 30: "'uncu",
37
+
38
+ 60: "'ıncı",
39
+ 90: "'ıncı"
40
+ };
41
+
42
+ return moment.lang('tr', {
43
+ months : "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),
44
+ monthsShort : "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),
45
+ weekdays : "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),
46
+ weekdaysShort : "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),
47
+ weekdaysMin : "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),
48
+ longDateFormat : {
49
+ LT : "HH:mm",
50
+ L : "DD.MM.YYYY",
51
+ LL : "D MMMM YYYY",
52
+ LLL : "D MMMM YYYY LT",
53
+ LLLL : "dddd, D MMMM YYYY LT"
54
+ },
55
+ calendar : {
56
+ sameDay : '[bugün saat] LT',
57
+ nextDay : '[yarın saat] LT',
58
+ nextWeek : '[haftaya] dddd [saat] LT',
59
+ lastDay : '[dün] LT',
60
+ lastWeek : '[geçen hafta] dddd [saat] LT',
61
+ sameElse : 'L'
62
+ },
63
+ relativeTime : {
64
+ future : "%s sonra",
65
+ past : "%s önce",
66
+ s : "birkaç saniye",
67
+ m : "bir dakika",
68
+ mm : "%d dakika",
69
+ h : "bir saat",
70
+ hh : "%d saat",
71
+ d : "bir gün",
72
+ dd : "%d gün",
73
+ M : "bir ay",
74
+ MM : "%d ay",
75
+ y : "bir yıl",
76
+ yy : "%d yıl"
77
+ },
78
+ ordinal : function (number) {
79
+ if (number === 0) { // special case for zero
80
+ return number + "'ıncı";
81
+ }
82
+ var a = number % 10,
83
+ b = number % 100 - a,
84
+ c = number >= 100 ? 100 : null;
85
+
86
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
87
+ },
88
+ week : {
89
+ dow : 1, // Monday is the first day of the week.
90
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
91
+ }
92
+ });
93
+ }));