Generate a public read-only link to share your board🔗
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- express, javascript, mongodb, node.js, react, vite
调研方向
Start with server/models/User.js and the existing route setup to see how authentication and task queries are handled; then read App.jsx and the client page routing. Implement the public share route and read-only page described in the issue, and add the navbar controls. Done means sharing can be enabled and disabled, the public link shows only the listed task fields, and visitors cannot edit or drag tasks.
由索引模型根据 Issue 内容生成。
描述
Generate a public read-only link to share your board🔗
Files: server/models/User.js + server/routes/share.js (new)
+ client/src/pages/SharedBoard.jsx (new) + App.jsx
Want to show your board to a mentor or recruiter without
making them sign up? Can't right now 💀
// User.js
shareToken: { type: String, default: null }
// routes/share.js
const crypto = require('crypto')
router.post('/enable', protect, async (req, res) => {
const token = crypto.randomBytes(16).toString('hex')
await User.findByIdAndUpdate(req.user._id, { shareToken: token })
res.json({ url: ${process.env.FRONTEND_URL}/share/${token} })
})
router.delete('/disable', protect, async (req, res) => {
await User.findByIdAndUpdate(req.user._id, { shareToken: null })
res.json({ message: 'Sharing disabled' })
})
// public, no auth middleware:
router.get('/:token', async (req, res) => {
const user = await User.findOne({ shareToken: req.params.token })
if (!user) return res.status(404).json({ message: 'Not found' })
const tasks = await Task.find({ assignee: user._id })
.select('title status priority tags createdAt')
res.json({ owner: user.name, tasks })
})
Note: .select() leaves out description, snippets and notes on
purpose, so nothing private leaks.
Client: new /share/:token route rendering the board with no
drag-drop and no edit buttons. Add "Enable / Disable sharing"
in the navbar.
~50 lines across 4 files 🎯
- 主要语言
- JavaScript
- 星标
- 39
- 派生
- 105
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 22
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anoopcodehack/DevBoard 的其他 Issue
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 68/100
anoopcodehack/DevBoard#648 · 1 条评论 ·
维护者通常 3 天内回复
-
Show "No snippets yet" empty state in task modal 💻可能重新可做 @tu-lasizzzz 于 36 天前认领,目前没有进行中的 PR。 未关闭good first issue
难度 1/5 1 小时以内 新手友好度 96/100
anoopcodehack/DevBoard#639 · 2 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 96/100
anoopcodehack/DevBoard#637 ·
维护者通常 3 天内回复
-
Add smooth horizontal scroll on board 🖱️可能重新可做 @nikhil9verma 于 43 天前认领,目前没有进行中的 PR。 未关闭good first issue
难度 1/5 1-3 小时 新手友好度 85/100
anoopcodehack/DevBoard#615 · 2 条评论 ·
维护者通常 3 天内回复
-
Show task creation date in modal footer 📅可能重新可做 @nikhil9verma 于 43 天前认领,目前没有进行中的 PR。 未关闭good first issue
难度 1/5 1-3 小时 新手友好度 90/100
anoopcodehack/DevBoard#614 · 1 条评论 ·
维护者通常 3 天内回复
查看 anoopcodehack/DevBoard 的全部 Issue
相似的 Issue
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallback可能已有人在做 @goranai 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 86/100
postcss/autoprefixer#1577 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
-
bug
难度 1/5 1 小时以内 新手友好度 78/100
PranshulGG/WeatherMaster#1266 · 3 条评论 ·
维护者通常 1 天内回复
-
FEATURE REQUEST
难度 2/5 1-3 小时 新手友好度 67/100
linuxmint/cinnamon-spices-applets#9356 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
opnsense/plugins#5976 · 1 条评论 ·
维护者通常 1 天内回复