gomtm 0.0.181 → 0.0.183
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/blog/PostCard.js +3 -2
- package/dist/esm/consts.d.ts +0 -2
- package/dist/esm/consts.js +0 -4
- package/dist/esm/curd/CurdListView.d.ts +0 -3
- package/dist/esm/curd/CurdListView.js +0 -2
- package/dist/esm/curd/CurdListViewAuto.d.ts +3 -0
- package/dist/esm/curd/CurdListViewAuto.js +15 -0
- package/dist/esm/curd/CurdListViewV2.d.ts +6 -0
- package/dist/esm/curd/CurdListViewV2.js +57 -0
- package/dist/esm/curd/curd-detail.js +1 -1
- package/dist/esm/curd/curd.atoms.d.ts +18 -0
- package/dist/esm/curd/curd.atoms.js +54 -0
- package/dist/esm/gomtm-clients-ss.d.ts +1 -0
- package/dist/esm/gomtm-clients-ss.js +26 -0
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.d.ts +11 -111
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.js +12 -122
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.d.ts +7 -67
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.js +15 -105
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +26 -103
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +91 -392
- package/dist/esm/providers/GomtmProvider.d.ts +3 -15
- package/dist/esm/providers/GomtmProvider.js +2 -37
- package/dist/esm/providers/logger.context.d.ts +0 -6
- package/dist/esm/providers/logger.context.js +2 -18
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -5,12 +5,13 @@ import { MtLink } from "mtxuilib/common/mtlink";
|
|
|
5
5
|
import { cn } from "mtxuilib/lib/utils";
|
|
6
6
|
import { useDebug } from "mtxuilib/store/app.atoms";
|
|
7
7
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "mtxuilib/ui/card";
|
|
8
|
-
import { curdActivateIdAtom } from "../../curd/
|
|
8
|
+
import { curdActivateIdAtom, curdDashPathPrefixAtom } from "../../curd/curd.atoms";
|
|
9
9
|
import { BlogPostItemActions } from "./BlogPostActions";
|
|
10
10
|
const PostCard = (props) => {
|
|
11
11
|
const { item } = props;
|
|
12
12
|
const debug = useDebug();
|
|
13
13
|
const [curdActivateId, setcurdActivateId] = useAtom(curdActivateIdAtom);
|
|
14
|
+
const [dashPrefix] = useAtom(curdDashPathPrefixAtom);
|
|
14
15
|
return /* @__PURE__ */ jsxs(
|
|
15
16
|
Card,
|
|
16
17
|
{
|
|
@@ -24,7 +25,7 @@ const PostCard = (props) => {
|
|
|
24
25
|
},
|
|
25
26
|
children: [
|
|
26
27
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx(MtLink, { href:
|
|
28
|
+
/* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx(MtLink, { href: `${dashPrefix}/post/${item.id}`, className: "pb-4 text-3xl font-bold hover:text-gray-700", children: item == null ? void 0 : item.title }) }),
|
|
28
29
|
/* @__PURE__ */ jsx(CardDescription, { children: "Deploy your new project in one-click." })
|
|
29
30
|
] }),
|
|
30
31
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("article", { className: "my-4 flex flex-col", children: [
|
package/dist/esm/consts.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export declare const DEFAULT_revalidate_SECONDS = 3;
|
|
|
12
12
|
export declare const LOGIN_CALLBACK_URL_KEY = "back";
|
|
13
13
|
export declare const ExtKey_Hostname = "host";
|
|
14
14
|
export declare const ExtKey_mtmaccessToken = "access_token";
|
|
15
|
-
export declare const ExtKey_mtmbackend = "mtmbackend";
|
|
16
|
-
export declare const ExtKey_SelfBackend = "selfbackend";
|
|
17
15
|
export declare const ItemAction_list_new_item = "list_new_item";
|
|
18
16
|
export declare const Listview_list_filter = "Listview_list_filter";
|
|
19
17
|
export declare const ActionEdit = "edit";
|
package/dist/esm/consts.js
CHANGED
|
@@ -12,8 +12,6 @@ const DEFAULT_revalidate_SECONDS = 3;
|
|
|
12
12
|
const LOGIN_CALLBACK_URL_KEY = "back";
|
|
13
13
|
const ExtKey_Hostname = "host";
|
|
14
14
|
const ExtKey_mtmaccessToken = "access_token";
|
|
15
|
-
const ExtKey_mtmbackend = "mtmbackend";
|
|
16
|
-
const ExtKey_SelfBackend = "selfbackend";
|
|
17
15
|
const ItemAction_list_new_item = "list_new_item";
|
|
18
16
|
const Listview_list_filter = "Listview_list_filter";
|
|
19
17
|
const ActionEdit = "edit";
|
|
@@ -38,9 +36,7 @@ export {
|
|
|
38
36
|
Cookie_Site_Host,
|
|
39
37
|
DEFAULT_revalidate_SECONDS,
|
|
40
38
|
ExtKey_Hostname,
|
|
41
|
-
ExtKey_SelfBackend,
|
|
42
39
|
ExtKey_mtmaccessToken,
|
|
43
|
-
ExtKey_mtmbackend,
|
|
44
40
|
HeaderMtmApi,
|
|
45
41
|
HeaderMtmHost,
|
|
46
42
|
ImageNoExist,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AnyMessage, Message, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
import { MethodUnaryDescriptor } from "../connectquery";
|
|
4
|
-
export declare const curdActivateIdAtom: import("jotai").PrimitiveAtom<string> & {
|
|
5
|
-
init: string;
|
|
6
|
-
};
|
|
7
4
|
export declare function Curd3ListProvider<I extends Message<I>, O extends Message<O>>(props: {
|
|
8
5
|
params: Partial<PlainMessage<I>>;
|
|
9
6
|
methodList: MethodUnaryDescriptor<I, O>;
|
|
@@ -28,7 +28,6 @@ import { callUnaryMethod } from "../connectquery";
|
|
|
28
28
|
import { ListViewLayout } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
29
29
|
import { gomtmBaseUrlAtom, transportAtom } from "../providers/GomtmProvider";
|
|
30
30
|
import { ListItemView } from "./list-item/ListItem";
|
|
31
|
-
const curdActivateIdAtom = atom("");
|
|
32
31
|
const curd3ListParamsAtom = atom({});
|
|
33
32
|
const curd3MethodListAtom = atom(null);
|
|
34
33
|
const curd3ItemsAtom = atom((get) => __async(void 0, null, function* () {
|
|
@@ -94,6 +93,5 @@ export {
|
|
|
94
93
|
Curd2ListView,
|
|
95
94
|
Curd3ListProvider,
|
|
96
95
|
Curd3ListViewDebug,
|
|
97
|
-
curdActivateIdAtom,
|
|
98
96
|
useCurd3List
|
|
99
97
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { usePathname } from "next/navigation";
|
|
4
|
+
function CurdListViewByPathname(props) {
|
|
5
|
+
const { children } = props;
|
|
6
|
+
const pathname = usePathname();
|
|
7
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("h1", { children: [
|
|
8
|
+
"CurdListViewByPathname(",
|
|
9
|
+
pathname,
|
|
10
|
+
")"
|
|
11
|
+
] }) }) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
CurdListViewByPathname
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
export declare function Curd3ListProviderV2(props: {
|
|
3
|
+
params?: any;
|
|
4
|
+
} & PropsWithChildren): import("react").JSX.Element;
|
|
5
|
+
export declare const Curd2ListViewV2: () => import("react").JSX.Element;
|
|
6
|
+
export declare const Curd3ListProviderV2Debug: () => import("react").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useAtom } from "jotai";
|
|
4
|
+
import { ScopeProvider } from "mtxlib/jotai/ScopeProvider";
|
|
5
|
+
import { AtomsHydrator } from "mtxlib/jotai/jotai-helper";
|
|
6
|
+
import { usePathname } from "next/navigation";
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
import { MtUnaryCallErrorView } from "../components/MtUnaryCallErrorView";
|
|
9
|
+
import { curd3ItemsAtom, curd3ListParamsAtom, curdMethodListAtom, curdSvcAtom } from "./curd.atoms";
|
|
10
|
+
import { ListItemView } from "./list-item/ListItem";
|
|
11
|
+
function Curd3ListProviderV2(props) {
|
|
12
|
+
const { params, children } = props;
|
|
13
|
+
const pathName = usePathname();
|
|
14
|
+
const svcName = useMemo(() => {
|
|
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: [
|
|
25
|
+
[curd3ListParamsAtom, params],
|
|
26
|
+
[curdMethodListAtom, listMethod],
|
|
27
|
+
[curdSvcAtom, svcName]
|
|
28
|
+
], children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Curd3ListProviderV2Debug, {}),
|
|
30
|
+
children
|
|
31
|
+
] }) });
|
|
32
|
+
}
|
|
33
|
+
const Curd2ListViewV2 = () => {
|
|
34
|
+
const [res] = useAtom(curd3ItemsAtom);
|
|
35
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-blue-100 p-2", children: res.errCode ? /* @__PURE__ */ jsx(MtUnaryCallErrorView, { unaryError: res }) : /* @__PURE__ */ jsx(Fragment, { children: res.items.map((item, i) => {
|
|
36
|
+
return /* @__PURE__ */ jsx(ListItemView, { item }, i);
|
|
37
|
+
}) }) });
|
|
38
|
+
};
|
|
39
|
+
const Curd3ListProviderV2Debug = () => {
|
|
40
|
+
const [curdSvc, setCurdSvc] = useAtom(curdSvcAtom);
|
|
41
|
+
const [curdMethodList, setCurdMethodList] = useAtom(curdMethodListAtom);
|
|
42
|
+
return /* @__PURE__ */ jsxs("div", { className: "bg-slate-200 p-2", children: [
|
|
43
|
+
/* @__PURE__ */ jsx("h1", { children: "Curd3ListProviderV2Debug" }),
|
|
44
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
45
|
+
"method:",
|
|
46
|
+
curdSvc,
|
|
47
|
+
".",
|
|
48
|
+
curdMethodList
|
|
49
|
+
] })
|
|
50
|
+
] });
|
|
51
|
+
};
|
|
52
|
+
const curdConfig = {};
|
|
53
|
+
export {
|
|
54
|
+
Curd2ListViewV2,
|
|
55
|
+
Curd3ListProviderV2,
|
|
56
|
+
Curd3ListProviderV2Debug
|
|
57
|
+
};
|
|
@@ -6,7 +6,7 @@ import { createContext, useMemo, useState } from "react";
|
|
|
6
6
|
import { Icons } from "mtxuilib/icons/icons";
|
|
7
7
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
|
|
8
8
|
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
9
|
-
import { curdActivateIdAtom } from "./
|
|
9
|
+
import { curdActivateIdAtom } from "./curd.atoms";
|
|
10
10
|
const curdDetailViewContext = createContext(void 0);
|
|
11
11
|
function CurdViewDetailProvider(props) {
|
|
12
12
|
const [isOpenEdit, setIsOpenEdit] = useState(false);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnyMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { CommontListRes, MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
3
|
+
export declare const curdDashPathPrefixAtom: import("jotai").PrimitiveAtom<string> & {
|
|
4
|
+
init: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const curdActivateIdAtom: import("jotai").PrimitiveAtom<string> & {
|
|
7
|
+
init: string;
|
|
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
|
+
export declare const curd3ListParamsAtom: import("jotai").PrimitiveAtom<PlainMessage<AnyMessage>> & {
|
|
16
|
+
init: PlainMessage<AnyMessage>;
|
|
17
|
+
};
|
|
18
|
+
export declare const curd3ItemsAtom: import("jotai").Atom<Promise<PlainMessage<MtmError> | CommontListRes>>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
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 { atom } from "jotai";
|
|
23
|
+
import { createMtmServiceClientByName } from "../gomtm-clients-ss";
|
|
24
|
+
const curdDashPathPrefixAtom = atom("/gomtmadmin");
|
|
25
|
+
const curdActivateIdAtom = atom("");
|
|
26
|
+
const curdSvcAtom = atom("sppb.MtmService");
|
|
27
|
+
const curdMethodListAtom = atom("blogPostList");
|
|
28
|
+
const curd3ListParamsAtom = atom({});
|
|
29
|
+
const curd3ItemsAtom = atom((get) => __async(void 0, null, function* () {
|
|
30
|
+
const params = get(curd3ListParamsAtom);
|
|
31
|
+
const methodList = get(curdMethodListAtom);
|
|
32
|
+
if (!methodList) {
|
|
33
|
+
throw new Error("curd3ItemsAtom, missing methodList");
|
|
34
|
+
}
|
|
35
|
+
const svcName = get(curdSvcAtom);
|
|
36
|
+
if (!svcName) {
|
|
37
|
+
throw new Error(`curd3ItemsAtom, missing svcName:\u201C${svcName}\u201D`);
|
|
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;
|
|
46
|
+
}));
|
|
47
|
+
export {
|
|
48
|
+
curd3ItemsAtom,
|
|
49
|
+
curd3ListParamsAtom,
|
|
50
|
+
curdActivateIdAtom,
|
|
51
|
+
curdDashPathPrefixAtom,
|
|
52
|
+
curdMethodListAtom,
|
|
53
|
+
curdSvcAtom
|
|
54
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ServiceType } from "@bufbuild/protobuf";
|
|
2
2
|
export declare function createMtmServiceClient<T extends ServiceType>(service: T, url?: string): import("@connectrpc/connect").PromiseClient<T>;
|
|
3
|
+
export declare function createMtmServiceClientByName<T extends ServiceType>(svcName: string, url?: string): import("@connectrpc/connect").PromiseClient<ServiceType>;
|
|
3
4
|
type CustomRequestInit = RequestInit & {
|
|
4
5
|
enableCache?: boolean;
|
|
5
6
|
enableLog?: boolean;
|
|
@@ -41,6 +41,7 @@ import { createPromiseClient } from "@connectrpc/connect";
|
|
|
41
41
|
import { createConnectTransport } from "@connectrpc/connect-web";
|
|
42
42
|
import { merge } from "lodash";
|
|
43
43
|
import { fetchMiddleWithCache } from "mtxlib/http/fetchMiddleWithCache";
|
|
44
|
+
import { MtmService } from "./gomtmpb/mtm/sppb/mtm_connect";
|
|
44
45
|
function createMtmServiceClient(service, url) {
|
|
45
46
|
const baseUrl = url || process.env.MTM_BACKEND;
|
|
46
47
|
if (!baseUrl) {
|
|
@@ -55,6 +56,30 @@ function createMtmServiceClient(service, url) {
|
|
|
55
56
|
})
|
|
56
57
|
);
|
|
57
58
|
}
|
|
59
|
+
function createMtmServiceClientByName(svcName, url) {
|
|
60
|
+
const baseUrl = url || process.env.MTM_BACKEND;
|
|
61
|
+
if (!baseUrl) {
|
|
62
|
+
throw new Error("missing mtm api url,\xB7MTM_BACKEND\xB7");
|
|
63
|
+
}
|
|
64
|
+
console.info("gomtm baseUrl:", baseUrl);
|
|
65
|
+
let svcType = void 0;
|
|
66
|
+
for (const a of allServices) {
|
|
67
|
+
if (a.typeName == svcName) {
|
|
68
|
+
svcType = a;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (!svcType) {
|
|
72
|
+
throw new Error(`unknown svcType ${svcName}`);
|
|
73
|
+
}
|
|
74
|
+
return createPromiseClient(
|
|
75
|
+
svcType,
|
|
76
|
+
createConnectTransport({
|
|
77
|
+
baseUrl,
|
|
78
|
+
fetch: gomtmFetcher()
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
const allServices = [MtmService];
|
|
58
83
|
const gomtmFetcher = (initGlobal) => {
|
|
59
84
|
return (input, init) => __async(void 0, null, function* () {
|
|
60
85
|
if (init) {
|
|
@@ -102,5 +127,6 @@ const gomtmFetcher = (initGlobal) => {
|
|
|
102
127
|
};
|
|
103
128
|
export {
|
|
104
129
|
createMtmServiceClient,
|
|
130
|
+
createMtmServiceClientByName,
|
|
105
131
|
gomtmFetcher
|
|
106
132
|
};
|
|
@@ -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,
|
|
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, DemoGetProductionRequest, 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";
|
|
@@ -30,66 +30,6 @@ export declare const register: {
|
|
|
30
30
|
readonly typeName: "sppb.MtmService";
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export declare const userList: {
|
|
34
|
-
readonly localName: "userList";
|
|
35
|
-
readonly name: "UserList";
|
|
36
|
-
readonly kind: MethodKind.Unary;
|
|
37
|
-
readonly I: typeof UserListReq;
|
|
38
|
-
readonly O: typeof UserListReply;
|
|
39
|
-
readonly service: {
|
|
40
|
-
readonly typeName: "sppb.MtmService";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare const userGet: {
|
|
44
|
-
readonly localName: "userGet";
|
|
45
|
-
readonly name: "UserGet";
|
|
46
|
-
readonly kind: MethodKind.Unary;
|
|
47
|
-
readonly I: typeof UserGetReq;
|
|
48
|
-
readonly O: typeof User;
|
|
49
|
-
readonly service: {
|
|
50
|
-
readonly typeName: "sppb.MtmService";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const userCreate: {
|
|
54
|
-
readonly localName: "userCreate";
|
|
55
|
-
readonly name: "UserCreate";
|
|
56
|
-
readonly kind: MethodKind.Unary;
|
|
57
|
-
readonly I: typeof UserCreateReq;
|
|
58
|
-
readonly O: typeof UserCreateReply;
|
|
59
|
-
readonly service: {
|
|
60
|
-
readonly typeName: "sppb.MtmService";
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare const userUpdate: {
|
|
64
|
-
readonly localName: "userUpdate";
|
|
65
|
-
readonly name: "UserUpdate";
|
|
66
|
-
readonly kind: MethodKind.Unary;
|
|
67
|
-
readonly I: typeof UserUpdateReq;
|
|
68
|
-
readonly O: typeof Result;
|
|
69
|
-
readonly service: {
|
|
70
|
-
readonly typeName: "sppb.MtmService";
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export declare const userDelete: {
|
|
74
|
-
readonly localName: "userDelete";
|
|
75
|
-
readonly name: "UserDelete";
|
|
76
|
-
readonly kind: MethodKind.Unary;
|
|
77
|
-
readonly I: typeof ResDeleteReq;
|
|
78
|
-
readonly O: typeof Result;
|
|
79
|
-
readonly service: {
|
|
80
|
-
readonly typeName: "sppb.MtmService";
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export declare const roleList: {
|
|
84
|
-
readonly localName: "roleList";
|
|
85
|
-
readonly name: "RoleList";
|
|
86
|
-
readonly kind: MethodKind.Unary;
|
|
87
|
-
readonly I: typeof RoleListReq;
|
|
88
|
-
readonly O: typeof RoleListReply;
|
|
89
|
-
readonly service: {
|
|
90
|
-
readonly typeName: "sppb.MtmService";
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
33
|
export declare const getMeta: {
|
|
94
34
|
readonly localName: "getMeta";
|
|
95
35
|
readonly name: "GetMeta";
|
|
@@ -270,56 +210,6 @@ export declare const blogCategorieDelete: {
|
|
|
270
210
|
readonly typeName: "sppb.MtmService";
|
|
271
211
|
};
|
|
272
212
|
};
|
|
273
|
-
export declare const blogTagList: {
|
|
274
|
-
readonly localName: "blogTagList";
|
|
275
|
-
readonly name: "BlogTagList";
|
|
276
|
-
readonly kind: MethodKind.Unary;
|
|
277
|
-
readonly I: typeof BlogTagListReq;
|
|
278
|
-
readonly O: typeof BlogTagListReply;
|
|
279
|
-
readonly service: {
|
|
280
|
-
readonly typeName: "sppb.MtmService";
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
export declare const blogTagGet: {
|
|
284
|
-
readonly localName: "blogTagGet";
|
|
285
|
-
readonly name: "BlogTagGet";
|
|
286
|
-
readonly kind: MethodKind.Unary;
|
|
287
|
-
readonly I: typeof BlogTagGetReq;
|
|
288
|
-
readonly O: typeof BlogTag;
|
|
289
|
-
readonly service: {
|
|
290
|
-
readonly typeName: "sppb.MtmService";
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
export declare const blogTagCreate: {
|
|
294
|
-
readonly localName: "blogTagCreate";
|
|
295
|
-
readonly name: "BlogTagCreate";
|
|
296
|
-
readonly kind: MethodKind.Unary;
|
|
297
|
-
readonly I: typeof BlogTagCreateReq;
|
|
298
|
-
readonly O: typeof Result;
|
|
299
|
-
readonly service: {
|
|
300
|
-
readonly typeName: "sppb.MtmService";
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
export declare const blogTagUpdate: {
|
|
304
|
-
readonly localName: "blogTagUpdate";
|
|
305
|
-
readonly name: "BlogTagUpdate";
|
|
306
|
-
readonly kind: MethodKind.Unary;
|
|
307
|
-
readonly I: typeof BlogTagUpdateReq;
|
|
308
|
-
readonly O: typeof Result;
|
|
309
|
-
readonly service: {
|
|
310
|
-
readonly typeName: "sppb.MtmService";
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
export declare const blogTagDelete: {
|
|
314
|
-
readonly localName: "blogTagDelete";
|
|
315
|
-
readonly name: "BlogTagDelete";
|
|
316
|
-
readonly kind: MethodKind.Unary;
|
|
317
|
-
readonly I: typeof ResDeleteReq;
|
|
318
|
-
readonly O: typeof Result;
|
|
319
|
-
readonly service: {
|
|
320
|
-
readonly typeName: "sppb.MtmService";
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
213
|
export declare const blogClean: {
|
|
324
214
|
readonly localName: "blogClean";
|
|
325
215
|
readonly name: "BlogClean";
|
|
@@ -550,3 +440,13 @@ export declare const demoGetProduction: {
|
|
|
550
440
|
readonly typeName: "sppb.MtmService";
|
|
551
441
|
};
|
|
552
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,
|
|
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, DemoGetProductionRequest, 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",
|
|
@@ -30,66 +30,6 @@ const register = {
|
|
|
30
30
|
typeName: "sppb.MtmService"
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
const userList = {
|
|
34
|
-
localName: "userList",
|
|
35
|
-
name: "UserList",
|
|
36
|
-
kind: MethodKind.Unary,
|
|
37
|
-
I: UserListReq,
|
|
38
|
-
O: UserListReply,
|
|
39
|
-
service: {
|
|
40
|
-
typeName: "sppb.MtmService"
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const userGet = {
|
|
44
|
-
localName: "userGet",
|
|
45
|
-
name: "UserGet",
|
|
46
|
-
kind: MethodKind.Unary,
|
|
47
|
-
I: UserGetReq,
|
|
48
|
-
O: User,
|
|
49
|
-
service: {
|
|
50
|
-
typeName: "sppb.MtmService"
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const userCreate = {
|
|
54
|
-
localName: "userCreate",
|
|
55
|
-
name: "UserCreate",
|
|
56
|
-
kind: MethodKind.Unary,
|
|
57
|
-
I: UserCreateReq,
|
|
58
|
-
O: UserCreateReply,
|
|
59
|
-
service: {
|
|
60
|
-
typeName: "sppb.MtmService"
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const userUpdate = {
|
|
64
|
-
localName: "userUpdate",
|
|
65
|
-
name: "UserUpdate",
|
|
66
|
-
kind: MethodKind.Unary,
|
|
67
|
-
I: UserUpdateReq,
|
|
68
|
-
O: Result,
|
|
69
|
-
service: {
|
|
70
|
-
typeName: "sppb.MtmService"
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
const userDelete = {
|
|
74
|
-
localName: "userDelete",
|
|
75
|
-
name: "UserDelete",
|
|
76
|
-
kind: MethodKind.Unary,
|
|
77
|
-
I: ResDeleteReq,
|
|
78
|
-
O: Result,
|
|
79
|
-
service: {
|
|
80
|
-
typeName: "sppb.MtmService"
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
const roleList = {
|
|
84
|
-
localName: "roleList",
|
|
85
|
-
name: "RoleList",
|
|
86
|
-
kind: MethodKind.Unary,
|
|
87
|
-
I: RoleListReq,
|
|
88
|
-
O: RoleListReply,
|
|
89
|
-
service: {
|
|
90
|
-
typeName: "sppb.MtmService"
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
33
|
const getMeta = {
|
|
94
34
|
localName: "getMeta",
|
|
95
35
|
name: "GetMeta",
|
|
@@ -270,56 +210,6 @@ const blogCategorieDelete = {
|
|
|
270
210
|
typeName: "sppb.MtmService"
|
|
271
211
|
}
|
|
272
212
|
};
|
|
273
|
-
const blogTagList = {
|
|
274
|
-
localName: "blogTagList",
|
|
275
|
-
name: "BlogTagList",
|
|
276
|
-
kind: MethodKind.Unary,
|
|
277
|
-
I: BlogTagListReq,
|
|
278
|
-
O: BlogTagListReply,
|
|
279
|
-
service: {
|
|
280
|
-
typeName: "sppb.MtmService"
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
const blogTagGet = {
|
|
284
|
-
localName: "blogTagGet",
|
|
285
|
-
name: "BlogTagGet",
|
|
286
|
-
kind: MethodKind.Unary,
|
|
287
|
-
I: BlogTagGetReq,
|
|
288
|
-
O: BlogTag,
|
|
289
|
-
service: {
|
|
290
|
-
typeName: "sppb.MtmService"
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
const blogTagCreate = {
|
|
294
|
-
localName: "blogTagCreate",
|
|
295
|
-
name: "BlogTagCreate",
|
|
296
|
-
kind: MethodKind.Unary,
|
|
297
|
-
I: BlogTagCreateReq,
|
|
298
|
-
O: Result,
|
|
299
|
-
service: {
|
|
300
|
-
typeName: "sppb.MtmService"
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
const blogTagUpdate = {
|
|
304
|
-
localName: "blogTagUpdate",
|
|
305
|
-
name: "BlogTagUpdate",
|
|
306
|
-
kind: MethodKind.Unary,
|
|
307
|
-
I: BlogTagUpdateReq,
|
|
308
|
-
O: Result,
|
|
309
|
-
service: {
|
|
310
|
-
typeName: "sppb.MtmService"
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
const blogTagDelete = {
|
|
314
|
-
localName: "blogTagDelete",
|
|
315
|
-
name: "BlogTagDelete",
|
|
316
|
-
kind: MethodKind.Unary,
|
|
317
|
-
I: ResDeleteReq,
|
|
318
|
-
O: Result,
|
|
319
|
-
service: {
|
|
320
|
-
typeName: "sppb.MtmService"
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
213
|
const blogClean = {
|
|
324
214
|
localName: "blogClean",
|
|
325
215
|
name: "BlogClean",
|
|
@@ -550,6 +440,16 @@ const demoGetProduction = {
|
|
|
550
440
|
typeName: "sppb.MtmService"
|
|
551
441
|
}
|
|
552
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
|
+
};
|
|
553
453
|
export {
|
|
554
454
|
artContentClassify,
|
|
555
455
|
artRewrite,
|
|
@@ -565,11 +465,7 @@ export {
|
|
|
565
465
|
blogPostImport,
|
|
566
466
|
blogPostList,
|
|
567
467
|
blogPostUpdate,
|
|
568
|
-
|
|
569
|
-
blogTagDelete,
|
|
570
|
-
blogTagGet,
|
|
571
|
-
blogTagList,
|
|
572
|
-
blogTagUpdate,
|
|
468
|
+
curdList,
|
|
573
469
|
curdViewCreate,
|
|
574
470
|
curdViewGet,
|
|
575
471
|
curdViewList,
|
|
@@ -584,7 +480,6 @@ export {
|
|
|
584
480
|
oauth2LoginHook,
|
|
585
481
|
pullLogs,
|
|
586
482
|
register,
|
|
587
|
-
roleList,
|
|
588
483
|
search,
|
|
589
484
|
serviceMeta,
|
|
590
485
|
siteCreate,
|
|
@@ -600,10 +495,5 @@ export {
|
|
|
600
495
|
siteSetupCftunnel,
|
|
601
496
|
siteUpdate,
|
|
602
497
|
slugPage,
|
|
603
|
-
userCreate,
|
|
604
|
-
userDelete,
|
|
605
|
-
userGet,
|
|
606
|
-
userList,
|
|
607
|
-
userUpdate,
|
|
608
498
|
userinfo
|
|
609
499
|
};
|