@gadmin2n/schematics 0.0.55 → 0.0.56

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.
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- yarn global add @gadmin2/cli@latest
3
+ yarn global add @gadmin2n/cli@latest
4
4
 
5
5
  cd server && yarn && cd ../web && yarn && cd ..
6
6
 
@@ -13,6 +13,6 @@ cd server && yarn build && NODE_ENV=production yarn && yarn cache clean --all &&
13
13
 
14
14
  cp -R web/build server/dist/www
15
15
 
16
- yarn global remove @gadmin2/cli
16
+ yarn global remove @gadmin2n/cli
17
17
 
18
18
  rm -rf web/
@@ -29,7 +29,7 @@
29
29
  "prisma:studio": "prisma studio"
30
30
  },
31
31
  "dependencies": {
32
- "@gadmin2n/nest-common": "^0.0.23",
32
+ "@gadmin2n/nest-common": "^0.0.24",
33
33
  "@nestjs/common": "^8.0.0",
34
34
  "@nestjs/config": "^2.0.0",
35
35
  "@nestjs/core": "^8.0.0",
@@ -57,8 +57,8 @@
57
57
  "winston": "^3.7.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@gadmin2n/prisma-nest-generator": "^0.0.20",
61
- "@gadmin2n/prisma-react-generator": "^0.0.35",
60
+ "@gadmin2n/prisma-nest-generator": "^0.0.21",
61
+ "@gadmin2n/prisma-react-generator": "^0.0.36",
62
62
  "@nestjs/testing": "^8.0.0",
63
63
  "@types/cookie-parser": "^1.4.3",
64
64
  "@types/express": "^4.17.13",
@@ -1,4 +1,4 @@
1
- import { UserType } from '@gadmin2/nest-common';
1
+ import { UserType } from '@gadmin2n/nest-common';
2
2
  import { Controller, Get, Req, Res } from '@nestjs/common';
3
3
  import { ApiOkResponse, ApiProperty } from '@nestjs/swagger';
4
4
  import { Request } from 'express';
@@ -1,7 +1,7 @@
1
1
  // https://iwiki.woa.com/pages/viewpage.action?pageId=4007728669
2
2
  // node version >= v12.22
3
3
  // npm i jose@4.14.4
4
- import { UserType } from '@gadmin2/nest-common';
4
+ import { UserType } from '@gadmin2n/nest-common';
5
5
  import {
6
6
  CanActivate,
7
7
  ExecutionContext,
@@ -1,4 +1,4 @@
1
- import { UserType } from '@gadmin2/nest-common';
1
+ import { UserType } from '@gadmin2n/nest-common';
2
2
  import {
3
3
  CanActivate,
4
4
  ExecutionContext,
@@ -1,7 +1,7 @@
1
1
  // https://iwiki.woa.com/pages/viewpage.action?pageId=4007728669
2
2
  // node version >= v12.22
3
3
  // npm i jose@4.14.4
4
- import { UserType } from '@gadmin2/nest-common';
4
+ import { UserType } from '@gadmin2n/nest-common';
5
5
  import {
6
6
  CanActivate,
7
7
  ExecutionContext,
@@ -1,4 +1,4 @@
1
- import { AllExceptionsFilter, UserType } from '@gadmin2/nest-common';
1
+ import { AllExceptionsFilter, UserType } from '@gadmin2n/nest-common';
2
2
  import { ClassSerializerInterceptor, ValidationPipe } from '@nestjs/common';
3
3
  import { ConfigService } from '@nestjs/config';
4
4
  import { HttpAdapterHost, NestFactory, Reflector } from '@nestjs/core';
@@ -6,7 +6,7 @@
6
6
  "private": true,
7
7
  "dependencies": {
8
8
  "@ant-design/icons": "^5.0.1",
9
- "@gadmin2n/react-common": "^0.0.44",
9
+ "@gadmin2n/react-common": "^0.0.45",
10
10
  "@refinedev/antd": "5.22.0",
11
11
  "@refinedev/cli": "2.5.5",
12
12
  "@refinedev/core": "4.20.0",
@@ -8,7 +8,7 @@ import {
8
8
  ShowButton,
9
9
  } from '@refinedev/antd';
10
10
  import { RowAction } from '../hooks/types';
11
- import { whenIsTrue } from '@gadmin2/react-common';
11
+ import { whenIsTrue } from '@gadmin2n/react-common';
12
12
 
13
13
  export interface RowActionsRenderContext<T = any> {
14
14
  /** Current record */
@@ -6,7 +6,7 @@ import {
6
6
  whenIsTrue,
7
7
  convertPrismaDecimal,
8
8
  isPrismaDecimal,
9
- } from "@gadmin2/react-common";
9
+ } from "@gadmin2n/react-common";
10
10
  import { getValueFromEvent } from "@refinedev/antd";
11
11
  import { UploadFile } from "antd/lib/upload/interface";
12
12
  import {
@@ -4,7 +4,7 @@ import {
4
4
  I18N_T,
5
5
  ModelsFieldsTypeMap,
6
6
  convertPrismaDecimal,
7
- } from "@gadmin2/react-common";
7
+ } from "@gadmin2n/react-common";
8
8
  import {
9
9
  TextField,
10
10
  DateField,
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { GadminCrud as gadminDataProvider } from "@gadmin2/react-common";
2
+ import { GadminCrud as gadminDataProvider } from "@gadmin2n/react-common";
3
3
  import { HttpError } from "@refinedev/core";
4
4
  import { getApiUrl, getUrlParams } from "./utils";
5
5
  import Cookies from "js-cookie";
@@ -4,7 +4,7 @@ import {
4
4
  ModelsFieldsTypeMap,
5
5
  ModelType,
6
6
  convertPrismaDecimal,
7
- } from "@gadmin2/react-common";
7
+ } from "@gadmin2n/react-common";
8
8
  import {
9
9
  TagField,
10
10
  MarkdownField,
@@ -1,7 +1,7 @@
1
1
  import { requestHeaders } from "helpers/login";
2
2
 
3
3
  // Re-export Prisma helpers from react-common for backward compatibility
4
- export { convertPrismaDecimal, isPrismaDecimal } from "@gadmin2/react-common";
4
+ export { convertPrismaDecimal, isPrismaDecimal } from "@gadmin2n/react-common";
5
5
 
6
6
  export function getApiUrl() {
7
7
  return `${window.location.origin.replace("3000", "8000")}/api`;
@@ -2,7 +2,7 @@ import {
2
2
  FieldDataType,
3
3
  ModelsFieldsTypeMap,
4
4
  ModelType,
5
- } from "@gadmin2/react-common";
5
+ } from "@gadmin2n/react-common";
6
6
  import { CrudFilters, CrudSorting } from "@refinedev/core";
7
7
  import { FormProps, SelectProps, TableProps } from "antd";
8
8
  import { DefaultOptionType } from "antd/es/select";
@@ -21,7 +21,7 @@ import {
21
21
  produceModel,
22
22
  getColumns,
23
23
  tableSearchBar,
24
- } from "@gadmin2/react-common";
24
+ } from "@gadmin2n/react-common";
25
25
 
26
26
  export interface UseListPageStateConfig {
27
27
  resourceName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gadmin2n/schematics",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "Gadmin - modern, fast, powerful node.js web framework (@schematics)",
5
5
  "main": "dist/index.js",
6
6
  "files": [