feat(notes): liens internes, onglet Réseau, living blocks et consentement IA
Rend les liens entre notes visibles et persistants (sync NoteLink au save, auto-save, graphe réseau rafraîchi), ajoute living blocks, Memory Echo, recherche globale, consentement IA explicite et consolide les prototypes design en architectural-grid. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -60,3 +60,16 @@ export function getNotePlainExcerpt(note: Note, maxLen = 240): string {
|
||||
raw = raw.replace(/<[^>]+>/g, ' ')
|
||||
return stripMarkdownPreview(raw, maxLen)
|
||||
}
|
||||
|
||||
/** Adapte un SVG miniature (viewBox 4:3 liste) pour remplir une vignette carte 16:10. */
|
||||
export function prepareNoteIllustrationForGrid(svg: string): string {
|
||||
return svg.replace(/<svg([^>]*)>/i, (_, attrs: string) => {
|
||||
let next = attrs.replace(/\s(width|height)=["'][^"']*["']/gi, '')
|
||||
if (/preserveAspectRatio=/i.test(next)) {
|
||||
next = next.replace(/preserveAspectRatio=["'][^"']*["']/i, 'preserveAspectRatio="xMidYMid slice"')
|
||||
} else {
|
||||
next += ' preserveAspectRatio="xMidYMid slice"'
|
||||
}
|
||||
return `<svg${next} width="100%" height="100%">`
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user