3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 23:25:43 +01:00

Answer product-owner round 1: 1 🔴, 5 🟡 (0 misread); add the licence notice, link each document to its page, stop a failed fetch reaching the corpus, keep raw folders out of the repo

This commit is contained in:
2026-11-05 00:17:32 +01:00
committed by Lillem4n
parent 8fee35a63b
commit 1e3d6e5d65
51 changed files with 3164 additions and 1055 deletions
+10
View File
@@ -0,0 +1,10 @@
// The pages a person reads, which name each document's creator. A wiki's web link also holds the page's title, and can hold an attachment's name, which the repo must not.
export function jiraUrl(base, key, commentId) {
return `${base}/browse/${key}${commentId === undefined ? '' : `?focusedCommentId=${commentId}`}`
}
export function wikiUrl(base, webLink) {
const [path, query] = webLink.split('?')
const commentId = new URLSearchParams(query).get('focusedCommentId')
return `${base}/wiki${path.replace(/(\/\d+)\/[^/]+$/, '$1')}${commentId === null ? '' : `?focusedCommentId=${commentId}`}`
}