Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use global Link component instead of ProjectLink #900

Merged
merged 2 commits into from Jul 9, 2023

Conversation

rudolfs
Copy link
Member

@rudolfs rudolfs commented Jul 5, 2023

Eliminate remaining ProjectLink instances. We want to use the generic Link component everywhere to keep the router generic.

@vercel
Copy link

vercel bot commented Jul 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radicle-interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2023 1:23pm

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Visual diff results for latest changes

✅ There are no visual differences between master and this branch.

Copy link
Member

@sebastinez sebastinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice idea 👍

Maybe we could also add the extensions and deprecated options we define inside the Renderer?

Also since we are touching marked, we could maybe also look into using a Marked instance instead of having different marked imports, and maybe have a getter for that instance, on which we call parse()?

/src/components/InlineMarkdown.svelte
  11,24:     dompurify.sanitize(marked.parseInline(content));

/src/components/Markdown.svelte
  55,7:       marked.parse(content, {

/src/lib/markdown.ts
  96,10:     }. ${marked.parseInline(

See: markedjs/marked#2831

@rudolfs
Copy link
Member Author

rudolfs commented Jul 9, 2023

Thanks for the review @sebastinez!

I'll merge this as is for now and leave the feedback for @geigerzaehler as a follow up: https://github.com/radicle-dev/radicle-interface/issues/919.

This way we can get rid of the project browsing specific ProjectLink
component and simplify the router types.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
@rudolfs rudolfs force-pushed the rudolfs/get-rid-of-projectlink branch from 1226eee to 74fa05c Compare July 9, 2023 13:19
@rudolfs rudolfs merged commit 74fa05c into master Jul 9, 2023
10 checks passed
@rudolfs rudolfs deleted the rudolfs/get-rid-of-projectlink branch July 9, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants