design fixes, tables seperate by language, loading and 404 pages, downloads from cms

This commit is contained in:
Трапезников Кирилл Иванович
2026-04-19 16:05:05 +10:00
parent cb4ae3bc25
commit 7acc40ec46
27 changed files with 1260 additions and 727 deletions
+2 -3
View File
@@ -37,12 +37,11 @@ export function DocsClient({ lang }: { lang: string }) {
async function fetchDocs() {
try {
setLoading(true);
const filterString = `lang = "${lang}"`;
// Обращаемся к documents_ru или documents_en
const records = await pb
.collection("documents")
.collection(`documents_${lang}`)
.getFullList<PBDocument>({
sort: "-created",
filter: filterString,
});
setDocs(records);
} catch (error) {