{"id":21875361,"url":"https://github.com/func-star/mor-lazyload-img","last_synced_at":"2026-05-11T16:02:16.255Z","repository":{"id":57302814,"uuid":"145970375","full_name":"func-star/mor-lazyload-img","owner":"func-star","description":"Mona系列 - React图片懒加载","archived":false,"fork":false,"pushed_at":"2018-08-28T11:59:49.000Z","size":174,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-16T03:19:51.796Z","etag":null,"topics":["lazyload","lazyload-images","lazyload-img","mona","monajs"],"latest_commit_sha":null,"homepage":"https://func-star.github.io/mor-lazyload-img/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/func-star.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-24T09:16:39.000Z","updated_at":"2018-09-14T07:17:32.000Z","dependencies_parsed_at":"2022-09-20T16:43:10.479Z","dependency_job_id":null,"html_url":"https://github.com/func-star/mor-lazyload-img","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/func-star/mor-lazyload-img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/func-star%2Fmor-lazyload-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/func-star%2Fmor-lazyload-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/func-star%2Fmor-lazyload-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/func-star%2Fmor-lazyload-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/func-star","download_url":"https://codeload.github.com/func-star/mor-lazyload-img/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/func-star%2Fmor-lazyload-img/sbom","scorecard":{"id":413747,"data":{"date":"2025-08-11","repo":{"name":"github.com/func-star/mor-lazyload-img","commit":"54a93f0650702a0f7cb5bb7d84e2b1d667587afa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/8 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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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-18T23:18:16.459Z","repository_id":57302814,"created_at":"2025-08-18T23:18:16.460Z","updated_at":"2025-08-18T23:18:16.460Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32902254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["lazyload","lazyload-images","lazyload-img","mona","monajs"],"created_at":"2024-11-28T07:15:32.433Z","updated_at":"2026-05-11T16:02:16.202Z","avatar_url":"https://github.com/func-star.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mona系列-React图片懒加载\n\n✨✨ 这是一款非常有用轻巧的 React 组件，你可以应用到任何需要滚动监听的场景\n\n[![npm](https://img.shields.io/npm/v/mor-lazyload-img.svg?style=flat-square)](https://www.npmjs.com/package/mor-lazyload-img) [![npm](https://img.shields.io/npm/dt/mor-lazyload-img.svg?style=flat-square)](https://www.npmjs.com/package/mor-lazyload-img)\n\n[demo页面](https://func-star.github.io/mor-lazyload-img/)\n\n\n## 依赖\n\n- [mor-scroll-watcher](https://www.npmjs.com/package/mor-scroll-watcher)\n\n\n## 代码演示\n```js\nimport React, { Component } from 'react'\nimport { findDOMNode } from 'react-dom'\nimport LazyloadImg from 'lazyload-img'\n\nconst LazyloadImgItem = LazyloadImg.item\n\nexport default class Demo extends Component {\n\tcomponentDidMount () {\n\t\tLazyloadImg.init({\n\t\t\twrap: findDOMNode(this.refs.wrap)\n\t\t\t// bottomEmit: -100,\n\t\t})\n\t}\n\n\trender () {\n\t\treturn (\n\t\t\t\u003cdiv className=\"wrap o-a full\" ref=\"wrap\"\u003e\n\t\t\t\t\u003cLazyloadImgItem\n\t\t\t\t\tclassName=\"a\"\n\t\t\t\t\twrapClassName=\"b\"\n\t\t\t\t\tsrc=\"images/min_10x10.jpg\"\n\t\t\t\t\tactualscr=\"images/min_500x500.jpg\" /\u003e\n\t\t\t\u003c/div\u003e\n\t\t)\n\t}\n}\n\n```\n\n## options\n\n| 参数 | 说明 | 类型 | 默认值 | 是否必传 |\n| --- | --- | --- | --- | :-- |\n| wrap | 滚动容器 | `DOM原生节点` | - | `yes` |\n| bottomEmit | 滚动距离底部的触发距离 | `Number` | `0` | `no` |\n\n## WatcherItem\n\n| 参数 | 说明 | 类型 | 默认值 | 可选项 |\n| --- | --- | --- | --- | :-- |\n| src | 替代图，体积很小的压缩图 | `String` | - | - |\n| actualscr | 真实要显示的图片 | `String` | - | - |\n| className | 绑定在img上的className属性 | `String` | - | - |\n| wrapClassName | 绑定在img父级容器上的className属性 | `String` | - | - |\n| wrapStyle | 绑定在img父级容器上的style属性 | `String` | - | - |\n| style | 绑定在img上的style属性 | `String` | - | - |\n\n\n## 联系我\n\n\u003e 微信：599321378\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunc-star%2Fmor-lazyload-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunc-star%2Fmor-lazyload-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunc-star%2Fmor-lazyload-img/lists"}