Skip to content

Commit c94cc5b

Browse files
committed
Fix index page
1 parent afba99a commit c94cc5b

File tree

10 files changed

+242
-137
lines changed

10 files changed

+242
-137
lines changed

bower.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,5 @@
2222
"ignore": [
2323
"node_modules",
2424
"bower_components"
25-
],
26-
"resolutions": {
27-
"humanize-duration": "~2.4.0"
28-
}
25+
]
2926
}

bower_components/humanize-duration/.bower.json

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
"Filipi Siqueira (https://github.com/filipi777)",
77
"Peter Rekdal Sunde (https://github.com/peters)",
88
"Michał Janiec (https://github.com/mjjaniec)",
9-
"Eileen Li (https://github.com/eileen3)"
9+
"Eileen Li (https://github.com/eileen3)",
10+
"Tommy Brunn (https://github.com/Nevon)",
11+
"Giovanni Pellerano (https://github.com/evilaliv3)",
12+
"Rahma Sghaier (https://twitter.com/sghaierrahma)"
1013
],
11-
"version": "2.4.0",
14+
"version": "2.8.0",
1215
"description": "Convert millisecond durations to English and many other languages.",
1316
"main": "humanize-duration.js",
1417
"homepage": "https://github.com/EvanHahn/HumanizeDuration.js",
@@ -21,18 +24,7 @@
2124
"seconds",
2225
"days",
2326
"years",
24-
"months",
25-
"english",
26-
"spanish",
27-
"french",
28-
"catalan",
29-
"portuguese",
30-
"korean",
31-
"norwegian",
32-
"german",
33-
"danish",
34-
"russian",
35-
"turkish"
27+
"months"
3628
],
3729
"license": "WTFPL",
3830
"ignore": [
@@ -46,13 +38,13 @@
4638
"type": "git",
4739
"url": "git://github.com/EvanHahn/HumanizeDuration.js.git"
4840
},
49-
"_release": "2.4.0",
41+
"_release": "2.8.0",
5042
"_resolution": {
5143
"type": "version",
52-
"tag": "v2.4.0",
53-
"commit": "b6bdee5c060155258a66219dbe45bd7e689a98ce"
44+
"tag": "v2.8.0",
45+
"commit": "dcab6eaf100968c008351c70ae3dea9a8a86d929"
5446
},
5547
"_source": "git://github.com/EvanHahn/HumanizeDuration.js.git",
56-
"_target": "~2.4.0",
48+
"_target": "~2.8.0",
5749
"_originalSource": "humanize-duration"
5850
}

bower_components/humanize-duration/CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
How to contribute
22
=================
33

4+
This assumes you have Node and npm installed.
5+
46
1. Fork the repo.
57
1. Clone the repo.
68
1. Run `npm install`.
79
1. Make your changes. Please add tests! If adding a new language, define some tests in *test/definitions*.
10+
1. Update `HISTORY.md` with your changes.
11+
1. If adding a new language, add it to the README.
12+
1. Credit yourself in the README and in `package.json`.
813
1. Make sure `npm test` doesn't have any errors.
914
1. Make sure `npm run hint` doesn't give any JSHint errors.
1015
1. Submit your pull request!

bower_components/humanize-duration/README.md

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ I have the time in milliseconds and I want it to become "30 minutes" or "3 days,
99
Basic usage
1010
-----------
1111

12-
This package is available as *humanize-duration* in Node and Bower. You can also include the JavaScript in the browser.
12+
This package is available as *humanize-duration* in npm and Bower. You can also include the JavaScript in the browser.
1313

1414
In the browser:
1515

@@ -50,19 +50,22 @@ humanizeDuration(22140000, { delimiter: "--" }) // "6 hours--9 minutes"
5050
humanizeDuration(260040000, { spacer: " whole " }) // "3 whole days, 14 whole minutes"
5151
humanizeDuration(260040000, { spacer: "" }) // "3days, 14minutes"
5252

53-
humanizeDuration(3600000, { units: ["hours"] }) // 1 hour
54-
humanizeDuration(3600000, { units: ["days", "hours"] }) // 1 hour
55-
humanizeDuration(3600000, { units: ["minutes"] }) // 60 minutes
53+
humanizeDuration(3600000, { units: ["hours"] }) // "1 hour"
54+
humanizeDuration(3600000, { units: ["days", "hours"] }) // "1 hour"
55+
humanizeDuration(3600000, { units: ["minutes"] }) // "60 minutes"
5656

