Skip to content

Instantly share code, notes, and snippets.

@binarypie
Created January 3, 2011 23:45
Show Gist options
  • Save binarypie/764188 to your computer and use it in GitHub Desktop.
Save binarypie/764188 to your computer and use it in GitHub Desktop.
/*
* Top level properites are things defined on a per-app basis
* An app can container many pages
* Pages can contain many components
* Components may exist on many pages
*
* */
{
id: 324324,
version: 12312312,
mode : 'social', // This controls the views
title: 'asdfasf',
author: 'foobar guy',
description: 'asdfasfdsafas',
tags: [],
timezone: "-8",
platformOptions: {
facebook : {
tabTitle: 'foobar tab',
fanPageId : '0',
isFanPageId : 324234,
isNotFanPAgeId : 234234234,
promptForAppPermissions: true
}
}
analytics: {
type: 'google',
code: 'foobar',
},
navigation: {
type: 'foo',
position: {}
},
style: {
theme: '',
font: {},
link: {},
background:{},
border:{}
},
components:[
{
type: 'badge',
unid: '1',
prop1: 'xxx',
prop2: 'xxx',
sharing: {}
},
{
type: 'ecard',
unid: '2',
prop1: 'xxx',
prop2: 'xxx',
sharing: {}
},
{
type: 'html',
unid: '3',
prop1: 'xxx',
prop2: 'xxx'
},
{
type: 'gifting',
unid: '4',
prop1: 'xxx',
prop2: 'xxx',
sharing: {}
},
{
type: 'image',
unid: '5',
prop1: 'xxx',
prop2: 'xxx'
}
],
pages:[
{
id: 234234,
label: 'This is my page 1',
excludeFromNavigation: false,
components: [1,5,6]
},
{
id: 234234,
label: 'This is my page 1',
excludeFromNavigation: true,
components: [2,5,7]
},
{
id: 234234,
label: 'This is my page 1',
excludeFromNavigation: false,
components: [3,4,8]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment