Fix bug in api wait_seed, fix styles on seed gen pages
This commit is contained in:
		
							parent
							
								
									79095b7dde
								
							
						
					
					
						commit
						73013395a7
					
				|  | @ -52,7 +52,7 @@ def generate_api(): | ||||||
|             return {"text": f"Generation of seed {gen.id} started successfully.", |             return {"text": f"Generation of seed {gen.id} started successfully.", | ||||||
|                     "detail": gen.id, |                     "detail": gen.id, | ||||||
|                     "encoded": app.url_map.converters["suuid"].to_url(None, gen.id), |                     "encoded": app.url_map.converters["suuid"].to_url(None, gen.id), | ||||||
|                     "wait_api_url": url_for("wait_seed_api", seed=gen.id, _external=True), |                     "wait_api_url": url_for("api.wait_seed_api", seed=gen.id, _external=True), | ||||||
|                     "url": url_for("wait_seed", seed=gen.id, _external=True)}, 201 |                     "url": url_for("wait_seed", seed=gen.id, _external=True)}, 201 | ||||||
|     except Exception as e: |     except Exception as e: | ||||||
|         return {"text": "Uncaught Exception:" + str(e)}, 500 |         return {"text": "Uncaught Exception:" + str(e)}, 500 | ||||||
|  |  | ||||||
|  | @ -5,16 +5,16 @@ | ||||||
|     flex-wrap: wrap; |     flex-wrap: wrap; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #view-seed-wrapper table td{ |  | ||||||
|     vertical-align: top; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #view-seed{ | #view-seed{ | ||||||
|     width: 620px; |     width: 620px; | ||||||
|     min-height: 360px; |     min-height: 360px; | ||||||
|     text-align: center; |     text-align: center; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | #view-seed table td{ | ||||||
|  |     vertical-align: top; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| #view-seed h3{ | #view-seed h3{ | ||||||
|     margin-bottom: 0.5rem; |     margin-bottom: 0.5rem; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -0,0 +1,15 @@ | ||||||
|  | #wait-seed-wrapper{ | ||||||
|  |     display: flex; | ||||||
|  |     flex-direction: row; | ||||||
|  |     justify-content: center; | ||||||
|  |     flex-wrap: wrap; | ||||||
|  |     max-width: 620px; | ||||||
|  |     margin-left: auto; | ||||||
|  |     margin-right: auto; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #wait-seed{ | ||||||
|  |     width: 620px; | ||||||
|  |     min-height: 360px; | ||||||
|  |     text-align: center; | ||||||
|  | } | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| {% import "macros.html" as macros %} | {% import "macros.html" as macros %} | ||||||
| 
 | 
 | ||||||
| {% block head %} | {% block head %} | ||||||
|     <title>Multiworld Seed {{ seed.id|suuid }}</title> |     <title>View Seed {{ seed.id|suuid }}</title> | ||||||
|     <link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/viewSeed.css") }}"/> |     <link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/viewSeed.css") }}"/> | ||||||
|     <script type="application/ecmascript" src="{{ static_autoversion("assets/viewSeed.js") }}"></script> |     <script type="application/ecmascript" src="{{ static_autoversion("assets/viewSeed.js") }}"></script> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | @ -11,11 +11,10 @@ | ||||||
|     {% include 'header/oceanHeader.html' %} |     {% include 'header/oceanHeader.html' %} | ||||||
|     <div id="view-seed-wrapper"> |     <div id="view-seed-wrapper"> | ||||||
|         <div id="view-seed" class="grass-island"> |         <div id="view-seed" class="grass-island"> | ||||||
|             <h3>Seed Info</h3> |             <h1>Seed Info</h1> | ||||||
|             {% if not seed.multidata and not seed.spoiler %} |             {% if not seed.multidata and not seed.spoiler %} | ||||||
|             <h4> |                 <p>Single Player Race Rom: No spoiler or multidata exists, parts of the rom are encrypted and rooms | ||||||
|                 Single Player Race Rom: No spoiler or multidata exists, parts of the rom are encrypted and rooms cannot be created. |                     cannot be created.</p> | ||||||
|             </h4> |  | ||||||
|             {% endif %} |             {% endif %} | ||||||
|             <table> |             <table> | ||||||
|                 <tbody> |                 <tbody> | ||||||
|  |  | ||||||
|  | @ -2,15 +2,16 @@ | ||||||
| {% import "macros.html" as macros %} | {% import "macros.html" as macros %} | ||||||
| 
 | 
 | ||||||
| {% block head %} | {% block head %} | ||||||
|     <title>Multiworld Seed {{ seed_id|suuid }} (generating...)</title> |     <title>Generation in Progress</title> | ||||||
|     <meta http-equiv="refresh" content="1"> |     <meta http-equiv="refresh" content="1"> | ||||||
|     <link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/viewSeed.css") }}"/> |     <link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/waitSeed.css") }}"/> | ||||||
| {% endblock %} | {% endblock %} | ||||||
| 
 | 
 | ||||||
| {% block body %} | {% block body %} | ||||||
|     {% include 'header/oceanHeader.html' %} |     {% include 'header/oceanHeader.html' %} | ||||||
|     <div id="wait-seed-wrapper" class="grass-island"> |     <div id="wait-seed-wrapper" class="grass-island"> | ||||||
|         <div class="main-content"> |         <div id="wait-seed"> | ||||||
|  |             <h1>Generation in Progress</h1> | ||||||
|             Waiting for game to generate, this page auto-refreshes to check. |             Waiting for game to generate, this page auto-refreshes to check. | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue