mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
miscellaneous bugfixes
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
import type { HostId } from "./HostId";
|
||||||
|
|
||||||
export type GetServicePortForwardParams = {
|
export type GetServicePortForwardParams = {
|
||||||
packageId: string | null;
|
packageId: string | null;
|
||||||
internalPort: number;
|
internalPort: number;
|
||||||
|
hostId: HostId;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ pub struct UiParams {
|
|||||||
// #[command(display(display_serializable))]
|
// #[command(display(display_serializable))]
|
||||||
#[instrument(skip_all)]
|
#[instrument(skip_all)]
|
||||||
pub async fn ui(ctx: RpcContext, UiParams { pointer, value, .. }: UiParams) -> Result<(), Error> {
|
pub async fn ui(ctx: RpcContext, UiParams { pointer, value, .. }: UiParams) -> Result<(), Error> {
|
||||||
let ptr = "/ui"
|
let ptr = "/public/ui"
|
||||||
.parse::<JsonPointer>()
|
.parse::<JsonPointer>()
|
||||||
.with_kind(ErrorKind::Database)?
|
.with_kind(ErrorKind::Database)?
|
||||||
+ &pointer;
|
+ &pointer;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ fn current_version() -> Version {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Deserialize, Serialize, HasModel)]
|
#[derive(Clone, Debug, Deserialize, Serialize, HasModel)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
#[model = "Model<Self>"]
|
#[model = "Model<Self>"]
|
||||||
pub struct Manifest {
|
pub struct Manifest {
|
||||||
#[serde(default = "current_version")]
|
#[serde(default = "current_version")]
|
||||||
@@ -54,7 +54,7 @@ pub struct Manifest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
#[serde(tag = "type")]
|
#[serde(tag = "type")]
|
||||||
pub enum DependencyRequirement {
|
pub enum DependencyRequirement {
|
||||||
OptIn { how: String },
|
OptIn { how: String },
|
||||||
@@ -68,7 +68,7 @@ impl DependencyRequirement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Deserialize, Serialize, HasModel)]
|
#[derive(Clone, Debug, Deserialize, Serialize, HasModel)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
#[model = "Model<Self>"]
|
#[model = "Model<Self>"]
|
||||||
pub struct DepInfo {
|
pub struct DepInfo {
|
||||||
pub version: VersionRange,
|
pub version: VersionRange,
|
||||||
@@ -77,7 +77,7 @@ pub struct DepInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
pub struct Assets {
|
pub struct Assets {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub license: Option<PathBuf>,
|
pub license: Option<PathBuf>,
|
||||||
|
|||||||
Reference in New Issue
Block a user