From 960d22a2b8914a1e4c07602f83ccf7ad9bb9f75e Mon Sep 17 00:00:00 2001 From: DeMineArchiver Date: Sat, 6 Apr 2024 20:49:50 +0300 Subject: [PATCH] Remove FTP plugin --- Cargo.lock | 260 +++--------- Cargo.toml | 2 - apps/backend/Cargo.toml | 1 - apps/frontend/package.json | 1 - .../common/src/css/functions/color-mix.ts | 57 --- .../src/css/functions/easing-function.ts | 16 - .../common/src/css/functions/transition.ts | 7 - packages/tauri-plugin-ftp/Cargo.toml | 18 - packages/tauri-plugin-ftp/api/index.ts | 13 - packages/tauri-plugin-ftp/build.rs | 6 - packages/tauri-plugin-ftp/package.json | 15 - .../autogenerated/commands/connect.toml | 13 - .../autogenerated/commands/execute.toml | 13 - .../autogenerated/commands/login.toml | 13 - .../autogenerated/commands/ping.toml | 13 - .../autogenerated/commands/retr.toml | 13 - .../permissions/autogenerated/reference.md | 12 - .../permissions/schemas/schema.json | 370 ------------------ packages/tauri-plugin-ftp/src/commands.rs | 22 -- packages/tauri-plugin-ftp/src/lib.rs | 41 -- packages/tauri-plugin-ftp/tsconfig.json | 8 - yarn.lock | 11 - 22 files changed, 44 insertions(+), 881 deletions(-) delete mode 100644 packages/common/src/css/functions/color-mix.ts delete mode 100644 packages/common/src/css/functions/easing-function.ts delete mode 100644 packages/common/src/css/functions/transition.ts delete mode 100644 packages/tauri-plugin-ftp/Cargo.toml delete mode 100644 packages/tauri-plugin-ftp/api/index.ts delete mode 100644 packages/tauri-plugin-ftp/build.rs delete mode 100644 packages/tauri-plugin-ftp/package.json delete mode 100644 packages/tauri-plugin-ftp/permissions/autogenerated/commands/connect.toml delete mode 100644 packages/tauri-plugin-ftp/permissions/autogenerated/commands/execute.toml delete mode 100644 packages/tauri-plugin-ftp/permissions/autogenerated/commands/login.toml delete mode 100644 packages/tauri-plugin-ftp/permissions/autogenerated/commands/ping.toml delete mode 100644 packages/tauri-plugin-ftp/permissions/autogenerated/commands/retr.toml delete mode 100644 packages/tauri-plugin-ftp/permissions/autogenerated/reference.md delete mode 100644 packages/tauri-plugin-ftp/permissions/schemas/schema.json delete mode 100644 packages/tauri-plugin-ftp/src/commands.rs delete mode 100644 packages/tauri-plugin-ftp/src/lib.rs delete mode 100644 packages/tauri-plugin-ftp/tsconfig.json diff --git a/Cargo.lock b/Cargo.lock index 6e4e4fb..82583b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,22 +28,13 @@ dependencies = [ "version_check", ] -[[package]] -name = "aho-corasick" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca972c2ea5f742bfce5687b9aef75506a764f61d37f8f649047846a9686ddb66" -dependencies = [ - "memchr 0.1.11", -] - [[package]] name = "aho-corasick" version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ - "memchr 2.7.2", + "memchr", ] [[package]] @@ -451,7 +442,6 @@ dependencies = [ "tauri-plugin-cli", "tauri-plugin-dialog", "tauri-plugin-dwm", - "tauri-plugin-ftp", "tauri-plugin-log", "tauri-plugin-shell", "tauri-plugin-single-instance", @@ -716,16 +706,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77e53693616d3075149f4ead59bdeecd204ac6b8192d8969757601b74bddf00f" -[[package]] -name = "chrono" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9213f7cd7c27e95c2b57c49f0e69b1ea65b27138da84a170133fd21b07659c00" -dependencies = [ - "num", - "time 0.1.45", -] - [[package]] name = "chrono" version = "0.4.37" @@ -831,7 +811,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" dependencies = [ "bytes", - "memchr 2.7.2", + "memchr", ] [[package]] @@ -1104,7 +1084,7 @@ checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" dependencies = [ "libc", "redox_users", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1115,7 +1095,7 @@ checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", "redox_users", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1142,7 +1122,7 @@ dependencies = [ "dlopen2_derive", "libc", "once_cell", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1199,7 +1179,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6985554d0688b687c5cb73898a34fbe3ad6c24c58c238a4d91d5e840670ee9d" dependencies = [ "cc", - "memchr 2.7.2", + "memchr", "rustc_version", "toml 0.8.12", "vswhom", @@ -1255,7 +1235,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" dependencies = [ "log", - "regex 1.10.4", + "regex", ] [[package]] @@ -1473,17 +1453,6 @@ dependencies = [ "libc", ] -[[package]] -name = "ftp" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "542951aad0071952c27409e3bd7cb62d1a3ad419c4e7314106bf994e0083ad5d" -dependencies = [ - "chrono 0.2.25", - "lazy_static 0.1.16", - "regex 0.1.80", -] - [[package]] name = "funty" version = "2.0.0" @@ -1580,7 +1549,7 @@ dependencies = [ "futures-macro", "futures-sink", "futures-task", - "memchr 2.7.2", + "memchr", "pin-project-lite", "pin-utils", "slab", @@ -1784,7 +1753,7 @@ dependencies = [ "gobject-sys 0.16.3", "libc", "system-deps", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1797,7 +1766,7 @@ dependencies = [ "gobject-sys 0.18.0", "libc", "system-deps", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1839,7 +1808,7 @@ dependencies = [ "glib-sys 0.18.1", "gobject-sys 0.18.0", "libc", - "memchr 2.7.2", + "memchr", "once_cell", "smallvec", "thiserror", @@ -2379,16 +2348,6 @@ dependencies = [ "treediff", ] -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - [[package]] name = "keyboard-types" version = "0.7.0" @@ -2451,7 +2410,7 @@ checksum = "5d12be4595afdf58bd19e4a9f4e24187da2a66700786ff660a418e9059937a4c" dependencies = [ "lazy-regex-proc_macros", "once_cell", - "regex 1.10.4", + "regex", ] [[package]] @@ -2462,16 +2421,10 @@ checksum = "44bcd58e6c97a7fcbaffcdc95728b393b8d98933bfadad49ed4097845b57ef0b" dependencies = [ "proc-macro2", "quote", - "regex 1.10.4", + "regex", "syn 2.0.58", ] -[[package]] -name = "lazy_static" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf186d1a8aa5f5bee5fd662bc9c1b949e0259e1bcc379d1f006847b0080c7417" - [[package]] name = "lazy_static" version = "1.4.0" @@ -2515,7 +2468,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" dependencies = [ "cfg-if", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2628,15 +2581,6 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" -[[package]] -name = "memchr" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b629fb514376c675b98c1421e80b151d3817ac42d7c667717d282761418d20" -dependencies = [ - "libc", -] - [[package]] name = "memchr" version = "2.7.2" @@ -2714,7 +2658,7 @@ version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "libc", "log", "openssl", @@ -2806,18 +2750,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" dependencies = [ "overload", - "winapi 0.3.9", -] - -[[package]] -name = "num" -version = "0.1.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4703ad64153382334aa8db57c637364c322d3372e097840c72000dabdcf6156e" -dependencies = [ - "num-integer", - "num-iter", - "num-traits", + "winapi", ] [[package]] @@ -2826,26 +2759,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" -[[package]] -name = "num-integer" -version = "0.1.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-iter" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d869c01cc0c455284163fd0092f1f93835385ccab5a98a0dcc497b2f8bf055a9" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.18" @@ -2940,7 +2853,7 @@ version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" dependencies = [ - "memchr 2.7.2", + "memchr", ] [[package]] @@ -3296,7 +3209,7 @@ dependencies = [ "line-wrap", "quick-xml", "serde", - "time 0.3.34", + "time", ] [[package]] @@ -3438,7 +3351,7 @@ version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33" dependencies = [ - "memchr 2.7.2", + "memchr", ] [[package]] @@ -3569,27 +3482,14 @@ dependencies = [ "thiserror", ] -[[package]] -name = "regex" -version = "0.1.80" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fd4ace6a8cf7860714a2c2280d6c1f7e6a413486c13298bbc86fd3da019402f" -dependencies = [ - "aho-corasick 0.5.3", - "memchr 0.1.11", - "regex-syntax 0.3.9", - "thread_local 0.2.7", - "utf8-ranges", -] - [[package]] name = "regex" version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ - "aho-corasick 1.1.3", - "memchr 2.7.2", + "aho-corasick", + "memchr", "regex-automata 0.4.6", "regex-syntax 0.8.3", ] @@ -3609,17 +3509,11 @@ version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ - "aho-corasick 1.1.3", - "memchr 2.7.2", + "aho-corasick", + "memchr", "regex-syntax 0.8.3", ] -[[package]] -name = "regex-syntax" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9ec002c35e86791825ed294b50008eea9ddfc8def4420124fbc6b08db834957" - [[package]] name = "regex-syntax" version = "0.6.29" @@ -4047,7 +3941,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee80b0e361bbf88fd2f6e242ccd19cfda072cb0faa6ae694ecee08199938569a" dependencies = [ "base64 0.21.7", - "chrono 0.4.37", + "chrono", "hex", "indexmap 1.9.3", "indexmap 2.2.6", @@ -4055,7 +3949,7 @@ dependencies = [ "serde_derive", "serde_json", "serde_with_macros", - "time 0.3.34", + "time", ] [[package]] @@ -4130,7 +4024,7 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", ] [[package]] @@ -4140,7 +4034,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b0d94659ad3c2137fef23ae75b03d5241d633f8acded53d672decfa0e6e0caef" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -4341,7 +4235,7 @@ version = "5.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9290ef2d57a47ebc32442cbc74ce039e5483e59b6e099a3361346d894b89196" dependencies = [ - "chrono 0.4.37", + "chrono", "lazy-regex", "log", "thiserror", @@ -4461,7 +4355,7 @@ dependencies = [ "gtk", "instant", "jni", - "lazy_static 1.4.0", + "lazy_static", "libc", "log", "ndk", @@ -4595,7 +4489,7 @@ dependencies = [ "syn 2.0.58", "tauri-utils", "thiserror", - "time 0.3.34", + "time", "url", "uuid", "walkdir", @@ -4712,18 +4606,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "tauri-plugin-ftp" -version = "0.0.0" -dependencies = [ - "ftp", - "serde", - "tauri", - "tauri-plugin", - "thiserror", - "url", -] - [[package]] name = "tauri-plugin-log" version = "2.0.0-beta.3" @@ -4742,7 +4624,7 @@ dependencies = [ "swift-rs", "tauri", "tauri-plugin", - "time 0.3.34", + "time", ] [[package]] @@ -4755,7 +4637,7 @@ dependencies = [ "log", "open", "os_pipe", - "regex 1.10.4", + "regex", "schemars", "serde", "serde_json", @@ -4855,11 +4737,11 @@ dependencies = [ "json-patch", "kuchikiki", "log", - "memchr 2.7.2", + "memchr", "phf 0.11.2", "proc-macro2", "quote", - "regex 1.10.4", + "regex", "schemars", "semver", "serde", @@ -4932,25 +4814,6 @@ dependencies = [ "syn 2.0.58", ] -[[package]] -name = "thread-id" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9539db560102d1cef46b8b78ce737ff0bb64e7e18d35b2a5688f7d097d0ff03" -dependencies = [ - "kernel32-sys", - "libc", -] - -[[package]] -name = "thread_local" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8576dbbfcaef9641452d5cf0df9b0e7eeab7694956dd33bb61515fb8f18cfdd5" -dependencies = [ - "thread-id", -] - [[package]] name = "thread_local" version = "1.1.8" @@ -4961,17 +4824,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "time" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi 0.3.9", -] - [[package]] name = "time" version = "0.3.34" @@ -5250,10 +5102,10 @@ dependencies = [ "matchers", "nu-ansi-term", "once_cell", - "regex 1.10.4", + "regex", "sharded-slab", "smallvec", - "thread_local 1.1.8", + "thread_local", "tracing", "tracing-core", "tracing-log", @@ -5314,7 +5166,7 @@ checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9" dependencies = [ "memoffset", "tempfile", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -5434,7 +5286,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9bd5ff03aea02fa45b13a7980151fe45009af1980ba69f651ec367121a31609" dependencies = [ "derive_more", - "regex 1.10.4", + "regex", "serde", "unic-ucd-ident", "url", @@ -5473,12 +5325,6 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" -[[package]] -name = "utf8-ranges" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f" - [[package]] name = "utf8-width" version = "0.1.7" @@ -5575,12 +5421,6 @@ version = "0.9.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -5773,12 +5613,6 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082" -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - [[package]] name = "winapi" version = "0.3.9" @@ -5789,12 +5623,6 @@ dependencies = [ "winapi-x86_64-pc-windows-gnu", ] -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" - [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" @@ -5807,7 +5635,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -6113,7 +5941,7 @@ version = "0.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" dependencies = [ - "memchr 2.7.2", + "memchr", ] [[package]] @@ -6122,7 +5950,7 @@ version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" dependencies = [ - "memchr 2.7.2", + "memchr", ] [[package]] @@ -6131,7 +5959,7 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -6233,7 +6061,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21e5a325c3cb8398ad6cf859c1135b25dd29e186679cf2da7581d9679f63b38e" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -6291,7 +6119,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "regex 1.10.4", + "regex", "syn 1.0.109", "zvariant_utils", ] diff --git a/Cargo.toml b/Cargo.toml index a647e92..7569ee4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,6 @@ resolver = "2" members = [ "apps/backend", - "packages/tauri-plugin-ftp", "packages/tauri-plugin-dwm", ] @@ -12,5 +11,4 @@ edition = "2021" license = "ISC" [workspace.dependencies] -tauri-plugin-ftp = { path = "packages/tauri-plugin-ftp" } tauri-plugin-dwm = { path = "packages/tauri-plugin-dwm" } diff --git a/apps/backend/Cargo.toml b/apps/backend/Cargo.toml index 363edf4..496963c 100644 --- a/apps/backend/Cargo.toml +++ b/apps/backend/Cargo.toml @@ -30,7 +30,6 @@ suppaftp = { version = "5.3"} url = "2" notify = "6" -tauri-plugin-ftp.workspace = true tauri-plugin-dwm.workspace = true windows-core = "0.54" diff --git a/apps/frontend/package.json b/apps/frontend/package.json index b51be4a..550c1e8 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -14,7 +14,6 @@ "@blending/css": "workspace:^", "@blending/material": "workspace:^", "@blending/tauri-plugin-dwm": "workspace:^", - "@blending/tauri-plugin-ftp": "workspace:^", "@material/material-color-utilities": "^0.2.7", "@solid-primitives/context": "^0.2.3", "@solidjs/router": "^0.13.1", diff --git a/packages/common/src/css/functions/color-mix.ts b/packages/common/src/css/functions/color-mix.ts deleted file mode 100644 index 6ff568d..0000000 --- a/packages/common/src/css/functions/color-mix.ts +++ /dev/null @@ -1,57 +0,0 @@ - -type RectangularColorSpace = - | "srgb" - | "srgb-linear" - | "display-p3" - | "a98-rgb" - | "prophoto-rgb" - | "rec2020" - | "lab" - | "oklab" - | "xyz" - | "xyz-d50" - | "xyz-d65"; -type PolarColorSpace = - | "hsl" - | "hwb" - | "lch" - | "oklch"; -type ColorSpace = RectangularColorSpace | PolarColorSpace; - -// type HueInterpolationMethod = [ shorter | longer | increasing | decreasing ] hue -type HueInterpolationMethod = `${"shorter" | "longer" | "increasing" | "decreasing"} hue` - -type ColorInterpolationMethod = ColorSpace; - -type Percentage = number | `${number}%`; - - -type ColorMixColor = - | string - | [string, Percentage]; - -const parsePercentage = (value: Percentage) => { - if(typeof value === "number") return `${value}%`; - else return value.endsWith("%") ? value : `${value}%`; -} - -export const colorMix = ( - space: ColorInterpolationMethod, - // hue?: HueInterpolationMethod, - color1: ColorMixColor, - color2: ColorMixColor -): string => { - const getColor = (color: ColorMixColor) => { - if(typeof color === "string") return color; - else return `${color[0]} ${parsePercentage(color[1])}` - } - - const parts: string[] = [ - `in ${space}`, - getColor(color1), - getColor(color2), - ]; - return `color-mix(${parts.join(",")})`; - // return `color-mix(in ${space})`; -} - diff --git a/packages/common/src/css/functions/easing-function.ts b/packages/common/src/css/functions/easing-function.ts deleted file mode 100644 index 7643418..0000000 --- a/packages/common/src/css/functions/easing-function.ts +++ /dev/null @@ -1,16 +0,0 @@ -type CubicBezierArgs = - | [ - | "ease" - | "ease-in" - | "ease-out" - | "ease-in-out" - ] - | [x1: number, y1: number, x2: number, y2: number]; - -export const cubicBezier = (...args: CubicBezierArgs) => { - if(typeof args === "string") return args; - return `cubic-bezier(${args.join(",")})` -} -export const steps = () => { - -} diff --git a/packages/common/src/css/functions/transition.ts b/packages/common/src/css/functions/transition.ts deleted file mode 100644 index a1ba379..0000000 --- a/packages/common/src/css/functions/transition.ts +++ /dev/null @@ -1,7 +0,0 @@ -type SingleTransition = `${string}`; - -export const transition = ( - ...transitions: [], -) => { - -} diff --git a/packages/tauri-plugin-ftp/Cargo.toml b/packages/tauri-plugin-ftp/Cargo.toml deleted file mode 100644 index 6587ff6..0000000 --- a/packages/tauri-plugin-ftp/Cargo.toml +++ /dev/null @@ -1,18 +0,0 @@ -[package] -name = "tauri-plugin-ftp" -version = "0.0.0" -authors.workspace = true -description = "" -edition.workspace = true -links = "tauri-plugin-ftp" - -[dependencies] -tauri = { version = "2.0.0-beta" } -serde = "1.0" -thiserror = "1.0" - -ftp = "3.0" -url = "2.5" - -[build-dependencies] -tauri-plugin = { version = "2.0.0-beta", features = ["build"] } diff --git a/packages/tauri-plugin-ftp/api/index.ts b/packages/tauri-plugin-ftp/api/index.ts deleted file mode 100644 index 3780641..0000000 --- a/packages/tauri-plugin-ftp/api/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { invoke } from "@tauri-apps/api/core"; - -export interface FtpStreamOptions { - address: string; -} - -export class FtpStream { - protected constructor(private readonly address: string) {} - - static async connect(options: FtpStreamOptions): Promise { - return new FtpStream(options.address); - } -} diff --git a/packages/tauri-plugin-ftp/build.rs b/packages/tauri-plugin-ftp/build.rs deleted file mode 100644 index 6bc1d72..0000000 --- a/packages/tauri-plugin-ftp/build.rs +++ /dev/null @@ -1,6 +0,0 @@ -const COMMANDS: &[&str] = &["connect", "login", "retr"]; - -fn main() { - tauri_plugin::Builder::new(COMMANDS) - .build(); -} diff --git a/packages/tauri-plugin-ftp/package.json b/packages/tauri-plugin-ftp/package.json deleted file mode 100644 index b9eb7f9..0000000 --- a/packages/tauri-plugin-ftp/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "private": true, - "name": "@blending/tauri-plugin-ftp", - "packageManager": "yarn@4.1.1", - "exports": { - ".": "./src/index.ts" - }, - "devDependencies": { - "@tauri-apps/cli": ">=2.0.0-beta.0", - "typescript": "^5.4.4" - }, - "dependencies": { - "@tauri-apps/api": ">=2.0.0-beta.0" - } -} diff --git a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/connect.toml b/packages/tauri-plugin-ftp/permissions/autogenerated/commands/connect.toml deleted file mode 100644 index 49ce9ad..0000000 --- a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/connect.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-connect" -description = "Enables the connect command without any pre-configured scope." -commands.allow = ["connect"] - -[[permission]] -identifier = "deny-connect" -description = "Denies the connect command without any pre-configured scope." -commands.deny = ["connect"] diff --git a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/execute.toml b/packages/tauri-plugin-ftp/permissions/autogenerated/commands/execute.toml deleted file mode 100644 index d98be89..0000000 --- a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/execute.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-execute" -description = "Enables the execute command without any pre-configured scope." -commands.allow = ["execute"] - -[[permission]] -identifier = "deny-execute" -description = "Denies the execute command without any pre-configured scope." -commands.deny = ["execute"] diff --git a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/login.toml b/packages/tauri-plugin-ftp/permissions/autogenerated/commands/login.toml deleted file mode 100644 index b5bf4af..0000000 --- a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/login.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-login" -description = "Enables the login command without any pre-configured scope." -commands.allow = ["login"] - -[[permission]] -identifier = "deny-login" -description = "Denies the login command without any pre-configured scope." -commands.deny = ["login"] diff --git a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/ping.toml b/packages/tauri-plugin-ftp/permissions/autogenerated/commands/ping.toml deleted file mode 100644 index 1d13588..0000000 --- a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/ping.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-ping" -description = "Enables the ping command without any pre-configured scope." -commands.allow = ["ping"] - -[[permission]] -identifier = "deny-ping" -description = "Denies the ping command without any pre-configured scope." -commands.deny = ["ping"] diff --git a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/retr.toml b/packages/tauri-plugin-ftp/permissions/autogenerated/commands/retr.toml deleted file mode 100644 index bad06cf..0000000 --- a/packages/tauri-plugin-ftp/permissions/autogenerated/commands/retr.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-retr" -description = "Enables the retr command without any pre-configured scope." -commands.allow = ["retr"] - -[[permission]] -identifier = "deny-retr" -description = "Denies the retr command without any pre-configured scope." -commands.deny = ["retr"] diff --git a/packages/tauri-plugin-ftp/permissions/autogenerated/reference.md b/packages/tauri-plugin-ftp/permissions/autogenerated/reference.md deleted file mode 100644 index 2e9b6c4..0000000 --- a/packages/tauri-plugin-ftp/permissions/autogenerated/reference.md +++ /dev/null @@ -1,12 +0,0 @@ -| Permission | Description | -|------|-----| -|`allow-connect`|Enables the connect command without any pre-configured scope.| -|`deny-connect`|Denies the connect command without any pre-configured scope.| -|`allow-execute`|Enables the execute command without any pre-configured scope.| -|`deny-execute`|Denies the execute command without any pre-configured scope.| -|`allow-login`|Enables the login command without any pre-configured scope.| -|`deny-login`|Denies the login command without any pre-configured scope.| -|`allow-ping`|Enables the ping command without any pre-configured scope.| -|`deny-ping`|Denies the ping command without any pre-configured scope.| -|`allow-retr`|Enables the retr command without any pre-configured scope.| -|`deny-retr`|Denies the retr command without any pre-configured scope.| diff --git a/packages/tauri-plugin-ftp/permissions/schemas/schema.json b/packages/tauri-plugin-ftp/permissions/schemas/schema.json deleted file mode 100644 index bd1c00b..0000000 --- a/packages/tauri-plugin-ftp/permissions/schemas/schema.json +++ /dev/null @@ -1,370 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "PermissionFile", - "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", - "type": "object", - "properties": { - "default": { - "description": "The default permission set for the plugin", - "anyOf": [ - { - "$ref": "#/definitions/DefaultPermission" - }, - { - "type": "null" - } - ] - }, - "set": { - "description": "A list of permissions sets defined", - "type": "array", - "items": { - "$ref": "#/definitions/PermissionSet" - } - }, - "permission": { - "description": "A list of inlined permissions", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/Permission" - } - } - }, - "definitions": { - "DefaultPermission": { - "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", - "type": "object", - "required": [ - "permissions" - ], - "properties": { - "version": { - "description": "The version of the permission.", - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 1.0 - }, - "description": { - "description": "Human-readable description of what the permission does.", - "type": [ - "string", - "null" - ] - }, - "permissions": { - "description": "All permissions this set contains.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "PermissionSet": { - "description": "A set of direct permissions grouped together under a new name.", - "type": "object", - "required": [ - "description", - "identifier", - "permissions" - ], - "properties": { - "identifier": { - "description": "A unique identifier for the permission.", - "type": "string" - }, - "description": { - "description": "Human-readable description of what the permission does.", - "type": "string" - }, - "permissions": { - "description": "All permissions this set contains.", - "type": "array", - "items": { - "$ref": "#/definitions/PermissionKind" - } - } - } - }, - "Permission": { - "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.", - "type": "object", - "required": [ - "identifier" - ], - "properties": { - "version": { - "description": "The version of the permission.", - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 1.0 - }, - "identifier": { - "description": "A unique identifier for the permission.", - "type": "string" - }, - "description": { - "description": "Human-readable description of what the permission does.", - "type": [ - "string", - "null" - ] - }, - "commands": { - "description": "Allowed or denied commands when using this permission.", - "default": { - "allow": [], - "deny": [] - }, - "allOf": [ - { - "$ref": "#/definitions/Commands" - } - ] - }, - "scope": { - "description": "Allowed or denied scoped when using this permission.", - "allOf": [ - { - "$ref": "#/definitions/Scopes" - } - ] - }, - "platforms": { - "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Target" - } - } - } - }, - "Commands": { - "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.", - "type": "object", - "properties": { - "allow": { - "description": "Allowed command.", - "default": [], - "type": "array", - "items": { - "type": "string" - } - }, - "deny": { - "description": "Denied command, which takes priority.", - "default": [], - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "Scopes": { - "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.", - "type": "object", - "properties": { - "allow": { - "description": "Data that defines what is allowed by the scope.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Value" - } - }, - "deny": { - "description": "Data that defines what is denied by the scope.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Value" - } - } - } - }, - "Value": { - "description": "All supported ACL values.", - "anyOf": [ - { - "description": "Represents a null JSON value.", - "type": "null" - }, - { - "description": "Represents a [`bool`].", - "type": "boolean" - }, - { - "description": "Represents a valid ACL [`Number`].", - "allOf": [ - { - "$ref": "#/definitions/Number" - } - ] - }, - { - "description": "Represents a [`String`].", - "type": "string" - }, - { - "description": "Represents a list of other [`Value`]s.", - "type": "array", - "items": { - "$ref": "#/definitions/Value" - } - }, - { - "description": "Represents a map of [`String`] keys to [`Value`]s.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Value" - } - } - ] - }, - "Number": { - "description": "A valid ACL number.", - "anyOf": [ - { - "description": "Represents an [`i64`].", - "type": "integer", - "format": "int64" - }, - { - "description": "Represents a [`f64`].", - "type": "number", - "format": "double" - } - ] - }, - "Target": { - "description": "Platform target.", - "oneOf": [ - { - "description": "MacOS.", - "type": "string", - "enum": [ - "macOS" - ] - }, - { - "description": "Windows.", - "type": "string", - "enum": [ - "windows" - ] - }, - { - "description": "Linux.", - "type": "string", - "enum": [ - "linux" - ] - }, - { - "description": "Android.", - "type": "string", - "enum": [ - "android" - ] - }, - { - "description": "iOS.", - "type": "string", - "enum": [ - "iOS" - ] - } - ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "allow-connect -> Enables the connect command without any pre-configured scope.", - "type": "string", - "enum": [ - "allow-connect" - ] - }, - { - "description": "deny-connect -> Denies the connect command without any pre-configured scope.", - "type": "string", - "enum": [ - "deny-connect" - ] - }, - { - "description": "allow-execute -> Enables the execute command without any pre-configured scope.", - "type": "string", - "enum": [ - "allow-execute" - ] - }, - { - "description": "deny-execute -> Denies the execute command without any pre-configured scope.", - "type": "string", - "enum": [ - "deny-execute" - ] - }, - { - "description": "allow-login -> Enables the login command without any pre-configured scope.", - "type": "string", - "enum": [ - "allow-login" - ] - }, - { - "description": "deny-login -> Denies the login command without any pre-configured scope.", - "type": "string", - "enum": [ - "deny-login" - ] - }, - { - "description": "allow-ping -> Enables the ping command without any pre-configured scope.", - "type": "string", - "enum": [ - "allow-ping" - ] - }, - { - "description": "deny-ping -> Denies the ping command without any pre-configured scope.", - "type": "string", - "enum": [ - "deny-ping" - ] - }, - { - "description": "allow-retr -> Enables the retr command without any pre-configured scope.", - "type": "string", - "enum": [ - "allow-retr" - ] - }, - { - "description": "deny-retr -> Denies the retr command without any pre-configured scope.", - "type": "string", - "enum": [ - "deny-retr" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/packages/tauri-plugin-ftp/src/commands.rs b/packages/tauri-plugin-ftp/src/commands.rs deleted file mode 100644 index fffc6ef..0000000 --- a/packages/tauri-plugin-ftp/src/commands.rs +++ /dev/null @@ -1,22 +0,0 @@ -use std::{net::{SocketAddr, ToSocketAddrs}, os::windows::io::RawSocket}; - -use ftp::FtpStream; -use tauri::{command, AppHandle, Manager, Runtime, State}; -use url::Url; - -use crate::Connections; - -#[command] -pub(crate) async fn connect( - app: AppHandle, - state: State<'_, Connections>, - address: SocketAddr, // mirrors.dotsrc.org:21 -) -> Result<(), ()> { - let mut connections = state.0.lock().unwrap(); - let stream = FtpStream::connect(address).unwrap(); - connections.insert( - address, - stream, - ); - Ok(()) -} diff --git a/packages/tauri-plugin-ftp/src/lib.rs b/packages/tauri-plugin-ftp/src/lib.rs deleted file mode 100644 index e075660..0000000 --- a/packages/tauri-plugin-ftp/src/lib.rs +++ /dev/null @@ -1,41 +0,0 @@ -use std::{collections::HashMap, net::SocketAddr, sync::Mutex}; - -use ftp::FtpStream; -use tauri::{generate_handler, plugin::{Builder, TauriPlugin}, AppHandle, Manager, Runtime}; -use url::Url; - -mod commands; - -#[derive(Default)] -struct Connections(Mutex>); - -pub struct Ftp { - app: AppHandle, -} - -pub trait FtpExt { - fn ftp(&self) -> &Ftp; -} - -impl> crate::FtpExt for T { - fn ftp(&self) -> &Ftp { - self.state::>().inner() - } -} - -pub fn init() -> TauriPlugin { - Builder::new("ftp") - .setup(|app, api| { - app.manage(Ftp { - app: app.clone(), - }); - app.manage(Connections::default()); - Ok(()) - }) - .invoke_handler( - generate_handler![ - commands::connect, - ] - ) - .build() -} diff --git a/packages/tauri-plugin-ftp/tsconfig.json b/packages/tauri-plugin-ftp/tsconfig.json deleted file mode 100644 index 1f4fb9d..0000000 --- a/packages/tauri-plugin-ftp/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "ESNext", - "moduleResolution": "Bundler", - }, - "include": ["api"] -} diff --git a/yarn.lock b/yarn.lock index 1c380a3..5cd86f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -641,7 +641,6 @@ __metadata: "@blending/css": "workspace:^" "@blending/material": "workspace:^" "@blending/tauri-plugin-dwm": "workspace:^" - "@blending/tauri-plugin-ftp": "workspace:^" "@material/material-color-utilities": "npm:^0.2.7" "@solid-primitives/context": "npm:^0.2.3" "@solid-primitives/event-listener": "npm:^2.3.3" @@ -700,16 +699,6 @@ __metadata: languageName: unknown linkType: soft -"@blending/tauri-plugin-ftp@workspace:^, @blending/tauri-plugin-ftp@workspace:packages/tauri-plugin-ftp": - version: 0.0.0-use.local - resolution: "@blending/tauri-plugin-ftp@workspace:packages/tauri-plugin-ftp" - dependencies: - "@tauri-apps/api": "npm:>=2.0.0-beta.0" - "@tauri-apps/cli": "npm:>=2.0.0-beta.0" - typescript: "npm:^5.4.4" - languageName: unknown - linkType: soft - "@blending/utils@workspace:^, @blending/utils@workspace:packages/utils": version: 0.0.0-use.local resolution: "@blending/utils@workspace:packages/utils"