@nextjscms/plugin-cpanel-dashboard 2.1.23 → 2.1.24
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/index.d.ts +66 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,68 @@
|
|
|
1
1
|
export declare const PLUGIN_TITLE = "cPanel Dashboard";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const cpanelDashboardPlugin: {
|
|
3
|
+
readonly package: "@nextjscms/plugin-cpanel-dashboard";
|
|
4
|
+
readonly title: "cPanel Dashboard";
|
|
5
|
+
readonly routes: readonly [{
|
|
6
|
+
readonly path: "/cpanel-dashboard";
|
|
7
|
+
readonly title: "cPanel Dashboard";
|
|
8
|
+
readonly icon: "home";
|
|
9
|
+
readonly prefetch: "cpanelDashboard.getData";
|
|
10
|
+
}];
|
|
11
|
+
};
|
|
12
|
+
export declare function createPlugin(): Promise<{
|
|
13
|
+
router: import("@trpc/server").TRPCBuiltRouter<{
|
|
14
|
+
ctx: {
|
|
15
|
+
headers: Headers;
|
|
16
|
+
db: import("drizzle-orm/mysql2").MySql2Database<typeof import("nextjs-cms/db/schema")> & {
|
|
17
|
+
$client: import("mysql2/promise").Pool;
|
|
18
|
+
};
|
|
19
|
+
session: import("nextjs-cms").Session | null;
|
|
20
|
+
};
|
|
21
|
+
meta: object;
|
|
22
|
+
errorShape: {
|
|
23
|
+
data: {
|
|
24
|
+
zodError: import("zod").ZodFlattenedError<unknown, string> | null;
|
|
25
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
26
|
+
httpStatus: number;
|
|
27
|
+
path?: string;
|
|
28
|
+
stack?: string;
|
|
29
|
+
};
|
|
30
|
+
message: string;
|
|
31
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
32
|
+
};
|
|
33
|
+
transformer: true;
|
|
34
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
35
|
+
getData: import("@trpc/server").TRPCQueryProcedure<{
|
|
36
|
+
input: void;
|
|
37
|
+
output: {
|
|
38
|
+
dbsLimit: number;
|
|
39
|
+
dbsCount: number;
|
|
40
|
+
bandwidthUsage: number;
|
|
41
|
+
bandwidthLimit: number;
|
|
42
|
+
diskSpaceUsage: number;
|
|
43
|
+
diskSpaceLimit: number;
|
|
44
|
+
emailsUsage: number;
|
|
45
|
+
emailsLimit: number;
|
|
46
|
+
dbInfo: any;
|
|
47
|
+
dbsList: any;
|
|
48
|
+
phpVersion: any;
|
|
49
|
+
nodeVersion: string | null;
|
|
50
|
+
pnpmVersion: string | null;
|
|
51
|
+
npmVersion: string | null;
|
|
52
|
+
bunVersion: string | null;
|
|
53
|
+
passengerAppList: never[];
|
|
54
|
+
documentRoot: any;
|
|
55
|
+
};
|
|
56
|
+
meta: object;
|
|
57
|
+
}>;
|
|
58
|
+
}>>;
|
|
59
|
+
package: "@nextjscms/plugin-cpanel-dashboard";
|
|
60
|
+
title: "cPanel Dashboard";
|
|
61
|
+
routes: readonly [{
|
|
62
|
+
readonly path: "/cpanel-dashboard";
|
|
63
|
+
readonly title: "cPanel Dashboard";
|
|
64
|
+
readonly icon: "home";
|
|
65
|
+
readonly prefetch: "cpanelDashboard.getData";
|
|
66
|
+
}];
|
|
67
|
+
}>;
|
|
3
68
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,qBAAqB,CAAA;AAE9C,eAAO,MAAM,qBAAqB;;;;;;;;;CAWhC,CAAA;AAEF,wBAAsB,YAAY;;;;;;;;;;;;;;;oBAQo/C,CAAC;qBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GADljD"}
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { definePlugin } from 'nextjs-cms/plugins/define';
|
|
2
|
-
import { cpanelDashboardRouter } from './router.js';
|
|
3
2
|
export const PLUGIN_TITLE = 'cPanel Dashboard';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export const cpanelDashboardPlugin = definePlugin({
|
|
4
|
+
package: '@nextjscms/plugin-cpanel-dashboard',
|
|
5
|
+
title: PLUGIN_TITLE,
|
|
6
|
+
routes: [
|
|
7
|
+
{
|
|
8
|
+
path: '/cpanel-dashboard',
|
|
9
|
+
title: PLUGIN_TITLE,
|
|
10
|
+
icon: 'home',
|
|
11
|
+
prefetch: 'cpanelDashboard.getData',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
});
|
|
15
|
+
export async function createPlugin() {
|
|
16
|
+
const { cpanelDashboardRouter } = await import('./router.js');
|
|
17
|
+
return {
|
|
18
|
+
...cpanelDashboardPlugin,
|
|
7
19
|
router: cpanelDashboardRouter,
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
path: '/cpanel-dashboard',
|
|
11
|
-
title: PLUGIN_TITLE,
|
|
12
|
-
icon: 'home',
|
|
13
|
-
prefetch: 'cpanelDashboard.getData',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
});
|
|
20
|
+
};
|
|
17
21
|
}
|