pwa = pwa || {};
pwa.main = pwa.main || {};
pwa.main.tpldata = pwa.main.tpldata || {};
pwa.main.tpl = pwa.main.tpl || {};
//menu
pwa.main.tpldata.sidebarAdminapixtribe = `static/components/adminapixtribe/sidebaradminapixtribe`;
// Custom data in user lang

//tremplate to store
pwa.main.tpl.adminapixtribe = 'static/components/adminapixtribe/adminapixtribe.mustache';
pwa.main.tpl.adminapixtribesysinfo = 'static/components/adminapixtribe/adminapixtribesysinfo.mustache';
pwa.main.tpl.adminapixtribeactivity = 'static/components/adminapixtribe/adminapixtribeactivity.mustache';

pwa.adminapixtribe = {};

pwa.adminapixtribe.init = () => {
	// Run back stuff to update data
}
pwa.adminapixtribe.sysinfoview = () => {
	const datasysinfo = {}; //request to get info and push them in template
	document.getElementById( 'maincontent' )
		.innerHTML = Mustache.render( pwa.state.data.tpl.adminapixtribesysinfo, datasysinfo );
}
pwa.adminapixtribe.activityview = () => {
	const dataactivity = {}; //request to get info and push them in template
	document.getElementById( 'maincontent' )
		.innerHTML = Mustache.render( pwa.state.data.tpl.adminapixtribeactivity, dataactivity );
}

pwa.adminapixtribe.tribeidview = () => {
	const datatribeid = {}; //request to get info and push them in template
	document.getElementById( 'maincontent' )
		.innerHTML = Mustache.render( pwa.state.data.tpl.adminapixtribe, datatribeid );
}
