Skip to content

Commit 820cfa8

Browse files
committed
feat: remove unused crates
1 parent 47243ac commit 820cfa8

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ serde = { version = "1.0.192", features = ["derive"] }
1111
serde-wasm-bindgen = "0.6.3"
1212
wasm-bindgen = { version ="0.2.91", features = ["serde-serialize"] }
1313
js-sys = "0.3.68"
14-
leptos-use = { version = "0.10.3", features = ["serde", "serde_json"]}
14+
leptos-use = { version = "0.10.9", features = ["serde", "serde_json"]}
1515
leptos_icons = "0.3.0" # https://carlosted.github.io/icondata/
1616
serde_json = "1.0.113"
1717
wasm-bindgen-futures = "0.4.39"
1818
monaco = "0.4.0"
1919
tauri-sys = { git = "https://github.com/JonasKruckenberg/tauri-sys", features = ["all"] }
20-
thaw = { version = "0.2.2", features = ["csr"] }
20+
thaw = { version = "0.3.1", features = ["csr"] }
2121
common = { path = "common" }
2222
futures = "0.3.30"
2323
async-stream = "0.3.5"

Diff for: src-tauri/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ tokio = "1.36.0"
2121
tokio-postgres = "0.7.10"
2222
chrono = "0.4.31"
2323
sled = "0.34.7"
24-
tauri-plugin-context-menu = "0.7.1"
2524

2625

2726

Diff for: src-tauri/src/drivers/postgresql.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub async fn select_schema_tables(
4848
let client = clients.as_ref().unwrap().get(project_name).unwrap();
4949
let tables = client
5050
.query(
51-
r#"
51+
r#"--sql
5252
SELECT
5353
table_name,
5454
pg_size_pretty(pg_total_relation_size('"' || table_schema || '"."' || table_name || '"')) AS size
@@ -117,10 +117,12 @@ pub async fn select_schema_relations(
117117
let client = clients.as_ref().unwrap().get(project_name).unwrap();
118118
let rows = client
119119
.query(
120-
r#"
121-
SELECT tc.constraint_name, tc.table_name, kcu.column_name,
122-
ccu.table_name AS foreign_table_name,
123-
ccu.column_name AS foreign_column_name
120+
r#"--sql SELECT
121+
tc.constraint_name,
122+
tc.table_name,
123+
kcu.column_name,
124+
ccu.table_name AS foreign_table_name,
125+
ccu.column_name AS foreign_column_name
124126
FROM information_schema.table_constraints AS tc
125127
JOIN information_schema.key_column_usage AS kcu
126128
ON tc.constraint_name = kcu.constraint_name
@@ -154,3 +156,4 @@ pub async fn select_schema_relations(
154156

155157
Ok(relations)
156158
}
159+

Diff for: src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ impl Default for AppState {
3333

3434
fn main() {
3535
tauri::Builder::default()
36-
.plugin(tauri_plugin_context_menu::init())
3736
.manage(AppState::default())
3837
.setup(|app| {
3938
let app_handle = app.handle();
@@ -72,3 +71,4 @@ fn main() {
7271
.run(tauri::generate_context!())
7372
.expect("error while running tauri application");
7473
}
74+

Diff for: src/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn App() -> impl IntoView {
4343
<Tab key=index.to_string()>
4444
<TabLabel slot>
4545
<div class="flex flex-row items-center justify-between gap-2 h-full text-sm">
46-
<span>{format!("Tab {}", (index + 1).to_string())}</span>
46+
<span>{format!("Tab {}", index + 1)}</span>
4747
<button
4848
class="rounded-full p-1 hover:bg-gray-100"
4949
on:click=move |_| { tabs.remove_editor(index) }

0 commit comments

Comments
 (0)