Kaynağa Gözat

add calendar demo data

CauseFX 4 yıl önce
ebeveyn
işleme
df24a4595c
2 değiştirilmiş dosya ile 13821 ekleme ve 0 silme
  1. 13817 0
      api/demo_data/calendar/calendar.json
  2. 4 0
      api/homepage/calendar.php

Dosya farkı çok büyük olduğundan ihmal edildi
+ 13817 - 0
api/demo_data/calendar/calendar.json


+ 4 - 0
api/homepage/calendar.php

@@ -87,6 +87,10 @@ trait CalendarHomepageItem
 	
 	public function getCalendar()
 	{
+		if ($this->demo) {
+			// for now, we will return all data - soon we will break out between all services
+			return $this->demoData('calendar/calendar.json');
+		}
 		$startDate = date('Y-m-d', strtotime("-" . $this->config['calendarStart'] . " days"));
 		$endDate = date('Y-m-d', strtotime("+" . $this->config['calendarEnd'] . " days"));
 		$icalCalendarSources = array();

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor