commented out to try to push an empty soapbox payload into Admin API
This commit is contained in:
parent
78df407e1e
commit
0b9eeccbc3
1 changed files with 34 additions and 34 deletions
|
@ -121,45 +121,45 @@ class ConfigSoapbox extends ImmutablePureComponent {
|
|||
value: [{
|
||||
tuple: [':soapbox_fe',
|
||||
{
|
||||
logo: '',
|
||||
banner: '',
|
||||
brandColor: '',
|
||||
customCss: [],
|
||||
promoPanel: {
|
||||
items: [],
|
||||
},
|
||||
extensions: {
|
||||
patron: false,
|
||||
},
|
||||
defaultSettings: {
|
||||
autoPlayGif: false,
|
||||
},
|
||||
copyright: '',
|
||||
navlinks: {
|
||||
homeFooter: [],
|
||||
},
|
||||
// logo: '',
|
||||
// banner: '',
|
||||
// brandColor: '',
|
||||
// customCss: [],
|
||||
// promoPanel: {
|
||||
// items: [],
|
||||
// },
|
||||
// extensions: {
|
||||
// patron: false,
|
||||
// },
|
||||
// defaultSettings: {
|
||||
// autoPlayGif: false,
|
||||
// },
|
||||
// copyright: '',
|
||||
// navlinks: {
|
||||
// homeFooter: [],
|
||||
// },
|
||||
},
|
||||
],
|
||||
}],
|
||||
}],
|
||||
};
|
||||
obj.configs[0].value[0].tuple[1].logo = state.logo;
|
||||
obj.configs[0].value[0].tuple[1].banner = state.banner;
|
||||
obj.configs[0].value[0].tuple[1].brandColor = state.brandColor;
|
||||
obj.configs[0].value[0].tuple[1].extensions.patron = state.patronEnabled;
|
||||
obj.configs[0].value[0].tuple[1].defaultSettings.autoPlayGif = state.autoPlayGif;
|
||||
obj.configs[0].value[0].tuple[1].copyright = state.copyright;
|
||||
this.state.homeFooterItems.forEach((f) =>
|
||||
obj.configs[0].value[0].tuple[1].navlinks.homeFooter.push({ title: f.get('title'), url: f.get('url') })
|
||||
);
|
||||
this.state.promoItems.forEach((f) =>
|
||||
obj.configs[0].value[0].tuple[1].promoPanel.items.push({ icon: f.get('icon'), text: f.get('text'), url: f.get('url') })
|
||||
);
|
||||
this.state.customCssItems.forEach((f) =>
|
||||
obj.configs[0].value[0].tuple[1].customCss.push(f)
|
||||
);
|
||||
// console.log(JSON.stringify(obj, null, 2));
|
||||
console.log(JSON.stringify(obj.configs[0].value[0].tuple[1], null, 2));
|
||||
// obj.configs[0].value[0].tuple[1].logo = state.logo;
|
||||
// obj.configs[0].value[0].tuple[1].banner = state.banner;
|
||||
// obj.configs[0].value[0].tuple[1].brandColor = state.brandColor;
|
||||
// obj.configs[0].value[0].tuple[1].extensions.patron = state.patronEnabled;
|
||||
// obj.configs[0].value[0].tuple[1].defaultSettings.autoPlayGif = state.autoPlayGif;
|
||||
// obj.configs[0].value[0].tuple[1].copyright = state.copyright;
|
||||
// this.state.homeFooterItems.forEach((f) =>
|
||||
// obj.configs[0].value[0].tuple[1].navlinks.homeFooter.push({ title: f.get('title'), url: f.get('url') })
|
||||
// );
|
||||
// this.state.promoItems.forEach((f) =>
|
||||
// obj.configs[0].value[0].tuple[1].promoPanel.items.push({ icon: f.get('icon'), text: f.get('text'), url: f.get('url') })
|
||||
// );
|
||||
// this.state.customCssItems.forEach((f) =>
|
||||
// obj.configs[0].value[0].tuple[1].customCss.push(f)
|
||||
// );
|
||||
console.log(JSON.stringify(obj, null, 2));
|
||||
// console.log(JSON.stringify(obj.configs[0].value[0].tuple[1], null, 2));
|
||||
return JSON.stringify(obj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue