UNPKG

twreporter-react

Version:

React-Redux site for The Reporter Foundation in Taiwan

29 lines (23 loc) 805 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.category = exports.tag = exports.article = undefined; var _normalizr = require('normalizr'); var author = new _normalizr.Schema('authors'); var category = new _normalizr.Schema('categories'); var tag = new _normalizr.Schema('tags'); var topic = new _normalizr.Schema('topics'); var article = new _normalizr.Schema('articles'); article.define({ categories: (0, _normalizr.arrayOf)(category), designers: (0, _normalizr.arrayOf)(author), engineers: (0, _normalizr.arrayOf)(author), photographers: (0, _normalizr.arrayOf)(author), writters: (0, _normalizr.arrayOf)(author), tags: (0, _normalizr.arrayOf)(tag), topics: topic }); exports.article = article; exports.tag = tag; exports.category = category;