-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2049 from undb-io/release/v1.0.0-81
Release version v1.0.0-81
- Loading branch information
Showing
42 changed files
with
476 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
apps/frontend/src/lib/components/blocks/gallery-view/gallery-view-empty.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import { hasPermission } from "$lib/store/space-member.store" | ||
import { getTable } from "$lib/store/table.store" | ||
import { SquareMousePointer } from "lucide-svelte" | ||
import CreateRecordButton from "../create-record/create-record-button.svelte" | ||
export let readonly = false | ||
const table = getTable() | ||
</script> | ||
|
||
<div class="flex h-full w-screen flex-1 -translate-x-10 -translate-y-20 items-center justify-center shadow-sm"> | ||
<div class="flex flex-col items-center gap-1 space-y-2 text-center"> | ||
<SquareMousePointer class="text-primary h-10 w-10" /> | ||
<h3 class="text-sm font-bold tracking-tight">{$table.name.value} have no records</h3> | ||
{#if !readonly && $hasPermission("record:create")} | ||
<p class="text-muted-foreground text-sm"> | ||
You can click button or use shortcut <code class="bg-muted rounded px-[0.3rem] py-[0.2rem]">Ctrl + R</code> and create | ||
your first record | ||
</p> | ||
<CreateRecordButton variant="default" size="default" /> | ||
{/if} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
apps/frontend/src/lib/components/blocks/gallery-view/gallery-view-loading.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts"> | ||
import { Skeleton } from "$lib/components/ui/skeleton" | ||
import { getTable, viewId } from "$lib/store/table.store" | ||
const table = getTable() | ||
$: fields = $table.getOrderedVisibleFields($viewId) ?? [] | ||
</script> | ||
|
||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-5"> | ||
{#each Array(20) as _} | ||
<div class="flex flex-col rounded-md border shadow-sm"> | ||
<Skeleton class="h-[150px] w-full" /> | ||
<div class="flex flex-col space-y-2 px-2 py-4"> | ||
{#each Array(fields.length - 1) as _} | ||
<Skeleton class="h-5 w-full" /> | ||
{/each} | ||
</div> | ||
</div> | ||
{/each} | ||
</div> |
Oops, something went wrong.