Skip to content

Commit

Permalink
Merge pull request #238 from outerbase/develop
Browse files Browse the repository at this point in the history
deployment version v0.9.0
  • Loading branch information
invisal authored Jan 13, 2025
2 parents 39e0054 + 8bb3c6e commit 03c3fdc
Show file tree
Hide file tree
Showing 48 changed files with 900 additions and 792 deletions.
19 changes: 2 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libsqlstudio/studio",
"version": "0.8.3",
"version": "0.9.0",
"private": false,
"scripts": {
"dev": "next dev -p 3008",
Expand Down
11 changes: 11 additions & 0 deletions src/app/(theme)/embed/dolt/page-client.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
"use client";
import { Studio } from "@/components/gui/studio";
import { StudioExtensionManager } from "@/core/extension-manager";
import { createStandardExtensions } from "@/core/standard-extension";
import { IframeDoltDriver } from "@/drivers/iframe-driver";
import DoltExtension from "@/extensions/dolt";
import { useSearchParams } from "next/navigation";
import { useEffect, useMemo } from "react";

export default function EmbedPageClient() {
const searchParams = useSearchParams();
const driver = useMemo(() => new IframeDoltDriver(), []);

const extensions = useMemo(() => {
return new StudioExtensionManager([
...createStandardExtensions(),
new DoltExtension(),
]);
}, []);

useEffect(() => {
return driver.listen();
}, [driver]);
Expand All @@ -17,6 +27,7 @@ export default function EmbedPageClient() {
driver={driver}
name={searchParams.get("name") || "Unnamed Connection"}
color={searchParams.get("color") || "gray"}
extensions={extensions}
/>
);
}
7 changes: 7 additions & 0 deletions src/app/(theme)/embed/mysql/page-client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import { Studio } from "@/components/gui/studio";
import { StudioExtensionManager } from "@/core/extension-manager";
import { createStandardExtensions } from "@/core/standard-extension";
import { IframeMySQLDriver } from "@/drivers/iframe-driver";
import { useSearchParams } from "next/navigation";
import { useEffect, useMemo } from "react";
Expand All @@ -8,13 +10,18 @@ export default function EmbedPageClient() {
const searchParams = useSearchParams();
const driver = useMemo(() => new IframeMySQLDriver(), []);

const extensions = useMemo(() => {
return new StudioExtensionManager(createStandardExtensions());
}, []);

useEffect(() => {
return driver.listen();
}, [driver]);

return (
<Studio
driver={driver}
extensions={extensions}
name={searchParams.get("name") || "Unnamed Connection"}
color={searchParams.get("color") || "gray"}
/>
Expand Down
7 changes: 7 additions & 0 deletions src/app/(theme)/embed/postgres/page-client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import { Studio } from "@/components/gui/studio";
import { StudioExtensionManager } from "@/core/extension-manager";
import { createStandardExtensions } from "@/core/standard-extension";
import { IframePostgresDriver } from "@/drivers/iframe-driver";
import { useSearchParams } from "next/navigation";
import { useEffect, useMemo } from "react";
Expand All @@ -8,13 +10,18 @@ export default function EmbedPageClient() {
const searchParams = useSearchParams();
const driver = useMemo(() => new IframePostgresDriver(), []);

const extensions = useMemo(() => {
return new StudioExtensionManager(createStandardExtensions());
}, []);

useEffect(() => {
return driver.listen();
}, [driver]);

return (
<Studio
driver={driver}
extensions={extensions}
name={searchParams.get("name") || "Unnamed Connection"}
color={searchParams.get("color") || "gray"}
/>
Expand Down
7 changes: 7 additions & 0 deletions src/app/(theme)/embed/sqlite/page-client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import { Studio } from "@/components/gui/studio";
import { StudioExtensionManager } from "@/core/extension-manager";
import { createStandardExtensions } from "@/core/standard-extension";
import { IframeSQLiteDriver } from "@/drivers/iframe-driver";
import { useSearchParams } from "next/navigation";
import { useEffect, useMemo } from "react";
Expand All @@ -8,12 +10,17 @@ export default function EmbedPageClient() {
const searchParams = useSearchParams();
const driver = useMemo(() => new IframeSQLiteDriver(), []);

const extensions = useMemo(() => {
return new StudioExtensionManager(createStandardExtensions());
}, []);

useEffect(() => {
return driver.listen();
}, [driver]);

return (
<Studio
extensions={extensions}
driver={driver}
name={searchParams.get("name") || "Unnamed Connection"}
color={searchParams.get("color") || "gray"}
Expand Down
7 changes: 7 additions & 0 deletions src/app/(theme)/embed/starbase/page-client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import { Studio } from "@/components/gui/studio";
import { StudioExtensionManager } from "@/core/extension-manager";
import { createStandardExtensions } from "@/core/standard-extension";
import { IframeSQLiteDriver } from "@/drivers/iframe-driver";
import { useSearchParams } from "next/navigation";
import { useEffect, useMemo } from "react";
Expand All @@ -11,13 +13,18 @@ export default function EmbedPageClient() {
[]
);

const extensions = useMemo(() => {
return new StudioExtensionManager(createStandardExtensions());
}, []);

useEffect(() => {
return driver.listen();
}, [driver]);

return (
<Studio
driver={driver}
extensions={extensions}
name={searchParams.get("name") || "Unnamed Connection"}
color={searchParams.get("color") || "blue"}
/>
Expand Down
7 changes: 7 additions & 0 deletions src/app/(theme)/embed/turso/page-client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import { Studio } from "@/components/gui/studio";
import { StudioExtensionManager } from "@/core/extension-manager";
import { createStandardExtensions } from "@/core/standard-extension";
import { IframeSQLiteDriver } from "@/drivers/iframe-driver";
import { useSearchParams } from "next/navigation";
import { useEffect, useMemo } from "react";
Expand All @@ -16,13 +18,18 @@ export default function EmbedPageClient() {
[]
);

const extensions = useMemo(() => {
return new StudioExtensionManager(createStandardExtensions());
}, []);

useEffect(() => {
return driver.listen();
}, [driver]);

return (
<Studio
driver={driver}
extensions={extensions}
name={searchParams.get("name") || "Unnamed Connection"}
color={searchParams.get("color") || "gray"}
/>
Expand Down
Loading

0 comments on commit 03c3fdc

Please sign in to comment.