listpage_cli 0.0.205 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage_cli",
3
- "version": "0.0.205",
3
+ "version": "0.0.206",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "listpage_cli": "bin/cli.js"
@@ -23,7 +23,7 @@
23
23
  "class-transformer": "^0.5.1",
24
24
  "class-validator": "~0.14.2",
25
25
  "rxjs": "^7.8.1",
26
- "listpage-next-nest": "~0.0.205"
26
+ "listpage-next-nest": "~0.0.206"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@nestjs/schematics": "^11.0.0",
@@ -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
  }
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "react": "^19.2.0",
14
14
  "react-dom": "^19.2.0",
15
- "listpage-next": "~0.0.205",
15
+ "listpage-next": "~0.0.206",
16
16
  "react-router-dom": ">=6.0.0",
17
17
  "@ant-design/v5-patch-for-react-19": "~1.0.3",
18
18
  "ahooks": "^3.9.5",
@@ -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
- <div>
7
- <Outlet />
8
- </div>
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
@@ -0,0 +1,12 @@
1
+ import { MenuItem } from 'listpage-next';
2
+
3
+ export const menus: MenuItem[] = [
4
+ {
5
+ key: 'menu1',
6
+ label: '菜单一',
7
+ },
8
+ {
9
+ key: 'menu2',
10
+ label: '菜单二',
11
+ },
12
+ ];
@@ -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": ">=22.20.0 <23.0.0",
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