mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-09 20:08:32 +03:00
19 lines
499 B
JavaScript
19 lines
499 B
JavaScript
import BP from './lib/blueprinters'
|
|
|
|
function prefixedTabs (prefix, cfg) {
|
|
if (!cfg) cfg = {}
|
|
const prf = key => cfg[key] ? `${prefix}_` : ''
|
|
return {
|
|
[`${prf('events')}export_events`]: BP.deeprows,
|
|
[`${prf('associations')}export_associations`]: BP.deeprows,
|
|
[`${prf('sources')}export_sources`]: BP.deepids,
|
|
[`${prf('shapes')}export_shapes`]: BP.deeprows,
|
|
[`${prf('sites')}export_sites`]: BP.rows
|
|
}
|
|
}
|
|
|
|
export const timemap = {
|
|
default: prefixedTabs(),
|
|
prefixedTabs
|
|
}
|