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

Changes made by Haidra-org before deployment #3

Merged
merged 15 commits into from
Jun 6, 2024

Conversation

tazlin
Copy link
Contributor

@tazlin tazlin commented Jun 6, 2024

This PR is to help keep your original repo in sync. If you source any PRs back, there should be no merge conflict and your existing actions in your repo should therefore not interfere with our CI/CD scheme.

  • Supports the AI-Horde /news/ endpoint to populate the new items
  • Supports the new /document/terms endpoint
  • Hamburger menu for mobile now works
  • Slow API calls are now non-blocking.
  • Support hosting on other than /
  • Certain links now rely on AI-Horde to handle, such as /register.
  • Various style tweaks
  • Changed the logo to the haidra-org logo for now.

Comment on lines +16 to +17
<inline-svg href="assets/img/open-menu.svg" />
<inline-svg href="assets/img/close-menu.svg" />
Copy link
Owner

Choose a reason for hiding this comment

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

Why this change? It's throughout the whole PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The mobile experience hamburger menu did not seem to work, or if it did, it was in a non obvious way. This was my effort at making it work and work with a click away function to hide 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.

Sorry, I misunderstood. This was so the site isn't bound to /, and would work on subdirs

Copy link
Owner

Choose a reason for hiding this comment

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

I meant the change that removes the leading / throughout the whole PR, sometimes replacing it with ./

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sorry, I realized after. I answered above

Copy link
Owner

Choose a reason for hiding this comment

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

Ah, nevermind, I haven't read the comment that came with the PR. Anyway, it would be better to either stick to ./ or no prefix, not mixing it up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's fair.

</li>
<li>
<a routerLink="/register" class="block py-2 pl-3 pr-4 text-white bg-purple-700 rounded lg:bg-transparent lg:text-purple-700 lg:p-0 dark:text-white" aria-current="page">{{'register_account' | transloco}}</a>
<a href="/register" class="block py-2 pl-3 pr-4 text-gray-500 bg-gray-400 rounded lg:bg-transparent lg:text-gray-500 lg:p-0 dark:text-white" aria-current="page">{{'register_account' | transloco}}</a>
Copy link
Owner

Choose a reason for hiding this comment

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

Why this? We're not implementing registration before releasing 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.

Correct, we'll resolve this another time.

Comment on lines +9 to +10
<p class="mb-4" [innerHTML]="'quickstart.register_account' | transloco" >

Copy link
Owner

Choose a reason for hiding this comment

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

This would be better reverted and the registerLink changed from {route: '/register'} to just /register, that way it will use href instead of routerLink.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you can demonstrate it works the same, that sounds fine to me

@RikudouSage RikudouSage merged commit 05c059b into RikudouSage:master Jun 6, 2024
1 check failed
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.

2 participants