{"id":19345562,"url":"https://github.com/future-team/ph-swipe","last_synced_at":"2026-06-22T09:31:47.769Z","repository":{"id":57153619,"uuid":"59658611","full_name":"future-team/ph-swipe","owner":"future-team","description":":whale2:基于react开发的移动端(PC端)滑动组件","archived":false,"fork":false,"pushed_at":"2016-06-03T03:26:57.000Z","size":5164,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-05-26T09:32:42.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/future-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-25T11:46:25.000Z","updated_at":"2018-01-30T15:23:44.000Z","dependencies_parsed_at":"2022-09-07T08:41:17.919Z","dependency_job_id":null,"html_url":"https://github.com/future-team/ph-swipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/future-team/ph-swipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-swipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-swipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-swipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-swipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/ph-swipe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fph-swipe/sbom","scorecard":{"id":414730,"data":{"date":"2025-08-11","repo":{"name":"github.com/future-team/ph-swipe","commit":"4188c3802a7b2c171a1a5f3e0060659310a08d78"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/23 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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-MIT:0","Info: FSF or OSI recognized license: MIT License: LICENSE-MIT:0"],"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"}},{"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"}}]},"last_synced_at":"2025-08-18T23:32:39.541Z","repository_id":57153619,"created_at":"2025-08-18T23:32:39.541Z","updated_at":"2025-08-18T23:32:39.541Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34643551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2024-11-10T04:07:02.538Z","updated_at":"2026-06-22T09:31:47.752Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ph-swipe\n\u003e 基于react的滑动组件[a swipe module based on react]\n   \n\u003e 只需要一个配置文件就可以轻松完成照片浏览组件搭建[one prop object to solve everything]\n\n## UI展示\n\u003e![ph-swipe展示](/example/img/ph-swipe.gif)\n\n## 命令\n``` bash\n\tgit clone https://github.com/future-team/ph-swipe.git\n\t=== or ===\n    npm install ph-swipe\n```\n## usage[使用方式]\n```javascript\n   import React,{Component} from 'react';\n   import PhSwipe from 'ph-swipe';\n   import {render,findDOMNode} from 'react-dom';\n   export default class PhSwipeDemo extends Component {\n       constructor(props, context) {\n           super(props, context);\n       }\n       render(){\n           let imgArr=[\n               'http://img5.imgtn.bdimg.com/it/u=1478257864,2882073929\u0026fm=21\u0026gp=0.jpg',\n               'http://www.bz55.com/uploads/allimg/150309/139-150309101F7.jpg',\n               'http://img2.zol.com.cn/product/95/20/ceSFw3e3TqLNM.jpg',\n               'http://img5.imgtn.bdimg.com/it/u=1432870041,1164599966\u0026fm=21\u0026gp=0.jpg'\n           ];   \n           /**\n            * 请手动左右滑动[manual swipe]\n            */\n           var Node2Options={\n               imgArr:imgArr,\n               direction:'horizontal',//滑动方向\n               loop:false//是否滑动循环\n           };\n           /**\n            * 测试横向滑动模块[auto swipe]\n            */\n           var Node3Options={\n               imgArr:imgArr,\n               direction:'horizontal',//滑动方向\n               autoPlay:true,\n               duration:1500,\n               loop:true,//是否滑动循环\n               activeClass:'yellow',//自定义active的样式\n           };\n           /**\n            * 手动垂直滑动[manual vertical swipe]\n            */\n           let node4Options={\n               imgArr:imgArr,\n               direction:'vertical',\n               autoPlay:false,//是否自动播放\n               activeClass:'green',//自定义active的样式\n           };   \n           /**\n            * 垂直自动播放方式[auto vertical swipe]\n            */\n           var node5Options={\n               imgArr:imgArr,\n               direction:'vertical',\n               autoPlay:true,//是否自动播放\n               loop:true,\n               activeClass:'purple',//自定义active的样式\n           };\n           return (\u003cdiv\u003e\n               \u003cPhSwipe {...Node2Options}\u003e\u003c/PhSwipe\u003e\n               \u003cdiv className='hint'\u003e请手动左右滑动\u003c/div\u003e\n               \u003cPhSwipe {...Node3Options}\u003e\u003c/PhSwipe\u003e\n               \u003cdiv className='hint'\u003e自动循环左右滑动\u003c/div\u003e   \n               \u003cPhSwipe {...node4Options} style={{height:'150px'}}\u003e\u003c/PhSwipe\u003e\n               \u003cdiv className='hint'\u003e请手动上下滑动\u003c/div\u003e\n               \u003cPhSwipe {...node5Options} style={{height:'150px'}}\u003e\u003c/PhSwipe\u003e\n               \u003cdiv className='hint'\u003e自动循环上下滑动\u003c/div\u003e\n           \u003c/div\u003e)\n       }\n   }\n   render(\u003cPhSwipeDemo/\u003e,document.getElementById('root'))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fph-swipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fph-swipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fph-swipe/lists"}