create-nextblock 0.13.5 → 0.13.7
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.
- package/package.json +1 -1
- package/templates/nextblock-template/app/cms/pages/page.tsx +3 -6
- package/templates/nextblock-template/app/cms/posts/page.tsx +5 -7
- package/templates/nextblock-template/app/cms/products/[id]/edit/page.tsx +12 -10
- package/templates/nextblock-template/app/cms/settings/languages/page.tsx +5 -7
- package/templates/nextblock-template/app/cms/settings/logos/page.tsx +4 -6
- package/templates/nextblock-template/app/cms/users/page.tsx +5 -7
- package/templates/nextblock-template/package.json +1 -1
- package/templates/nextblock-template/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
DropdownMenu,
|
|
24
24
|
DropdownMenuContent,
|
|
25
25
|
DropdownMenuItem,
|
|
26
|
-
|
|
26
|
+
DropdownMenuButtonTrigger,
|
|
27
27
|
DropdownMenuSeparator,
|
|
28
28
|
} from "@nextblock-cms/ui";
|
|
29
29
|
// Server action `deletePage` is used by DeletePageButtonClient
|
|
@@ -205,15 +205,12 @@ export default async function CmsPagesListPage(props: CmsPagesListPageProps) {
|
|
|
205
205
|
</TableCell>
|
|
206
206
|
<TableCell className="text-right">
|
|
207
207
|
<DropdownMenu>
|
|
208
|
-
<
|
|
209
|
-
id={`page-trigger-${page.id}`}
|
|
210
|
-
className="inline-flex h-10 w-10 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
211
|
-
>
|
|
208
|
+
<DropdownMenuButtonTrigger id={`page-trigger-${page.id}`}>
|
|
212
209
|
<MoreHorizontal className="h-4 w-4" />
|
|
213
210
|
<span className="sr-only">
|
|
214
211
|
Page actions for {page.title}
|
|
215
212
|
</span>
|
|
216
|
-
</
|
|
213
|
+
</DropdownMenuButtonTrigger>
|
|
217
214
|
<DropdownMenuContent align="end">
|
|
218
215
|
<DropdownMenuItem asChild>
|
|
219
216
|
<Link
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DropdownMenu,
|
|
19
19
|
DropdownMenuContent,
|
|
20
20
|
DropdownMenuItem,
|
|
21
|
-
|
|
21
|
+
DropdownMenuButtonTrigger,
|
|
22
22
|
DropdownMenuSeparator,
|
|
23
23
|
} from "@nextblock-cms/ui";
|
|
24
24
|
// deletePost server action is now used by DeletePostButtonClient
|
|
@@ -175,12 +175,10 @@ export default async function CmsPostsListPage(props: CmsPostsListPageProps) {
|
|
|
175
175
|
</TableCell>
|
|
176
176
|
<TableCell className="text-right">
|
|
177
177
|
<DropdownMenu>
|
|
178
|
-
<
|
|
179
|
-
<
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</Button>
|
|
183
|
-
</DropdownMenuTrigger>
|
|
178
|
+
<DropdownMenuButtonTrigger id={`post-trigger-${post.id}`}>
|
|
179
|
+
<MoreHorizontal className="h-4 w-4" />
|
|
180
|
+
<span className="sr-only">Post actions for {post.title}</span>
|
|
181
|
+
</DropdownMenuButtonTrigger>
|
|
184
182
|
<DropdownMenuContent align="end">
|
|
185
183
|
<DropdownMenuItem asChild>
|
|
186
184
|
<Link href={`/cms/posts/${post.id}/edit`} className="flex items-center cursor-pointer">
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
DropdownMenuItem,
|
|
11
11
|
DropdownMenuLabel,
|
|
12
12
|
DropdownMenuSeparator,
|
|
13
|
-
|
|
13
|
+
DropdownMenuButtonTrigger,
|
|
14
14
|
ViewLiveButton,
|
|
15
15
|
} from '@nextblock-cms/ui';
|
|
16
16
|
import ProductFormClientShell from '../../ProductFormClientShell';
|
|
@@ -244,15 +244,17 @@ export default async function EditProductPage({
|
|
|
244
244
|
|
|
245
245
|
{additionalCreateLanguages.length > 0 && product.translation_group_id ? (
|
|
246
246
|
<DropdownMenu>
|
|
247
|
-
<
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
247
|
+
<DropdownMenuButtonTrigger
|
|
248
|
+
id={`create-translation-trigger-${product.id}`}
|
|
249
|
+
variant="outline"
|
|
250
|
+
size="sm"
|
|
251
|
+
>
|
|
252
|
+
Create Translation
|
|
253
|
+
<Badge variant="secondary" className="ml-2 px-1.5 py-0 text-[10px]">
|
|
254
|
+
{additionalCreateLanguages.length}
|
|
255
|
+
</Badge>
|
|
256
|
+
<ChevronDown className="ml-2 h-4 w-4" />
|
|
257
|
+
</DropdownMenuButtonTrigger>
|
|
256
258
|
<DropdownMenuContent align="end" className="w-64">
|
|
257
259
|
<DropdownMenuLabel>Missing Languages</DropdownMenuLabel>
|
|
258
260
|
<DropdownMenuSeparator />
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DropdownMenu,
|
|
19
19
|
DropdownMenuContent,
|
|
20
20
|
DropdownMenuItem,
|
|
21
|
-
|
|
21
|
+
DropdownMenuButtonTrigger,
|
|
22
22
|
DropdownMenuSeparator,
|
|
23
23
|
} from "@nextblock-cms/ui";
|
|
24
24
|
import type { Database } from "@nextblock-cms/db";
|
|
@@ -126,12 +126,10 @@ export default async function CmsLanguagesListPage() {
|
|
|
126
126
|
</TableCell>
|
|
127
127
|
<TableCell className="text-right">
|
|
128
128
|
<DropdownMenu>
|
|
129
|
-
<
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
</Button>
|
|
134
|
-
</DropdownMenuTrigger>
|
|
129
|
+
<DropdownMenuButtonTrigger id={`lang-trigger-${lang.id}`}>
|
|
130
|
+
<MoreHorizontal className="h-4 w-4" />
|
|
131
|
+
<span className="sr-only">Language actions</span>
|
|
132
|
+
</DropdownMenuButtonTrigger>
|
|
135
133
|
<DropdownMenuContent align="end">
|
|
136
134
|
<DropdownMenuItem asChild>
|
|
137
135
|
<Link href={`/cms/settings/languages/${lang.id}/edit`} className="flex items-center cursor-pointer">
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
DropdownMenu,
|
|
15
15
|
DropdownMenuContent,
|
|
16
16
|
DropdownMenuItem,
|
|
17
|
-
|
|
17
|
+
DropdownMenuButtonTrigger,
|
|
18
18
|
DropdownMenuSeparator,
|
|
19
19
|
} from '@nextblock-cms/ui'
|
|
20
20
|
import { getActiveLogoId, getLogos, getSiteSeoSettings } from './actions'
|
|
@@ -131,11 +131,9 @@ export default async function CmsLogosListPage() {
|
|
|
131
131
|
</TableCell>
|
|
132
132
|
<TableCell className="text-right">
|
|
133
133
|
<DropdownMenu>
|
|
134
|
-
<
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
</Button>
|
|
138
|
-
</DropdownMenuTrigger>
|
|
134
|
+
<DropdownMenuButtonTrigger id={`logo-trigger-${logo.id}`}>
|
|
135
|
+
<MoreHorizontal className="h-4 w-4" />
|
|
136
|
+
</DropdownMenuButtonTrigger>
|
|
139
137
|
<DropdownMenuContent align="end">
|
|
140
138
|
{logo.id !== activeLogoId ? (
|
|
141
139
|
<>
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
DropdownMenuContent,
|
|
18
18
|
DropdownMenuItem,
|
|
19
19
|
DropdownMenuSeparator,
|
|
20
|
-
|
|
20
|
+
DropdownMenuButtonTrigger,
|
|
21
21
|
} from "@nextblock-cms/ui";
|
|
22
22
|
import type { Database } from "@nextblock-cms/db";
|
|
23
23
|
import { Avatar, AvatarFallback, AvatarImage } from "@nextblock-cms/ui";
|
|
@@ -167,12 +167,10 @@ export default async function CmsUsersListPage() {
|
|
|
167
167
|
</TableCell>
|
|
168
168
|
<TableCell className="text-right">
|
|
169
169
|
<DropdownMenu>
|
|
170
|
-
<
|
|
171
|
-
<
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</Button>
|
|
175
|
-
</DropdownMenuTrigger>
|
|
170
|
+
<DropdownMenuButtonTrigger id={`user-trigger-${authUser.id}`}>
|
|
171
|
+
<MoreHorizontal className="h-4 w-4" />
|
|
172
|
+
<span className="sr-only">User actions</span>
|
|
173
|
+
</DropdownMenuButtonTrigger>
|
|
176
174
|
<DropdownMenuContent align="end">
|
|
177
175
|
<DropdownMenuItem asChild>
|
|
178
176
|
<Link href={`/cms/users/${authUser.id}/edit`} className="flex items-center">
|