This commit is contained in:
2021-09-15 22:42:55 +00:00
parent 8584baf01e
commit 8cb5211e55
4 changed files with 97 additions and 99 deletions

View File

@@ -943,6 +943,36 @@ export default {
"https://yandex.ru/maps/?mode=search&text={ayaddress}&z=17<|>https://yandex.ru/maps/?ll={aylatitude},{aylongitude}&z=12&l=map"
}
];
},
///////////////////////////////////////////////
// v-calendar view to AyaNova scheduleview enum
//
//
calendarViewToAyaNovaEnum: function(view) {
/*
public enum ScheduleView : int
{
Day = 1,
Week = 2,
Month = 3,
Day4 = 4
}
*/
switch (view) {
case "day":
return 1;
case "week":
return 2;
case "month":
return 3;
case "4day":
return 4;
default:
throw new Error(
`gzutil->calendarViewtoAyaNovaEnum - Unknown view type '${view}'`
);
}
}
/**