From 004a1a2e91c72f9b1b7ca964fe20cd6a1a6e68a6 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 10 Apr 2018 15:47:45 +0200 Subject: Add support for calendar in the teststore --- views/calendar/main.qml | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'views') diff --git a/views/calendar/main.qml b/views/calendar/main.qml index 3cce9adf..d2bdc1c3 100644 --- a/views/calendar/main.qml +++ b/views/calendar/main.qml @@ -32,15 +32,37 @@ ApplicationWindow { Component.onCompleted: { var initialState = { accounts: [{ - id: "account1", - name: "Test Account" - }], + id: "account1", + name: "Test Account" + }], identities: [{ - account: "account1", - name: "Test Identity", - address: "identity@example.org" - }], - resources: [] + account: "account1", + name: "Test Identity", + address: "identity@example.org" + }], + resources: [{ + id: "caldavresource", + account: "account1", + type: "caldav", + }], + calendars: [{ + id: "calendar1", + name: "Test Calendar", + events: [ + { + "summary": "Test Event1", + "description": "This is test event #1", + "starts": "2018-04-10T14:03:00", + "ends": "2018-04-10T17:03:00", + }, + { + "summary": "Test Event1", + "description": "This is test event #1", + "starts": "2018-04-11T09:03:00", + "ends": "2018-04-11T14:03:00", + }, + ], + }], } TestStore.setup(initialState) } -- cgit v1.2.3