From 79a31a161c6c4bb243a5a1f00f047271b67d9193 Mon Sep 17 00:00:00 2001 From: emerald Date: Fri, 11 Nov 2022 13:00:36 -0500 Subject: [PATCH] improve animation translations --- .helix/languages.toml | 8 ++++ ray_format/Cargo.toml | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 16 ++++---- src/components/tube.svelte | 80 ++++++++++++++++++++++++++++++++------ src/store.ts | 16 -------- src/types.ts | 19 ++++++++- src/views/main.svelte | 3 +- 8 files changed, 106 insertions(+), 40 deletions(-) diff --git a/.helix/languages.toml b/.helix/languages.toml index a2ba45f..bfa3f73 100644 --- a/.helix/languages.toml +++ b/.helix/languages.toml @@ -1,3 +1,11 @@ [[language]] name = "svelte" auto-format = true + +[[language]] +name = "typescript" +auto-format = true + +[[language]] +name = 'toml' +auto-format = true diff --git a/ray_format/Cargo.toml b/ray_format/Cargo.toml index 0983af8..80f0bce 100644 --- a/ray_format/Cargo.toml +++ b/ray_format/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ray_format" -version = "0.1.0" +version = "0.2.0" edition = "2021" license = "GPL-3.0-or-later" authors = ["AnActualEmerald"] diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index c08d6b7..933d35c 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2685,7 +2685,7 @@ dependencies = [ [[package]] name = "ray_format" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "log", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c58a626..8ceba61 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -9,11 +9,11 @@ edition = "2021" [package.metadata.generate-rpm] assets = [ - {source= "target/release/cathode", dest= "/usr/bin/cathode", mode= "755"}, - {source="cathode-tube.desktop", dest="/usr/share/applications/cathode-tube.desktop", mode="0644"}, - {source="application-cathode.xml", dest="/usr/share/mime/packages/application-cathode.xml", mode="0644"}, - {source="icons/128x128.png", dest="/usr/share/icons/hicolor/128x128/apps/cathode-tube.png", mode="0644"}, - {source="icons/128x128@2x.png", dest="/usr/share/icons/hicolor/256x256@2/apps/cathode-tube.png", mode="0644"}, + { source = "target/release/cathode", dest = "/usr/bin/cathode", mode = "755" }, + { source = "cathode-tube.desktop", dest = "/usr/share/applications/cathode-tube.desktop", mode = "0644" }, + { source = "application-cathode.xml", dest = "/usr/share/mime/packages/application-cathode.xml", mode = "0644" }, + { source = "icons/128x128.png", dest = "/usr/share/icons/hicolor/128x128/apps/cathode-tube.png", mode = "0644" }, + { source = "icons/128x128@2x.png", dest = "/usr/share/icons/hicolor/256x256@2/apps/cathode-tube.png", mode = "0644" }, ] auto-req = "no" @@ -39,7 +39,7 @@ serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } tauri = { version = "1.2.0", features = ["cli", "dialog-all", "fs-create-dir", "fs-read-dir", "fs-read-file", "fs-write-file", "macos-private-api", "window-minimize", "window-set-max-size", "window-set-min-size", "window-unminimize"] } cpal = { version = "0.14.1", features = ["jack"] } -ray_format = {path = "../ray_format", version = "~0.1.0"} +ray_format = { path = "../ray_format", version = ">=0.1.0" } anyhow = "1.0.66" log = "0.4.17" env_logger = "0.9.3" @@ -53,7 +53,7 @@ notify = "5.0.0" [features] # by default Tauri runs in production mode # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL -default = [ "custom-protocol" ] +default = ["custom-protocol"] # this feature is used used for production builds where `devPath` points to the filesystem # DO NOT remove this -custom-protocol = [ "tauri/custom-protocol" ] +custom-protocol = ["tauri/custom-protocol"] diff --git a/src/components/tube.svelte b/src/components/tube.svelte index 533c66d..473da38 100644 --- a/src/components/tube.svelte +++ b/src/components/tube.svelte @@ -1,17 +1,37 @@ + +