const reduxish = require('./lib/reduxish');
const way = require('senseway');

const renderers = [
  require('./channelTitleEditor/render'),
  require('./channelTitles/render'),
  require('./timelineViewer/render')
];

const reducers = [
  require('./channelTitleEditor/reduce'),
  require('./channelTitles/reduce'),
  require('./timelineViewer/reduce')
];

const u = null;

module.exports = () => {
  reduxish({
    defaultModel: {
      timeline: [
        [1, 1, 1, 1, u, u, u],
        [u, 1, 1, 1, u, u, u],
        [u, 1, 1, u, u, u, u],
        [u, 1, 1, 1, u, u, u],
        [0, 1, 0, 0, u, u, u],
        [0, 0, 0, 0, u, u, u],
      ],
      frames: [
        { title: '1.6.' },
        { title: '2.6.' },
        { title: '3.6.' },
        { title: '4.6.' },
        { title: '5.6.' },
        { title: '6.6.' },
        { title: '7.6.' }
      ],
      channels: [ // Dimensions
        {
          title: 'Aamiainen',
          backgroundColor: '#8A1C82'
        },
        {
          title: 'Ulkoilu',
          backgroundColor: '#BF0F73'
        },
        {
          title: 'Sarjan katselu',
          backgroundColor: '#201969'
        },
        {
          title: 'Kasvien kastelu',
          backgroundColor: '#223E85'
        },
        {
          title: 'Kiipeily',
          backgroundColor: '#223E85'
        },
        {
          title: 'Uiminen',
          backgroundColor: '#223E85'
        }
      ],
      channelOnEdit: null,
      frameOnEdit: null
    },
    storageName: 'future-model',
    rootElementId: 'content',
    renderers: renderers,
    reducers: reducers
  })
};

const reduxish = require('./lib/reduxish');
const way = require('senseway');

const renderers = [
  require('./channelTitleEditor/render'),
  require('./channelTitles/render'),
  require('./timelineViewer/render')
];

const reducers = [
  require('./channelTitleEditor/reduce'),
  require('./channelTitles/reduce'),
  require('./timelineViewer/reduce')
];

const u = null;

module.exports = () => {
  reduxish({
    defaultModel: {
      timeline: [
        [1, 1, 1, 1, u, u, u],
        [u, 1, 1, 1, u, u, u],
        [u, 1, 1, u, u, u, u],
        [u, 1, 1, 1, u, u, u],
        [0, 1, 0, 0, u, u, u],
        [0, 0, 0, 0, u, u, u],
        [u, 0, 1, 1, u, u, u],
      ],
      frames: [
        { title: '1.6.' },
        { title: '2.6.' },
        { title: '3.6.' },
        { title: '4.6.' },
        { title: '5.6.' },
        { title: '6.6.' },
        { title: '7.6.' }
      ],
      channels: [ // Dimensions
        {
          title: 'Aamiainen',
          backgroundColor: '#8A1C82'
        },
        {
          title: 'Ulkoilu',
          backgroundColor: '#BF0F73'
        },
        {
          title: 'Sarjan katselu',
          backgroundColor: '#201969'
        },
        {
          title: 'Kasvien kastelu',
          backgroundColor: '#223E85'
        },
        {
          title: 'Kiipeily',
          backgroundColor: '#4f92a6'
        },
        {
          title: 'Uiminen',
          backgroundColor: '#38ab73'
        },
        {
          title: 'Hyvä fiilis',
          backgroundColor: '#f0c432'
        }
      ],
      channelOnEdit: null,
      frameOnEdit: null
    },
    storageName: 'future-model',
    rootElementId: 'content',
    renderers: renderers,
    reducers: reducers
  })
};

Update default timeline colors