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
|
||||
language: system
|
||||
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.
|
||||
|
||||
## [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
|
||||
|
||||
### 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]
|
||||
name = "talon"
|
||||
version = "0.4.1"
|
||||
version = "0.4.2"
|
||||
edition = "2021"
|
||||
authors = ["ThetaDev <t.testboy@gmail.com>"]
|
||||
license = "MIT"
|
||||
|
|
|
@ -41,7 +41,8 @@ for arch in "${ARCHITECTURES[@]}"; do
|
|||
|
||||
# Finalize 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 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>,
|
||||
) -> Result<Response<Json<Vec<Version>>>> {
|
||||
let website = talon.db.get_website(&subdomain)?;
|
||||
talon
|
||||
let mut versions = talon
|
||||
.db
|
||||
.get_website_versions(&subdomain)
|
||||
.map(|r| r.map(Version::from))
|
||||
.collect::<Result<Vec<_>, _>>()
|
||||
.map(|data| {
|
||||
Response::new(Json(data)).header(
|
||||
header::LAST_MODIFIED,
|
||||
httpdate::fmt_http_date(website.updated_at.into()),
|
||||
)
|
||||
})
|
||||
.map_err(Error::from)
|
||||
.collect::<Result<Vec<_>, _>>()?;
|
||||
versions.sort_by_key(|v| v.id);
|
||||
|
||||
Ok(Response::new(Json(versions)).header(
|
||||
header::LAST_MODIFIED,
|
||||
httpdate::fmt_http_date(website.updated_at.into()),
|
||||
))
|
||||
}
|
||||
|
||||
/// Get version
|
||||
|
|
Loading…
Reference in a new issue