Repository URL to install this package:
|
Version:
1.2.14 ▾
|
import { getArray } from 'composition'
const bike = {
name: 'Bikes',
link: '#',
image: '//ctiatere.sirv.com/images/clp/Cat_294x200_Cycling_01.png',
subcategories: [
{
name: 'Mountain Bikes',
link: '#',
},
{
name: 'Road Bikes',
link: '#',
},
{
name: 'Hybrid Bikes',
link: '#',
},
{
name: 'Specialty Bikes',
link: '#',
},
{
name: "Kids' Bikes",
link: '#',
},
],
}
// Undershirts CLP - 2nd Level - Men https://raderain.sirv.com/T-Giant/346D_220014210_alt2.png
// Undershirts CLP - 2nd Level - Women https://raderain.sirv.com/T-Giant/358D_220021310_alt2.png
// Undershirts CLP - 2nd Level - Boys https://raderain.sirv.com/T-Giant/037D_210001110_alt2.png
// Undershirts CLP - 2nd Level - Girls https://raderain.sirv.com/T-Giant/596D_140002110_alt2.png
// Undershirts CLP - 2nd Level - Toddler https://raderain.sirv.com/T-Giant/346D_220014210_alt2.png
//
// Plain Tees CLP - 2nd Level - Men https://raderain.sirv.com/T-Giant/391D_220037110_alt2.png
// Plain Tees CLP - 2nd Level - Women https://raderain.sirv.com/T-Giant/413D_220045110_alt2.png
// Plain Tees CLP - 2nd Level - Boys https://raderain.sirv.com/T-Giant/581D_250012110_alt2.png
// Plain Tees CLP - 2nd Level - Girls https://raderain.sirv.com/T-Giant/596D_140002110_alt2.png
// Plain Tees CLP - 2nd Level - Toddler https://raderain.sirv.com/T-Giant/134D_210044510_alt2.png
//
// Workwear CLP - 2nd Level - Men https://raderain.sirv.com/T-Giant/164D_310011110_alt2.png
// Workwear CLP - 2nd Level - Women https://raderain.sirv.com/T-Giant/185D_310021110_alt2.png
// Workwear CLP - 2nd Level - Boys https://raderain.sirv.com/T-Giant/152D_310005110_alt2.png
// Workwear CLP - 2nd Level - Girls https://raderain.sirv.com/T-Giant/198D_310026110_alt2.png
//
// Fashion CLP - 2nd Level - Men https://raderain.sirv.com/T-Giant/206D_410003110_alt2.png
// Fashion CLP - 2nd Level - Women https://raderain.sirv.com/T-Giant/448D_420001110_alt2.png
//
// Graphic Tees CLP - 2nd Level - Men https://raderain.sirv.com/T-Giant/271D_510013110_alt2.png
// Graphic Tees CLP - 2nd Level - Women https://raderain.sirv.com/T-Giant/277D_510016110_alt2.png
// Graphic Tees CLP - 2nd Level - Boys https://raderain.sirv.com/T-Giant/269D_510012110_alt2.png
// Graphic Tees CLP - 2nd Level - Girls https://raderain.sirv.com/T-Giant/641D_560003110_alt2.png
// Graphic Tees CLP - 2nd Level - Toddler https://raderain.sirv.com/T-Giant/591D_550003110_alt2.png
export const categories = {
children: {
categories: [
{
identifier: 'undershirts',
image: 'https://raderain.sirv.com/T-Giant/Cat_Undershirts_588x400.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'undershirtsgirls',
image:
'https://raderain.sirv.com/T-Giant/037D_210001110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'undershirtsgirlslongsleeve',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'undershirtsgirls',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265784782',
status: '1',
},
},
},
],
},
name: 'Girls',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirts' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '4' }] }],
starttime: '1521089203800',
status: '1',
},
},
},
{
identifier: 'undershirtsboys',
image:
'https://raderain.sirv.com/T-Giant/596D_140002110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'undershirtsboyslongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'undershirtsboys',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521266010162',
status: '1',
},
},
},
{
identifier: 'undershirtsboysshortsleeve',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'undershirtsboys',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265811606',
status: '1',
},
},
},
],
},
name: 'Boys',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirts' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '5' }] }],
starttime: '1521089214225',
status: '1',
},
},
},
{
identifier: 'undershirtsmen',
image:
'https://raderain.sirv.com/T-Giant/346D_220014210_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'undershirtsmenlongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirtsmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521227975874',
status: '1',
},
},
},
{
identifier: 'undershirtsmenshortsleeve',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirtsmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265406384',
status: '1',
},
},
},
{
identifier: 'undershirtsmensleeveless',
navtype: 'identifier',
name: 'Sleeveless',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirtsmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '4' }] },
],
starttime: '1521265530280',
status: '1',
},
},
},
],
},
name: 'Men',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirts' },
],
},
state: { starttime: '1521089022343', status: '1' },
},
},
{
identifier: 'undershirtswomen',
image:
'https://raderain.sirv.com/T-Giant/358D_220021310_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'undershirtswomenlongsleeve',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'undershirtswomen',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265461097',
status: '1',
},
},
},
// {
// identifier: 'undershirtswomen?selectedFacets=[{"key":"Sleeve%20Length","value":["3/4%20sleeve"]}]',
// navtype: 'identifier',
// name: '3/4 Sleeve',
// type: 'productlist',
// properties: {
// iteminfo: {
// categoryids: [
// {
// label: 'parent category',
// value: 'undershirtswomen',
// },
// ],
// },
// state: {
// sorting: [
// { options: [{ label: 'sequence', value: '2' }] },
// ],
// starttime: '1521265588517',
// status: '1',
// },
// },
// },
],
},
name: 'Women',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'undershirts' },
],
},
state: { starttime: '1521089057820', status: '1' },
},
},
],
},
name: 'Undershirts',
type: 'category',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'top' }],
videos: [
{
label: 'Video URL',
value:
'//raderain-cdn.sirv.com/T-Giant/Video/Video_T-Giant_Skateboadring.mp4',
},
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '1' }] }],
starttime: '1521089022652',
status: '1',
},
},
},
{
identifier: 'plaintees',
image: '//raderain.sirv.com/T-Giant/Cat_PlainTees_588x400.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'plainteesmen',
image: '//raderain.sirv.com/T-Giant/391D_220037110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'plainteesmenlongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteesmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265417092',
status: '1',
},
},
},
// {
// identifier: 'plainteesmen?selectedFacets=[{"key":"Sleeve%20Length","value":["3/4%20sleeve"]}]',
// image: '//',
// navtype: 'identifier',
// name: '3/4 Sleeve',
// type: 'productlist',
// properties: {
// iteminfo: {
// categoryids: [
// { label: 'parent category', value: 'plainteesmen' },
// ],
// },
// state: {
// sorting: [
// { options: [{ label: 'sequence', value: '2' }] },
// ],
// starttime: '1521265464483',
// status: '1',
// },
// },
// },
{
identifier: 'plainteesmenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteesmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265399431',
status: '1',
},
},
},
{
identifier: 'plainteesmensleeveless',
image: '//',
navtype: 'identifier',
name: 'Sleeveless',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteesmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '4' }] },
],
starttime: '1521265555091',
status: '1',
},
},
},
],
},
name: 'Men',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plaintees' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '1' }] }],
starttime: '1521089029608',
status: '1',
},
},
},
{
identifier: 'plainteeswomen',
image: '//raderain.sirv.com/T-Giant/413D_220045110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'plainteeswomenlongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteeswomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265746396',
status: '1',
},
},
},
// {
// identifier: 'plainteeswomen?selectedFacets=[{"key":"Sleeve%20Length","value":["3/4%20sleeve"]}]',
// image: '//',
// navtype: 'identifier',
// name: '3/4 Sleeve',
// type: 'productlist',
// properties: {
// iteminfo: {
// categoryids: [
// { label: 'parent category', value: 'plainteeswomen' },
// ],
// },
// state: {
// sorting: [
// { options: [{ label: 'sequence', value: '2' }] },
// ],
// starttime: '1521265964512',
// status: '1',
// },
// },
// },
{
identifier: 'plainteeswomenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteeswomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265395968',
status: '1',
},
},
},
{
identifier: 'plainteeswomensleeveless',
image: '//',
navtype: 'identifier',
name: 'Sleeveless',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteeswomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '4' }] },
],
starttime: '1521265825345',
status: '1',
},
},
},
],
},
name: 'Women',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plaintees' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '2' }] }],
starttime: '1521089027974',
status: '1',
},
},
},
{
identifier: 'plainteesgirls',
image: '//raderain.sirv.com/T-Giant/581D_250012110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'plainteesgirlsshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteesgirls' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265392487',
status: '1',
},
},
},
{
identifier: 'plainteesgirlssleeveless',
image: '//',
navtype: 'identifier',
name: 'Sleeveless',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteesgirls' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '4' }] },
],
starttime: '1521265743360',
status: '1',
},
},
},
],
},
name: 'Girls',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plaintees' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '4' }] }],
starttime: '1521089026692',
status: '1',
},
},
},
{
identifier: 'plainteesboys',
image: '//raderain.sirv.com/T-Giant/596D_140002110_alt2.png',
navtype: 'identifier',
children: {
categories: [
// {
// identifier: 'plainteesboys?selectedFacets=[{"key":"Sleeve%20Length","value":["3/4%20sleeve"]}]',
// image: '//',
// navtype: 'identifier',
// name: '3/4 Sleeve',
// type: 'productlist',
// properties: {
// iteminfo: {
// categoryids: [
// { label: 'parent category', value: 'plainteesboys' },
// ],
// },
// state: {
// sorting: [
// { options: [{ label: 'sequence', value: '2' }] },
// ],
// starttime: '1521265757135',
// status: '1',
// },
// },
// },
{
identifier: 'plainteesboysshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plainteesboys' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265853822',
status: '1',
},
},
},
],
},
name: 'Boys',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'plaintees' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '5' }] }],
starttime: '1521089191611',
status: '1',
},
},
},
],
},
name: 'Plain Tees',
type: 'category',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'top' }],
videos: [
{
label: 'Video URL',
value:
'//raderain-cdn.sirv.com/T-Giant/Video/Video_T-Giant_Bike.mp4',
},
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '2' }] }],
starttime: '1521089026934',
status: '1',
},
},
},
{
identifier: 'workwear',
image: '//raderain.sirv.com/T-Giant/Cat_Workwear_588x400.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'workwearmen',
image: '//raderain.sirv.com/T-Giant/164D_310011110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'workwearmenlongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'workwearmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265435166',
status: '1',
},
},
},
{
identifier: 'workwearmenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'workwearmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265385645',
status: '1',
},
},
},
],
},
name: 'Men',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'workwear' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '1' }] }],
starttime: '1521089023992',
status: '1',
},
},
},
{
identifier: 'workwearwomen',
image: '//raderain.sirv.com/T-Giant/185D_310021110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'workwearwomenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'workwearwomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265807712',
status: '1',
},
},
},
],
},
name: 'Women',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'workwear' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '2' }] }],
starttime: '1521089212875',
status: '1',
},
},
},
],
},
name: 'Workwear',
type: 'category',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'top' }],
videos: [
{
label: 'Video URL',
value:
'//raderain-cdn.sirv.com/T-Giant/Video/Video_T-Giant_Carpenter.mp4',
},
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '3' }] }],
starttime: '1521089024288',
status: '1',
},
},
},
{
identifier: 'fashion',
image: '//raderain.sirv.com/T-Giant/Cat_Fashion_588x400.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'fashionwomen',
image: '//raderain.sirv.com/T-Giant/448D_420001110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'fashionwomenlongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'fashionwomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265985736',
status: '1',
},
},
},
{
identifier: 'fashionwomenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'fashionwomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265770851',
status: '1',
},
},
},
{
identifier: 'fashionwomensleeveless',
image: '//',
navtype: 'identifier',
name: 'Sleeveless',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'fashionwomen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '4' }] },
],
starttime: '1521265389145',
status: '1',
},
},
},
],
},
name: 'Women',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'fashion' }],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '2' }] }],
starttime: '1521089025383',
status: '1',
},
},
},
{
identifier: 'fashionmen',
image: '//raderain.sirv.com/T-Giant/206D_410003110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'fashionmenlongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'fashionmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265496765',
status: '1',
},
},
},
{
identifier: 'fashionmenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'fashionmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265409796',
status: '1',
},
},
},
],
},
name: 'Men',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'fashion' }],
},
state: { starttime: '1521089034241', status: '1' },
},
},
],
},
name: 'Fashion',
type: 'category',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'top' }],
videos: [
{
label: 'Video URL',
value:
'//raderain-cdn.sirv.com/T-Giant/Video/Video_T-Giant_3Girls.mp4',
},
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '4' }] }],
starttime: '1521089025642',
status: '1',
},
},
},
{
identifier: 'logographic',
image: '//raderain.sirv.com/T-Giant/Cat_Graphic_588x400.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'logographicmen',
image: '//raderain.sirv.com/T-Giant/271D_510013110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'logographicmenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'logographicmen' },
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265428306',
status: '1',
},
},
},
],
},
name: 'Men',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'logographic' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '1' }] }],
starttime: '1521089042543',
status: '1',
},
},
},
{
identifier: 'logographicwomen',
image: '//raderain.sirv.com/T-Giant/277D_510016110_alt2.png',
navtype: 'identifier',
children: {
categories: [
// {
// identifier: 'logographicwomen?selectedFacets=[{"key":"Sleeve%20Length","value":["3/4%20sleeve"]}]',
// image: '//',
// navtype: 'identifier',
// name: '3/4 Sleeve',
// type: 'productlist',
// properties: {
// iteminfo: {
// categoryids: [
// {
// label: 'parent category',
// value: 'logographicwomen',
// },
// ],
// },
// state: {
// sorting: [
// { options: [{ label: 'sequence', value: '2' }] },
// ],
// starttime: '1521265815082',
// status: '1',
// },
// },
// },
{
identifier: 'logographicwomenshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'logographicwomen',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265774182',
status: '1',
},
},
},
{
identifier: 'logographicwomensleeveless',
image: '//',
navtype: 'identifier',
name: 'Sleeveless',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'logographicwomen',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '4' }] },
],
starttime: '1521265900543',
status: '1',
},
},
},
],
},
name: 'Women',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'logographic' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '2' }] }],
starttime: '1521089199091',
status: '1',
},
},
},
{
identifier: 'logographicgirls',
image: '//raderain.sirv.com/T-Giant/269D_510012110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'logographicgirlsshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'logographicgirls',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265767748',
status: '1',
},
},
},
],
},
name: 'Girls',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'logographic' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '4' }] }],
starttime: '1521089185693',
status: '1',
},
},
},
{
identifier: 'logographicboys',
image: '//raderain.sirv.com/T-Giant/641D_560003110_alt2.png',
navtype: 'identifier',
children: {
categories: [
{
identifier: 'logographicboyslongsleeve',
image: '//',
navtype: 'identifier',
name: 'Long Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'logographicboys',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '1' }] },
],
starttime: '1521265953802',
status: '1',
},
},
},
{
identifier: 'logographicboysshortsleeve',
image: '//',
navtype: 'identifier',
name: 'Short Sleeve',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{
label: 'parent category',
value: 'logographicboys',
},
],
},
state: {
sorting: [
{ options: [{ label: 'sequence', value: '3' }] },
],
starttime: '1521265832359',
status: '1',
},
},
},
],
},
name: 'Boys',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'logographic' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '5' }] }],
starttime: '1521089223606',
status: '1',
},
},
},
/* {
identifier: 'logographictoddlers',
navtype: 'identifier',
name: 'Toddlers',
type: 'productlist',
properties: {
iteminfo: {
categoryids: [
{ label: 'parent category', value: 'logographic' },
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '5' }] }],
starttime: '1521281288109',
status: '1',
},
},
},*/
],
},
name: 'Logo/Graphic',
type: 'category',
properties: {
iteminfo: {
categoryids: [{ label: 'parent category', value: 'top' }],
videos: [
{
label: 'Video URL',
value:
'//raderain-cdn.sirv.com/T-Giant/Video/Video_T-Giant_Graffiti.mp4',
},
],
},
state: {
sorting: [{ options: [{ label: 'sequence', value: '5' }] }],
starttime: '1521089042766',
status: '1',
},
},
},
],
},
type: 'category',
}
/**
* categories
* categoryIdentifierList
* flatCategoryList
*/
/**
* @todo doubly linked list someday
*/
export const categoryIdentifierList = []
const top = getArray(categories, 'children.categories')
/**
* .map .map .map
* .push .push .push
* .parent .parent .parent
*/
const list = top.map(category => {
categoryIdentifierList.push(category.identifier)
category.parent = undefined
const sub = getArray(category, 'children.categories')
return sub.map(subcategory => {
categoryIdentifierList.push(subcategory.identifier)
subcategory.parent = sub
const subsub = getArray(subcategory, 'children.categories')
return subsub.map(subsubsub => {
categoryIdentifierList.push(subsubsub.identifier)
subsubsub.parent = subsub
return subsubsub
})
})
})
// @todo import from chain
const flatten = x => Array.prototype.concat.apply([], x)
export const flatCategoryList = flatten(flatten(list).map(flatten))
export const categoryVal = {
imageUrl:
'//ctiatere.sirv.com/images/clp/Cat_Bkgd_Image_Cycling_01.jpg?format=webp',
backgroundImage: `url(//ctiatere.sirv.com/images/clp/Cat_Bkgd_Image_Cycling_01.jpg)`,
lightfadeGradientColor: '#f5f5f5',
darkfadeGradientColor: '#2c2c2c',
leftImageSource:
'//raderain-cdn.sirv.com/Images/Assets_Promo/images/7a0698697e23f9ad76c1471a6763d909eab66b06.png?format=webp',
rightImageSource:
'//raderain-cdn.sirv.com/Images/promotions/Sm_Promo_ViewAll_PlainTees.png?format=webp',
}
export default categories