Compare commits
	
		
			5 commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f1ed826eee | |||
| f1e5388db1 | |||
| ba4086bac9 | |||
| 067dae1356 | |||
| 0c8d70d6e1 | 
					 6 changed files with 524 additions and 474 deletions
				
			
		|  | @ -18,4 +18,5 @@ repos: | ||||||
|         name: ui/menu lint+fmt |         name: ui/menu lint+fmt | ||||||
|         language: system |         language: system | ||||||
|         files: ^ui/menu/ |         files: ^ui/menu/ | ||||||
|         entry: sh -c "npm run --prefix ui/menu pc" |         pass_filenames: false | ||||||
|  |         entry: npm run --prefix ui/menu pc | ||||||
|  |  | ||||||
							
								
								
									
										11
									
								
								CHANGELOG.md
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								CHANGELOG.md
									
										
									
									
									
								
							|  | @ -2,6 +2,17 @@ | ||||||
| 
 | 
 | ||||||
| All notable changes to this project will be documented in this file. | All notable changes to this project will be documented in this file. | ||||||
| 
 | 
 | ||||||
|  | ## [0.4.2] - 2023-07-22 | ||||||
|  | 
 | ||||||
|  | ### Bug Fixes | ||||||
|  | 
 | ||||||
|  | - Container entrypoint | ||||||
|  | - Website version ordering | ||||||
|  | 
 | ||||||
|  | ### Miscellaneous Tasks | ||||||
|  | 
 | ||||||
|  | - Fix npm pre-commit hook | ||||||
|  | 
 | ||||||
| ## [0.4.1] - 2023-04-05 | ## [0.4.1] - 2023-04-05 | ||||||
| 
 | 
 | ||||||
| ### Bug Fixes | ### Bug Fixes | ||||||
|  |  | ||||||
							
								
								
									
										962
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										962
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -1,6 +1,6 @@ | ||||||
| [package] | [package] | ||||||
| name = "talon" | name = "talon" | ||||||
| version = "0.4.1" | version = "0.4.2" | ||||||
| edition = "2021" | edition = "2021" | ||||||
| authors = ["ThetaDev <t.testboy@gmail.com>"] | authors = ["ThetaDev <t.testboy@gmail.com>"] | ||||||
| license = "MIT" | license = "MIT" | ||||||
|  |  | ||||||
|  | @ -41,7 +41,8 @@ for arch in "${ARCHITECTURES[@]}"; do | ||||||
| 
 | 
 | ||||||
|     # Finalize container |     # Finalize container | ||||||
|     buildah umount "$container" |     buildah umount "$container" | ||||||
|     buildah config --entrypoint "/talon" --cmd "run -d /data" --arch "$arch" --port 3000 --author "ThetaDev" "$container" |     # entrypoint syntax: see issue https://github.com/containers/buildah/issues/1768 | ||||||
|  |     buildah config --entrypoint '["/talon"]' --cmd "run -d /data" --arch "$arch" --port 3000 --author "ThetaDev" "$container" | ||||||
|     buildah commit "$container" "$IMAGE:$arch-$TAG" |     buildah commit "$container" "$IMAGE:$arch-$TAG" | ||||||
| 
 | 
 | ||||||
|     buildah manifest add "$REGISTRY/$IMAGE:$TAG" "$IMAGE:$arch-$TAG" |     buildah manifest add "$REGISTRY/$IMAGE:$TAG" "$IMAGE:$arch-$TAG" | ||||||
|  |  | ||||||
							
								
								
									
										17
									
								
								src/api.rs
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								src/api.rs
									
										
									
									
									
								
							|  | @ -300,18 +300,17 @@ impl TalonApi { | ||||||
|         subdomain: Path<String>, |         subdomain: Path<String>, | ||||||
|     ) -> Result<Response<Json<Vec<Version>>>> { |     ) -> Result<Response<Json<Vec<Version>>>> { | ||||||
|         let website = talon.db.get_website(&subdomain)?; |         let website = talon.db.get_website(&subdomain)?; | ||||||
|         talon |         let mut versions = talon | ||||||
|             .db |             .db | ||||||
|             .get_website_versions(&subdomain) |             .get_website_versions(&subdomain) | ||||||
|             .map(|r| r.map(Version::from)) |             .map(|r| r.map(Version::from)) | ||||||
|             .collect::<Result<Vec<_>, _>>() |             .collect::<Result<Vec<_>, _>>()?; | ||||||
|             .map(|data| { |         versions.sort_by_key(|v| v.id); | ||||||
|                 Response::new(Json(data)).header( | 
 | ||||||
|                     header::LAST_MODIFIED, |         Ok(Response::new(Json(versions)).header( | ||||||
|                     httpdate::fmt_http_date(website.updated_at.into()), |             header::LAST_MODIFIED, | ||||||
|                 ) |             httpdate::fmt_http_date(website.updated_at.into()), | ||||||
|             }) |         )) | ||||||
|             .map_err(Error::from) |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Get version
 |     /// Get version
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue