Have a few of the basic admin pages working after switching to the API+View pattern.
This commit is contained in:
		
							parent
							
								
									fa7f886a59
								
							
						
					
					
						commit
						2b40d6fdc3
					
				
					 9 changed files with 188 additions and 29 deletions
				
			
		
							
								
								
									
										63
									
								
								public/admin/table/index.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								public/admin/table/index.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,63 @@ | |||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
|   <head> | ||||
|     <meta charset="utf-8" /> | ||||
|     <link rel="stylesheet" href="/global.css"> | ||||
|     <link rel="stylesheet" href="/color.css"> | ||||
|     <link rel="stylesheet" href="/blockstart.css"> | ||||
|     <script defer src="/js/alpine.js"></script> | ||||
|     <script src="/js/code.js"></script> | ||||
|     <title>ZedShaw.games</title> | ||||
|   </head> | ||||
|   <body data-testid="admin-table-index-page"> | ||||
|   <header> | ||||
|     <blockstart style="background-color: var(--value0)"> | ||||
|     <block style="--value: 0; --text: 9" class="horizontal"> | ||||
|       <a id="home" href="/">🏡</a> | ||||
|       <a id="live" href="/live/">Live</a> | ||||
|       <a id="stream" href="/stream/">Streams</a> | ||||
|       <a id="game" href="/game/">Games</a> | ||||
|       <a id="register" href="/register/">Register</a> | ||||
|       <a id="login" href="/login/">Login</a> | ||||
|     </block> | ||||
|     </blockstart> | ||||
|   </header> | ||||
| 
 | ||||
|   <script> | ||||
|   let Tables = new GetJson("/api/admin/table/") | ||||
|   console.log("Tables", Tables) | ||||
| </script> | ||||
| 
 | ||||
| <blockstart> | ||||
| <h1>Admin Tables</h1> | ||||
| 
 | ||||
| <block x-data="Tables"> | ||||
|   <ul> | ||||
|     <template x-for="item in theData"> | ||||
|     <li><a x-bind:href="'/admin/table/' + item + '/'"> | ||||
|         <span x-text="item"></span> | ||||
|       </a></li> | ||||
|     </template> | ||||
|   </ul> | ||||
| </block> | ||||
| 
 | ||||
| </blockstart> | ||||
| 
 | ||||
| 
 | ||||
|   <footer> | ||||
|     <blockstart style="--value: 0; --text: 9"> | ||||
|     <block class="horizontal"> | ||||
|       <shape style="--w: 200px; --h: 250px">Zed Pic</shape> | ||||
|       <div> | ||||
|         <h3>About Me</h3> | ||||
|         <p>Blah blah about me.</p> | ||||
|       </div> | ||||
|       <div> | ||||
|         <h3>Other Projects</h3> | ||||
|         <p>Some other links to stuff.</p> | ||||
|       </div> | ||||
|     </block> | ||||
|     </blockstart> | ||||
|   </footer> | ||||
|   </body> | ||||
| </html> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zed A. Shaw
						Zed A. Shaw