gomtm 0.0.183 → 0.0.185
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/curd/CurdListViewV2.js +15 -28
- package/dist/esm/curd/curd-detail.d.ts +1 -1
- package/dist/esm/curd/curd-detail.js +58 -27
- package/dist/esm/curd/curd.atoms.d.ts +5 -8
- package/dist/esm/curd/curd.atoms.js +14 -23
- package/dist/esm/curd/list-item/ListItem.js +7 -2
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.d.ts +1 -21
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.js +1 -23
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.d.ts +1 -13
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.js +1 -21
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +36 -26
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +117 -85
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,55 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useAtom } from "jotai";
|
|
4
|
-
import {
|
|
5
|
-
import { AtomsHydrator } from "mtxlib/jotai/jotai-helper";
|
|
4
|
+
import { ScopeAtomsHydrator } from "mtxlib/jotai/jotai-helper";
|
|
6
5
|
import { usePathname } from "next/navigation";
|
|
7
|
-
import {
|
|
8
|
-
import { MtUnaryCallErrorView } from "../components/MtUnaryCallErrorView";
|
|
9
|
-
import { curd3ItemsAtom, curd3ListParamsAtom, curdMethodListAtom, curdSvcAtom } from "./curd.atoms";
|
|
6
|
+
import { curd3ItemsV2Atom, curd3ListParamsAtom, curdPathAtom } from "./curd.atoms";
|
|
10
7
|
import { ListItemView } from "./list-item/ListItem";
|
|
11
8
|
function Curd3ListProviderV2(props) {
|
|
12
9
|
const { params, children } = props;
|
|
13
10
|
const pathName = usePathname();
|
|
14
|
-
|
|
15
|
-
if (pathName.startsWith("/gomtmadmin/post")) {
|
|
16
|
-
return "sppb.MtmService";
|
|
17
|
-
}
|
|
18
|
-
}, [pathName]);
|
|
19
|
-
const listMethod = useMemo(() => {
|
|
20
|
-
if (pathName == null ? void 0 : pathName.startsWith("/gomtmadmin/post")) {
|
|
21
|
-
return "blogPostList";
|
|
22
|
-
}
|
|
23
|
-
}, [pathName]);
|
|
24
|
-
return /* @__PURE__ */ jsx(ScopeProvider, { atoms: [curd3ListParamsAtom, curdMethodListAtom, curdSvcAtom], children: /* @__PURE__ */ jsxs(AtomsHydrator, { atomValues: [
|
|
11
|
+
return /* @__PURE__ */ jsxs(ScopeAtomsHydrator, { atomValues: [
|
|
25
12
|
[curd3ListParamsAtom, params],
|
|
26
|
-
[
|
|
27
|
-
[curdSvcAtom, svcName]
|
|
13
|
+
[curdPathAtom, pathName]
|
|
28
14
|
], children: [
|
|
29
15
|
/* @__PURE__ */ jsx(Curd3ListProviderV2Debug, {}),
|
|
30
16
|
children
|
|
31
|
-
] })
|
|
17
|
+
] });
|
|
32
18
|
}
|
|
33
19
|
const Curd2ListViewV2 = () => {
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
const [res] = useAtom(curd3ItemsV2Atom);
|
|
22
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-blue-100 p-2", children: ((_a = res.error) == null ? void 0 : _a.code) ? /* @__PURE__ */ jsxs("div", { children: [
|
|
23
|
+
"error: ",
|
|
24
|
+
res.error.code
|
|
25
|
+
] }) : /* @__PURE__ */ jsx(Fragment, { children: res.items.map((item, i) => {
|
|
36
26
|
return /* @__PURE__ */ jsx(ListItemView, { item }, i);
|
|
37
27
|
}) }) });
|
|
38
28
|
};
|
|
39
29
|
const Curd3ListProviderV2Debug = () => {
|
|
40
|
-
const [
|
|
41
|
-
const [curdMethodList, setCurdMethodList] = useAtom(curdMethodListAtom);
|
|
30
|
+
const [pathName] = useAtom(curdPathAtom);
|
|
42
31
|
return /* @__PURE__ */ jsxs("div", { className: "bg-slate-200 p-2", children: [
|
|
43
32
|
/* @__PURE__ */ jsx("h1", { children: "Curd3ListProviderV2Debug" }),
|
|
33
|
+
/* @__PURE__ */ jsx("div", {}),
|
|
44
34
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
".",
|
|
48
|
-
curdMethodList
|
|
35
|
+
"pathName: ",
|
|
36
|
+
pathName
|
|
49
37
|
] })
|
|
50
38
|
] });
|
|
51
39
|
};
|
|
52
|
-
const curdConfig = {};
|
|
53
40
|
export {
|
|
54
41
|
Curd2ListViewV2,
|
|
55
42
|
Curd3ListProviderV2,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function CurdViewDetail<T = any>(props: PropsWithChildren): import("react").JSX.Element;
|
|
3
3
|
export declare const DetailViewActions: () => import("react").JSX.Element;
|
|
@@ -1,35 +1,66 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var __async = (__this, __arguments, generator) => {
|
|
3
|
+
return new Promise((resolve, reject) => {
|
|
4
|
+
var fulfilled = (value) => {
|
|
5
|
+
try {
|
|
6
|
+
step(generator.next(value));
|
|
7
|
+
} catch (e) {
|
|
8
|
+
reject(e);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var rejected = (value) => {
|
|
12
|
+
try {
|
|
13
|
+
step(generator.throw(value));
|
|
14
|
+
} catch (e) {
|
|
15
|
+
reject(e);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
19
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { atom, useAtom } from "jotai";
|
|
24
|
+
import { ScopeAtomsHydrator } from "mtxlib/jotai/jotai-helper";
|
|
6
25
|
import { Icons } from "mtxuilib/icons/icons";
|
|
7
26
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
|
|
8
27
|
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
import { usePathname } from "next/navigation";
|
|
29
|
+
import { CurdDetailRes } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
30
|
+
import { gomtmBaseUrlAtom } from "../providers/GomtmProvider";
|
|
31
|
+
const curdDetailSlugAtom = atom("");
|
|
32
|
+
const curdViewDataAtom = atom((get) => __async(void 0, null, function* () {
|
|
33
|
+
const slugPath = get(curdDetailSlugAtom);
|
|
34
|
+
const path2 = slugPath.split("/");
|
|
35
|
+
const path3 = path2.slice(2).join("/");
|
|
36
|
+
const baseUrl = get(gomtmBaseUrlAtom);
|
|
37
|
+
const url = new URL(`/curd-api/detail/${path3}`, baseUrl);
|
|
38
|
+
const data = yield fetch(url.toString(), {}).then((x) => x.json());
|
|
39
|
+
return CurdDetailRes.fromJson(data);
|
|
40
|
+
}));
|
|
41
|
+
function CurdViewDetail(props) {
|
|
19
42
|
const { children } = props;
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
if (!activateId) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(CurdViewDetailProvider, {}) });
|
|
43
|
+
const pathName = usePathname();
|
|
44
|
+
return /* @__PURE__ */ jsxs(ScopeAtomsHydrator, { atomValues: [
|
|
45
|
+
[curdDetailSlugAtom, pathName]
|
|
46
|
+
], children: [
|
|
47
|
+
/* @__PURE__ */ jsx(CurdViewDetailDebug, {}),
|
|
48
|
+
/* @__PURE__ */ jsx("h1", { children: "CurdViewDetail" }),
|
|
49
|
+
children
|
|
50
|
+
] });
|
|
32
51
|
}
|
|
52
|
+
const CurdViewDetailDebug = () => {
|
|
53
|
+
const [curdDetailSlug, setcurdDetailSlug] = useAtom(curdDetailSlugAtom);
|
|
54
|
+
const [curdViewData] = useAtom(curdViewDataAtom);
|
|
55
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
56
|
+
"CurdViewDetailDebug",
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
58
|
+
"curdDetailSlugAtom: ",
|
|
59
|
+
curdDetailSlug
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx("pre", { children: JSON.stringify(curdViewData, null, 2) })
|
|
62
|
+
] });
|
|
63
|
+
};
|
|
33
64
|
const DetailViewActions = () => {
|
|
34
65
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
35
66
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { variant: "ghost", className: "m-0 flex h-10 w-10 items-center justify-center border p-0 shadow-sm backdrop-blur", children: /* @__PURE__ */ jsx(Icons.ellipsis, {}) }) }),
|
|
@@ -42,6 +73,6 @@ const DetailViewActions = () => {
|
|
|
42
73
|
] });
|
|
43
74
|
};
|
|
44
75
|
export {
|
|
45
|
-
|
|
76
|
+
CurdViewDetail,
|
|
46
77
|
DetailViewActions
|
|
47
78
|
};
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { AnyMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { CommontListRes
|
|
2
|
+
import { CommontListRes } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
3
3
|
export declare const curdDashPathPrefixAtom: import("jotai").PrimitiveAtom<string> & {
|
|
4
4
|
init: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const curdActivateIdAtom: import("jotai").PrimitiveAtom<string> & {
|
|
7
7
|
init: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const curdSvcAtom: import("jotai").PrimitiveAtom<string> & {
|
|
10
|
-
init: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const curdMethodListAtom: import("jotai").PrimitiveAtom<string> & {
|
|
13
|
-
init: string;
|
|
14
|
-
};
|
|
15
9
|
export declare const curd3ListParamsAtom: import("jotai").PrimitiveAtom<PlainMessage<AnyMessage>> & {
|
|
16
10
|
init: PlainMessage<AnyMessage>;
|
|
17
11
|
};
|
|
18
|
-
export declare const
|
|
12
|
+
export declare const curdPathAtom: import("jotai").PrimitiveAtom<string> & {
|
|
13
|
+
init: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const curd3ItemsV2Atom: import("jotai").Atom<Promise<CommontListRes>>;
|
|
@@ -20,35 +20,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
import { atom } from "jotai";
|
|
23
|
-
import {
|
|
23
|
+
import { CommontListRes } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
24
|
+
import { gomtmBaseUrlAtom } from "../providers/GomtmProvider";
|
|
24
25
|
const curdDashPathPrefixAtom = atom("/gomtmadmin");
|
|
25
26
|
const curdActivateIdAtom = atom("");
|
|
26
|
-
const curdSvcAtom = atom("sppb.MtmService");
|
|
27
|
-
const curdMethodListAtom = atom("blogPostList");
|
|
28
27
|
const curd3ListParamsAtom = atom({});
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const client = yield createMtmServiceClientByName(svcName);
|
|
40
|
-
const methodFn = client[methodList];
|
|
41
|
-
if (!methodFn) {
|
|
42
|
-
throw new Error(`missing method ${svcName}.${methodList}`);
|
|
43
|
-
}
|
|
44
|
-
const data = yield methodFn(params);
|
|
45
|
-
return data;
|
|
28
|
+
const curdPathAtom = atom("");
|
|
29
|
+
const curd3ItemsV2Atom = atom((get) => __async(void 0, null, function* () {
|
|
30
|
+
const slugPath = get(curdPathAtom);
|
|
31
|
+
const path2 = slugPath.split("/");
|
|
32
|
+
const path3 = path2.slice(2).join("/");
|
|
33
|
+
const baseUrl = get(gomtmBaseUrlAtom);
|
|
34
|
+
const url = new URL(`/curd-api/list/${path3}`, baseUrl);
|
|
35
|
+
const data = yield fetch(url.toString(), {}).then((x) => x.json());
|
|
36
|
+
const data2 = CommontListRes.fromJson(data);
|
|
37
|
+
return data2;
|
|
46
38
|
}));
|
|
47
39
|
export {
|
|
48
|
-
|
|
40
|
+
curd3ItemsV2Atom,
|
|
49
41
|
curd3ListParamsAtom,
|
|
50
42
|
curdActivateIdAtom,
|
|
51
43
|
curdDashPathPrefixAtom,
|
|
52
|
-
|
|
53
|
-
curdSvcAtom
|
|
44
|
+
curdPathAtom
|
|
54
45
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "mtxuilib/lib/utils";
|
|
4
4
|
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
5
5
|
import { PostCard } from "../../components/blog/PostCard";
|
|
6
|
+
import { MtLink } from "mtxuilib/common/mtlink";
|
|
6
7
|
const ListItemView = (props) => {
|
|
7
8
|
const { item } = props;
|
|
8
9
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(ListItemViewInner, { item }) });
|
|
@@ -36,7 +37,11 @@ const CommonListItemView = (props) => {
|
|
|
36
37
|
"flex min-h-16 justify-start border p-4 text-left"
|
|
37
38
|
// item.id == curd.activateId && " font-bold"
|
|
38
39
|
),
|
|
39
|
-
"aria-label": item.id
|
|
40
|
+
"aria-label": item.id,
|
|
41
|
+
children: /* @__PURE__ */ jsxs(MtLink, { href: "#", children: [
|
|
42
|
+
item.title || item.id,
|
|
43
|
+
item.description && /* @__PURE__ */ jsx("div", { children: item.description })
|
|
44
|
+
] })
|
|
40
45
|
}
|
|
41
46
|
);
|
|
42
47
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq,
|
|
2
|
+
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, Empty, FormCreateReq, FormGetReq, FormSchema, GetMetaReq, GetMetaRes, LoginReply, LoginReq, MtmServerListReq, MtmServerListRes, Oauth2LoginHookRequest, PullLogReq, PullLogRes, RegisterReply, RegisterReq, ResDeleteReq, Result, ServiceMetaReq, ServiceMetaRes, Site, SiteCreateReq, SiteCreateRes, SiteGetReq, SiteHost, SiteHostCreateReq, SiteHostGetReq, SiteHostListReply, SiteHostListReq, SiteHostUpdateReq, SiteImportReq, SiteSetupCftunnelReply, SiteSetupCftunnelReq, SiteUpdateReq, SlugReq, SlugRes, UserinfoRes } from "./mtm_pb";
|
|
3
3
|
export declare const oauth2LoginHook: {
|
|
4
4
|
readonly localName: "oauth2LoginHook";
|
|
5
5
|
readonly name: "Oauth2LoginHook";
|
|
@@ -430,23 +430,3 @@ export declare const artRewrite: {
|
|
|
430
430
|
readonly typeName: "sppb.MtmService";
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
|
-
export declare const demoGetProduction: {
|
|
434
|
-
readonly localName: "demoGetProduction";
|
|
435
|
-
readonly name: "DemoGetProduction";
|
|
436
|
-
readonly kind: MethodKind.Unary;
|
|
437
|
-
readonly I: typeof DemoGetProductionRequest;
|
|
438
|
-
readonly O: typeof Empty;
|
|
439
|
-
readonly service: {
|
|
440
|
-
readonly typeName: "sppb.MtmService";
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
export declare const curdList: {
|
|
444
|
-
readonly localName: "curdList";
|
|
445
|
-
readonly name: "CurdList";
|
|
446
|
-
readonly kind: MethodKind.Unary;
|
|
447
|
-
readonly I: typeof CommontListReq;
|
|
448
|
-
readonly O: typeof CommontListRes;
|
|
449
|
-
readonly service: {
|
|
450
|
-
readonly typeName: "sppb.MtmService";
|
|
451
|
-
};
|
|
452
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq,
|
|
2
|
+
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, Empty, FormCreateReq, FormGetReq, FormSchema, GetMetaReq, GetMetaRes, LoginReply, LoginReq, MtmServerListReq, MtmServerListRes, Oauth2LoginHookRequest, PullLogReq, PullLogRes, RegisterReply, RegisterReq, ResDeleteReq, Result, ServiceMetaReq, ServiceMetaRes, Site, SiteCreateReq, SiteCreateRes, SiteGetReq, SiteHost, SiteHostCreateReq, SiteHostGetReq, SiteHostListReply, SiteHostListReq, SiteHostUpdateReq, SiteImportReq, SiteSetupCftunnelReply, SiteSetupCftunnelReq, SiteUpdateReq, SlugReq, SlugRes, UserinfoRes } from "./mtm_pb";
|
|
3
3
|
const oauth2LoginHook = {
|
|
4
4
|
localName: "oauth2LoginHook",
|
|
5
5
|
name: "Oauth2LoginHook",
|
|
@@ -430,26 +430,6 @@ const artRewrite = {
|
|
|
430
430
|
typeName: "sppb.MtmService"
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
|
-
const demoGetProduction = {
|
|
434
|
-
localName: "demoGetProduction",
|
|
435
|
-
name: "DemoGetProduction",
|
|
436
|
-
kind: MethodKind.Unary,
|
|
437
|
-
I: DemoGetProductionRequest,
|
|
438
|
-
O: Empty,
|
|
439
|
-
service: {
|
|
440
|
-
typeName: "sppb.MtmService"
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
const curdList = {
|
|
444
|
-
localName: "curdList",
|
|
445
|
-
name: "CurdList",
|
|
446
|
-
kind: MethodKind.Unary,
|
|
447
|
-
I: CommontListReq,
|
|
448
|
-
O: CommontListRes,
|
|
449
|
-
service: {
|
|
450
|
-
typeName: "sppb.MtmService"
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
433
|
export {
|
|
454
434
|
artContentClassify,
|
|
455
435
|
artRewrite,
|
|
@@ -465,12 +445,10 @@ export {
|
|
|
465
445
|
blogPostImport,
|
|
466
446
|
blogPostList,
|
|
467
447
|
blogPostUpdate,
|
|
468
|
-
curdList,
|
|
469
448
|
curdViewCreate,
|
|
470
449
|
curdViewGet,
|
|
471
450
|
curdViewList,
|
|
472
451
|
curdViewUpdate,
|
|
473
|
-
demoGetProduction,
|
|
474
452
|
formCreate,
|
|
475
453
|
formGet,
|
|
476
454
|
formList,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq,
|
|
1
|
+
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, Empty, FormCreateReq, FormGetReq, FormSchema, GetMetaReq, GetMetaRes, LoginReply, LoginReq, MtmServerListReq, MtmServerListRes, Oauth2LoginHookRequest, PullLogReq, PullLogRes, RegisterReply, RegisterReq, ResDeleteReq, Result, ServiceMetaReq, ServiceMetaRes, Site, SiteCreateReq, SiteCreateRes, SiteGetReq, SiteHost, SiteHostCreateReq, SiteHostGetReq, SiteHostListReply, SiteHostListReq, SiteHostUpdateReq, SiteImportReq, SiteSetupCftunnelReply, SiteSetupCftunnelReq, SiteUpdateReq, SlugReq, SlugRes, UserinfoRes } from "./mtm_pb";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
export declare const MtmService: {
|
|
4
4
|
readonly typeName: "sppb.MtmService";
|
|
@@ -261,17 +261,5 @@ export declare const MtmService: {
|
|
|
261
261
|
readonly O: typeof ArtRewriteReply;
|
|
262
262
|
readonly kind: MethodKind.Unary;
|
|
263
263
|
};
|
|
264
|
-
readonly demoGetProduction: {
|
|
265
|
-
readonly name: "DemoGetProduction";
|
|
266
|
-
readonly I: typeof DemoGetProductionRequest;
|
|
267
|
-
readonly O: typeof Empty;
|
|
268
|
-
readonly kind: MethodKind.Unary;
|
|
269
|
-
};
|
|
270
|
-
readonly curdList: {
|
|
271
|
-
readonly name: "CurdList";
|
|
272
|
-
readonly I: typeof CommontListReq;
|
|
273
|
-
readonly O: typeof CommontListRes;
|
|
274
|
-
readonly kind: MethodKind.Unary;
|
|
275
|
-
};
|
|
276
264
|
};
|
|
277
265
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq,
|
|
1
|
+
import { ArtContentClassifyReply, ArtContentClassifyReq, ArtRewriteReply, ArtRewriteReq, AuthToken, BlogCategorie, BlogCategorieCreateReply, BlogCategorieCreateReq, BlogCategorieGetReq, BlogCategorieListReply, BlogCategorieListReq, BlogCategorieUpdateReq, BlogCategorieUpdateReqply, BlogCleanReq, BlogPost, BlogPostCreateReq, BlogPostGetReq, BlogPostImportReq, BlogPostUpdateReq, CommontListReq, CommontListRes, CurdViewCreateReq, CurdViewGetReq, CurdViewGetRes, CurdViewUpdateReq, Empty, FormCreateReq, FormGetReq, FormSchema, GetMetaReq, GetMetaRes, LoginReply, LoginReq, MtmServerListReq, MtmServerListRes, Oauth2LoginHookRequest, PullLogReq, PullLogRes, RegisterReply, RegisterReq, ResDeleteReq, Result, ServiceMetaReq, ServiceMetaRes, Site, SiteCreateReq, SiteCreateRes, SiteGetReq, SiteHost, SiteHostCreateReq, SiteHostGetReq, SiteHostListReply, SiteHostListReq, SiteHostUpdateReq, SiteImportReq, SiteSetupCftunnelReply, SiteSetupCftunnelReq, SiteUpdateReq, SlugReq, SlugRes, UserinfoRes } from "./mtm_pb";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
const MtmService = {
|
|
4
4
|
typeName: "sppb.MtmService",
|
|
@@ -423,26 +423,6 @@ const MtmService = {
|
|
|
423
423
|
I: ArtRewriteReq,
|
|
424
424
|
O: ArtRewriteReply,
|
|
425
425
|
kind: MethodKind.Unary
|
|
426
|
-
},
|
|
427
|
-
/**
|
|
428
|
-
* 临时范例
|
|
429
|
-
*
|
|
430
|
-
* @generated from rpc sppb.MtmService.DemoGetProduction
|
|
431
|
-
*/
|
|
432
|
-
demoGetProduction: {
|
|
433
|
-
name: "DemoGetProduction",
|
|
434
|
-
I: DemoGetProductionRequest,
|
|
435
|
-
O: Empty,
|
|
436
|
-
kind: MethodKind.Unary
|
|
437
|
-
},
|
|
438
|
-
/**
|
|
439
|
-
* @generated from rpc sppb.MtmService.CurdList
|
|
440
|
-
*/
|
|
441
|
-
curdList: {
|
|
442
|
-
name: "CurdList",
|
|
443
|
-
I: CommontListReq,
|
|
444
|
-
O: CommontListRes,
|
|
445
|
-
kind: MethodKind.Unary
|
|
446
426
|
}
|
|
447
427
|
}
|
|
448
428
|
};
|
|
@@ -513,6 +513,7 @@ export declare class CommontListRes extends Message<CommontListRes> {
|
|
|
513
513
|
pagination?: Paging;
|
|
514
514
|
Total: number;
|
|
515
515
|
items: ListItem[];
|
|
516
|
+
error?: ErrorRes;
|
|
516
517
|
constructor(data?: PartialMessage<CommontListRes>);
|
|
517
518
|
static readonly runtime: typeof proto3;
|
|
518
519
|
static readonly typeName = "sppb.CommontListRes";
|
|
@@ -522,6 +523,41 @@ export declare class CommontListRes extends Message<CommontListRes> {
|
|
|
522
523
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CommontListRes;
|
|
523
524
|
static equals(a: CommontListRes | PlainMessage<CommontListRes> | undefined, b: CommontListRes | PlainMessage<CommontListRes> | undefined): boolean;
|
|
524
525
|
}
|
|
526
|
+
export declare class CurdDetailReq extends Message<CurdDetailReq> {
|
|
527
|
+
slug: string;
|
|
528
|
+
constructor(data?: PartialMessage<CurdDetailReq>);
|
|
529
|
+
static readonly runtime: typeof proto3;
|
|
530
|
+
static readonly typeName = "sppb.CurdDetailReq";
|
|
531
|
+
static readonly fields: FieldList;
|
|
532
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdDetailReq;
|
|
533
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdDetailReq;
|
|
534
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdDetailReq;
|
|
535
|
+
static equals(a: CurdDetailReq | PlainMessage<CurdDetailReq> | undefined, b: CurdDetailReq | PlainMessage<CurdDetailReq> | undefined): boolean;
|
|
536
|
+
}
|
|
537
|
+
export declare class CurdDetail extends Message<CurdDetail> {
|
|
538
|
+
title: string;
|
|
539
|
+
form?: FormSchema;
|
|
540
|
+
constructor(data?: PartialMessage<CurdDetail>);
|
|
541
|
+
static readonly runtime: typeof proto3;
|
|
542
|
+
static readonly typeName = "sppb.CurdDetail";
|
|
543
|
+
static readonly fields: FieldList;
|
|
544
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdDetail;
|
|
545
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdDetail;
|
|
546
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdDetail;
|
|
547
|
+
static equals(a: CurdDetail | PlainMessage<CurdDetail> | undefined, b: CurdDetail | PlainMessage<CurdDetail> | undefined): boolean;
|
|
548
|
+
}
|
|
549
|
+
export declare class CurdDetailRes extends Message<CurdDetailRes> {
|
|
550
|
+
error?: ErrorRes;
|
|
551
|
+
detailView?: CurdDetail;
|
|
552
|
+
constructor(data?: PartialMessage<CurdDetailRes>);
|
|
553
|
+
static readonly runtime: typeof proto3;
|
|
554
|
+
static readonly typeName = "sppb.CurdDetailRes";
|
|
555
|
+
static readonly fields: FieldList;
|
|
556
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdDetailRes;
|
|
557
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdDetailRes;
|
|
558
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdDetailRes;
|
|
559
|
+
static equals(a: CurdDetailRes | PlainMessage<CurdDetailRes> | undefined, b: CurdDetailRes | PlainMessage<CurdDetailRes> | undefined): boolean;
|
|
560
|
+
}
|
|
525
561
|
export declare class MtDate extends Message<MtDate> {
|
|
526
562
|
year: number;
|
|
527
563
|
month: number;
|
|
@@ -1730,32 +1766,6 @@ export declare class FormCreateReq extends Message<FormCreateReq> {
|
|
|
1730
1766
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FormCreateReq;
|
|
1731
1767
|
static equals(a: FormCreateReq | PlainMessage<FormCreateReq> | undefined, b: FormCreateReq | PlainMessage<FormCreateReq> | undefined): boolean;
|
|
1732
1768
|
}
|
|
1733
|
-
export declare class CurdListReq extends Message<CurdListReq> {
|
|
1734
|
-
path: string;
|
|
1735
|
-
type: string;
|
|
1736
|
-
params: {
|
|
1737
|
-
[key: string]: string;
|
|
1738
|
-
};
|
|
1739
|
-
constructor(data?: PartialMessage<CurdListReq>);
|
|
1740
|
-
static readonly runtime: typeof proto3;
|
|
1741
|
-
static readonly typeName = "sppb.CurdListReq";
|
|
1742
|
-
static readonly fields: FieldList;
|
|
1743
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdListReq;
|
|
1744
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdListReq;
|
|
1745
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdListReq;
|
|
1746
|
-
static equals(a: CurdListReq | PlainMessage<CurdListReq> | undefined, b: CurdListReq | PlainMessage<CurdListReq> | undefined): boolean;
|
|
1747
|
-
}
|
|
1748
|
-
export declare class CurdListRes extends Message<CurdListRes> {
|
|
1749
|
-
items: ListItem[];
|
|
1750
|
-
constructor(data?: PartialMessage<CurdListRes>);
|
|
1751
|
-
static readonly runtime: typeof proto3;
|
|
1752
|
-
static readonly typeName = "sppb.CurdListRes";
|
|
1753
|
-
static readonly fields: FieldList;
|
|
1754
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdListRes;
|
|
1755
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdListRes;
|
|
1756
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdListRes;
|
|
1757
|
-
static equals(a: CurdListRes | PlainMessage<CurdListRes> | undefined, b: CurdListRes | PlainMessage<CurdListRes> | undefined): boolean;
|
|
1758
|
-
}
|
|
1759
1769
|
export declare const slugs: import("@bufbuild/protobuf").Extension<FieldOptions, string>;
|
|
1760
1770
|
export declare const is_title: import("@bufbuild/protobuf").Extension<FieldOptions, boolean>;
|
|
1761
1771
|
export declare const is_sub_title: import("@bufbuild/protobuf").Extension<FieldOptions, boolean>;
|