gomtm 0.0.324 → 0.0.326

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react/experimental" />
2
1
  import * as React from "react";
3
2
  interface UserAuthFormProps extends React.HTMLAttributes<HTMLDivElement> {
4
3
  }
@@ -1,12 +1,9 @@
1
+ /// <reference types="react" />
1
2
  import { PlainMessage } from "@bufbuild/protobuf";
2
- import { PropsWithChildren } from "react";
3
- import { CommonListItem, ListItem, ListViewLayout, PostCardItem } from "../../gomtmpb/mtm/sppb/mtm_pb";
4
- export declare const ListViewLayoutRender: (props: {
5
- layout: ListViewLayout;
6
- } & PropsWithChildren) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<import("react").AwaitedReactNode> | import("react").JSX.Element | null | undefined;
7
- export declare const ListItemView: (props: {
8
- item: PlainMessage<ListItem>;
9
- }) => import("react").JSX.Element | null;
3
+ import { CommonListItem, CommontListRes, PostCardItem } from "../../gomtmpb/mtm/sppb/mtm_pb";
4
+ export declare const CommontListResView: (props: {
5
+ data: PlainMessage<CommontListRes>;
6
+ }) => import("react").JSX.Element;
10
7
  export declare const CommonListItemView: (props: {
11
8
  item: PlainMessage<CommonListItem>;
12
9
  }) => import("react").JSX.Element;
@@ -12,6 +12,11 @@ import { MtDateView } from "../../components/MtDate";
12
12
  import Tag from "../../components/Tag";
13
13
  import { ListViewLayout } from "../../gomtmpb/mtm/sppb/mtm_pb";
14
14
  import { useListview } from "../listview/list-store";
15
+ const CommontListResView = (props) => {
16
+ var _a;
17
+ const { data } = props;
18
+ return /* @__PURE__ */ jsx(ListViewLayoutRender, { layout: data.listLayout, children: (_a = data == null ? void 0 : data.items) == null ? void 0 : _a.map((item, j) => /* @__PURE__ */ jsx(ListItemView, { item }, `${j}`)) });
19
+ };
15
20
  const ListViewLayoutRender = (props) => {
16
21
  const { children } = props;
17
22
  switch (props.layout) {
@@ -206,8 +211,7 @@ const PostCardItemActions = (props) => {
206
211
  };
207
212
  export {
208
213
  CommonListItemView,
209
- ListItemView,
210
- ListViewLayoutRender,
214
+ CommontListResView,
211
215
  PostCardItemActions,
212
216
  PostCardListItem
213
217
  };
@@ -13,7 +13,7 @@ import { HOTKEY_Listview_Switchlayout } from "../../consts";
13
13
  import { useGomtmSuspenseInfiniteQuery } from "../../gomtmQuery";
14
14
  import { CurdCreatePanelTriggerButton } from "../create/CurdCreatePanel";
15
15
  import { CurdEditPanelTriggerButton } from "../edit/CurdEditPanel";
16
- import { ListItemView, ListViewLayoutRender } from "../list-item/ListViewLayoutRender";
16
+ import { CommontListResView } from "../list-item/ListViewLayoutRender";
17
17
  import { useListview } from "./list-store";
18
18
  const ALL_Layouts = [
19
19
  "default",
@@ -39,11 +39,10 @@ function CommonListView() {
39
39
  // " max-h-[700px] overflow-y-auto"
40
40
  ),
41
41
  children: listQuery.data.pages.map((page, i) => {
42
- var _a;
43
42
  if (page.errCode) {
44
43
  return /* @__PURE__ */ jsx(MtmErrorView, { unaryError: page }, i);
45
44
  } else {
46
- return /* @__PURE__ */ jsx(ListViewLayoutRender, { layout: page.listLayout, children: (_a = page == null ? void 0 : page.items) == null ? void 0 : _a.map((item, j) => /* @__PURE__ */ jsx(ListItemView, { item }, `${i}-${j}`)) }, i);
45
+ return /* @__PURE__ */ jsx(CommontListResView, { data: page }, i);
47
46
  }
48
47
  })
49
48
  }
@@ -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: bool sp_enabled = 3;
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 = 4;
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: 3,
5174
+ no: 4,
5170
5175
  name: "sp_enabled",
5171
5176
  kind: "scalar",
5172
5177
  T: 8
5173
5178
  /* ScalarType.BOOL */
5174
5179
  },
5175
- { no: 4, name: "hosts", kind: "message", T: SiteHost, repeated: true }
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
- spRouteId: string;
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
- spRouteId: string;
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
- spRouteId: string;
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
- spRouteId: string;
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
  }>;