listpage_cli 0.0.204 → 0.0.206
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/package.json +1 -1
- package/templates/backend-template/package.json.tmpl +1 -1
- package/templates/backend-template/src/modules/prisma/prisma.service.ts +3 -2
- package/templates/frontend-template/package.json.tmpl +1 -1
- package/templates/frontend-template/src/Layout.tsx +12 -3
- package/templates/frontend-template/src/components/.gitkeep +0 -0
- package/templates/frontend-template/src/hooks/.gitkeep +0 -0
- package/templates/frontend-template/src/pages/.gitkeep +0 -0
- package/templates/frontend-template/src/router/menus.ts +12 -0
- package/templates/rush-template/rush.json +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Injectable } from '@nestjs/common';
|
|
1
|
+
import { Injectable, OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import { PrismaClient } from '@prisma/client';
|
|
2
3
|
|
|
3
4
|
@Injectable()
|
|
4
|
-
export class PrismaService implements OnModuleInit {
|
|
5
|
+
export class PrismaService extends PrismaClient implements OnModuleInit {
|
|
5
6
|
async onModuleInit() {
|
|
6
7
|
await this.$connect();
|
|
7
8
|
}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
import { Menu, PageLayout } from 'listpage-next';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Outlet } from 'react-router-dom';
|
|
4
|
+
import { OpenAIOutlined } from '@ant-design/icons';
|
|
5
|
+
|
|
6
|
+
import { menus } from './router/menus';
|
|
3
7
|
|
|
4
8
|
const Layout: React.FC = () => {
|
|
5
9
|
return (
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
<PageLayout
|
|
11
|
+
logo={{
|
|
12
|
+
icon: <OpenAIOutlined />,
|
|
13
|
+
title: 'AI中心',
|
|
14
|
+
}}
|
|
15
|
+
sider={<Menu menus={menus} />}
|
|
16
|
+
content={<Outlet />}
|
|
17
|
+
/>
|
|
9
18
|
);
|
|
10
19
|
};
|
|
11
20
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* LTS schedule: https://nodejs.org/en/about/releases/
|
|
43
43
|
* LTS versions: https://nodejs.org/en/download/releases/
|
|
44
44
|
*/
|
|
45
|
-
"nodeSupportedVersionRange": ">=
|
|
45
|
+
"nodeSupportedVersionRange": ">=20.0.0 <23.0.0",
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* If the version check above fails, Rush will display a message showing the current
|