create-erxes 0.1.1 → 0.1.2

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.js CHANGED
@@ -9,7 +9,7 @@ import { mkdir, readFile, readdir, symlink, writeFile } from "node:fs/promises";
9
9
  import { homedir } from "node:os";
10
10
  import { fileURLToPath } from "node:url";
11
11
  // package.json
12
- var version = "0.1.1";
12
+ var version = "0.1.2";
13
13
  // src/existing-plugins.ts
14
14
  /** The old erxes plugins a new-core plugin can be migrated from (`backend/plugins/<name>_api`). */
15
15
  const OLD_PLUGINS = [
@@ -21,8 +21,8 @@
21
21
  "db:check": "drizzle-kit check"
22
22
  },
23
23
  "dependencies": {
24
- "@erxes/core-contract": "0.1.0-v2.2",
25
- "@erxes/plugin-sdk": "0.1.0-v2.2",
24
+ "@erxes/core-contract": "0.1.0-v2.3",
25
+ "@erxes/plugin-sdk": "0.1.0-v2.3",
26
26
  "@opentelemetry/instrumentation-express": "^0.73.0",
27
27
  "@opentelemetry/instrumentation-http": "^0.301.1",
28
28
  "@opentelemetry/instrumentation-pg": "^0.78.0",
@@ -16,7 +16,7 @@
16
16
  "image:context": "pnpm build && rm -rf .runtime && pnpm --filter @__id__/api deploy --prod .runtime"
17
17
  },
18
18
  "devDependencies": {
19
- "@erxes/lint": "0.1.0",
19
+ "@erxes/lint": "0.1.1",
20
20
  "@types/node": "^26.6.6",
21
21
  "knip": "^6.45.1",
22
22
  "tsrs": "0.25.0-ts7.1.0-beta",
@@ -8,12 +8,12 @@
8
8
  "build": "rsbuild build"
9
9
  },
10
10
  "dependencies": {
11
- "@erxes/core-contract": "0.1.0-v2.2",
11
+ "@erxes/core-contract": "0.1.0-v2.3",
12
12
  "@orpc/client": "1.16.2",
13
13
  "@orpc/tanstack-query": "1.16.2",
14
14
  "@tabler/icons-react": "3.34.0",
15
15
  "@tanstack/react-query": "^5.107.1",
16
- "erxes-ui": "npm:@erxes/ui@4.0.0-v2.2",
16
+ "erxes-ui": "npm:@erxes/ui@4.0.0-v2.3",
17
17
  "jotai": "^3.0.2",
18
18
  "react": "19.3.1",
19
19
  "react-dom": "19.3.1",
@@ -10,6 +10,7 @@ import {
10
10
  type RecordTableColumnDef,
11
11
  RecordTableInlineCell,
12
12
  SelectMember,
13
+ useFormat,
13
14
  } from 'erxes-ui';
14
15
  import { useState } from 'react';
15
16
  import { useTranslation } from 'react-i18next';
@@ -26,6 +27,11 @@ const NameCell = ({ item }: { item: Item }) => {
26
27
  );
27
28
  };
28
29
 
30
+ /** Dates and numbers go through erxes-ui's useFormat, in the UI's language. */
31
+ const UpdatedCell = ({ item }: { item: Item }) => (
32
+ <span className="px-2">{useFormat().dateTime(item.updatedAt)}</span>
33
+ );
34
+
29
35
  /** Where RecordTable keeps this list's column settings. */
30
36
  const TABLE_ID = '__id___items';
31
37
 
@@ -73,7 +79,7 @@ const columns: RecordTableColumnDef<Item>[] = [
73
79
  id: 'updatedAt',
74
80
  header: 'Updated',
75
81
  size: 200,
76
- cell: ({ row }) => <span className="px-2">{row.original.updatedAt.toLocaleString()}</span>,
82
+ cell: ({ row }) => <UpdatedCell item={row.original} />,
77
83
  },
78
84
  {
79
85
  id: 'delete',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-erxes",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "Create an erxes plugin for the new core, or migrate an old erxes plugin onto it: pnpm create erxes",
6
6
  "license": "MIT",