定制 rrssb/rrssb-plus 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rrssb/rrssb-plus

Composer 安装命令:

composer require rrssb/rrssb-plus

包简介

Ridiculously Responsive Social Sharing Buttons Plus

README 文档

README

Social sharing buttons that you can drop into any website with attractive SVG-based icons, small download, and browser compatibility. RRSSB+ automatically adjusts to different screen sizes by tweaking sizes, splitting buttons evenly onto multiple rows and hiding the labels.

The library offers consistently styled buttons for all sites. No 3rd-party scripts (such as from Facebook), with the inherent overheads and different button designs.

Two rows of buttons with prefix and label   Small buttons   Vertical align

Developed by AlbanyWeb. Based on RRSSB "Ridiculously Responsive Social Sharing Buttons" by KNI.

Installation instructions

If you use the Drupal CMS then you can automatically install this library with a module — see demo. If you use Backdrop CMS you can install a module which bundles this library through the Project Installer interface.

Otherwise, you can examine the source of the demo page to see how to do it. Search for <div class="rrssb"> to find the HTML for the buttons. You need to load rrssb.min.js and rrssb.css. To configure this library, make a call to rrssbConfigAll.

Main changes from RRSSB

  • Allow buttons to split onto multiple rows, ensuring the rows stay even.
  • Buttons size automatically stays usable and clear. As a rule we don't want huge buttons on a huge screen or tiny ones on a tiny screen, which you can get with RRSSB. RRSSB+ offers a configurable default size, and a configurable percentage allowable shrink.
  • Whitespace around icons and text is consistent at all sizes. With RRSSB, the spacing varies with button size. At "normal width" there is lots of space, hence smaller fonts and icons that are harder to read. Grow the screen, and you see the "large format", and it's different — and we think a better balance. By default, RRSSB is similar to the large format, but with slightly larger icons.
  • Uniform responsiveness applied simultaneously to all buttons. In contrast RRSSB hides the labels one-by-one. That's not an approach we are familiar with on mainstream websites, and we feel it looks odd, as if there is a bug.
  • Support button prefix text such as "Share this page". The RRSSB demo page has text like that although not responsive, and hard-coded into the page rather than being part of the library.
  • Configurable settings to control appearance.

Performance changes

  • Use background image instead of inline SVG. Gives smaller page sizes, reduced server load and smaller caches.
  • Smaller JS and CSS files for faster download.
  • Simpler script executes a lot less lines of code for smoother resizing.
  • Reduced DOM size: store working data as data() not attr().

Compatibility changes

  • Compatible with older releases of jQuery - remove specific requirement for jQuery 1.10
  • Designed for integration into a CMS such as Drupal and Backdrop.

rrssb/rrssb-plus 适用场景与选型建议

rrssb/rrssb-plus 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 634.93k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2017 年 02 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「social」 「responsive」 「plus」 「buttons」 「sharing」 「rrssb」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 rrssb/rrssb-plus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 rrssb/rrssb-plus 我们能提供哪些服务?
定制开发 / 二次开发

基于 rrssb/rrssb-plus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 634.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 27
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 1
  • Forks: 407
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-04