mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +03:00
enable alternative configs
This commit is contained in:
@@ -34,7 +34,7 @@ class Map extends React.Component {
|
||||
|
||||
componentDidMount () {
|
||||
if (this.map === null) {
|
||||
// this.initializeMap()
|
||||
this.initializeMap()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,11 @@ function TagListPanel ({
|
||||
className={'tag-filter'}
|
||||
style={{ marginLeft: `${depth * 20}px` }}
|
||||
>
|
||||
{/* <svg width='10' height='10'> */}
|
||||
{/* <g className='tag-inline'> */}
|
||||
{/* <path d='M0,-7.847549217020565L6.796176979388489,3.9237746085102825L-6.796176979388489,3.9237746085102825Z' transform='rotate(270)' /> */}
|
||||
{/* </g> */}
|
||||
{/* </svg> */}
|
||||
<Checkbox
|
||||
label={node.key}
|
||||
isActive={activeTags.includes(node.key)}
|
||||
@@ -38,7 +43,6 @@ function TagListPanel ({
|
||||
}
|
||||
|
||||
function renderTree (children) {
|
||||
/* NOTE: only render first layer of tags */
|
||||
return (
|
||||
<div>
|
||||
{Object.values(children).map(tag => createNodeComponent(tag, 1))}
|
||||
|
||||
@@ -9,7 +9,8 @@ const APP_DIR = path.resolve(__dirname, './src')
|
||||
const BUILD_DIR = path.resolve(__dirname, './build')
|
||||
|
||||
/** env variables from config.js */
|
||||
const envConfig = require('./config')
|
||||
const CONFIG = process.env.CONFIG || 'config.js'
|
||||
const envConfig = require('./' + CONFIG)
|
||||
const userConfig = {}
|
||||
const userFeatures = {}
|
||||
for (const k in envConfig) {
|
||||
|
||||
Reference in New Issue
Block a user