Skip to content
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

Various changes #20

Merged
merged 20 commits into from
Feb 8, 2023
Merged

Various changes #20

merged 20 commits into from
Feb 8, 2023

Conversation

naxvog
Copy link
Contributor

@naxvog naxvog commented Feb 7, 2023

Browsed around some Flarum components and integrated some of them to increase general standardization of the extension:

  • LoadingIndicator component usage to improve the look and feel
  • Loading class for the component wrapper
  • Icon component to improve accessibility
  • Preview generation on refreshContent to include post updates as well (triggers right after a post was edited without a page refresh)
  • General refactoring

@datlechin
Copy link
Owner

Could you delete the dist folder?

@datlechin
Copy link
Owner

Thank you <3

@datlechin datlechin merged commit 75f88f3 into datlechin:master Feb 8, 2023
@@ -42,7 +49,7 @@ export default class LinkPreview extends Component {
}

getLink(text) {
return m('a', this.linkAttributes, text);
return <Link {...this.linkAttributes}>{this.loading ? this.getDomain() : text ?? this.getDomain()}</Link>;
Copy link
Owner

@datlechin datlechin Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a problem here that I didn't notice before, the Link component cannot be redirected to the destination page. I'll fix it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please elaborate on that using an example? I tested the Component and found no issue on my dev installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants