manifest.json: set author and authorUrl

Aperta Adatta ai principianti
#24 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
80/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
electron, threejs, typescript
Ambito
frontend, release

Direzione di ricerca

Inizia da manifest.json e releasesRepo in src/shared/update.ts, che dovrebbe ripiegare sulla costante RELEASES_REPO quando authorUrl manca. Imposta author e authorUrl, poi aggiungi un test in tests/node.test.ts che verifichi che releasesRepo restituisca A21-devs/cortex per il manifest reale. È completato quando quel test e npm run check passano e i link Docs e Changelog in src/ui/modals/AboutModal.ts continuano a funzionare in npm run desktop.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
2
Fork
1
Merge medio
5m
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di A21-devs/cortex

Tutte le issue di A21-devs/cortex

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.