-
Notifications
You must be signed in to change notification settings - Fork 262
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
Collapse quoted text in HTML message #6770
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
I think that will always be a bit of catch-up. I suggest we abstract the parsing/detection a bit and put it into a testable function. That function can be unit tested against a few common formattings of popular email clients. |
</script> | ||
|
||
<style lang="scss" scoped> | ||
.quote { |
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.
nit: restructure to use BEM https://scalablecss.com/bem-blocks-within-blocks/
import HtmlBlockQuoteItem from './HtmlBlockQuoteItem' | ||
import CommentQuote from 'vue-material-design-icons/CommentQuote' | ||
|
||
const REGEXP_EMAIL = /([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|(\[\]!#-[^-~ \t]|(\\[\t -~]))+")@([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\[[\t -Z^-~]*])/ |
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.
this is the part I'd like to see abstracted and tested 😆
friendly ping @sazanof |
4 packets received, 0 packets lost. upd (oh, I see =)) |
Well, there will be something to do =) |
Hello everyone!
Based on #3640
In fact, I have encountered several (many =)) problems. It would be great if you could tell me something.
A little preface: perhaps this is not the most successful implementation, but I have not found another way yet.
Problems:
OC not found
". I need to connect the translation innew Vue()
instance and upload avatars functions. And when importing l10n or fetchAvatarUrlMemoized, they just don't work. Tell me how to connect them correctly?core/css
gives an error, Tell me how I can include these styles correctly.I would like to hear opinions about the implementation, because although it is not urgent, it is a very pleasant improvement. I will be grateful for any help and glad for any advice!
Thanks!
Well, where to without screenshots:
Signed-off-by: Mikhail Sazanov m@sazanof.ru