manifest.json: set author and authorUrl

未关闭 适合新手
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
80/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
electron, threejs, typescript
领域
frontend, release

调研方向

从 manifest.json 和 src/shared/update.ts 中的 releasesRepo 开始,当缺少 authorUrl 时应回退到 RELEASES_REPO 常量。设置 author 和 authorUrl,然后在 tests/node.test.ts 中添加一个测试,断言对真实的 manifest,releasesRepo 返回 A21-devs/cortex。当该测试和 npm run check 通过,并且 npm run desktop 中 src/ui/modals/AboutModal.ts 的 Docs 和 Changelog 链接仍然可用时,即完成。

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

描述

first issue

manifest.json has "author": "Cortex" and no authorUrl. Obsidian shows the author in its plugin list, and its plugin guidelines expect the author's name there, not the plugin's name. This is also the first step of #31.

Expected

"author": "A21-devs" (or the maintainer's name) and "authorUrl": "https://github.com/A21-devs". With that URL, releasesRepo() in src/shared/update.ts works out A21-devs/cortex from the manifest (one-part GitHub URL plus the plugin id) instead of falling back to the RELEASES_REPO constant.

Files to look at

  • manifest.json
  • src/shared/update.ts, releasesRepo
  • src/ui/modals/AboutModal.ts: the About dialog builds its links from the same fields
  • tests/commands.test.ts (update helpers) and tests/node.test.ts, which read the manifest
  • leave versions.json as it is

Acceptance criteria

  • author and authorUrl set in manifest.json
  • a test that releasesRepo returns A21-devs/cortex for the real manifest
  • About Cortex still shows working Docs and Changelog links (try it in npm run desktop)
  • npm run check passes

Setup

Read CONTRIBUTING.md and docs/DEVELOPMENT.md first. Node 20.11 or newer, and clone outside OneDrive, Dropbox or iCloud.

git clone https://github.com/A21-devs/cortex.git
cd cortex
npm ci
npm run check      # typecheck + module boundaries, unit tests, build (what CI runs)
npm run sample     # a made-up vault in your temp folder, so you never need your own notes
npm run desktop    # build and open Cortex Desktop to try your change

Taking it

Comment here if you want to take it, and I will assign it to you. Ask questions in this issue, I will answer here. One pull request, with "Closes #N" in the description.

主要语言
TypeScript
星标
2
派生
1
平均合并
5 分钟
30 天内合并 PR
19

环境准备

从这里开始

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

A21-devs/cortex 的其他 Issue

查看 A21-devs/cortex 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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