{"id":19571693,"url":"https://github.com/yued-fe/y-bp","last_synced_at":"2025-11-20T05:04:44.267Z","repository":{"id":112027250,"uuid":"159006997","full_name":"yued-fe/Y-BP","owner":"yued-fe","description":"YFE Team 前端最佳实践","archived":false,"fork":false,"pushed_at":"2019-09-09T12:49:06.000Z","size":198,"stargazers_count":29,"open_issues_count":37,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-09T03:14:31.450Z","etag":null,"topics":["best-practices","components","fe","utils"],"latest_commit_sha":null,"homepage":"https://yued-fe.github.io/Y-BP/","language":"HTML","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/yued-fe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-25T07:08:21.000Z","updated_at":"2024-08-13T14:47:07.000Z","dependencies_parsed_at":"2023-04-27T22:23:19.791Z","dependency_job_id":null,"html_url":"https://github.com/yued-fe/Y-BP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yued-fe%2FY-BP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yued-fe%2FY-BP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yued-fe%2FY-BP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yued-fe%2FY-BP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yued-fe","download_url":"https://codeload.github.com/yued-fe/Y-BP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240840036,"owners_count":19866164,"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":["best-practices","components","fe","utils"],"created_at":"2024-11-11T06:19:47.189Z","updated_at":"2025-11-20T05:04:44.224Z","avatar_url":"https://github.com/yued-fe.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YFE「阅文前端团队」最佳实践\n\n1. 从零开始建一个网站的前端代码，第一步应该思考什么？\n2. 要写一个按钮组件，应该从哪里开始？\n3. 要建立一个前端代码库，应该怎么组织自己的代码？\n4. 我要实现一个图片裁剪的功能，有什么插件推荐啊？\n\n以上问题由我们来告诉你答案？\n\n## 代码规范\n\n- [HTML 规范](https://yued-fe.github.io/Y-BP/posts/styleguide/html)\n- [CSS 规范](https://yued-fe.github.io/Y-BP/posts/styleguide/css)\n- [JS 规范](https://yued-fe.github.io/Y-BP/posts/styleguide/js)\n\n## 代码规范参考\n\n1. [BootStrap](https://codeguide.bootcss.com/)\n2. [@AlloyTeam](http://alloyteam.github.io/CodeGuide/)\n3. [Airbnb JavaScript 编码规范（简体中文版）](https://github.com/yuche/javascript#table-of-contents)\n4. [Isobar](http://coderlmn.github.io/code-standards/)\n5. [网易](http://nec.netease.com/standard)\n\n## CSS 布局\n1. [左右布局](https://codepen.io/ziven27/pen/pYyXoB?editors=1100)\n2. [列表布局](https://codepen.io/ziven27/pen/rReExa?editors=1100)\n3. [Media布局](https://codepen.io/ziven27/pen/EMKzza?editors=1100) \n4. [不定高元素垂直居中](https://codepen.io/ziven27/pen/Ygqbxq?editors=1100)\n\n## 私密小技巧\n1. [ 移动端REM适配 ](https://www.zhangxinxu.com/wordpress/2016/08/vw-viewport-responsive-layout-typography/)\n\n## 插件/组件\n\n1. [点我查看列表](../../issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyued-fe%2Fy-bp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyued-fe%2Fy-bp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyued-fe%2Fy-bp/lists"}