import * as _ from 'lodash';
import * as React from 'react';

import { EnumValue } from '../types';

export interface EnumProps {
    values: EnumValue[];
}

export function Enum(props: EnumProps) {
    const values = _.map(props.values, (value, i) => {
        const defaultValueIfAny = !_.isUndefined(value.defaultValue) ? ` = ${value.defaultValue}` : '';
        return `\n\t${value.name}${defaultValueIfAny},`;
    });
    return (
        <span>
            {`{`}
            {values}
            <br />
            {`}`}
        </span>
    );
}
m.tw/~lantw44/git/freebsd-ports' title='freebsd-ports Git repository'/>
<link rel='vcs-git' href='https://phantom.tfcis.org/~lantw44/git/freebsd-ports' title='freebsd-ports Git repository'/>
<link rel='vcs-git' href='https://www.csie.ntu.edu.tw/~b01902062/git/freebsd-ports' title='freebsd-ports Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/~lantw44/cgit/cgit.cgi/'><img src='/~lantw44/cgit-data/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/~lantw44/cgit/cgit.cgi/'>index</a> : <a title='freebsd-ports' href='/~lantw44/cgit/cgit.cgi/freebsd-ports/'>freebsd-ports</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='dc4bf496bdbf9ac8bdc9674881abb14c321d0068'/><select name='h' onchange='this.form.submit();'>
<option value='2014Q1'>2014Q1</option>
<option value='2014Q2'>2014Q2</option>
<option value='2014Q3'>2014Q3</option>
<option value='2014Q4'>2014Q4</option>
<option value='2015Q1'>2015Q1</option>
<option value='2015Q2'>2015Q2</option>
<option value='2015Q3'>2015Q3</option>
<option value='2015Q4'>2015Q4</option>
<option value='2016Q1'>2016Q1</option>
<option value='2016Q2'>2016Q2</option>
<option value='2016Q3'>2016Q3</option>
<option value='2016Q4'>2016Q4</option>
<option value='2017Q1'>2017Q1</option>
<option value='2017Q2'>2017Q2</option>
<option value='2017Q3'>2017Q3</option>
<option value='2017Q4'>2017Q4</option>
<option value='2018Q1'>2018Q1</option>
<option value='2018Q2'>2018Q2</option>
<option value='2018Q3'>2018Q3</option>
<option value='2018Q4'>2018Q4</option>
<option value='2019Q1'>2019Q1</option>
<option value='2019Q2'>2019Q2</option>
<option value='2019Q3'>2019Q3</option>
<option value='2019Q4'>2019Q4</option>
<option value='2020Q1'>2020Q1</option>
<option value='2020Q2'>2020Q2</option>
<option value='2020Q3'>2020Q3</option>
<option value='2020Q4'>2020Q4</option>
<option value='2021Q1'>2021Q1</option>
<option value='2021Q2'>2021Q2</option>
<option value='2021Q3'>2021Q3</option>
<option value='2021Q4'>2021Q4</option>
<option value='2022Q1'>2022Q1</option>
<option value='2022Q2'>2022Q2</option>
<option value='2022Q3'>2022Q3</option>
<option value='2022Q4'>2022Q4</option>
<option value='2023Q1'>2023Q1</option>
<option value='2023Q2'>2023Q2</option>
<option value='2023Q3'>2023Q3</option>
<option value='2023Q4'>2023Q4</option>
<option value='2024Q1'>2024Q1</option>
<option value='2024Q2'>2024Q2</option>
<option value='2024Q3'>2024Q3</option>
<option value='2024Q4'>2024Q4</option>
<option value='2025Q1'>2025Q1</option>
<option value='2025Q2'>2025Q2</option>
<option value='2025Q3'>2025Q3</option>
<option value='branches/2014Q1'>branches/2014Q1</option>
<option value='branches/2014Q2'>branches/2014Q2</option>
<option value='branches/2014Q3'>branches/2014Q3</option>
<option value='branches/2014Q4'>branches/2014Q4</option>
<option value='branches/2015Q1'>branches/2015Q1</option>
<option value='branches/2015Q2'>branches/2015Q2</option>
<option value='branches/2015Q3'>branches/2015Q3</option>
<option value='branches/2015Q4'>branches/2015Q4</option>
<option value='branches/2016Q1'>branches/2016Q1</option>
<option value='branches/2016Q2'>branches/2016Q2</option>
<option value='branches/2016Q3'>branches/2016Q3</option>
<option value='branches/2016Q4'>branches/2016Q4</option>
<option value='branches/2017Q1'>branches/2017Q1</option>
<option value='branches/2017Q2'>branches/2017Q2</option>
<option value='branches/2017Q3'>branches/2017Q3</option>
<option value='branches/2017Q4'>branches/2017Q4</option>
<option value='branches/2018Q1'>branches/2018Q1</option>
<option value='branches/2018Q2'>branches/2018Q2</option>
<option value='branches/2018Q3'>branches/2018Q3</option>
<option value='branches/2018Q4'>branches/2018Q4</option>
<option value='branches/2019Q1'>branches/2019Q1</option>
<option value='branches/2019Q2'>branches/2019Q2</option>
<option value='branches/2019Q3'>branches/2019Q3</option>
<option value='branches/2019Q4'>branches/2019Q4</option>
<option value='branches/2020Q1'>branches/2020Q1</option>
<option value='branches/2020Q2'>branches/2020Q2</option>
<option value='branches/2020Q3'>branches/2020Q3</option>
<option value='branches/2020Q4'>branches/2020Q4</option>
<option value='branches/2021Q1'>branches/2021Q1</option>
<option value='branches/RELEASE_8_4_0'>branches/RELEASE_8_4_0</option>
<option value='branches/RELENG_2_1_0'>branches/RELENG_2_1_0</option>
<option value='branches/RELENG_2_2'>branches/RELENG_2_2</option>
<option value='branches/RELENG_9_1_0'>branches/RELENG_9_1_0</option>
<option value='branches/RELENG_9_2_0'>branches/RELENG_9_2_0</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3' selected='selected'>dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.15'>dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.15</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash.template-4.5.0'>dependabot/npm_and_yarn/devel/electron4/files/lodash.template-4.5.0</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/mixin-deep-1.3.2'>dependabot/npm_and_yarn/devel/electron4/files/mixin-deep-1.3.2</option>
<option value='main'>main</option>
<option value='master'>master</option>
<option value='svn_head'>svn_head</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD Ports (https://github.com/freebsd/freebsd-ports)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/about/?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/refs/?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports/log/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/tree/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/diff/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/stats/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports/log/math/blaze'>
<input type='hidden' name='h' value='dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3'/><input type='hidden' name='id' value='dc4bf496bdbf9ac8bdc9674881abb14c321d0068'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/log/?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/log/math?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>math</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/log/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068'>blaze</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/log/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=dc4bf496bdbf9ac8bdc9674881abb14c321d0068&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=821b60c5dda9947caea29759a041cb56125bb110'>Fix math/openblas and bump dependent ports</a></td><td>swills</td><td><span title='2020-01-30 22:17:44 +0800'>2020-01-30</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=659ee9d49f81cee6393cdd057216cd3ddbeb1880'>Undeprecate math/blaze and science/chrono per https://lists.freebsd.org/piper...</a></td><td>rene</td><td><span title='2020-01-01 19:30:49 +0800'>2020-01-01</span></td><td>1</td><td><span class='deletions'>-3</span>/<span class='insertions'>+0</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=76a6d550ffa31d61e5c4ee17a374043fa9dc1304'>Chase devel/openmp expiration:</a></td><td>rene</td><td><span title='2019-12-31 23:43:20 +0800'>2019-12-31</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=837be5f8be2597d837d1373625cb283eb9865e7b'>devel/boost-*: update to 1.72.0</a></td><td>jbeich</td><td><span title='2019-12-12 01:53:48 +0800'>2019-12-12</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=16cc1a10dfd8ff4d6a5046cd211ad1aca46d83d5'>devel/openmp: update to 9.0.0</a></td><td>jbeich</td><td><span title='2019-09-22 02:59:57 +0800'>2019-09-22</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=f38e8d33c608eec7a94aa6fdfc46714d4181d246'>devel/boost-*: update to 1.71.0</a></td><td>jbeich</td><td><span title='2019-08-19 23:35:27 +0800'>2019-08-19</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=4a344e94972b109670f45f04efe4002b50981676'>Bump PORTREVISION for ports depending on the canonical version of GCC</a></td><td>gerald</td><td><span title='2019-07-27 04:46:53 +0800'>2019-07-27</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=1b462f014cbfe73b26ffca38a0c1ce91a4a136f2'>Chase devel/openmp expiration</a></td><td>antoine</td><td><span title='2019-05-28 04:55:56 +0800'>2019-05-28</span></td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+3</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports/commit/math/blaze?h=dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&amp;id=1a20a542d3278974d034038695b89a1831e6cf73'>devel/openmp: phase out</a></td><td>jbeich</td><td><span title='2019-05-09 00:05:53 +0800'>2019-05-09</span></td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+1</span></td></tr>
