-
Notifications
You must be signed in to change notification settings - Fork 4
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 threat shield dns #479
Conversation
8d33f7a
to
addeb82
Compare
Add "Blocklist sources", "Filter bypass" and "Settings" pages. Refactor Threat shield IP
addeb82
to
380f3c1
Compare
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.
I'll leave some comments here due to the size of the PR, however a few things might need some discussion:
- Import styles are mixed, some import are using relative paths, some imports leverage the
@/
syntax, I'd rather start choosing one of the two going forward - (personal preference) I'd start to use the TS oriented
defineProps
, and use the props destructuring to ease the usage of theprops.
prefix for many variables - Unless we need comparison between states of a watched elements, I'd convert
watch
statements with its new
watchEffect`, avoids variable drilling of unknown type and lets Vue do it's magic
I usually rely on my IDE's automatic import function. Manually reviewing every import feels quite tedious if it's just for cosmetic reasons.. However, if you have a semi-automated solution in mind (like a linter), we can implement it |
I can agree on this one, even if it's just cosmetics |
I agree, but not 100%. While |
Figured, but something might need some adjustments in the settings, might give a look when I have time (since VSCode parses
Not sure it can be done, sadly.
Sure, but then I'd rather use the returning watched element in the function, instead of reusing the referenced element again, this sure saves us from side-effects of accidentally update the variable that is being watched |
Did not understand what you mean here |
For example, turning this watch(
() => props.isShown,
() => {
if (props.isShown) {
clearErrors()
focusElement(bypassRef)
bypass.value = ''
}
}
) Into this watch(
() => props.isShown,
(shown) => {
if (shown) {
clearErrors()
focusElement(bypassRef)
bypass.value = ''
}
}
) |
Add Threat shield DNS UI
Ref: