db-player 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Et as t,It as n,Z as r,c as i,g as a,t as o,tt as s,w as c}from"./EmptyState-B_8ZzjRf.js";import{n as l,r as u}from"./index-Cre7NCFa.js";var d=r(),f=e(n()),p=t();function m(){let e=(0,d.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=c(),e[0]=t):t=e[0];let n=s(t),[r,m]=(0,f.useState)(!1),h;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,p.jsx)(i,{size:16}),e[1]=h):h=e[1];let g;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,p.jsx)(o,{icon:h,title:`Pick a connection`,hint:`Choose one in the sidebar, or create a new one to start browsing.`,action:(0,p.jsxs)(u,{variant:`primary`,onClick:()=>m(!0),children:[(0,p.jsx)(a,{}),` New connection`]})}),e[2]=g):g=e[2];let _;e[3]!==r||e[4]!==n?(_=r?(0,p.jsx)(l,{folders:n.data??[],onClose:()=>m(!1)}):null,e[3]=r,e[4]=n,e[5]=_):_=e[5];let v;return e[6]===_?v=e[7]:(v=(0,p.jsxs)(p.Fragment,{children:[g,_]}),e[6]=_,e[7]=v),v}export{m as component};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Et as t,It as n,Z as r,c as i,g as a,t as o,tt as s,w as c}from"./EmptyState-B_8ZzjRf.js";import{n as l,r as u}from"./index-DJsmqZro.js";var d=r(),f=e(n()),p=t();function m(){let e=(0,d.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=c(),e[0]=t):t=e[0];let n=s(t),[r,m]=(0,f.useState)(!1),h;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,p.jsx)(i,{size:16}),e[1]=h):h=e[1];let g;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,p.jsx)(o,{icon:h,title:`Pick a connection`,hint:`Choose one in the sidebar, or create a new one to start browsing.`,action:(0,p.jsxs)(u,{variant:`primary`,onClick:()=>m(!0),children:[(0,p.jsx)(a,{}),` New connection`]})}),e[2]=g):g=e[2];let _;e[3]!==r||e[4]!==n?(_=r?(0,p.jsx)(l,{folders:n.data??[],onClose:()=>m(!1)}):null,e[3]=r,e[4]=n,e[5]=_):_=e[5];let v;return e[6]===_?v=e[7]:(v=(0,p.jsxs)(p.Fragment,{children:[g,_]}),e[6]=_,e[7]=v),v}export{m as component};
@@ -515,6 +515,10 @@
515
515
  cursor: pointer;
516
516
  }
517
517
 
518
+ .x1lliihq {
519
+ display: block;
520
+ }
521
+
518
522
  .xjp7ctv {
519
523
  display: contents;
520
524
  }
@@ -531,6 +535,10 @@
531
535
  display: inline-flex;
532
536
  }
533
537
 
538
+ .x11lgzim {
539
+ fill: var(--xxepf88);
540
+ }
541
+
534
542
  .xdt5ytf {
535
543
  flex-direction: column;
536
544
  }
@@ -1494,6 +1502,7 @@
1494
1502
  --x1ko5s2s: #1c1c1c;
1495
1503
  --x1ljawrx: #1f1f1f;
1496
1504
  --x1wmecsq: #2a2a2a;
1505
+ --xxepf88: #262626;
1497
1506
  --x1b1m92g: #fff;
1498
1507
  --x1djyeca: #d4d4d4;
1499
1508
  --xz3jkde: #000;
@@ -1578,6 +1587,7 @@
1578
1587
  --x1ko5s2s: #e6e6e9;
1579
1588
  --x1ljawrx: #e4e4e7;
1580
1589
  --x1wmecsq: #d1d1d6;
1590
+ --xxepf88: #0a0a0a;
1581
1591
  --x1b1m92g: #0a0a0a;
1582
1592
  --x1djyeca: #2b2b2b;
1583
1593
  --xz3jkde: #fff;
@@ -1602,7 +1612,7 @@
1602
1612
  }
1603
1613
  }
1604
1614
 