57-
humanizeDuration(150000) // 2.5 minutes
58-
humanizeDuration(150000, { halfUnit: false }) // 2 minutes, 30 seconds
59-
```
57+
humanizeDuration(1200) // "1.2 seconds"
58+
humanizeDuration(1200, { round: true }) // "1 second"
59+
humanizeDuration(1600, { round: true }) // "2 seconds"
60+
61+
humanizeDuration(150000) // "2.5 minutes"
62+
humanizeDuration(150000, { halfUnit: false }) // "2 minutes, 30 seconds"
6063

6164
humanizeDuration(3600000, {
6265
language: "es",
6366
units: ["minutes"]
6467
})
65-
// 60 minutos
68+
// "60 minutos"
6669
```
6770

6871
### Humanizers
@@ -96,15 +99,16 @@ var shortEnglishHumanizer = humanizeDuration.humanizer({
9699
millisecond: function() { return "ms"; },
97100
}
98101
}
99-
});
102+
})
100103

101104
shortEnglishHumanizer(15600000) // "4 h, 20 m"
102105
```
103106

104107
You can also add languages after initializing:
105108

106109
```js
107-
var humanizer = humanizeDuration.humanizer();
110+
var humanizer = humanizeDuration.humanizer()
111+
108112
humanizer.languages.shortEn = {
109113
year: function(c) { return c + "y"; },
110114
// ...
@@ -117,6 +121,7 @@ Supported languages
117121
118122
Humanize Duration supports the following languages:
119123
124+
* Arabic (ar)
120125
* Catalan (ca)
121126
* Chinese, simplified (zh-CN)
122127
* Chinese, traditional (zh-TW)
@@ -125,6 +130,8 @@ Humanize Duration supports the following languages:
125130
* English (en)
126131
* French (fr)
127132
* German (de)
133+
* Hungarian (hu)
134+
* Italian (it)
128135
* Japanese (ja)
129136
* Korean (ko)
130137
* Norwegian (nob)
@@ -135,9 +142,25 @@ Humanize Duration supports the following languages:
135142
* Swedish (sv)
136143
* Turkish (tr)
137144
145+
For a list of supported languages, you can use the `getSupportedLanguages` function.
146+
147+
```js
148+
humanizeDuration.getSupportedLanguages()
149+
// ["ar", "ca", "da", "de" ...]
150+
```
151+
138152
Credits
139153
-------
140154
141-
Lovingly made by [Evan Hahn](http://evanhahn.com/) with language support by [Martin Prins](https://github.com/magarcia). Thanks to [Filipi Siqueira](https://github.com/filipi777) for Portuguese support, [Peter Rekdal Sunde](https://github.com/peters) for Norwegian support, [Michał Janiec](https://github.com/mjjaniec) for Polish support, [Eileen Li](https://github.com/eileen3) for Chinese support, and [Tommy Brunn](https://github.com/Nevon) for Swedish support.
155+
Lovingly made by [Evan Hahn](http://evanhahn.com/) with help from:
156+
157+
* [Martin Prins](https://github.com/magarcia) for language support
158+
* [Filipi Siqueira](https://github.com/filipi777) for Portuguese support
159+
* [Peter Rekdal Sunde](https://github.com/peters) for Norwegian support
160+
* [Michał Janiec](https://github.com/mjjaniec) for Polish support
161+
* [Eileen Li](https://github.com/eileen3) for Chinese support
162+
* [Tommy Brunn](https://github.com/Nevon) for Swedish support
163+
* [Giovanni Pellerano](https://github.com/evilaliv3) for Italian support
164+
* [Rahma Sghaier](https://twitter.com/sghaierrahma) for Arabic support
142165
143166
Licensed under the WTFPL, so you can do whatever you want. Enjoy!

bower_components/humanize-duration/bower.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
"Filipi Siqueira (https://github.com/filipi777)",
77
"Peter Rekdal Sunde (https://github.com/peters)",
88
"Michał Janiec (https://github.com/mjjaniec)",
9-
"Eileen Li (https://github.com/eileen3)"
9+
"Eileen Li (https://github.com/eileen3)",
10+
"Tommy Brunn (https://github.com/Nevon)",
11+
"Giovanni Pellerano (https://github.com/evilaliv3)",
12+
"Rahma Sghaier (https://twitter.com/sghaierrahma)"
1013
],
11-
"version": "2.3.1",
14+
"version": "2.8.0",
1215
"description": "Convert millisecond durations to English and many other languages.",
1316
"main": "humanize-duration.js",
1417
"homepage": "https://github.com/EvanHahn/HumanizeDuration.js",
@@ -21,18 +24,7 @@
2124
"seconds",
2225
"days",
2326
"years",
24-
"months",
25-
"english",
26-
"spanish",
27-
"french",
28-
"catalan",
29-
"portuguese",
30-
"korean",
31-
"norwegian",
32-
"german",
33-
"danish",
34-
"russian",
35-
"turkish"
27+
"months"
3628
],
3729
"license": "WTFPL",
3830
"ignore": [

0 commit comments

Comments
 (0)