Configurable options for the "Share" option

未关闭
#1,279 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
react, typescript
领域
full-stack

调研方向

从 /main/ui/src/components/Share/index.tsx 开始,然后检查 issue 中提到的 Admin → Settings 和 Admin → Customize 面板,以了解可配置选项可以放在哪里。完成的标准是:可以配置 share 名称和 endpoint,可以移除或更改现有选项,并且无需重新构建软件即可支持新的 endpoint。

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

描述

new-feature

Issue

Currently the "Share" option is hardcoded (in /main/ui/src/components/Share/index.tsx) to offer options of link copy, facebook, twitter, or system share. This seems very inflexible, and a number of use cases could all benefit from having the share options being configurable.

Use cases

  1. Corporate intranet deployments of Answer, where sharing to external sites is not allowable or should be discouraged. In these use cases, removal of some/all sharing options might be preferred.
  2. Changes in the sharing landscape. For example, "Twitter" is now "X", and that shouldn't require a software rebuild to accommodate.
  3. Support for new options. For example, Adding BlueSky, or other new / up and coming sharing sites.

Suggested solution

Make the sharing options (names and endpoints) configurable in either the Admin -> Settings or Admin -> Customize panels. Might require a two step solution, where one step is configuring the name and endpoint, and the other step is the ability to define a new / non-standard endpoint that can be referenced.

主要语言
Go
星标
15.7k
派生
1.4k
平均合并
9 天 6 小时
30 天内合并 PR
8

环境准备

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

从这里开始

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

apache/answer 的其他 Issue

查看 apache/answer 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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