-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Replace sign_in.js by webcomponent #4023
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
49ebf99
Create search institution component for sign in
jorg-vr 26bb24a
Fix layout
jorg-vr eddac45
Use local storage
jorg-vr 5888973
Remove old code
jorg-vr bf88c8c
Don't store more then reused
jorg-vr 85884c7
Fix indent
jorg-vr bdabab2
Add tab completion
jorg-vr 249aacb
Remove unused import
jorg-vr 999109a
Mark matches
jorg-vr 0d1aa48
Fix disabling of buttoin and backspace in search
jorg-vr 2b8e248
Merge branch 'develop' into chore/remove-bloodhound
jorg-vr 211cb16
Replace html save function
jorg-vr ac042c9
Replace html save function
jorg-vr 8ece019
Mention source
jorg-vr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'm a bit hesitant about adding this function because it's incomplete. (and in combination with the unsafeHTML function where it's called). Is there an alternative?
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 don't see a way without the unsafe html that also marks the search results. And as the institution names are user input we need some kind of html encoding.
This method is an often suggested solution:
Some indeed change more keys. I will add those. They are more relevant when the string is used within html tags. But for a general util method it should cover all cases.
There is weirdly no standard javascript method for this. JQuery and lodash provide solutions, but we dont want to include those.
This might be a better alternative:
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.
Soon™️ https://developer.mozilla.org/en-US/docs/Web/API/HTML_Sanitizer_API