-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from brmnjsh/62-toast-message-on-error
Issue #62: Alert message on API error
- Loading branch information
Showing
13 changed files
with
112 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alert { | ||
display: none; | ||
} | ||
|
||
.show-alert { | ||
display: inherit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
var alert = document.querySelector('.alert') | ||
|
||
function drawBoard( | ||
svgElementId, | ||
imagesToHolds, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-10 p-0"> | ||
<div class="alert alert-danger alert-dismissible fade show" role="alert"> | ||
<div class="alert-content"></div> | ||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
<body> | ||
<div class="container text-center"> | ||
{% include 'heading.html.j2' %} | ||
{% include 'alert.html.j2' %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-5 card p-3 g-2 vh-100"> | ||
<h4 id="header-links-count"> {{ beta | length }} beta videos for {{ climb_name }}</h4> | ||
|
@@ -52,6 +53,9 @@ | |
{% include 'footer.html.j2'%} | ||
</div> | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" | ||
crossorigin="anonymous"></script> | ||
<script src="{{url_for('static', filename='js/beta.js')}}"></script> | ||
<script src="{{url_for('static', filename='js/swipe.js')}}"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
<body> | ||
<div class="container-sm text-center"> | ||
{% include 'heading.html.j2' %} | ||
{% include 'alert.html.j2' %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-5"> | ||
<form class="card p-3 bg-light" action="/filter" id="form-board"> | ||
|
@@ -100,7 +101,9 @@ | |
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" | ||
crossorigin="anonymous"></script> | ||
<script src="{{url_for('static', filename='js/boardSelection.js')}}"></script> | ||
</body> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
<body> | ||
<div class="container-sm text-center"> | ||
{% include 'heading.html.j2' %} | ||
{% include 'alert.html.j2' %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-5 card p-3 g-2 vh-100" id="div-climb"> | ||
<p class="mb-2">Setup: {{board.capitalize()}} - {{layout_name}} - {{size_name}}</p> | ||
|
@@ -33,9 +34,12 @@ | |
<div class="row justify-content-md-center mt-3"> | ||
{% include 'footer.html.j2' %} | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" | ||
crossorigin="anonymous"></script> | ||
<script src="{{url_for('static', filename='js/common.js')}}"></script> | ||
<script src="{{url_for('static', filename='js/bluetooth.js')}}"></script> | ||
<script src="{{url_for('static', filename='js/climbCreation.js')}}"></script> | ||
<script src="{{url_for('static', filename='js/common.js')}}"></script> | ||
<script> | ||
const appUrl = "{{ app_url }}"; | ||
const colors = {{ colors | tojson}}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<title>Climbdex</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> | ||
<link href="{{url_for('static', filename='css/common.css')}}" rel="stylesheet"/> | ||
<link rel="icon" type="image/x-icon" href="{{url_for('static', filename='media/icon.svg')}}" /> | ||
<link rel="manifest" href="{{url_for('static', filename='manifest.json')}}" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
<body> | ||
<div class="container-sm text-center"> | ||
{% include 'heading.html.j2' %} | ||
{% include 'alert.html.j2' %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-5 card p-3 g-2 vh-100"> | ||
<h4 id="header-results-count"></h4> | ||
|
@@ -76,6 +77,9 @@ | |
<div class="row justify-content-md-center mt-3"> | ||
{% include 'footer.html.j2' %} | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" | ||
crossorigin="anonymous"></script> | ||
<script src="{{url_for('static', filename='js/bluetooth.js')}}"></script> | ||
<script src="{{url_for('static', filename='js/common.js')}}"></script> | ||
<script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ typing_extensions==4.9.0 | |
urllib3==2.1.0 | ||
Werkzeug==3.0.1 | ||
zipp==3.17.0 | ||
flask_parameter_validation==2.3.1 |