feat(instances): remove not working aff features
This commit is contained in:
parent
2787f051e0
commit
90d6b31264
@ -864,26 +864,11 @@ exports[`renders <Rule/> without throwing 1`] = `
|
|||||||
>
|
>
|
||||||
equalling
|
equalling
|
||||||
</option>
|
</option>
|
||||||
<option
|
|
||||||
value="not-equalling"
|
|
||||||
>
|
|
||||||
not equalling
|
|
||||||
</option>
|
|
||||||
<option
|
|
||||||
value="containing"
|
|
||||||
>
|
|
||||||
containing
|
|
||||||
</option>
|
|
||||||
<option
|
<option
|
||||||
value="starting"
|
value="starting"
|
||||||
>
|
>
|
||||||
starting with
|
starting with
|
||||||
</option>
|
</option>
|
||||||
<option
|
|
||||||
value="ending"
|
|
||||||
>
|
|
||||||
ending with
|
|
||||||
</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1726,26 +1711,11 @@ exports[`renders <Rule/> without throwing 2`] = `
|
|||||||
>
|
>
|
||||||
equalling
|
equalling
|
||||||
</option>
|
</option>
|
||||||
<option
|
|
||||||
value="not-equalling"
|
|
||||||
>
|
|
||||||
not equalling
|
|
||||||
</option>
|
|
||||||
<option
|
|
||||||
value="containing"
|
|
||||||
>
|
|
||||||
containing
|
|
||||||
</option>
|
|
||||||
<option
|
<option
|
||||||
value="starting"
|
value="starting"
|
||||||
>
|
>
|
||||||
starting with
|
starting with
|
||||||
</option>
|
</option>
|
||||||
<option
|
|
||||||
value="ending"
|
|
||||||
>
|
|
||||||
ending with
|
|
||||||
</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,14 +21,45 @@ const Values = touched => (
|
|||||||
<Margin right={1}>
|
<Margin right={1}>
|
||||||
<Select style={style} touched={touched} width={remcalc(130)} embedded>
|
<Select style={style} touched={touched} width={remcalc(130)} embedded>
|
||||||
<option value="equalling">equalling</option>
|
<option value="equalling">equalling</option>
|
||||||
<option value="not-equalling">not equalling</option>
|
|
||||||
<option value="containing">containing</option>
|
|
||||||
<option value="starting">starting with</option>
|
<option value="starting">starting with</option>
|
||||||
<option value="ending">ending with</option>
|
|
||||||
</Select>
|
</Select>
|
||||||
</Margin>
|
</Margin>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// {rule.type === 'tag' ? (
|
||||||
|
// <Fragment>
|
||||||
|
// <FormGroup name="name" field={Field}>
|
||||||
|
// <Input
|
||||||
|
// style={style}
|
||||||
|
// onBlur={null}
|
||||||
|
// type="text"
|
||||||
|
// placeholder="name"
|
||||||
|
// small
|
||||||
|
// embedded
|
||||||
|
// required
|
||||||
|
// />
|
||||||
|
// <FormMeta small absolute />
|
||||||
|
// </FormGroup>
|
||||||
|
// <H5 style={style} inline noMargin>
|
||||||
|
// and value{' '}
|
||||||
|
// </H5>
|
||||||
|
// <FormGroup name="pattern" field={Field}>
|
||||||
|
// {Values(rule.pattern)}
|
||||||
|
// </FormGroup>
|
||||||
|
// <FormGroup name="value" field={Field}>
|
||||||
|
// <Input
|
||||||
|
// style={style}
|
||||||
|
// onBlur={null}
|
||||||
|
// type="text"
|
||||||
|
// placeholder="value"
|
||||||
|
// embedded
|
||||||
|
// required
|
||||||
|
// />
|
||||||
|
// <FormMeta small absolute />
|
||||||
|
// </FormGroup>
|
||||||
|
// </Fragment>
|
||||||
|
// ) : (
|
||||||
|
|
||||||
export const Rule = ({ valid, ...rule }) => (
|
export const Rule = ({ valid, ...rule }) => (
|
||||||
<Margin bottom={valid ? 4 : 8}>
|
<Margin bottom={valid ? 4 : 8}>
|
||||||
<Flex alignCenter wrap>
|
<Flex alignCenter wrap>
|
||||||
@ -75,40 +106,6 @@ export const Rule = ({ valid, ...rule }) => (
|
|||||||
<option value="tag">tag</option>
|
<option value="tag">tag</option>
|
||||||
</Select>
|
</Select>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
{rule.type === 'tag' ? (
|
|
||||||
<Fragment>
|
|
||||||
<FormGroup name="name" field={Field}>
|
|
||||||
<Input
|
|
||||||
style={style}
|
|
||||||
onBlur={null}
|
|
||||||
type="text"
|
|
||||||
placeholder="name"
|
|
||||||
small
|
|
||||||
embedded
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
<FormMeta small absolute />
|
|
||||||
</FormGroup>
|
|
||||||
<H5 style={style} inline noMargin>
|
|
||||||
and value{' '}
|
|
||||||
</H5>
|
|
||||||
<FormGroup name="pattern" field={Field}>
|
|
||||||
{Values(rule.pattern)}
|
|
||||||
</FormGroup>
|
|
||||||
<FormGroup name="value" field={Field}>
|
|
||||||
<Input
|
|
||||||
style={style}
|
|
||||||
onBlur={null}
|
|
||||||
type="text"
|
|
||||||
placeholder="value"
|
|
||||||
embedded
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
<FormMeta small absolute />
|
|
||||||
</FormGroup>
|
|
||||||
</Fragment>
|
|
||||||
) : (
|
|
||||||
<Fragment>
|
|
||||||
<FormGroup name="pattern" field={Field}>
|
<FormGroup name="pattern" field={Field}>
|
||||||
{Values(rule.pattern)}
|
{Values(rule.pattern)}
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
@ -123,8 +120,6 @@ export const Rule = ({ valid, ...rule }) => (
|
|||||||
/>
|
/>
|
||||||
<FormMeta absolute />
|
<FormMeta absolute />
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Fragment>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Margin>
|
</Margin>
|
||||||
);
|
);
|
||||||
|
@ -281,10 +281,7 @@ export default compose(
|
|||||||
|
|
||||||
const patterns = {
|
const patterns = {
|
||||||
equalling: value => value,
|
equalling: value => value,
|
||||||
'not-equalling': value => `/^!${value}$/`,
|
|
||||||
containing: value => `/${value}/`,
|
|
||||||
starting: value => `/^${value}/`,
|
starting: value => `/^${value}/`,
|
||||||
ending: value => `/${value}$/`
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const _name = identity === 'name' ? 'instance' : name;
|
const _name = identity === 'name' ? 'instance' : name;
|
||||||
|
Loading…
Reference in New Issue
Block a user