npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ep_mention_plugin

v0.2.9

Published

etherpad mention plugin

Downloads

24

Readme

ep_mention_plugin

etherpad-lite mention 组件

npm version


已有功能

  1. 监听键盘@事件
  2. 鼠标事件边界处理
  3. 键盘事件边界处理(部分)
  4. mention弹窗内容方面填充
  5. 模糊搜索相关逻辑填写
  6. 多行mention定位
  7. aceInit填充初始mention
  8. 动画过渡
  9. 样式优化
  10. 移动端样式兼容

Undo

  • 滑动分页
  • @人的时候带上第几行位置信息,好滚动到这里
  • 上下左右按键拦截代理
  • 退格按键退到@人的模块的时候,直接删除整个模块

Problem

  1. ✅同一行不能有两个@,
  2. ✅有序列表中/前面加上空格之后,@列表的位置不准确
  3. ✅@的点击事件,事件委托或者事件池
  4. ✅获取@之后的文字,并且进行模糊搜索逻辑
  5. ✅获取当前行的bug,获取allText位置不对
  6. ✅在ace2_inner中找到获取当前行文本内容的方法。
  7. ✅连续@@问题
  8. ✅文本前方有空格,或者段落开头的时候@列表的位置不准确。
  9. ✅@列表展示的时候,用户按下空格,取消弹窗展示
  10. ✅回车操作快捷键
  11. ✅文档滚动的时候,@弹窗位置重新计算。
  12. ✅段落开头@,但是后面有文字的时候弹窗出不来。
  13. ✅当mention列表滚动过后,第二次再打开,依然是上次滚动位置
  14. ✅修复第一行第一列定位不正确问题