Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add static error page#4276

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 3 commits intomainfrombq/error
Oct 3, 2022
Merged

feat: Add static error page#4276

BrunoQuaresma merged 3 commits intomainfrombq/error
Oct 3, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma commentedSep 30, 2022
edited by deansheather
Loading

Screen Shot 2022-09-30 at 13 41 54

@BrunoQuaresmaBrunoQuaresma self-assigned thisSep 30, 2022
@BrunoQuaresmaBrunoQuaresma requested a review froma team as acode ownerSeptember 30, 2022 16:45
@BrunoQuaresmaBrunoQuaresma requested review fromjsjoeio anddeansheather and removed request fora teamSeptember 30, 2022 16:45
Copy link
Contributor

@jsjoeiojsjoeio left a comment

Choose a reason for hiding this comment

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

Nice work!

BrunoQuaresma reacted with heart emoji
<h1>502 - Bad Gateway</h1>
<p>No service is running on port 3000. Make sure your process is running and try again.</p>
<div class="button-group">
<button id="retry">Retry</button>
Copy link
Member

Choose a reason for hiding this comment

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

Will this button be dynamic?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Probably. I think this is something that Go template can handle right?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, controlled by.Error.RetryEnabled

@deansheather
Copy link
Member

Added the go template variables and made a few changes:

  • Addedjustify-content: center to.button-group so the return to site button would be centered when the retry button was not present
  • Inlined thewindow.location.reload() to avoid making the JS conditional as well

@BrunoQuaresmaBrunoQuaresma merged commitc7aea2f intomainOct 3, 2022
@BrunoQuaresmaBrunoQuaresma deleted the bq/error branchOctober 3, 2022 14:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs left review comments

@jsjoeiojsjoeiojsjoeio approved these changes

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@BrunoQuaresma@deansheather@jsjoeio@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp