Schedule serverside

This commit is contained in:
tmshv committed 2017-05-26 18:41:11 +03:00
1 parent 06b3f481bd
commit fcf45614a3
11 files changed
+311 -107

No files matched your search

+7 -3
View File
@@ -10,9 +10,13 @@ export default [
],
},
{
'text': 'Расписание',
'url': '/schedule',
'color': 'green'
text: 'Расписание',
url: '/schedule',
color: 'green',
items: [
{url: '*', text: ''},
]
},
{
'text': 'Поступление',
+16
View File
@@ -28,3 +28,19 @@ export function getPeriod(i){
return i.map(Number);
}
/**
*
* f("2012-2015") -> "2012-2015"
* f(["2012", "2015"]) -> "2012-2015"
* f([2012, 2015]) -> "2012-2015"
*
* @param i
* @returns {*}
*/
function getPeriodString(i) {
return getPeriod(i)
.join('-')
}
exports.getPeriodString = getPeriodString