@c-rex/templates 0.1.11 → 0.1.12
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,61 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
"./home/layout": {
|
|
14
|
-
"types": "./src/home/layout.tsx",
|
|
15
|
-
"import": "./src/home/layout.tsx"
|
|
2
|
+
"name": "@c-rex/templates",
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"src"
|
|
7
|
+
],
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
16
11
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
"exports": {
|
|
13
|
+
"./home/layout": {
|
|
14
|
+
"types": "./src/home/layout.tsx",
|
|
15
|
+
"import": "./src/home/layout.tsx"
|
|
16
|
+
},
|
|
17
|
+
"./topics/layout": {
|
|
18
|
+
"types": "./src/articles/topics/layout.tsx",
|
|
19
|
+
"import": "./src/articles/topics/layout.tsx"
|
|
20
|
+
},
|
|
21
|
+
"./documents/layout": {
|
|
22
|
+
"types": "./src/articles/documents/layout.tsx",
|
|
23
|
+
"import": "./src/articles/documents/layout.tsx"
|
|
24
|
+
},
|
|
25
|
+
"./layout": {
|
|
26
|
+
"types": "./src/layout.tsx",
|
|
27
|
+
"import": "./src/layout.tsx"
|
|
28
|
+
}
|
|
20
29
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
"scripts": {
|
|
31
|
+
"lint": "eslint .",
|
|
32
|
+
"lint:fix": "eslint . --fix"
|
|
24
33
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@c-rex/eslint-config": "*",
|
|
36
|
+
"@c-rex/typescript-config": "*",
|
|
37
|
+
"@turbo/gen": "^2.4.4",
|
|
38
|
+
"@types/node": "^22.13.10",
|
|
39
|
+
"@types/react": "19.0.10",
|
|
40
|
+
"@types/react-dom": "19.0.4",
|
|
41
|
+
"eslint": "^9.23.0",
|
|
42
|
+
"typescript": "latest"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@c-rex/components": "*",
|
|
46
|
+
"@c-rex/contexts": "*",
|
|
47
|
+
"@c-rex/interfaces": "*",
|
|
48
|
+
"@c-rex/services": "*",
|
|
49
|
+
"@c-rex/ui": "*",
|
|
50
|
+
"@c-rex/utils": "*",
|
|
51
|
+
"cheerio": "^1.1.0",
|
|
52
|
+
"i18next": "^25.1.3",
|
|
53
|
+
"next": "^14",
|
|
54
|
+
"next-intl": "^4.1.0",
|
|
55
|
+
"nuqs": "^2.4.3",
|
|
56
|
+
"react": "^18",
|
|
57
|
+
"react-dom": "^18",
|
|
58
|
+
"react-i18next": "^15.5.1",
|
|
59
|
+
"sonner": "^2.0.5"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"react": "^18.3.1",
|
|
63
|
+
"react-dom": "^18.3.1"
|
|
28
64
|
}
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"lint": "eslint .",
|
|
32
|
-
"lint:fix": "eslint . --fix"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@c-rex/eslint-config": "*",
|
|
36
|
-
"@c-rex/typescript-config": "*",
|
|
37
|
-
"@turbo/gen": "^2.4.4",
|
|
38
|
-
"@types/node": "^22.13.10",
|
|
39
|
-
"@types/react": "19.0.10",
|
|
40
|
-
"@types/react-dom": "19.0.4",
|
|
41
|
-
"eslint": "^9.23.0",
|
|
42
|
-
"typescript": "latest"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@c-rex/components": "*",
|
|
46
|
-
"@c-rex/contexts": "*",
|
|
47
|
-
"@c-rex/interfaces": "*",
|
|
48
|
-
"@c-rex/services": "*",
|
|
49
|
-
"@c-rex/ui": "*",
|
|
50
|
-
"@c-rex/utils": "*",
|
|
51
|
-
"cheerio": "^1.1.0",
|
|
52
|
-
"i18next": "^25.1.3",
|
|
53
|
-
"next": "^14",
|
|
54
|
-
"next-intl": "^4.1.0",
|
|
55
|
-
"nuqs": "^2.4.3",
|
|
56
|
-
"react": "^18",
|
|
57
|
-
"react-dom": "^18",
|
|
58
|
-
"react-i18next": "^15.5.1",
|
|
59
|
-
"sonner": "^2.0.5"
|
|
60
|
-
}
|
|
61
65
|
}
|
package/src/articles/wrapper.tsx
CHANGED
|
@@ -39,7 +39,7 @@ export const ArticleWrapper = ({
|
|
|
39
39
|
breadcrumbItems,
|
|
40
40
|
}: Props) => {
|
|
41
41
|
return (
|
|
42
|
-
<div className="flex
|
|
42
|
+
<div className="flex w-full overflow-hidden">
|
|
43
43
|
<LeftSidebar
|
|
44
44
|
lang={documentLang}
|
|
45
45
|
data={treeOfContent}
|
|
@@ -78,7 +78,6 @@ export const ArticleWrapper = ({
|
|
|
78
78
|
documentInfo={documentInfo}
|
|
79
79
|
files={documents}
|
|
80
80
|
availableVersions={availableVersions}
|
|
81
|
-
|
|
82
81
|
/>
|
|
83
82
|
</div>
|
|
84
83
|
);
|
|
@@ -8,8 +8,7 @@ export class DocumentArticleCollector extends BaseArticleCollector {
|
|
|
8
8
|
private renditionService = new RenditionsService();
|
|
9
9
|
|
|
10
10
|
protected configureTasks(): void {
|
|
11
|
-
this
|
|
12
|
-
.withVersions()
|
|
11
|
+
this.withVersions()
|
|
13
12
|
.withDocument()
|
|
14
13
|
.withHtmlContent()
|
|
15
14
|
.withArticleInfo()
|
package/src/home/page.tsx
CHANGED
|
@@ -120,6 +120,7 @@ export const HomePage: FC<HomePageProps> = ({ data }) => {
|
|
|
120
120
|
removable: false
|
|
121
121
|
}, {
|
|
122
122
|
key: "wildcard",
|
|
123
|
+
name: "Wildcard",
|
|
123
124
|
value: params.wildcard as string,
|
|
124
125
|
removable: false,
|
|
125
126
|
}]
|
|
@@ -127,7 +128,7 @@ export const HomePage: FC<HomePageProps> = ({ data }) => {
|
|
|
127
128
|
const languages = params.language?.split(",")
|
|
128
129
|
languages?.forEach((item) => {
|
|
129
130
|
const aux = languages?.filter(langItem => langItem !== item)
|
|
130
|
-
filters.push({ key: "language", value: item, removable: languages.length > 1, default: aux.join(",") })
|
|
131
|
+
filters.push({ key: "language", name: t(`languages`), value: item.toUpperCase(), removable: languages.length > 1, default: aux.join(",") })
|
|
131
132
|
})
|
|
132
133
|
|
|
133
134
|
if (params.filter !== null) {
|
|
@@ -206,7 +207,7 @@ export const HomePage: FC<HomePageProps> = ({ data }) => {
|
|
|
206
207
|
{filters != null && filters.length > 0 && (
|
|
207
208
|
<div className="pb-4 flex justify-between">
|
|
208
209
|
|
|
209
|
-
<div className="flex flex-wrap gap-2
|
|
210
|
+
<div className="flex flex-wrap gap-2">
|
|
210
211
|
<Button
|
|
211
212
|
size="sm"
|
|
212
213
|
variant="secondary"
|
package/src/layout.tsx
CHANGED
|
@@ -15,7 +15,9 @@ export const DefaultRootLayout = async ({ children }: DefaultRootLayoutProps) =>
|
|
|
15
15
|
return (
|
|
16
16
|
<NuqsAdapter>
|
|
17
17
|
<html lang={locale} suppressHydrationWarning>
|
|
18
|
-
<head
|
|
18
|
+
<head>
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="/img/favicon.png" />
|
|
20
|
+
</head>
|
|
19
21
|
<body className="min-h-screen bg-background font-sans antialiased">
|
|
20
22
|
<NextIntlClientProvider>
|
|
21
23
|
<AppConfigProvider>
|