Skip to content
Snippets Groups Projects
dataMock.js 2.59 KiB
Newer Older
Alexandros Georgantas's avatar
Alexandros Georgantas committed
const book = {
  id: '0',
  title: 'Test Book',
Alexandros Georgantas's avatar
Alexandros Georgantas committed
}

const chapters = [
  {
    alignment: {
      left: false,
      right: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    author: '',
    book: book.id,
    comments: {},
    division: 'front',
    index: 0,
    kind: 'chapter',
    lock: null,
    progress: {
      style: 0,
      edit: 0,
      review: 0,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    source: '',
    status: 'unpublished',
    subCategory: 'component',
    title: 'Preface',
    trackChanges: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
  },
  {
    alignment: {
      left: false,
      right: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    author: '',
    book: book.id,
    comments: {},
    division: 'front',
    index: 1,
    kind: 'chapter',
    lock: null,
    progress: {
      style: 0,
      edit: 0,
      review: 0,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    source: '',
    status: 'unpublished',
    subCategory: 'component',
    title: 'Introduction',
    trackChanges: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
  },
  {
    alignment: {
      left: false,
      right: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    author: '',
    book: book.id,
    comments: {},
    division: 'body',
    index: 0,
    kind: 'chapter',
    lock: null,
    progress: {
      style: 0,
      edit: 0,
      review: 0,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    source: '',
    status: 'unpublished',
    subCategory: 'chapter',
    title: 'Chapter One',
    trackChanges: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
  },
  {
    alignment: {
      left: false,
      right: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    author: '',
    book: book.id,
    comments: {},
    division: 'body',
    index: 0,
    kind: 'chapter',
    lock: null,
    progress: {
      style: 0,
      edit: 0,
      review: 0,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    source: '',
    status: 'unpublished',
    subCategory: 'chapter',
    title: 'Chapter Two',
    trackChanges: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
  },
  {
    alignment: {
      left: false,
      right: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    author: '',
    book: book.id,
    comments: {},
    division: 'back',
    index: 0,
    kind: 'chapter',
    lock: null,
    progress: {
      style: 0,
      edit: 0,
      review: 0,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    source: '',
    status: 'unpublished',
    subCategory: 'component',
    title: 'Preface',
    trackChanges: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
  },
  {
    alignment: {
      left: false,
      right: false,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    author: '',
    book: book.id,
    comments: {},
    division: 'back',
    index: 0,
    kind: 'chapter',
    lock: null,
    progress: {
      style: 0,
      edit: 0,
      review: 0,
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    },
    source: '',
    status: 'unpublished',
    subCategory: 'component',
    title: 'Preface',
    trackChanges: false,
  },
Alexandros Georgantas's avatar
Alexandros Georgantas committed
]

const teams = []

const user = {
  teams: [],
  username: 'test-user',
const users = [user]
export { book, chapters, teams, user, users }