logster 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +18 -0
- data/assets/javascript/app.js +377 -0
- data/assets/javascript/external/ember.js +44267 -0
- data/assets/javascript/external/ember.min.js +19 -0
- data/assets/javascript/external/handlebars.min.js +28 -0
- data/assets/javascript/external/jquery.min.js +5 -0
- data/assets/javascript/external/lodash.min.js +56 -0
- data/assets/javascript/external/moment.min.js +6 -0
- data/assets/javascript/templates/application.handlebars +1 -0
- data/assets/javascript/templates/index.handlebars +48 -0
- data/assets/javascript/templates/message.handlebars +7 -0
- data/assets/stylesheets/app.css +188 -0
- data/bower_components/ember/.bower.json +22 -0
- data/bower_components/ember/.gitignore +5 -0
- data/bower_components/ember/Makefile +9 -0
- data/bower_components/ember/README.md +12 -0
- data/bower_components/ember/bower.json +11 -0
- data/bower_components/ember/component.json +13 -0
- data/bower_components/ember/composer.json +27 -0
- data/bower_components/ember/ember-template-compiler.js +320 -0
- data/bower_components/ember/ember.js +44267 -0
- data/bower_components/ember/ember.min.js +19 -0
- data/bower_components/ember/ember.prod.js +42649 -0
- data/bower_components/ember/package.json +11 -0
- data/bower_components/handlebars/.bower.json +16 -0
- data/bower_components/handlebars/.gitignore +2 -0
- data/bower_components/handlebars/README.md +11 -0
- data/bower_components/handlebars/bower.json +6 -0
- data/bower_components/handlebars/component.json +9 -0
- data/bower_components/handlebars/composer.json +35 -0
- data/bower_components/handlebars/handlebars-source.gemspec +21 -0
- data/bower_components/handlebars/handlebars.amd.js +2719 -0
- data/bower_components/handlebars/handlebars.amd.min.js +28 -0
- data/bower_components/handlebars/handlebars.js +2746 -0
- data/bower_components/handlebars/handlebars.js.nuspec +17 -0
- data/bower_components/handlebars/handlebars.min.js +28 -0
- data/bower_components/handlebars/handlebars.runtime.amd.js +515 -0
- data/bower_components/handlebars/handlebars.runtime.amd.min.js +27 -0
- data/bower_components/handlebars/handlebars.runtime.js +530 -0
- data/bower_components/handlebars/handlebars.runtime.min.js +27 -0
- data/bower_components/handlebars/lib/handlebars/source.rb +11 -0
- data/bower_components/jquery/.bower.json +37 -0
- data/bower_components/jquery/MIT-LICENSE.txt +21 -0
- data/bower_components/jquery/bower.json +27 -0
- data/bower_components/jquery/dist/jquery.js +9111 -0
- data/bower_components/jquery/dist/jquery.min.js +5 -0
- data/bower_components/jquery/dist/jquery.min.map +1 -0
- data/bower_components/jquery/src/ajax.js +806 -0
- data/bower_components/jquery/src/ajax/jsonp.js +89 -0
- data/bower_components/jquery/src/ajax/load.js +75 -0
- data/bower_components/jquery/src/ajax/parseJSON.js +13 -0
- data/bower_components/jquery/src/ajax/parseXML.js +28 -0
- data/bower_components/jquery/src/ajax/script.js +64 -0
- data/bower_components/jquery/src/ajax/var/nonce.js +5 -0
- data/bower_components/jquery/src/ajax/var/rquery.js +3 -0
- data/bower_components/jquery/src/ajax/xhr.js +130 -0
- data/bower_components/jquery/src/attributes.js +11 -0
- data/bower_components/jquery/src/attributes/attr.js +143 -0
- data/bower_components/jquery/src/attributes/classes.js +158 -0
- data/bower_components/jquery/src/attributes/prop.js +96 -0
- data/bower_components/jquery/src/attributes/support.js +35 -0
- data/bower_components/jquery/src/attributes/val.js +153 -0
- data/bower_components/jquery/src/callbacks.js +205 -0
- data/bower_components/jquery/src/core.js +500 -0
- data/bower_components/jquery/src/core/access.js +60 -0
- data/bower_components/jquery/src/core/init.js +123 -0
- data/bower_components/jquery/src/core/parseHTML.js +39 -0
- data/bower_components/jquery/src/core/ready.js +96 -0
- data/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
- data/bower_components/jquery/src/css.js +455 -0
- data/bower_components/jquery/src/css/addGetHookIf.js +24 -0
- data/bower_components/jquery/src/css/curCSS.js +57 -0
- data/bower_components/jquery/src/css/defaultDisplay.js +69 -0
- data/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/bower_components/jquery/src/css/support.js +83 -0
- data/bower_components/jquery/src/css/swap.js +28 -0
- data/bower_components/jquery/src/css/var/cssExpand.js +3 -0
- data/bower_components/jquery/src/css/var/getStyles.js +5 -0
- data/bower_components/jquery/src/css/var/isHidden.js +13 -0
- data/bower_components/jquery/src/css/var/rmargin.js +3 -0
- data/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/bower_components/jquery/src/data.js +175 -0
- data/bower_components/jquery/src/data/Data.js +181 -0
- data/bower_components/jquery/src/data/accepts.js +20 -0
- data/bower_components/jquery/src/data/var/data_priv.js +5 -0
- data/bower_components/jquery/src/data/var/data_user.js +5 -0
- data/bower_components/jquery/src/deferred.js +149 -0
- data/bower_components/jquery/src/deprecated.js +13 -0
- data/bower_components/jquery/src/dimensions.js +50 -0
- data/bower_components/jquery/src/effects.js +642 -0
- data/bower_components/jquery/src/effects/Tween.js +114 -0
- data/bower_components/jquery/src/effects/animatedSelector.js +13 -0
- data/bower_components/jquery/src/event.js +859 -0
- data/bower_components/jquery/src/event/alias.js +39 -0
- data/bower_components/jquery/src/event/support.js +9 -0
- data/bower_components/jquery/src/exports/amd.js +18 -0
- data/bower_components/jquery/src/exports/global.js +32 -0
- data/bower_components/jquery/src/intro.js +44 -0
- data/bower_components/jquery/src/jquery.js +36 -0
- data/bower_components/jquery/src/manipulation.js +583 -0
- data/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
- data/bower_components/jquery/src/manipulation/support.js +24 -0
- data/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/bower_components/jquery/src/offset.js +204 -0
- data/bower_components/jquery/src/outro.js +1 -0
- data/bower_components/jquery/src/queue.js +142 -0
- data/bower_components/jquery/src/queue/delay.js +22 -0
- data/bower_components/jquery/src/selector-native.js +171 -0
- data/bower_components/jquery/src/selector-sizzle.js +14 -0
- data/bower_components/jquery/src/selector.js +1 -0
- data/bower_components/jquery/src/serialize.js +111 -0
- data/bower_components/jquery/src/sizzle/dist/sizzle.js +2015 -0
- data/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/bower_components/jquery/src/traversing.js +200 -0
- data/bower_components/jquery/src/traversing/findFilter.js +100 -0
- data/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/bower_components/jquery/src/var/arr.js +3 -0
- data/bower_components/jquery/src/var/class2type.js +4 -0
- data/bower_components/jquery/src/var/concat.js +5 -0
- data/bower_components/jquery/src/var/hasOwn.js +5 -0
- data/bower_components/jquery/src/var/indexOf.js +5 -0
- data/bower_components/jquery/src/var/pnum.js +3 -0
- data/bower_components/jquery/src/var/push.js +5 -0
- data/bower_components/jquery/src/var/rnotwhite.js +3 -0
- data/bower_components/jquery/src/var/slice.js +5 -0
- data/bower_components/jquery/src/var/strundefined.js +3 -0
- data/bower_components/jquery/src/var/support.js +4 -0
- data/bower_components/jquery/src/var/toString.js +5 -0
- data/bower_components/jquery/src/var/trim.js +3 -0
- data/bower_components/jquery/src/wrap.js +78 -0
- data/bower_components/lodash/.bower.json +34 -0
- data/bower_components/lodash/LICENSE.txt +22 -0
- data/bower_components/lodash/bower.json +23 -0
- data/bower_components/lodash/dist/lodash.compat.js +7157 -0
- data/bower_components/lodash/dist/lodash.compat.min.js +61 -0
- data/bower_components/lodash/dist/lodash.js +6785 -0
- data/bower_components/lodash/dist/lodash.min.js +56 -0
- data/bower_components/lodash/dist/lodash.underscore.js +4979 -0
- data/bower_components/lodash/dist/lodash.underscore.min.js +39 -0
- data/bower_components/moment/.bower.json +31 -0
- data/bower_components/moment/LICENSE +22 -0
- data/bower_components/moment/bower.json +20 -0
- data/bower_components/moment/lang/ar-ma.js +56 -0
- data/bower_components/moment/lang/ar.js +56 -0
- data/bower_components/moment/lang/bg.js +86 -0
- data/bower_components/moment/lang/br.js +107 -0
- data/bower_components/moment/lang/bs.js +139 -0
- data/bower_components/moment/lang/ca.js +66 -0
- data/bower_components/moment/lang/cs.js +155 -0
- data/bower_components/moment/lang/cv.js +59 -0
- data/bower_components/moment/lang/cy.js +77 -0
- data/bower_components/moment/lang/da.js +56 -0
- data/bower_components/moment/lang/de.js +71 -0
- data/bower_components/moment/lang/el.js +79 -0
- data/bower_components/moment/lang/en-au.js +62 -0
- data/bower_components/moment/lang/en-ca.js +59 -0
- data/bower_components/moment/lang/en-gb.js +63 -0
- data/bower_components/moment/lang/eo.js +65 -0
- data/bower_components/moment/lang/es.js +75 -0
- data/bower_components/moment/lang/et.js +76 -0
- data/bower_components/moment/lang/eu.js +60 -0
- data/bower_components/moment/lang/fa.js +97 -0
- data/bower_components/moment/lang/fi.js +103 -0
- data/bower_components/moment/lang/fo.js +56 -0
- data/bower_components/moment/lang/fr-ca.js +54 -0
- data/bower_components/moment/lang/fr.js +58 -0
- data/bower_components/moment/lang/gl.js +71 -0
- data/bower_components/moment/lang/he.js +77 -0
- data/bower_components/moment/lang/hi.js +105 -0
- data/bower_components/moment/lang/hr.js +140 -0
- data/bower_components/moment/lang/hu.js +105 -0
- data/bower_components/moment/lang/hy-am.js +113 -0
- data/bower_components/moment/lang/id.js +67 -0
- data/bower_components/moment/lang/is.js +124 -0
- data/bower_components/moment/lang/it.js +59 -0
- data/bower_components/moment/lang/ja.js +58 -0
- data/bower_components/moment/lang/ka.js +108 -0
- data/bower_components/moment/lang/km.js +55 -0
- data/bower_components/moment/lang/ko.js +63 -0
- data/bower_components/moment/lang/lb.js +160 -0
- data/bower_components/moment/lang/lt.js +118 -0
- data/bower_components/moment/lang/lv.js +77 -0
- data/bower_components/moment/lang/mk.js +86 -0
- data/bower_components/moment/lang/ml.js +64 -0
- data/bower_components/moment/lang/mr.js +104 -0
- data/bower_components/moment/lang/ms-my.js +66 -0
- data/bower_components/moment/lang/nb.js +57 -0
- data/bower_components/moment/lang/ne.js +105 -0
- data/bower_components/moment/lang/nl.js +67 -0
- data/bower_components/moment/lang/nn.js +56 -0
- data/bower_components/moment/lang/pl.js +98 -0
- data/bower_components/moment/lang/pt-br.js +56 -0
- data/bower_components/moment/lang/pt.js +60 -0
- data/bower_components/moment/lang/ro.js +72 -0
- data/bower_components/moment/lang/ru.js +163 -0
- data/bower_components/moment/lang/sk.js +156 -0
- data/bower_components/moment/lang/sl.js +144 -0
- data/bower_components/moment/lang/sq.js +61 -0
- data/bower_components/moment/lang/sr-cyr.js +106 -0
- data/bower_components/moment/lang/sr.js +106 -0
- data/bower_components/moment/lang/sv.js +63 -0
- data/bower_components/moment/lang/ta.js +112 -0
- data/bower_components/moment/lang/th.js +58 -0
- data/bower_components/moment/lang/tl-ph.js +58 -0
- data/bower_components/moment/lang/tr.js +93 -0
- data/bower_components/moment/lang/tzm-la.js +55 -0
- data/bower_components/moment/lang/tzm.js +55 -0
- data/bower_components/moment/lang/uk.js +157 -0
- data/bower_components/moment/lang/uz.js +55 -0
- data/bower_components/moment/lang/vi.js +62 -0
- data/bower_components/moment/lang/zh-cn.js +108 -0
- data/bower_components/moment/lang/zh-tw.js +84 -0
- data/bower_components/moment/min/langs.js +5991 -0
- data/bower_components/moment/min/langs.min.js +3 -0
- data/bower_components/moment/min/moment-with-langs.js +7993 -0
- data/bower_components/moment/min/moment-with-langs.min.js +9 -0
- data/bower_components/moment/min/moment.min.js +6 -0
- data/bower_components/moment/moment.js +2489 -0
- data/bower_components/moment/readme.md +368 -0
- data/lib/logster.rb +9 -0
- data/lib/logster/logger.rb +31 -0
- data/lib/logster/message.rb +42 -0
- data/lib/logster/middleware/reporter.rb +13 -0
- data/lib/logster/middleware/viewer.rb +122 -0
- data/lib/logster/rails/railtie.rb +39 -0
- data/lib/logster/redis_store.rb +124 -0
- data/lib/logster/version.rb +3 -0
- data/logster.gemspec +30 -0
- data/test/logster/middleware/test_viewer.rb +34 -0
- data/test/logster/test_redis_store.rb +112 -0
- data/test/test_helper.rb +6 -0
- data/website/Gemfile +6 -0
- data/website/config.ru +2 -0
- data/website/data/data.json +1 -0
- data/website/docker_container/logster.yml +95 -0
- data/website/sample.rb +85 -0
- data/website/scripts/persist_logs.rb +13 -0
- metadata +375 -0
@@ -0,0 +1,77 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Hebrew (he)
|
3
|
+
// author : Tomer Cohen : https://github.com/tomer
|
4
|
+
// author : Moshe Simantov : https://github.com/DevelopmentIL
|
5
|
+
// author : Tal Ater : https://github.com/TalAter
|
6
|
+
|
7
|
+
(function (factory) {
|
8
|
+
if (typeof define === 'function' && define.amd) {
|
9
|
+
define(['moment'], factory); // AMD
|
10
|
+
} else if (typeof exports === 'object') {
|
11
|
+
module.exports = factory(require('../moment')); // Node
|
12
|
+
} else {
|
13
|
+
factory(window.moment); // Browser global
|
14
|
+
}
|
15
|
+
}(function (moment) {
|
16
|
+
return moment.lang('he', {
|
17
|
+
months : "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),
|
18
|
+
monthsShort : "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),
|
19
|
+
weekdays : "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),
|
20
|
+
weekdaysShort : "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),
|
21
|
+
weekdaysMin : "א_ב_ג_ד_ה_ו_ש".split("_"),
|
22
|
+
longDateFormat : {
|
23
|
+
LT : "HH:mm",
|
24
|
+
L : "DD/MM/YYYY",
|
25
|
+
LL : "D [ב]MMMM YYYY",
|
26
|
+
LLL : "D [ב]MMMM YYYY LT",
|
27
|
+
LLLL : "dddd, D [ב]MMMM YYYY LT",
|
28
|
+
l : "D/M/YYYY",
|
29
|
+
ll : "D MMM YYYY",
|
30
|
+
lll : "D MMM YYYY LT",
|
31
|
+
llll : "ddd, D MMM YYYY LT"
|
32
|
+
},
|
33
|
+
calendar : {
|
34
|
+
sameDay : '[היום ב־]LT',
|
35
|
+
nextDay : '[מחר ב־]LT',
|
36
|
+
nextWeek : 'dddd [בשעה] LT',
|
37
|
+
lastDay : '[אתמול ב־]LT',
|
38
|
+
lastWeek : '[ביום] dddd [האחרון בשעה] LT',
|
39
|
+
sameElse : 'L'
|
40
|
+
},
|
41
|
+
relativeTime : {
|
42
|
+
future : "בעוד %s",
|
43
|
+
past : "לפני %s",
|
44
|
+
s : "מספר שניות",
|
45
|
+
m : "דקה",
|
46
|
+
mm : "%d דקות",
|
47
|
+
h : "שעה",
|
48
|
+
hh : function (number) {
|
49
|
+
if (number === 2) {
|
50
|
+
return "שעתיים";
|
51
|
+
}
|
52
|
+
return number + " שעות";
|
53
|
+
},
|
54
|
+
d : "יום",
|
55
|
+
dd : function (number) {
|
56
|
+
if (number === 2) {
|
57
|
+
return "יומיים";
|
58
|
+
}
|
59
|
+
return number + " ימים";
|
60
|
+
},
|
61
|
+
M : "חודש",
|
62
|
+
MM : function (number) {
|
63
|
+
if (number === 2) {
|
64
|
+
return "חודשיים";
|
65
|
+
}
|
66
|
+
return number + " חודשים";
|
67
|
+
},
|
68
|
+
y : "שנה",
|
69
|
+
yy : function (number) {
|
70
|
+
if (number === 2) {
|
71
|
+
return "שנתיים";
|
72
|
+
}
|
73
|
+
return number + " שנים";
|
74
|
+
}
|
75
|
+
}
|
76
|
+
});
|
77
|
+
}));
|
@@ -0,0 +1,105 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : hindi (hi)
|
3
|
+
// author : Mayank Singhal : https://github.com/mayanksinghal
|
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('hi', {
|
40
|
+
months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split("_"),
|
41
|
+
monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split("_"),
|
42
|
+
weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"),
|
43
|
+
weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split("_"),
|
44
|
+
weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split("_"),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : "A h: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
|
+
// Hindi notation for meridiems are quite fuzzy in practice. While there exists
|
86
|
+
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
|
87
|
+
meridiem : function (hour, minute, isLower) {
|
88
|
+
if (hour < 4) {
|
89
|
+
return "रात";
|
90
|
+
} else if (hour < 10) {
|
91
|
+
return "सुबह";
|
92
|
+
} else if (hour < 17) {
|
93
|
+
return "दोपहर";
|
94
|
+
} else if (hour < 20) {
|
95
|
+
return "शाम";
|
96
|
+
} else {
|
97
|
+
return "रात";
|
98
|
+
}
|
99
|
+
},
|
100
|
+
week : {
|
101
|
+
dow : 0, // Sunday is the first day of the week.
|
102
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
103
|
+
}
|
104
|
+
});
|
105
|
+
}));
|
@@ -0,0 +1,140 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : hrvatski (hr)
|
3
|
+
// author : Bojan Marković : https://github.com/bmarkovic
|
4
|
+
|
5
|
+
// based on (sl) translation by Robert Sedovšek
|
6
|
+
|
7
|
+
(function (factory) {
|
8
|
+
if (typeof define === 'function' && define.amd) {
|
9
|
+
define(['moment'], factory); // AMD
|
10
|
+
} else if (typeof exports === 'object') {
|
11
|
+
module.exports = factory(require('../moment')); // Node
|
12
|
+
} else {
|
13
|
+
factory(window.moment); // Browser global
|
14
|
+
}
|
15
|
+
}(function (moment) {
|
16
|
+
|
17
|
+
function translate(number, withoutSuffix, key) {
|
18
|
+
var result = number + " ";
|
19
|
+
switch (key) {
|
20
|
+
case 'm':
|
21
|
+
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
|
22
|
+
case 'mm':
|
23
|
+
if (number === 1) {
|
24
|
+
result += 'minuta';
|
25
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
26
|
+
result += 'minute';
|
27
|
+
} else {
|
28
|
+
result += 'minuta';
|
29
|
+
}
|
30
|
+
return result;
|
31
|
+
case 'h':
|
32
|
+
return withoutSuffix ? 'jedan sat' : 'jednog sata';
|
33
|
+
case 'hh':
|
34
|
+
if (number === 1) {
|
35
|
+
result += 'sat';
|
36
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
37
|
+
result += 'sata';
|
38
|
+
} else {
|
39
|
+
result += 'sati';
|
40
|
+
}
|
41
|
+
return result;
|
42
|
+
case 'dd':
|
43
|
+
if (number === 1) {
|
44
|
+
result += 'dan';
|
45
|
+
} else {
|
46
|
+
result += 'dana';
|
47
|
+
}
|
48
|
+
return result;
|
49
|
+
case 'MM':
|
50
|
+
if (number === 1) {
|
51
|
+
result += 'mjesec';
|
52
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
53
|
+
result += 'mjeseca';
|
54
|
+
} else {
|
55
|
+
result += 'mjeseci';
|
56
|
+
}
|
57
|
+
return result;
|
58
|
+
case 'yy':
|
59
|
+
if (number === 1) {
|
60
|
+
result += 'godina';
|
61
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
62
|
+
result += 'godine';
|
63
|
+
} else {
|
64
|
+
result += 'godina';
|
65
|
+
}
|
66
|
+
return result;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
return moment.lang('hr', {
|
71
|
+
months : "sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),
|
72
|
+
monthsShort : "sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),
|
73
|
+
weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
|
74
|
+
weekdaysShort : "ned._pon._uto._sri._čet._pet._sub.".split("_"),
|
75
|
+
weekdaysMin : "ne_po_ut_sr_če_pe_su".split("_"),
|
76
|
+
longDateFormat : {
|
77
|
+
LT : "H:mm",
|
78
|
+
L : "DD. MM. YYYY",
|
79
|
+
LL : "D. MMMM YYYY",
|
80
|
+
LLL : "D. MMMM YYYY LT",
|
81
|
+
LLLL : "dddd, D. MMMM YYYY LT"
|
82
|
+
},
|
83
|
+
calendar : {
|
84
|
+
sameDay : '[danas u] LT',
|
85
|
+
nextDay : '[sutra u] LT',
|
86
|
+
|
87
|
+
nextWeek : function () {
|
88
|
+
switch (this.day()) {
|
89
|
+
case 0:
|
90
|
+
return '[u] [nedjelju] [u] LT';
|
91
|
+
case 3:
|
92
|
+
return '[u] [srijedu] [u] LT';
|
93
|
+
case 6:
|
94
|
+
return '[u] [subotu] [u] LT';
|
95
|
+
case 1:
|
96
|
+
case 2:
|
97
|
+
case 4:
|
98
|
+
case 5:
|
99
|
+
return '[u] dddd [u] LT';
|
100
|
+
}
|
101
|
+
},
|
102
|
+
lastDay : '[jučer u] LT',
|
103
|
+
lastWeek : function () {
|
104
|
+
switch (this.day()) {
|
105
|
+
case 0:
|
106
|
+
case 3:
|
107
|
+
return '[prošlu] dddd [u] LT';
|
108
|
+
case 6:
|
109
|
+
return '[prošle] [subote] [u] LT';
|
110
|
+
case 1:
|
111
|
+
case 2:
|
112
|
+
case 4:
|
113
|
+
case 5:
|
114
|
+
return '[prošli] dddd [u] LT';
|
115
|
+
}
|
116
|
+
},
|
117
|
+
sameElse : 'L'
|
118
|
+
},
|
119
|
+
relativeTime : {
|
120
|
+
future : "za %s",
|
121
|
+
past : "prije %s",
|
122
|
+
s : "par sekundi",
|
123
|
+
m : translate,
|
124
|
+
mm : translate,
|
125
|
+
h : translate,
|
126
|
+
hh : translate,
|
127
|
+
d : "dan",
|
128
|
+
dd : translate,
|
129
|
+
M : "mjesec",
|
130
|
+
MM : translate,
|
131
|
+
y : "godinu",
|
132
|
+
yy : translate
|
133
|
+
},
|
134
|
+
ordinal : '%d.',
|
135
|
+
week : {
|
136
|
+
dow : 1, // Monday is the first day of the week.
|
137
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
138
|
+
}
|
139
|
+
});
|
140
|
+
}));
|
@@ -0,0 +1,105 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : hungarian (hu)
|
3
|
+
// author : Adam Brunner : https://github.com/adambrunner
|
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 weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
|
15
|
+
|
16
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
17
|
+
var num = number,
|
18
|
+
suffix;
|
19
|
+
|
20
|
+
switch (key) {
|
21
|
+
case 's':
|
22
|
+
return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
|
23
|
+
case 'm':
|
24
|
+
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
25
|
+
case 'mm':
|
26
|
+
return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
27
|
+
case 'h':
|
28
|
+
return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
29
|
+
case 'hh':
|
30
|
+
return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
31
|
+
case 'd':
|
32
|
+
return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
33
|
+
case 'dd':
|
34
|
+
return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
35
|
+
case 'M':
|
36
|
+
return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
37
|
+
case 'MM':
|
38
|
+
return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
39
|
+
case 'y':
|
40
|
+
return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
|
41
|
+
case 'yy':
|
42
|
+
return num + (isFuture || withoutSuffix ? ' év' : ' éve');
|
43
|
+
}
|
44
|
+
|
45
|
+
return '';
|
46
|
+
}
|
47
|
+
|
48
|
+
function week(isFuture) {
|
49
|
+
return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
|
50
|
+
}
|
51
|
+
|
52
|
+
return moment.lang('hu', {
|
53
|
+
months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),
|
54
|
+
monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
|
55
|
+
weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
|
56
|
+
weekdaysShort : "vas_hét_kedd_sze_csüt_pén_szo".split("_"),
|
57
|
+
weekdaysMin : "v_h_k_sze_cs_p_szo".split("_"),
|
58
|
+
longDateFormat : {
|
59
|
+
LT : "H:mm",
|
60
|
+
L : "YYYY.MM.DD.",
|
61
|
+
LL : "YYYY. MMMM D.",
|
62
|
+
LLL : "YYYY. MMMM D., LT",
|
63
|
+
LLLL : "YYYY. MMMM D., dddd LT"
|
64
|
+
},
|
65
|
+
meridiem : function (hours, minutes, isLower) {
|
66
|
+
if (hours < 12) {
|
67
|
+
return isLower === true ? 'de' : 'DE';
|
68
|
+
} else {
|
69
|
+
return isLower === true ? 'du' : 'DU';
|
70
|
+
}
|
71
|
+
},
|
72
|
+
calendar : {
|
73
|
+
sameDay : '[ma] LT[-kor]',
|
74
|
+
nextDay : '[holnap] LT[-kor]',
|
75
|
+
nextWeek : function () {
|
76
|
+
return week.call(this, true);
|
77
|
+
},
|
78
|
+
lastDay : '[tegnap] LT[-kor]',
|
79
|
+
lastWeek : function () {
|
80
|
+
return week.call(this, false);
|
81
|
+
},
|
82
|
+
sameElse : 'L'
|
83
|
+
},
|
84
|
+
relativeTime : {
|
85
|
+
future : "%s múlva",
|
86
|
+
past : "%s",
|
87
|
+
s : translate,
|
88
|
+
m : translate,
|
89
|
+
mm : translate,
|
90
|
+
h : translate,
|
91
|
+
hh : translate,
|
92
|
+
d : translate,
|
93
|
+
dd : translate,
|
94
|
+
M : translate,
|
95
|
+
MM : translate,
|
96
|
+
y : translate,
|
97
|
+
yy : translate
|
98
|
+
},
|
99
|
+
ordinal : '%d.',
|
100
|
+
week : {
|
101
|
+
dow : 1, // Monday is the first day of the week.
|
102
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
103
|
+
}
|
104
|
+
});
|
105
|
+
}));
|
@@ -0,0 +1,113 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Armenian (hy-am)
|
3
|
+
// author : Armendarabyan : https://github.com/armendarabyan
|
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
|
+
function monthsCaseReplace(m, format) {
|
16
|
+
var months = {
|
17
|
+
'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
|
18
|
+
'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
|
19
|
+
},
|
20
|
+
|
21
|
+
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
|
22
|
+
'accusative' :
|
23
|
+
'nominative';
|
24
|
+
|
25
|
+
return months[nounCase][m.month()];
|
26
|
+
}
|
27
|
+
|
28
|
+
function monthsShortCaseReplace(m, format) {
|
29
|
+
var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
|
30
|
+
|
31
|
+
return monthsShort[m.month()];
|
32
|
+
}
|
33
|
+
|
34
|
+
function weekdaysCaseReplace(m, format) {
|
35
|
+
var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
|
36
|
+
|
37
|
+
return weekdays[m.day()];
|
38
|
+
}
|
39
|
+
|
40
|
+
return moment.lang('hy-am', {
|
41
|
+
months : monthsCaseReplace,
|
42
|
+
monthsShort : monthsShortCaseReplace,
|
43
|
+
weekdays : weekdaysCaseReplace,
|
44
|
+
weekdaysShort : "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),
|
45
|
+
weekdaysMin : "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),
|
46
|
+
longDateFormat : {
|
47
|
+
LT : "HH:mm",
|
48
|
+
L : "DD.MM.YYYY",
|
49
|
+
LL : "D MMMM YYYY թ.",
|
50
|
+
LLL : "D MMMM YYYY թ., LT",
|
51
|
+
LLLL : "dddd, D MMMM YYYY թ., LT"
|
52
|
+
},
|
53
|
+
calendar : {
|
54
|
+
sameDay: '[այսօր] LT',
|
55
|
+
nextDay: '[վաղը] LT',
|
56
|
+
lastDay: '[երեկ] LT',
|
57
|
+
nextWeek: function () {
|
58
|
+
return 'dddd [օրը ժամը] LT';
|
59
|
+
},
|
60
|
+
lastWeek: function () {
|
61
|
+
return '[անցած] dddd [օրը ժամը] LT';
|
62
|
+
},
|
63
|
+
sameElse: 'L'
|
64
|
+
},
|
65
|
+
relativeTime : {
|
66
|
+
future : "%s հետո",
|
67
|
+
past : "%s առաջ",
|
68
|
+
s : "մի քանի վայրկյան",
|
69
|
+
m : "րոպե",
|
70
|
+
mm : "%d րոպե",
|
71
|
+
h : "ժամ",
|
72
|
+
hh : "%d ժամ",
|
73
|
+
d : "օր",
|
74
|
+
dd : "%d օր",
|
75
|
+
M : "ամիս",
|
76
|
+
MM : "%d ամիս",
|
77
|
+
y : "տարի",
|
78
|
+
yy : "%d տարի"
|
79
|
+
},
|
80
|
+
|
81
|
+
meridiem : function (hour) {
|
82
|
+
if (hour < 4) {
|
83
|
+
return "գիշերվա";
|
84
|
+
} else if (hour < 12) {
|
85
|
+
return "առավոտվա";
|
86
|
+
} else if (hour < 17) {
|
87
|
+
return "ցերեկվա";
|
88
|
+
} else {
|
89
|
+
return "երեկոյան";
|
90
|
+
}
|
91
|
+
},
|
92
|
+
|
93
|
+
ordinal: function (number, period) {
|
94
|
+
switch (period) {
|
95
|
+
case 'DDD':
|
96
|
+
case 'w':
|
97
|
+
case 'W':
|
98
|
+
case 'DDDo':
|
99
|
+
if (number === 1) {
|
100
|
+
return number + '-ին';
|
101
|
+
}
|
102
|
+
return number + '-րդ';
|
103
|
+
default:
|
104
|
+
return number;
|
105
|
+
}
|
106
|
+
},
|
107
|
+
|
108
|
+
week : {
|
109
|
+
dow : 1, // Monday is the first day of the week.
|
110
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
111
|
+
}
|
112
|
+
});
|
113
|
+
}));
|