make config cleaner

This commit is contained in:
FA Internal SSH
2020-06-17 08:37:49 +00:00
parent 1d0735ffb6
commit c273e681a4
2 changed files with 6 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import BP from './lib/blueprinters'
export function prefixedTabs (prefix, cfg) {
function prefixedTabs (prefix, cfg) {
if (!cfg) cfg = {}
const prf = key => cfg[key] ? `${prefix}_` : ''
return {
@@ -13,11 +13,7 @@ export function prefixedTabs (prefix, cfg) {
}
}
export const tabs = {
export_events: BP.deeprows,
export_categories: [BP.groups, BP.rows],
export_filters: BP.tree,
export_narratives: BP.rows,
export_sources: BP.deepids,
export_sites: BP.rows
export const timemap = {
default: prefixedTabs(),
prefixedTabs
}