-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix CSS/JS Issues + QOL Improvements #108
Conversation
Oops, I forgot I was on |
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.
Nice pr, a lot of new stuff. Some of the changes would need a little more explanation for me to understand what/why it was changed
It would be good if you could provide screenshots on changed too where applicable. I won't be able to spin up and check anytime soon, so screenshots will give me some sanity 👀 |
Here are 2 links to transcripts generated that should hopefully work and show some of the changes. From those you should be able to see the difference in embed colours, emoji mis-alignment, button padding, footer width, user pop-outs, hover on avatar and scrolling on messages. For reference, they were generated via the following: transcript = await chat_exporter.raw_export(
channel=channel,
messages=messages,
tz_info="UTC",
bot=bot,
military_time=True,
fancy_times=True,
support_dev=False
) I also did a commit to fix the bug where hovering over a message shows "AM/PM" on the left of it instead of the actual time "MIN:HR". |
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Thanks for the suggestions @doluk, I've committed those in. |
@1337Syntax could you please generate the example again? once with military and once with 12h time format? |
|
the time is 24 h in both 🧐 |
Seems that only the timestamp in the aside message part actually checks for military time usage whereas the other timestamps do not. I have pushed a commit to now fix that. |
looks good to me now! Thank you for the work and the fast changes! |
* Fix type hinting compatibility with Python < 3.9 (#105) * Merging master in to 2.8.0 (#110) * Versioning * Fix discord import for wrapper namespaces != discord (#104) * Versioning --------- Co-authored-by: mahtoid <git@mahto.id> Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Fix CSS/JS Issues + QOL Improvements (#108) * Versioning * Fix discord import for wrapper namespaces != discord (#104) * Versioning * Fix quick_export() Missing Argument * Remove Use of 'proxy_url' due to Discord's CDN Changes * Fix Embed Colour & Reduce Unnecessary Gaps * Fix Emoji Mis-Alignment * Fix Button Label Padding * Equalise Footer Width * Fix User Pop-Out * Add Hover on User Avatars * Fix Scrolling to Messages * Open Buttons & Images in New Tabs + Fix Audio Container * Change BOT Tag to New APP Tag * Update README * Add .vscode to Git-Ignore * Update README.md for my Fork * Update README.md * Revert README Installation Changes * Revert Asset URL Change back to Proxy URL * Fixed Message Aside Timestamp * Update chat_exporter/construct/assets/component.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/construct/assets/component.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/construct/assets/component.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/construct/assets/component.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/construct/assets/component.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/html/component/component_button.html Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/html/base.html Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/construct/assets/component.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update chat_exporter/construct/message.py Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Refactoring * Fixed Military Times --------- Co-authored-by: mahtoid <git@mahto.id> Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> * Update discord link * Fix a bug within LocalAttachmentHandler and regex search returning None causing AttributeError & add html meta tags to transcript (#111) * Ensure unique filenames Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> * Add html meta tags Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> * Fix Local File handler Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> * Fix regex search returning no match causing AttributeError Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> * Exchange uuid4 with EPOCH timestamp with ms Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> --------- Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> * Interaction Message (metadata) * Backport Interaction * interaction name --------- Signed-off-by: doluk <69309597+doluk@users.noreply.github.com> Co-authored-by: Argon <laiyeqi@gmail.com> Co-authored-by: mahtoid <git@mahto.id> Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com> Co-authored-by: syntax <me@syntax.fo>
Issues Addressed in this PR:
quick_export()
(Was Raising due toattachment_handler
Arg Missing)New Features:
BOT
Tag to the NewAPP
TagAttachmentHandler
Section