Skip to content

Commit 881fcaa

Browse files
authored
chore: update create connection from desktop menu (#27)
1 parent 93da7bb commit 881fcaa

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

electron/ipc/menu.ts

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,7 @@ export function bindMenuIpc(main: MainWindow) {
8989
label: "New Connection",
9090
submenu: [
9191
{
92-
label: "MySQL",
93-
click: () => onOpenConnectionWindow("mysql"),
94-
},
95-
{
96-
label: "PostgreSQL",
97-
click: () => onOpenConnectionWindow("postgres"),
92+
type: "separator",
9893
},
9994
{
10095
label: "SQLite",
@@ -105,13 +100,31 @@ export function bindMenuIpc(main: MainWindow) {
105100
click: () => onOpenConnectionWindow("turso"),
106101
},
107102
{
108-
label: "Cloudflare",
103+
label: "Cloudflare D1",
109104
click: () => onOpenConnectionWindow("cloudflare"),
110105
},
111106
{
112107
label: "Starbase",
113108
click: () => onOpenConnectionWindow("starbase"),
114109
},
110+
{
111+
type: "separator",
112+
},
113+
{
114+
label: "MySQL (beta)",
115+
click: () => onOpenConnectionWindow("mysql"),
116+
},
117+
{
118+
label: "Dolt (beta)",
119+
click: () => onOpenConnectionWindow("dolt"),
120+
},
121+
{
122+
type: "separator",
123+
},
124+
{
125+
label: "PostgreSQL (beta)",
126+
click: () => onOpenConnectionWindow("postgres"),
127+
},
115128
],
116129
},
117130
{
@@ -125,6 +138,15 @@ export function bindMenuIpc(main: MainWindow) {
125138
{
126139
type: "separator",
127140
},
141+
{
142+
label: "Import Connection String",
143+
click: () => {
144+
main.navigate("/connection/import");
145+
},
146+
},
147+
{
148+
type: "separator",
149+
},
128150
{ role: "close" },
129151
...(isMac ? [] : [{ label: "Exit", role: "quit" }]),
130152
],

0 commit comments

Comments
 (0)