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
Tweaks to the query log filters to make them a bit more user friendly #1568
Conversation
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: |
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
b8598ce
to
cca659a
Compare
Address prettier complaints Signed-off-by: Adam Warner <me@adamwarner.co.uk>
cca659a
to
63e9348
Compare
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
wait, something is wrong here... |
I fixed it. The only thing that remains:
|
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
It was always selecting the whole cell. I figured out that the local repository was in a weird state, I nuked it and cloned it again. Now it is working as expected. |
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.
Looks good to me.
document.body.appendChild(tmpTextarea); | ||
tmpTextarea.value = text; | ||
tmpTextarea.select(); | ||
document.execCommand("copy"); |
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.
Thanks for your suggestion. However, I've just found
This feature [
document.execCommand
] is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand
and
The
execCommand('copy')
API isn't supported in Safari
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard
There seems to be the new asynchronous Clipboard API methods to add this feature, however, ...
The asynchronous Clipboard API methods are a recent addition to the specification, and may not be fully implemented to the specification in all browsers. Be sure to review the compatibility tables for each method before using them, to ensure that support is broad enough for your needs.
(same source as above)
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.
Compatibility matrix: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API
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.
Oh. Fiddlesticks...
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 look at using this newer API. Maybe it's time we say "to hell with internet explorer", anyway
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.
That said, the clipboard API is still in working draft status. So probably best not to use it....
Killing this. It's got messy and needed rebasing anyway... |
Redone as #1602 |
By submitting this pull request, I confirm the following:
git rebase
)What does this PR aim to accomplish?:
How does this PR accomplish the above?:
What documentation changes (if any) are needed to support this PR?:
Possibly docs, I've not checked. This may need to be replicated to long term tables?