enable alternative configs

This commit is contained in:
Lachlan Kermode
2020-05-29 12:53:55 +02:00
parent 64087bf1e5
commit 3fc1ff4c28
3 changed files with 8 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class Map extends React.Component {
componentDidMount () {
if (this.map === null) {
// this.initializeMap()
this.initializeMap()
}
}

View File

@@ -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))}

View File

@@ -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) {