Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Replace Facebook share button with a more versatile share menu

未关闭
#868 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 7 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
frontend, web-dev

调研方向

首先定位当前的 Facebook 分享按钮以及 issue 中描述的可分享链接操作,然后查看链接的 Web Share API 指南和 #438 中现有的讨论。在支持的环境中,事件能够提供原生分享选项,并且在没有 Navigator.share 的浏览器中提供可用的 fallback,即表示完成。

由索引模型根据 Issue 内容生成。

描述

enhancement frontend

The two main ways to share an event are:

  • Copy the "sharable" link
  • Use the Facebook share button

Sharing to FB isn't necessarily the most common action, but it's visually prominent. Also, copying the "sharable" link isn't a super obvious action, compared to more obvious "copy link to this post" features available on many sites.

It would be more versatile if we hooked into the native share functionality. This would let the user send an event to any sharing service on the user's device: email, Airdrop, SMS, notes, etc.

It's not available in all browsers (notably, Firefox) so we'd need a fallback. But, there's plenty of prior art out there for how to handle that, e.g. How to Use the Web Share API — CSS Tricks.

See also #438.

主要语言
JavaScript
星标
30
派生
26
平均合并
6 天 23 小时
30 天内合并 PR
3

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

shift-org/shift-docs 的其他 Issue

查看 shift-org/shift-docs 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。