Fix compiler warnings
This commit is contained in:
@@ -127,14 +127,11 @@ pub fn delete_space(server_url: &str, token: &str, space_id: &str) -> Result<(),
|
|||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct ManifestEntry {
|
pub struct ManifestEntry {
|
||||||
pub path: String,
|
pub path: String,
|
||||||
pub kind: String,
|
|
||||||
pub hash: String,
|
pub hash: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct SpaceManifest {
|
pub struct SpaceManifest {
|
||||||
pub space_id: String,
|
|
||||||
pub name: String,
|
|
||||||
pub entrypoint: String,
|
pub entrypoint: String,
|
||||||
pub files: Vec<ManifestEntry>,
|
pub files: Vec<ManifestEntry>,
|
||||||
}
|
}
|
||||||
@@ -158,7 +155,6 @@ pub fn get_manifest(
|
|||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct FileContent {
|
pub struct FileContent {
|
||||||
pub path: String,
|
|
||||||
pub kind: String,
|
pub kind: String,
|
||||||
pub hash: String,
|
pub hash: String,
|
||||||
pub encoding: String,
|
pub encoding: String,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { untrack } from "svelte";
|
||||||
import Modal from "./Modal.svelte";
|
import Modal from "./Modal.svelte";
|
||||||
import * as api from "$lib/ts/api";
|
import * as api from "$lib/ts/api";
|
||||||
|
|
||||||
@@ -10,7 +11,7 @@
|
|||||||
|
|
||||||
let { serverUrl, onsuccess, onclose }: Props = $props();
|
let { serverUrl, onsuccess, onclose }: Props = $props();
|
||||||
|
|
||||||
let url = $state(serverUrl);
|
let url = $state(untrack(() => serverUrl));
|
||||||
let email = $state("");
|
let email = $state("");
|
||||||
let password = $state("");
|
let password = $state("");
|
||||||
let busy = $state(false);
|
let busy = $state(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user