Skip to content

Commit

Permalink
fix: fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Dec 5, 2024
1 parent f850988 commit d807e88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import { getDashboard, getDashboardWidgetItemsStore } from "$lib/store/dashboard.store"
import { COLS, cols } from "$lib/store/widget.store"
import { cols } from "$lib/store/widget.store"
import { createMutation } from "@tanstack/svelte-query"
import DashboardWidget from "./dashboard-widget.svelte"
// @ts-ignore
import Grid from "svelte-grid"
import { trpc } from "$lib/trpc/client"
import type { IDashboardLayouts } from "@undb/dashboard"
import { COLS, type IDashboardLayouts } from "@undb/dashboard"
export let shareId: string | undefined = undefined
export let readonly = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<script lang="ts">
import { superForm } from "sveltekit-superforms/client"
import { zodClient } from "sveltekit-superforms/adapters"
import SuperDebug from "sveltekit-superforms"
import { Loader2 } from "lucide-svelte"
import * as Form from "$lib/components/ui/form"
import { Input } from "$lib/components/ui/input"
import { Button } from "$lib/components/ui/button"
import { addDashboardWidgetCommand } from "@undb/commands"
import { defaults } from "sveltekit-superforms"
import { PlugIcon } from "lucide-svelte"
Expand All @@ -15,10 +13,9 @@
import { getNextName } from "@undb/utils"
import { toast } from "svelte-sonner"
import { getDashboard, getDashboardWidgetItemsStore } from "$lib/store/dashboard.store"
import { DashboardWidget, DashboardLayouts } from "@undb/dashboard"
import { DashboardWidget, DashboardLayouts, COLS } from "@undb/dashboard"
import TablePicker from "../table-picker/table-picker.svelte"
import { invalidate } from "$app/navigation"
import { COLS } from "$lib/store/widget.store"
import { LL } from "@undb/i18n/client"
const dashboard = getDashboard()
Expand Down
7 changes: 3 additions & 4 deletions apps/frontend/src/lib/components/blocks/widget/widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
import { getDashboard, getDashboardWidgetItemsStore, getIsDashboard } from "$lib/store/dashboard.store"
import { cn } from "$lib/utils"
import { GripVerticalIcon, ChevronRightIcon, CopyIcon } from "lucide-svelte"
import { COLS } from "$lib/store/widget.store"
import { DashboardLayouts } from "@undb/dashboard"
import { COLS, DashboardLayouts } from "@undb/dashboard"
import { LL } from "@undb/i18n/client"
export let tableId: string | undefined
Expand Down Expand Up @@ -219,7 +218,7 @@
<AlertDialog.Root bind:open={confirmDelete}>
<AlertDialog.Content>
<AlertDialog.Header>
<AlertDialog.Title>{$LL.widget.deleteConfirm.title(widget.name)}</AlertDialog.Title>
<AlertDialog.Title>{$LL.widget.deleteConfirm.title({ name: widget.name })}</AlertDialog.Title>
<AlertDialog.Description>
{$LL.widget.deleteConfirm.description()}
</AlertDialog.Description>
Expand Down Expand Up @@ -248,7 +247,7 @@
<AlertDialog.Root bind:open={confirmDuplicate}>
<AlertDialog.Content>
<AlertDialog.Header>
<AlertDialog.Title>{$LL.widget.duplicate(widget.name)}</AlertDialog.Title>
<AlertDialog.Title>{$LL.widget.duplicate({ name: widget.name })}</AlertDialog.Title>
</AlertDialog.Header>
<AlertDialog.Footer>
<AlertDialog.Cancel>{$LL.common.cancel()}</AlertDialog.Cancel>
Expand Down

0 comments on commit d807e88

Please sign in to comment.