-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat: add external link redirect #5369
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@exezbcz ahhhh seems i misunderstand it. |
yes especially in links in descriptions, user profiles, and that's pretty much it. I would put text |
maybe could be done without visual redirect? otherwise great @floyd-li ! :) |
got it. will continue this stuff after the notification box part. little busy these days for dealing some personal stuff. so the task i taken may be delayed few days :( |
updated: use some hack to resolve it - pass Modal.open({
component: RedirectModal,
canCancel: true,
customClass: 'redirect-modal',
props: {
url,
i18n: $i18n,
},
} as unknown as BModalConfig) <p>
{{ props.i18n.t('redirect.safetyTips') }}
</p> oops. i use
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix deepsource, otherwise lgtm
I think it's better to wait for this PR #5366. so we can put useRedirect in one component
Hey, really nice job 🤗 . Can I ask why you haven't used https://oruga.io/components/modal.html ? |
i just saw we're use |
good job! 🚀 |
K lets do it in separated issue. Waiting for @ |
Ahaha wanted to tag @exezbcz but gh crashed 🥲 |
will make some changes after this PR get merged #5366 then it can be mergable |
Code Climate has analyzed commit f920d19 and detected 0 issues on this pull request. View more on Code Climate. |
Let's go |
pay 35 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot NFT gallery.
this commit is to add the external link redirect page, i've added some hooks to prevent user open external link directly and will landing a redirect page to show some tips. also we can add whitelist and blacklist for the link so we can block some links for safety.
i think it's the first step for #5218 , just open this pr as draft and if anybody got better idea please leave comments here.
also, this one just a quick demo so forget the ui part :)
@yangwao @vikiival if the redirect logic is okay generally i'll continue the rest :)
👇 _ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot 📸