FlexitimeTracker/FlexitimeUI/flexitimeui/tools/mockData.js
Chris Watts 005da7ce2b create initial react project for flexitime v2 application.
includes .net webapi backend and ui test stubs
2021-03-22 14:54:42 +00:00

66 lines
976 B
JavaScript

const users = [
{
id: 1,
username: "wattsc",
firstName: "Chris",
lastName: "Watts",
hoursPerWeek: 37,
state: "In"
},
{
id: 2,
username: "lawrenb",
firstName: "Brett",
lastName: "Lawrence",
hoursPerWeek: 37,
state: "Remote"
},
{
id: 3,
username: "bustamae",
firstName: "Eugene",
lastName: "Bustamante",
hoursPerWeek: 37,
state: "Out"
}
];
const authors = [
{ id: 1, name: "Cory House" },
{ id: 2, name: "Scott Allen" },
{ id: 3, name: "Dan Wahlin" }
];
const newUser = {
id: null,
title: "",
authorId: null,
category: ""
};
const groups = [
{
id: 1,
name: "RTPS",
userCount: 4
},
{
id: 2,
name: "Embedded Rating",
userCount: 14
},
{
id: 3,
name: "Rules Engine",
userCount: 2
}
];
// Using CommonJS style export so we can consume via Node (without using Babel-node)
module.exports = {
newUser,
users,
authors,
groups
};