diff --git a/UI/DataFormats/Time log viewer/timelogdata format.js b/UI/DataFormats/Time log viewer/timelogdata format.js new file mode 100644 index 0000000..ee7f556 --- /dev/null +++ b/UI/DataFormats/Time log viewer/timelogdata format.js @@ -0,0 +1,75 @@ +//so the user gets this data from /timelogs?userId=x +//however, given the data below could be over many years and therefore, thousands of data points.. some consideration should be given for reduced format. +// consideration should be to have a calendarWeek argument, i.e.: /timelogs?userId=x&calendarWeek=y. +// If no calendarWeek argument is provided, then it should default to the current calendarweek. +{ + availableYears: [2017], + data: [ + 2017: [ //year of the logs collection + 1:[ //calendar week of year. + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + } + ], + 2:[ + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + }, + { + LogId: n, + UserId: faker.random.number(maxUserCount), + Timestamp: faker.date.past(), + Direction: directions[faker.random.number(1)] + } + ] + ], + ] +} \ No newline at end of file