{"id":28754216,"url":"https://github.com/zeroasterisk/react-eltoro-revip-rules","last_synced_at":"2025-06-17T01:07:59.012Z","repository":{"id":57385155,"uuid":"97853834","full_name":"zeroasterisk/react-eltoro-revip-rules","owner":"zeroasterisk","description":"UI ElToro Revip Rules Component","archived":false,"fork":false,"pushed_at":"2017-11-09T14:29:07.000Z","size":533,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T04:20:05.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zeroasterisk.github.io/react-eltoro-revip-rules","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeroasterisk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-20T15:55:48.000Z","updated_at":"2017-07-20T15:57:55.000Z","dependencies_parsed_at":"2022-09-07T16:13:50.652Z","dependency_job_id":null,"html_url":"https://github.com/zeroasterisk/react-eltoro-revip-rules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeroasterisk/react-eltoro-revip-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-eltoro-revip-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-eltoro-revip-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-eltoro-revip-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-eltoro-revip-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeroasterisk","download_url":"https://codeload.github.com/zeroasterisk/react-eltoro-revip-rules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-eltoro-revip-rules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269440,"owners_count":22983646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-17T01:07:57.562Z","updated_at":"2025-06-17T01:07:58.984Z","avatar_url":"https://github.com/zeroasterisk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UI ElToro RevIp Rules Component\n\nThis is a [Uniforms](https://github.com/vazco/uniforms/) React Component.\n\n### Features\n\n- [x] infinite nesting capabilities for `and`, `or`, and `none` sets\n- [x] each \"node\" which is not a set supports `term` or `regex` and `max` and `min`\n- [x] expand / collapse functionality, per set and total\n- [x] read only, collapsed UI\n- [ ] bulk edit set (basically YAML support)\n\n### Demo\n\nSee a demo at\nhttps://zeroasterisk.github.io/react-eltoro-revip-rules\n\nRun yourself by:\n\n```\nnpm i\nnpm run storybook\n```\n\nThen see it at http://localhost:9010/\n\n### Usage\n\n```\n# install peer dependancies\nnpm i --save react prop-types uniforms uniforms-bootstrap4 react-number-editor lodash classnames\n# install package\nnpm i --save ui-eltoro-revip-rules\n```\n\n```jsx\nimport React from 'react';\nimport AutoForm from 'uniforms-bootstrap4/AutoForm';\nimport ErrorsField from 'uniforms-bootstrap4/ErrorsField';\nimport SubmitField from 'uniforms-bootstrap4/SubmitField';\nimport RevIpRules from 'ui-eltoro-revip-rules';\n\nconst MyComponent = () =\u003e (\n  \u003cAutoForm schema={schema} model={model} onSubmit={console.log}\u003e\n    \u003cRevIpRules name=\"conf.revIpRules.ruleSetAnd\" /\u003e\n    \u003cErrorsField /\u003e\n    \u003cSubmitField /\u003e\n  \u003c/AutoForm\u003e\n);\n```\n\nFor more information on usage, see [stories](./src/stories/index.js)\n\n### History / Changelog\n\n#### 0.0.3 Term/Regex only, max/min as Numbers\n- no longer store `useRegex` - now just switch `term` and `regex` values (clear other, to `null`)\n- now verifying that `max` and `min` values are numbers (including `0`)\n\n#### 0.0.2 Minor Cleanup\n#### 0.0.1 Initial Release\n\n### TODO - Extend - Abstract Nesting\n\nThe infinite nesting capabilities for `and`, `or`, and `none` sets is a compelling feature.\n\nIt is likely that we could take \"that\" and abstract away the \"node\" to a generic component,\nat which point, the set handling becomes a HOC wrapper for whatever you want to edit, in a nested structure.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Freact-eltoro-revip-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroasterisk%2Freact-eltoro-revip-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Freact-eltoro-revip-rules/lists"}