@arch-cadre/blog-module 1.0.21 → 1.0.23
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 +6 -6
- package/src/index.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
var _server = require("@arch-cadre/core/server");
|
|
8
8
|
var _drizzleOrm = require("drizzle-orm");
|
|
9
9
|
var _manifest = _interopRequireDefault(require("../manifest.json"));
|
|
10
|
+
var _global = _interopRequireDefault(require("../locales/en/global.json"));
|
|
11
|
+
var _global2 = _interopRequireDefault(require("../locales/pl/global.json"));
|
|
10
12
|
var _BlogStatsWidget = _interopRequireDefault(require("./components/BlogStatsWidget.cjs"));
|
|
11
13
|
var _RecentCommentsWidget = _interopRequireDefault(require("./components/RecentCommentsWidget.cjs"));
|
|
12
14
|
var _RecentPostsWidget = _interopRequireDefault(require("./components/RecentPostsWidget.cjs"));
|
|
@@ -34,6 +36,10 @@ const BLOG_PERMISSIONS = [{
|
|
|
34
36
|
}];
|
|
35
37
|
const blogModule = {
|
|
36
38
|
manifest: _manifest.default,
|
|
39
|
+
translations: {
|
|
40
|
+
en: _global.default,
|
|
41
|
+
pl: _global2.default
|
|
42
|
+
},
|
|
37
43
|
init: async () => {
|
|
38
44
|
console.log("[BlogModule] ready.");
|
|
39
45
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
} from "@arch-cadre/core/server";
|
|
8
8
|
import { inArray } from "drizzle-orm";
|
|
9
9
|
import manifest from "../manifest.json" with { type: "json" };
|
|
10
|
+
import localesEn from "../locales/en/global.json" with { type: "json" };
|
|
11
|
+
import localesPl from "../locales/pl/global.json" with { type: "json" };
|
|
10
12
|
import BlogStatsWidget from "./components/BlogStatsWidget.mjs";
|
|
11
13
|
import RecentCommentsWidget from "./components/RecentCommentsWidget.mjs";
|
|
12
14
|
import RecentPostsWidget from "./components/RecentPostsWidget.mjs";
|
|
@@ -22,6 +24,10 @@ const BLOG_PERMISSIONS = [
|
|
|
22
24
|
];
|
|
23
25
|
const blogModule = {
|
|
24
26
|
manifest,
|
|
27
|
+
translations: {
|
|
28
|
+
en: localesEn,
|
|
29
|
+
pl: localesPl
|
|
30
|
+
},
|
|
25
31
|
init: async () => {
|
|
26
32
|
console.log("[BlogModule] ready.");
|
|
27
33
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/blog-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "A sample module for Kryo framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"builds": "pnpm clean && tsc --module esnext"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@arch-cadre/core": "^0.0.
|
|
32
|
-
"@arch-cadre/modules": "^0.0.
|
|
31
|
+
"@arch-cadre/core": "^0.0.66",
|
|
32
|
+
"@arch-cadre/modules": "^0.0.92",
|
|
33
33
|
"@hookform/resolvers": "^3.10.0",
|
|
34
34
|
"@radix-ui/react-slot": "^1.2.3",
|
|
35
35
|
"class-variance-authority": "^0.7.1",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"unbuild": "^3.6.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@arch-cadre/core": "^0.0.
|
|
56
|
-
"@arch-cadre/intl": "^0.0.
|
|
57
|
-
"@arch-cadre/ui": "^0.0.
|
|
55
|
+
"@arch-cadre/core": "^0.0.66",
|
|
56
|
+
"@arch-cadre/intl": "^0.0.66",
|
|
57
|
+
"@arch-cadre/ui": "^0.0.64",
|
|
58
58
|
"react": "^19.0.0"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
import type { IModule } from "@arch-cadre/modules";
|
|
9
9
|
import { inArray, sql } from "drizzle-orm";
|
|
10
10
|
import manifest from "../manifest.json" with { type: "json" };
|
|
11
|
+
import localesEn from "../locales/en/global.json" with { type: "json" };
|
|
12
|
+
import localesPl from "../locales/pl/global.json" with { type: "json" };
|
|
11
13
|
import BlogStatsWidget from "./components/BlogStatsWidget";
|
|
12
14
|
import RecentCommentsWidget from "./components/RecentCommentsWidget";
|
|
13
15
|
import RecentPostsWidget from "./components/RecentPostsWidget";
|
|
@@ -27,6 +29,11 @@ const BLOG_PERMISSIONS = [
|
|
|
27
29
|
const blogModule: IModule = {
|
|
28
30
|
manifest: manifest as any,
|
|
29
31
|
|
|
32
|
+
translations: {
|
|
33
|
+
en: localesEn,
|
|
34
|
+
pl: localesPl,
|
|
35
|
+
},
|
|
36
|
+
|
|
30
37
|
init: async () => {
|
|
31
38
|
console.log("[BlogModule] ready.");
|
|
32
39
|
},
|