gomtm 0.0.325 → 0.0.327
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/dist/esm/components/auth/UserAuthForm.d.ts +0 -1
- package/dist/esm/curd/list-item/ListViewLayoutRender.js +46 -30
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +1 -0
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +9 -4
- package/dist/esm/lib/meta.d.ts +11 -0
- package/dist/esm/lib/meta.js +76 -0
- package/dist/esm/validations/env.d.ts +2 -2
- package/dist/esm/validations/spContentModi.d.ts +8 -8
- package/dist/esm/validations/spRoute.d.ts +8 -8
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -79,37 +79,52 @@ const PostCardListItem = (props) => {
|
|
|
79
79
|
const activateItem = useListview((x) => x.activateItem);
|
|
80
80
|
const setActivateItem = useListview((x) => x.setActivateItem);
|
|
81
81
|
if (item.layoutVariant == "list") {
|
|
82
|
-
return /* @__PURE__ */ jsx(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
83
|
+
"li",
|
|
84
|
+
{
|
|
85
|
+
className: cn(
|
|
86
|
+
"relative py-12",
|
|
87
|
+
(activateItem == null ? void 0 : activateItem.id) == (item == null ? void 0 : item.id) && "border "
|
|
88
|
+
),
|
|
89
|
+
onClick: () => {
|
|
90
|
+
setActivateItem(item);
|
|
91
|
+
},
|
|
92
|
+
children: /* @__PURE__ */ jsxs("article", { children: [
|
|
93
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 xl:grid xl:grid-cols-4 xl:items-baseline xl:space-y-0", children: [
|
|
94
|
+
/* @__PURE__ */ jsxs("dl", { children: [
|
|
95
|
+
/* @__PURE__ */ jsx("dt", { className: "sr-only", children: "Published on" }),
|
|
96
|
+
/* @__PURE__ */ jsx("dd", { className: "text-base font-medium leading-6 text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(MtDateView, { date: item.publishDate }) })
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-5 xl:col-span-3", children: [
|
|
99
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
101
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold leading-8 tracking-tight", children: /* @__PURE__ */ jsx(
|
|
102
|
+
MtLink,
|
|
103
|
+
{
|
|
104
|
+
href: `/blog/${item.slug}`,
|
|
105
|
+
className: "text-gray-900 dark:text-gray-100",
|
|
106
|
+
children: item.title
|
|
107
|
+
}
|
|
108
|
+
) }),
|
|
109
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap", children: item.tags.map((tag) => /* @__PURE__ */ jsx(Tag, { text: tag }, tag)) })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: "prose max-w-none text-gray-500 dark:text-gray-400", children: item.summary })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsx("div", { className: "text-base font-medium leading-6", children: /* @__PURE__ */ jsx(
|
|
114
|
+
MtLink,
|
|
115
|
+
{
|
|
116
|
+
href: `/blog/${item.slug}`,
|
|
117
|
+
className: "text-primary-500 hover:text-primary-600 dark:hover:text-primary-400",
|
|
118
|
+
"aria-label": `Read more: "${title}"`,
|
|
119
|
+
children: "Read more \u2192"
|
|
120
|
+
}
|
|
121
|
+
) })
|
|
122
|
+
] })
|
|
99
123
|
] }),
|
|
100
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
101
|
-
] })
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
{
|
|
105
|
-
href: `/blog/${item.slug}`,
|
|
106
|
-
className: "text-primary-500 hover:text-primary-600 dark:hover:text-primary-400",
|
|
107
|
-
"aria-label": `Read more: "${title}"`,
|
|
108
|
-
children: "Read more \u2192"
|
|
109
|
-
}
|
|
110
|
-
) })
|
|
111
|
-
] })
|
|
112
|
-
] }) }) });
|
|
124
|
+
/* @__PURE__ */ jsx("div", { className: "absolute bottom-2 right-0", children: /* @__PURE__ */ jsx(PostCardItemActions, { id: item.id }) })
|
|
125
|
+
] })
|
|
126
|
+
}
|
|
127
|
+
);
|
|
113
128
|
}
|
|
114
129
|
return /* @__PURE__ */ jsxs(
|
|
115
130
|
Card,
|
|
@@ -158,6 +173,7 @@ const PostCardItemActions = (props) => {
|
|
|
158
173
|
const slugPath = useListview((x) => x.slugPath);
|
|
159
174
|
const [open, setOpen] = useState(false);
|
|
160
175
|
const setOpenEdit = useListview((x) => x.setOpenEdit);
|
|
176
|
+
const setActivateItem = useListview((x) => x.setActivateItem);
|
|
161
177
|
return /* @__PURE__ */ jsxs(DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
162
178
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
163
179
|
MtLink,
|
|
@@ -1276,6 +1276,7 @@ export declare class ArticleDetailBlock extends Message<ArticleDetailBlock> {
|
|
|
1276
1276
|
export declare class Site extends Message<Site> {
|
|
1277
1277
|
id: number;
|
|
1278
1278
|
title: string;
|
|
1279
|
+
keyWords: string[];
|
|
1279
1280
|
spEnabled: boolean;
|
|
1280
1281
|
hosts: SiteHost[];
|
|
1281
1282
|
constructor(data?: PartialMessage<Site>);
|
|
@@ -5126,11 +5126,15 @@ const _Site = class _Site extends Message {
|
|
|
5126
5126
|
*/
|
|
5127
5127
|
__publicField(this, "title", "");
|
|
5128
5128
|
/**
|
|
5129
|
-
* @generated from field:
|
|
5129
|
+
* @generated from field: repeated string key_words = 3;
|
|
5130
|
+
*/
|
|
5131
|
+
__publicField(this, "keyWords", []);
|
|
5132
|
+
/**
|
|
5133
|
+
* @generated from field: bool sp_enabled = 4;
|
|
5130
5134
|
*/
|
|
5131
5135
|
__publicField(this, "spEnabled", false);
|
|
5132
5136
|
/**
|
|
5133
|
-
* @generated from field: repeated sppb.SiteHost hosts =
|
|
5137
|
+
* @generated from field: repeated sppb.SiteHost hosts = 5;
|
|
5134
5138
|
*/
|
|
5135
5139
|
__publicField(this, "hosts", []);
|
|
5136
5140
|
proto3.util.initPartial(data, this);
|
|
@@ -5165,14 +5169,15 @@ __publicField(_Site, "fields", proto3.util.newFieldList(() => [
|
|
|
5165
5169
|
T: 9
|
|
5166
5170
|
/* ScalarType.STRING */
|
|
5167
5171
|
},
|
|
5172
|
+
{ no: 3, name: "key_words", kind: "scalar", T: 9, repeated: true },
|
|
5168
5173
|
{
|
|
5169
|
-
no:
|
|
5174
|
+
no: 4,
|
|
5170
5175
|
name: "sp_enabled",
|
|
5171
5176
|
kind: "scalar",
|
|
5172
5177
|
T: 8
|
|
5173
5178
|
/* ScalarType.BOOL */
|
|
5174
5179
|
},
|
|
5175
|
-
{ no:
|
|
5180
|
+
{ no: 5, name: "hosts", kind: "message", T: SiteHost, repeated: true }
|
|
5176
5181
|
]));
|
|
5177
5182
|
let Site = _Site;
|
|
5178
5183
|
const _SiteListReq = class _SiteListReq extends Message {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Metadata, ResolvingMetadata } from 'next';
|
|
2
|
+
type Props = {
|
|
3
|
+
params: {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
searchParams: {
|
|
7
|
+
[key: string]: string | string[] | undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function generateGomtmMetadata({ params, searchParams }: Props, parent: ResolvingMetadata): Promise<Metadata>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
function generateGomtmMetadata(_0, _1) {
|
|
22
|
+
return __async(this, arguments, function* ({ params, searchParams }, parent) {
|
|
23
|
+
const id = params.id;
|
|
24
|
+
return {
|
|
25
|
+
// title: product.title,
|
|
26
|
+
// openGraph: {
|
|
27
|
+
// // images: ['/some-specific-page-image.jpg', ...previousImages],
|
|
28
|
+
// },
|
|
29
|
+
keywords: [
|
|
30
|
+
"Next.js",
|
|
31
|
+
"React",
|
|
32
|
+
"Tailwind CSS",
|
|
33
|
+
"Server Components",
|
|
34
|
+
"Radix UI"
|
|
35
|
+
],
|
|
36
|
+
authors: [
|
|
37
|
+
{
|
|
38
|
+
name: "mattwin",
|
|
39
|
+
url: "https://shadcn.com"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
creator: "mattwin",
|
|
43
|
+
openGraph: {
|
|
44
|
+
type: "website",
|
|
45
|
+
locale: "en_US"
|
|
46
|
+
// url: siteConfig.url,
|
|
47
|
+
// title: siteConfig.name,
|
|
48
|
+
// description: siteConfig.description,
|
|
49
|
+
// siteName: siteConfig.name,
|
|
50
|
+
// images: [
|
|
51
|
+
// {
|
|
52
|
+
// url: siteConfig.ogImage,
|
|
53
|
+
// width: 1200,
|
|
54
|
+
// height: 630,
|
|
55
|
+
// alt: siteConfig.name,
|
|
56
|
+
// },
|
|
57
|
+
// ],
|
|
58
|
+
},
|
|
59
|
+
twitter: {
|
|
60
|
+
card: "summary_large_image",
|
|
61
|
+
// title: siteConfig.name,
|
|
62
|
+
// description: siteConfig.description,
|
|
63
|
+
// images: [siteConfig.ogImage],
|
|
64
|
+
creator: "@shadcn"
|
|
65
|
+
},
|
|
66
|
+
icons: {
|
|
67
|
+
icon: "/favicon.ico",
|
|
68
|
+
shortcut: "/favicon-16x16.png",
|
|
69
|
+
apple: "/apple-touch-icon.png"
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
generateGomtmMetadata
|
|
76
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const env: z.SafeParseReturnType<{
|
|
3
|
-
NODE_ENV: "production" | "development" | "test";
|
|
4
3
|
DATABASE_URL: string;
|
|
4
|
+
NODE_ENV: "development" | "production" | "test";
|
|
5
5
|
}, {
|
|
6
|
-
NODE_ENV: "production" | "development" | "test";
|
|
7
6
|
DATABASE_URL: string;
|
|
7
|
+
NODE_ENV: "development" | "production" | "test";
|
|
8
8
|
}>;
|
|
@@ -21,17 +21,17 @@ export declare const spContentModiCreateInput: z.ZodObject<{
|
|
|
21
21
|
action: z.ZodString;
|
|
22
22
|
value: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
value: string;
|
|
25
24
|
action: string;
|
|
26
|
-
|
|
25
|
+
value: string;
|
|
27
26
|
sel: string;
|
|
27
|
+
spRouteId: string;
|
|
28
28
|
matchContentType: string;
|
|
29
29
|
title?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
value: string;
|
|
32
31
|
action: string;
|
|
33
|
-
|
|
32
|
+
value: string;
|
|
34
33
|
sel: string;
|
|
34
|
+
spRouteId: string;
|
|
35
35
|
matchContentType: string;
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -44,19 +44,19 @@ export declare const spContentModiSaveInput: z.ZodObject<{
|
|
|
44
44
|
action: z.ZodString;
|
|
45
45
|
value: z.ZodString;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
value: string;
|
|
48
47
|
id: string;
|
|
49
48
|
action: string;
|
|
50
|
-
|
|
49
|
+
value: string;
|
|
51
50
|
sel: string;
|
|
51
|
+
spRouteId: string;
|
|
52
52
|
matchContentType: string;
|
|
53
53
|
title?: string | undefined;
|
|
54
54
|
}, {
|
|
55
|
-
value: string;
|
|
56
55
|
id: string;
|
|
57
56
|
action: string;
|
|
58
|
-
|
|
57
|
+
value: string;
|
|
59
58
|
sel: string;
|
|
59
|
+
spRouteId: string;
|
|
60
60
|
matchContentType: string;
|
|
61
61
|
title?: string | undefined;
|
|
62
62
|
}>;
|
|
@@ -20,17 +20,17 @@ export declare const spRouteCreateInput: z.ZodObject<{
|
|
|
20
20
|
pathPattern: z.ZodString;
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
value: string;
|
|
24
23
|
title: string;
|
|
24
|
+
value: string;
|
|
25
|
+
spProjectId: string;
|
|
25
26
|
hostPattern: string;
|
|
26
27
|
pathPattern: string;
|
|
27
|
-
spProjectId: string;
|
|
28
28
|
}, {
|
|
29
|
-
value: string;
|
|
30
29
|
title: string;
|
|
30
|
+
value: string;
|
|
31
|
+
spProjectId: string;
|
|
31
32
|
hostPattern: string;
|
|
32
33
|
pathPattern: string;
|
|
33
|
-
spProjectId: string;
|
|
34
34
|
}>;
|
|
35
35
|
export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
|
|
36
36
|
export declare const SpRouteSaveInput: z.ZodObject<{
|
|
@@ -41,17 +41,17 @@ export declare const SpRouteSaveInput: z.ZodObject<{
|
|
|
41
41
|
pathPattern: z.ZodString;
|
|
42
42
|
value: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
value: string;
|
|
45
44
|
id: string;
|
|
46
45
|
title: string;
|
|
46
|
+
value: string;
|
|
47
|
+
spProjectId: string;
|
|
47
48
|
hostPattern: string;
|
|
48
49
|
pathPattern: string;
|
|
49
|
-
spProjectId: string;
|
|
50
50
|
}, {
|
|
51
|
-
value: string;
|
|
52
51
|
id: string;
|
|
53
52
|
title: string;
|
|
53
|
+
value: string;
|
|
54
|
+
spProjectId: string;
|
|
54
55
|
hostPattern: string;
|
|
55
56
|
pathPattern: string;
|
|
56
|
-
spProjectId: string;
|
|
57
57
|
}>;
|