1605
- .xcehgk8.xcehgk8, .xcehgk8.xcehgk8:root {
1615
+ .xak9gdq.xak9gdq, .xak9gdq.xak9gdq:root {
1606
1616
  --x1ko5s2s: #1c1c1c;
1607
1617
  --x1hemmdd: #000000b3;
1608
1618
  --x1bd2iaf: #000;
@@ -1612,6 +1622,7 @@
1612
1622
  --xzklvxa: #1a0707;
1613
1623
  --x1y3jqnt: gray;
1614
1624
  --x55kj9k: #171717;
1625
+ --xxepf88: #262626;
1615
1626
  --x1eegxt8: #a1a1a1;
1616
1627
  --xz3jkde: #000;
1617
1628
  --x1b1m92g: #fff;
@@ -1633,7 +1644,7 @@
1633
1644
  --x189l5c3: 8%;
1634
1645
  }
1635
1646
 
1636
- .x14e64gp.x14e64gp, .x14e64gp.x14e64gp:root {
1647
+ .xl10l8c.xl10l8c, .xl10l8c.xl10l8c:root {
1637
1648
  --x1ko5s2s: #e6e6e9;
1638
1649
  --x1hemmdd: #00000029;
1639
1650
  --x1bd2iaf: #fff;
@@ -1643,6 +1654,7 @@
1643
1654
  --xzklvxa: #fef2f2;
1644
1655
  --x1y3jqnt: #6e6e76;
1645
1656
  --x55kj9k: #efeff1;
1657
+ --xxepf88: #0a0a0a;
1646
1658
  --x1eegxt8: #55555d;
1647
1659
  --xz3jkde: #fff;
1648
1660
  --x1b1m92g: #0a0a0a;
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#0a0a0a"/><rect x="15" y="11" width="12" height="6" rx="3" fill="#ef4444"/><rect x="15" y="20" width="24" height="6" rx="3" fill="#f97316"/><rect x="15" y="29" width="36" height="6" rx="3" fill="#eab308"/><rect x="15" y="38" width="24" height="6" rx="3" fill="#22c55e"/><rect x="15" y="47" width="12" height="6" rx="3" fill="#3b82f6"/></svg>
@@ -9,25 +9,25 @@ var tsrStartManifest = () => ({ routes: {
9
9
  "/t/$tabId"
10
10
  ],
11
11
  preloads: [
12
- "/assets/index-Cre7NCFa.js",
12
+ "/assets/index-DJsmqZro.js",
13
13
  "/assets/rolldown-runtime-XKyaHtl9.js",
14
14
  "/assets/EmptyState-B_8ZzjRf.js"
15
15
  ],
16
16
  scripts: [{ attrs: {
17
17
  type: "module",
18
18
  async: !0,
19
- src: "/assets/index-Cre7NCFa.js"
19
+ src: "/assets/index-DJsmqZro.js"
20
20
  } }]
21
21
  },
22
22
  "/": {
23
23
  filePath: "/home/runner/work/db-player/db-player/src/routes/index.tsx",
24
24
  children: void 0,
25
- preloads: ["/assets/routes-_dAU0q9L.js"]
25
+ preloads: ["/assets/routes-C7xdclgQ.js"]
26
26
  },
27
27
  "/c/$connectionId": {
28
28
  filePath: "/home/runner/work/db-player/db-player/src/routes/c.$connectionId.tsx",
29
29
  children: ["/c/$connectionId/sql", "/c/$connectionId/$database/$table"],
30
- preloads: ["/assets/c._connectionId-BAPOAiu0.js"]
30
+ preloads: ["/assets/c._connectionId-BZL6Wtb-.js"]
31
31
  },
32
32
  "/t/$tabId": {
33
33
  filePath: "/home/runner/work/db-player/db-player/src/routes/t.$tabId.tsx",
@@ -1,5 +1,5 @@
1
1
  import { S as connectionsQuery, t as EmptyState, y as Table } from "./EmptyState-D1iyQsG1.js";
2
- import { n as Route } from "./router-C6umP2o0.js";
2
+ import { n as Route } from "./router-DJFCq-RN.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { useQuery } from "@tanstack/react-query";
5
5
  // src/routes/c.$connectionId.tsx?tsr-split=component
@@ -55,6 +55,7 @@ var color = {
55
55
  active: "var(--x1ko5s2s)",
56
56
  border: "var(--x1ljawrx)",
57
57
  borderStrong: "var(--x1wmecsq)",
58
+ logoTile: "var(--xxepf88)",
58
59
  primary: "var(--x1b1m92g)",
59
60
  primaryHover: "var(--x1djyeca)",
60
61
  onPrimary: "var(--xz3jkde)",
@@ -79,11 +80,11 @@ var color = {
79
80
  __varGroupHash__: "x3qmmre"
80
81
  };
81
82
  var lightTheme = {
82
- x3qmmre: "x14e64gp x3qmmre",
83
+ x3qmmre: "xl10l8c x3qmmre",
83
84
  $$css: true
84
85
  };
85
86
  var darkTheme = {
86
- x3qmmre: "xcehgk8 x3qmmre",
87
+ x3qmmre: "xak9gdq x3qmmre",
87
88
  $$css: true
88
89
  };
89
90
  var radius = {
@@ -1757,6 +1758,62 @@ function Sidebar() {
1757
1758
  }) : null
1758
1759
  ] });
1759
1760
  }
1761
+ // src/components/ui/Logo.tsx
1762
+ function Logo() {
1763
+ return /* @__PURE__ */ jsxs("svg", {
1764
+ viewBox: "0 0 64 64",
1765
+ "aria-hidden": "true",
1766
+ className: "x1lliihq x2lah0s x1kky2od xlup9mm",
1767
+ children: [
1768
+ /* @__PURE__ */ jsx("rect", {
1769
+ width: "64",
1770
+ height: "64",
1771
+ rx: "14",
1772
+ className: "x11lgzim"
1773
+ }),
1774
+ /* @__PURE__ */ jsx("rect", {
1775
+ x: "15",
1776
+ y: "11",
1777
+ width: "12",
1778
+ height: "6",
1779
+ rx: "3",
1780
+ fill: "#ef4444"
1781
+ }),
1782
+ /* @__PURE__ */ jsx("rect", {
1783
+ x: "15",
1784
+ y: "20",
1785
+ width: "24",
1786
+ height: "6",
1787
+ rx: "3",
1788
+ fill: "#f97316"
1789
+ }),
1790
+ /* @__PURE__ */ jsx("rect", {
1791
+ x: "15",
1792
+ y: "29",
1793
+ width: "36",
1794
+ height: "6",
1795
+ rx: "3",
1796
+ fill: "#eab308"
1797
+ }),
1798
+ /* @__PURE__ */ jsx("rect", {
1799
+ x: "15",
1800
+ y: "38",
1801
+ width: "24",
1802
+ height: "6",
1803
+ rx: "3",
1804
+ fill: "#22c55e"
1805
+ }),
1806
+ /* @__PURE__ */ jsx("rect", {
1807
+ x: "15",
1808
+ y: "47",
1809
+ width: "12",
1810
+ height: "6",
1811
+ rx: "3",
1812
+ fill: "#3b82f6"
1813
+ })
1814
+ ]
1815
+ });
1816
+ }
1760
1817
  // src/components/TopBar.tsx
1761
1818
  function TopBar() {
1762
1819
  const { layout, update } = useLayout();
@@ -1764,21 +1821,25 @@ function TopBar() {
1764
1821
  useHotkey("Mod+B", toggle);
1765
1822
  return /* @__PURE__ */ jsxs("header", {
1766
1823
  className: "x78zum5 x6s0dn4 xbbb4fa x5md06r xu7byfh x2lah0s xgwgzc4 xso031l x1q0q8m5 x1atvb72",
1767
- children: [/* @__PURE__ */ jsx(Tooltip$1, {
1768
- label: layout.sidebarOpen ? "Hide sidebar" : "Show sidebar",
1769
- hint: /* @__PURE__ */ jsx(Kbd, { children: "⌘B" }),
1770
- children: /* @__PURE__ */ jsx(Button$1, {
1771
- variant: "ghost",
1772
- icon: true,
1773
- "aria-label": "Toggle sidebar",
1774
- "aria-pressed": layout.sidebarOpen,
1775
- onClick: toggle,
1776
- children: /* @__PURE__ */ jsx(PanelLeft, { size: 16 })
1824
+ children: [
1825
+ /* @__PURE__ */ jsx(Tooltip$1, {
1826
+ label: layout.sidebarOpen ? "Hide sidebar" : "Show sidebar",
1827
+ hint: /* @__PURE__ */ jsx(Kbd, { children: "⌘B" }),
1828
+ children: /* @__PURE__ */ jsx(Button$1, {
1829
+ variant: "ghost",
1830
+ icon: true,
1831
+ "aria-label": "Toggle sidebar",
1832
+ "aria-pressed": layout.sidebarOpen,
1833
+ onClick: toggle,
1834
+ children: /* @__PURE__ */ jsx(PanelLeft, { size: 16 })
1835
+ })
1836
+ }),
1837
+ /* @__PURE__ */ jsx(Logo, {}),
1838
+ /* @__PURE__ */ jsx("span", {
1839
+ className: "xvj2dgp x1s688f xtiv8zk",
1840
+ children: "db-player"
1777
1841
  })
1778
- }), /* @__PURE__ */ jsx("span", {
1779
- className: "xvj2dgp x1s688f xtiv8zk",
1780
- children: "db-player"
1781
- })]
1842
+ ]
1782
1843
  });
1783
1844
  }
1784
1845
  // src/components/Explorer.tsx
@@ -3667,7 +3728,7 @@ function TopProgress() {
3667
3728
  });
3668
3729
  }
3669
3730
  // src/styles.css?url
3670
- var styles_default = "/assets/styles-D3kk8PAA.css";
3731
+ var styles_default = "/assets/styles-CdkLyHdd.css";
3671
3732
  // src/routes/__root.tsx
3672
3733
  var Route$6 = createRootRouteWithContext()({
3673
3734
  head: () => ({
@@ -3679,10 +3740,28 @@ var Route$6 = createRootRouteWithContext()({
3679
3740
  },
3680
3741
  { title: "db-player" }
3681
3742
  ],
3682
- links: [{
3683
- rel: "stylesheet",
3684
- href: styles_default
3685
- }, ...[]]
3743
+ links: [
3744
+ {
3745
+ rel: "icon",
3746
+ href: "/favicon.svg",
3747
+ type: "image/svg+xml"
3748
+ },
3749
+ {
3750
+ rel: "icon",
3751
+ href: "/favicon-32.png",
3752
+ type: "image/png",
3753
+ sizes: "32x32"
3754
+ },
3755
+ {
3756
+ rel: "apple-touch-icon",
3757
+ href: "/apple-touch-icon.png"
3758
+ },
3759
+ {
3760
+ rel: "stylesheet",
3761
+ href: styles_default
3762
+ },
3763
+ ...[]
3764
+ ]
3686
3765
  }),
3687
3766
  loader: async ({ context }) => {
3688
3767
  const [theme, layout] = await Promise.all([
@@ -3722,7 +3801,7 @@ function RootComponent() {
3722
3801
  });
3723
3802
  }
3724
3803
  // src/routes/index.tsx
3725
- var $$splitComponentImporter$2 = () => import("./routes-Ce6MPKxr.js");
3804
+ var $$splitComponentImporter$2 = () => import("./routes-Bk_zy8AX.js");
3726
3805
  var Route$5 = createFileRoute("/")({
3727
3806
  beforeLoad: async ({ context }) => {
3728
3807
  const { activeTabId } = await context.queryClient.ensureQueryData(workspaceQuery());
@@ -3937,7 +4016,7 @@ async function handleMcpRequest(request) {
3937
4016
  // src/routes/mcp.ts
3938
4017
  var Route$4 = createFileRoute("/mcp")({ server: { handlers: { ANY: ({ request }) => handleMcpRequest(request) } } });
3939
4018
  // src/routes/c.$connectionId.tsx
3940
- var $$splitComponentImporter$1 = () => import("./c._connectionId-BXPGBd-R.js");
4019
+ var $$splitComponentImporter$1 = () => import("./c._connectionId-4zi7Sa20.js");
3941
4020
  /** A connection with no tab: the workbench shows its Explorer and this prompt. */
3942
4021
  var Route$3 = createFileRoute("/c/$connectionId")({
3943
4022
  loader: ({ context, params }) => context.queryClient.prefetchQuery(databasesQuery(params.connectionId)),
@@ -1,4 +1,4 @@
1
- import { i as Button, r as ConnectionDialog } from "./router-C6umP2o0.js";
1
+ import { i as Button, r as ConnectionDialog } from "./router-DJFCq-RN.js";
2
2
  import { c as Database, g as Plus, t as EmptyState, w as foldersQuery } from "./EmptyState-D1iyQsG1.js";
3
3
  import { useState } from "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -4349,7 +4349,7 @@ var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
4349
4349
  * the dev styles URL for route-scoped CSS collection.
4350
4350
  */
4351
4351
  async function getStartManifest(matchedRoutes) {
4352
- const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-AE6zwk_Q.js");
4352
+ const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-BeN-d5V7.js");
4353
4353
  const startManifest = tsrStartManifest();
4354
4354
  let routes = startManifest.routes;
4355
4355
  routes[rootRouteId];
@@ -7223,7 +7223,7 @@ var getBaseManifest = getProdBaseManifest;
7223
7223
  var createEarlyHintsForRequest = createEarlyHintsCollector;
7224
7224
  async function loadEntries() {
7225
7225
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
7226
- import("./assets/router-C6umP2o0.js").then((n) => n.t),
7226
+ import("./assets/router-DJFCq-RN.js").then((n) => n.t),
7227
7227
  import("./assets/start-Bai9AeXo.js"),
7228
7228
  import("./assets/empty-plugin-adapters-BiGySXWX.js")
7229
7229
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "db-player",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Browse and edit MySQL and ClickHouse databases locally.",
5
5
  "repository": {
6
6
  "type": "git",