@arch-cadre/sample-module 1.0.26 → 1.0.27
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.cjs +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +7 -7
- package/src/index.ts +6 -0
package/dist/index.cjs
CHANGED
|
@@ -5,11 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
var _intl = require("@arch-cadre/intl");
|
|
8
|
+
var _global = _interopRequireDefault(require("../locales/en/global.json"));
|
|
9
|
+
var _global2 = _interopRequireDefault(require("../locales/pl/global.json"));
|
|
8
10
|
var _manifest = _interopRequireDefault(require("../manifest.json"));
|
|
9
11
|
var _routes = require("./routes.cjs");
|
|
10
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
13
|
const _module = {
|
|
12
14
|
manifest: _manifest.default,
|
|
15
|
+
translations: {
|
|
16
|
+
en: _global.default,
|
|
17
|
+
pl: _global2.default
|
|
18
|
+
},
|
|
13
19
|
onEnable: async () => {},
|
|
14
20
|
onDisable: async () => {
|
|
15
21
|
console.log("[Module:Sample] onDisable: Dropping all tables physically...");
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { i18n } from "@arch-cadre/intl";
|
|
2
|
+
import localesEn from "../locales/en/global.json" with { type: "json" };
|
|
3
|
+
import localesPl from "../locales/pl/global.json" with { type: "json" };
|
|
2
4
|
import manifest from "../manifest.json";
|
|
3
5
|
import { apiRoutes, privateRoutes } from "./routes.mjs";
|
|
4
6
|
const module = {
|
|
5
7
|
manifest,
|
|
8
|
+
translations: {
|
|
9
|
+
en: localesEn,
|
|
10
|
+
pl: localesPl
|
|
11
|
+
},
|
|
6
12
|
onEnable: async () => {
|
|
7
13
|
},
|
|
8
14
|
onDisable: async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/sample-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Sample module for Kryo framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@hookform/resolvers": "^3.10.0",
|
|
30
|
-
"@arch-cadre/ui": "^0.0.
|
|
31
|
-
"@arch-cadre/modules": "^0.0.
|
|
30
|
+
"@arch-cadre/ui": "^0.0.69",
|
|
31
|
+
"@arch-cadre/modules": "^0.0.97",
|
|
32
32
|
"lucide-react": "^0.475.0",
|
|
33
33
|
"react-hook-form": "^7.54.2",
|
|
34
34
|
"drizzle-orm": "1.0.0-beta.6-4414a19",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"zod": "^3.24.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@arch-cadre/core": "^0.0.
|
|
39
|
+
"@arch-cadre/core": "^0.0.71",
|
|
40
40
|
"@types/react": "^19",
|
|
41
41
|
"next": "16.1.1",
|
|
42
42
|
"react": "^19.0.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"unbuild": "^3.6.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@arch-cadre/core": "^0.0.
|
|
48
|
-
"@arch-cadre/intl": "^0.0.
|
|
49
|
-
"@arch-cadre/ui": "^0.0.
|
|
47
|
+
"@arch-cadre/core": "^0.0.71",
|
|
48
|
+
"@arch-cadre/intl": "^0.0.71",
|
|
49
|
+
"@arch-cadre/ui": "^0.0.69",
|
|
50
50
|
"next": ">=13.0.0",
|
|
51
51
|
"react": "^19.0.0"
|
|
52
52
|
},
|
package/src/index.ts
CHANGED
|
@@ -2,11 +2,17 @@ import { db } from "@arch-cadre/core/server";
|
|
|
2
2
|
import { i18n } from "@arch-cadre/intl";
|
|
3
3
|
import type { IModule } from "@arch-cadre/modules";
|
|
4
4
|
import { sql } from "drizzle-orm";
|
|
5
|
+
import localesEn from "../locales/en/global.json" with { type: "json" };
|
|
6
|
+
import localesPl from "../locales/pl/global.json" with { type: "json" };
|
|
5
7
|
import manifest from "../manifest.json";
|
|
6
8
|
import { apiRoutes, privateRoutes } from "./routes";
|
|
7
9
|
|
|
8
10
|
const module: IModule = {
|
|
9
11
|
manifest,
|
|
12
|
+
translations: {
|
|
13
|
+
en: localesEn,
|
|
14
|
+
pl: localesPl,
|
|
15
|
+
},
|
|
10
16
|
|
|
11
17
|
onEnable: async () => { },
|
|
12
18
|
|