{"id":18399220,"url":"https://github.com/didilinkin/elf-ui","last_synced_at":"2026-04-30T20:33:23.848Z","repository":{"id":57222365,"uuid":"179977456","full_name":"didilinkin/elf-ui","owner":"didilinkin","description":"Elf, a React based component library for developers; 基于React的桌面组件库","archived":false,"fork":false,"pushed_at":"2019-04-26T13:38:55.000Z","size":2274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T08:20:50.885Z","etag":null,"topics":["commitizen","enzyme","jest","prettier","react","typescript"],"latest_commit_sha":null,"homepage":"https://didilinkin.github.io/elf-ui/","language":"TypeScript","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/didilinkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-07T14:27:23.000Z","updated_at":"2019-04-21T20:09:30.000Z","dependencies_parsed_at":"2022-09-07T16:14:24.886Z","dependency_job_id":null,"html_url":"https://github.com/didilinkin/elf-ui","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/didilinkin/elf-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didilinkin%2Felf-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didilinkin%2Felf-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didilinkin%2Felf-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didilinkin%2Felf-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didilinkin","download_url":"https://codeload.github.com/didilinkin/elf-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didilinkin%2Felf-ui/sbom","scorecard":{"id":341187,"data":{"date":"2025-08-11","repo":{"name":"github.com/didilinkin/elf-ui","commit":"d93b749da8a4ecd86cee6b3bd38f5a6d99f0757f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T05:56:25.470Z","repository_id":57222365,"created_at":"2025-08-18T05:56:25.471Z","updated_at":"2025-08-18T05:56:25.471Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["commitizen","enzyme","jest","prettier","react","typescript"],"created_at":"2024-11-06T02:26:09.227Z","updated_at":"2026-04-30T20:33:23.832Z","avatar_url":"https://github.com/didilinkin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elf-ui\nElf, a React based component library for developers; 基于React的桌面组件库\n\n[![npm version](https://img.shields.io/npm/v/elf-ui.svg)](https://www.npmjs.com/package/elf-ui)\n[![build status](https://img.shields.io/travis/didilinkin/elf-ui.svg?style=flat-square)](https://travis-ci.org/didilinkin/elf-ui)\n[![install size](https://badgen.net/packagephobia/install/elf-ui)](https://packagephobia.now.sh/result?p=elf-ui)\n[![languages](https://img.shields.io/github/languages/top/didilinkin/elf-ui.svg)](https://img.shields.io/github/languages/top/didilinkin/elf-ui.svg)\n[![type](https://img.shields.io/npm/types/elf-ui.svg)](https://img.shields.io/npm/types/elf-ui.svg)\n[![dependencies](https://img.shields.io/librariesio/github/didilinkin/elf-ui.svg)](https://img.shields.io/librariesio/github/didilinkin/elf-ui.svg)\n[![branch](https://img.shields.io/github/commit-status/didilinkin/elf-ui/master/12ec7b76291174cd41d9c7e5c297c4b5f835ce6d.svg)](https://img.shields.io/github/commit-status/didilinkin/elf-ui/master/12ec7b76291174cd41d9c7e5c297c4b5f835ce6d.svg)\n[![license](https://img.shields.io/npm/l/elf-ui.svg)](https://img.shields.io/npm/l/elf-ui.svg)\n[![node version](https://img.shields.io/node/v/elf-ui.svg)](https://img.shields.io/node/v/elf-ui.svg)\n\n\n[![stars](https://img.shields.io/github/stars/didilinkin/elf-ui.svg?style=social)](https://img.shields.io/github/stars/didilinkin/elf-ui.svg?style=social)\n\n## 特点介绍\n* 组件代码全部由 `Typescript` 编写, 支持类型检查\n* 测试覆盖率 `100%`\n* 支持 `国际化`, 支持自定义配置\n* 最小的体积 最好的性能\n\n\n## 与其他 UI组件库的差异\nElf 是个 很小的工具组件库\n\n当前的需求是 放置一些工作中沉淀下来的工具组件\n\n然后对其优化, 抽离业务代码, 使其具有通用性\n\n很多常见的 UI组件暂时不是开发的重点\n\n\n## Tips\n本组件库可以配合 其他 UI组件库使用, 如: `AntD`等等\n\n关于提交流程\n```bash\n# 添加更新内容\ngit add .\n\n# 编写 commit 说明, 不要使用 `git commit -m \"xxx\"`\ngit cz\n\n# 接下来根据 提示书写更新内容\n```\n\n\n## 不适用的场景\n* 本组件库只支持 `React`, 其他框架暂不支持\n* 非 `Typescript`编写的项目 (虽然可以支持， 但是很多检查, 提示功能都将失去作用)\n\n\n## 依赖安装 (请使用 `yarn` 安装依赖)\n```bash\n# node -v\nv10.7.0\n\n# yarn -v\n1.10.1\n\n# 环境依赖\nyarn global add conventional-changelog\nyarn global add umi\n\n# 初次安装会比较长时间, 请耐心等候\nyarn install\n```\n\n\n## TODO\n- [x] 组件库架子 搭建\n- [x] 测试 组件压缩体积\n- [x] 测试 example 安装打包后的包\n- [x] Github 库创建\n- [x] npmjs 发包\n- [x] 打包文档, 发布到 github线上\n- [x] 文档页 优化\n- [x] 文档页 美化, 添加代码着色\n- [x] 文档页 优化\n- [x] 项目 README 介绍优化\n  - [x] 特点介绍\n  - [x] 与其他 UI组件库的差异\n  - [x] 不适用的场景\n- [x] 流程规范化 - git hook配置\n  - [x] husky 功能\n  - [x] lint-staged 功能\n  - [x] eslint 配置 (替换 tslint)\n  - [x] 强制检查 lint\n  - [x] prettier 格式化\n  - [x] 规范化 commit - Commitizen\n- [ ] CI 配置 - travis\n- [ ] 添加组件\n\n\n## 组件库 `开发与维护` 参考文档\n[docz 操作文档(英文)](https://www.docz.site/)\n\n[umi-library 操作上手文档 - 渣渣灰手摸手带你开发一个组件库](https://github.com/clock157/blog/issues/1)\n\n[umi-library - API 相关配置](https://github.com/umijs/umi/tree/master/packages/umi-library)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidilinkin%2Felf-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidilinkin%2Felf-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidilinkin%2Felf-ui/lists"}