mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-16 12:33:05 +00:00
change font
This commit is contained in:
Binary file not shown.
@@ -11,6 +11,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/inter": "^5.0.19",
|
||||||
"@it-incubator/prettier-config": "^0.1.2",
|
"@it-incubator/prettier-config": "^0.1.2",
|
||||||
"@radix-ui/react-dialog": "^1.1.1",
|
"@radix-ui/react-dialog": "^1.1.1",
|
||||||
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
||||||
|
|||||||
@@ -70,7 +70,12 @@ export function SettingsDialog() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className={"space-y-0.5"}>
|
<div className={"space-y-0.5"}>
|
||||||
<Label htmlFor={"format-dates"}>Automatically format dates</Label>
|
<Label
|
||||||
|
className={"font-medium text-base"}
|
||||||
|
htmlFor={"format-dates"}
|
||||||
|
>
|
||||||
|
Automatically format dates
|
||||||
|
</Label>
|
||||||
<p className={"text-sm text-muted-foreground"}>
|
<p className={"text-sm text-muted-foreground"}>
|
||||||
When turned on, will show timestamp cells in tables in a human
|
When turned on, will show timestamp cells in tables in a human
|
||||||
readable format
|
readable format
|
||||||
@@ -89,7 +94,10 @@ export function SettingsDialog() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className={"space-y-0.5"}>
|
<div className={"space-y-0.5"}>
|
||||||
<Label htmlFor={"show-images-preview"}>
|
<Label
|
||||||
|
htmlFor={"show-images-preview"}
|
||||||
|
className={"font-medium text-base"}
|
||||||
|
>
|
||||||
Show previews for images
|
Show previews for images
|
||||||
</Label>
|
</Label>
|
||||||
<p className={"text-sm text-muted-foreground"}>
|
<p className={"text-sm text-muted-foreground"}>
|
||||||
@@ -113,7 +121,9 @@ export function SettingsDialog() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className={"space-y-0.5"}>
|
<div className={"space-y-0.5"}>
|
||||||
<Label>Pagination options</Label>
|
<Label className={"font-medium text-base"}>
|
||||||
|
Pagination options
|
||||||
|
</Label>
|
||||||
<p className={"text-sm text-muted-foreground"}>
|
<p className={"text-sm text-muted-foreground"}>
|
||||||
Add or remove options for the amount of rows per page
|
Add or remove options for the amount of rows per page
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import { RouterProvider, createRouter } from "@tanstack/react-router";
|
import { RouterProvider, createRouter } from "@tanstack/react-router";
|
||||||
import { StrictMode } from "react";
|
import { StrictMode } from "react";
|
||||||
import ReactDOM from "react-dom/client";
|
import ReactDOM from "react-dom/client";
|
||||||
|
import "@fontsource/inter/300.css";
|
||||||
|
import "@fontsource/inter/400.css";
|
||||||
|
import "@fontsource/inter/500.css";
|
||||||
|
import "@fontsource/inter/600.css";
|
||||||
|
import "@fontsource/inter/700.css";
|
||||||
|
import "@fontsource/inter/800.css";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||||
|
|||||||
@@ -20,13 +20,7 @@ import {
|
|||||||
useParams,
|
useParams,
|
||||||
} from "@tanstack/react-router";
|
} from "@tanstack/react-router";
|
||||||
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
|
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
|
||||||
import {
|
import { Database, PanelLeft, PanelLeftClose, Rows3 } from "lucide-react";
|
||||||
Database,
|
|
||||||
PanelLeft,
|
|
||||||
PanelLeftClose,
|
|
||||||
Rows3,
|
|
||||||
Table2,
|
|
||||||
} from "lucide-react";
|
|
||||||
|
|
||||||
export const Route = createRootRoute({
|
export const Route = createRootRoute({
|
||||||
component: Root,
|
component: Root,
|
||||||
@@ -97,13 +91,17 @@ function Root() {
|
|||||||
to={"/db/$dbName/tables"}
|
to={"/db/$dbName/tables"}
|
||||||
params={{ dbName }}
|
params={{ dbName }}
|
||||||
activeOptions={{ exact: true }}
|
activeOptions={{ exact: true }}
|
||||||
|
title={dbName}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex items-center gap-2 rounded py-1.5 pl-1.5",
|
"flex items-center gap-2 rounded py-1.5 pl-1.5",
|
||||||
"hover:bg-muted",
|
"hover:bg-muted",
|
||||||
"[&.active]:bg-muted [&.active]:font-semibold",
|
"[&.active]:bg-muted [&.active]:font-semibold",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Database className={"size-4"} /> {dbName}
|
<Database className={"size-4"} />
|
||||||
|
<span className={"max-w-full inline-block truncate"}>
|
||||||
|
{dbName}
|
||||||
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
{tables?.map((table) => {
|
{tables?.map((table) => {
|
||||||
@@ -116,19 +114,20 @@ function Root() {
|
|||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-full flex gap-2 items-center",
|
"max-w-full inline-block truncate",
|
||||||
"hover:underline",
|
"hover:underline",
|
||||||
"[&.active]:font-semibold",
|
"[&.active]:font-medium",
|
||||||
)}
|
)}
|
||||||
|
title={table.table_name}
|
||||||
to={"/db/$dbName/tables/$tableName"}
|
to={"/db/$dbName/tables/$tableName"}
|
||||||
params={{ tableName: table.table_name, dbName: dbName }}
|
params={{ tableName: table.table_name, dbName: dbName }}
|
||||||
>
|
>
|
||||||
<Table2 className={"size-4 shrink-0"} />
|
|
||||||
{table.table_name}
|
{table.table_name}
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
className={cn(
|
className={cn(
|
||||||
"hover:underline shrink-0",
|
"shrink-0",
|
||||||
|
"hover:underline",
|
||||||
buttonVariants({ variant: "ghost", size: "iconSm" }),
|
buttonVariants({ variant: "ghost", size: "iconSm" }),
|
||||||
"[&.active]:bg-muted",
|
"[&.active]:bg-muted",
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ function TableDetailsTable() {
|
|||||||
}}
|
}}
|
||||||
className={cn("flex gap-2 items-center", "hover:underline")}
|
className={cn("flex gap-2 items-center", "hover:underline")}
|
||||||
>
|
>
|
||||||
Explore data <ArrowRight />
|
Explore data <ArrowRight className={"size-4"} />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
const defaultTheme = require("tailwindcss/defaultTheme");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
darkMode: ["class"],
|
darkMode: ["class"],
|
||||||
content: [
|
content: [
|
||||||
'./pages/**/*.{ts,tsx}',
|
"./pages/**/*.{ts,tsx}",
|
||||||
'./components/**/*.{ts,tsx}',
|
"./components/**/*.{ts,tsx}",
|
||||||
'./app/**/*.{ts,tsx}',
|
"./app/**/*.{ts,tsx}",
|
||||||
'./src/**/*.{ts,tsx}',
|
"./src/**/*.{ts,tsx}",
|
||||||
],
|
],
|
||||||
prefix: "",
|
prefix: "",
|
||||||
theme: {
|
theme: {
|
||||||
@@ -17,6 +18,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
extend: {
|
extend: {
|
||||||
|
fontFamily: {
|
||||||
|
sans: ["Inter", ...defaultTheme.fontFamily.sans],
|
||||||
|
},
|
||||||
colors: {
|
colors: {
|
||||||
border: "hsl(var(--border))",
|
border: "hsl(var(--border))",
|
||||||
input: "hsl(var(--input))",
|
input: "hsl(var(--input))",
|
||||||
@@ -74,4 +78,4 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [require("tailwindcss-animate")],
|
plugins: [require("tailwindcss-animate")],
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user