Skip to content
Open

94 #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@
"@tanstack/react-query": "5.73.3",
"@tanstack/react-router": "^1.128.8",
"@xipkg/button": "3.2.0",
"common.api": "*",
"common.auth": "*",
"common.config": "*",
"common.sockets": "*",
"common.theme": "*",
"common.ui": "*",
"common.utils": "*",
"common.services": "*",
"common.env": "*",
"common.types": "*",
"i18next": "24.2.2",
Expand Down
16 changes: 8 additions & 8 deletions apps/web/src/config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import LocalStorageBackend from 'i18next-localstorage-backend';

// Динамические импорты переводов для уменьшения размера основного бандла
// Добавьте импорты переводов из ваших пакетов здесь
const loadTranslations = async () => {
// Пример: const [{ commonEn, commonRu }] = await Promise.all([import('common.ui')]);
return {
// Добавьте ваши переводы здесь
};
};
// const loadTranslations = async () => {
// // Пример: const [{ commonEn, commonRu }] = await Promise.all([import('common.ui')]);

// return {
// // Добавьте ваши переводы здесь
// };
// };

// Инициализация i18n с динамической загрузкой переводов
const initI18n = async () => {
const translations = await loadTranslations();
// const translations = await loadTranslations();

const resources = {
en: {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
@source "../src";
@source "../node_modules/@xipkg";

// Добавьте @source директивы для ваших пакетов здесь
/* // Добавьте @source директивы для ваших пакетов здесь */
@source "../../../packages/common.ui/src";
// @source "../../../packages/your-package/src";
/* // @source "../../../packages/your-package/src"; */

/* app.css или globals.css */
html {
Expand Down
5 changes: 2 additions & 3 deletions apps/web/src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ export const Route = createFileRoute('/about')({
function AboutPage() {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="text-center max-w-2xl">
<h1 className="text-4xl font-bold mb-4">About</h1>
<div className="max-w-2xl text-center">
<h1 className="mb-4 text-4xl font-bold">About</h1>
<p className="text-lg text-gray-600">
This is a starter template built with modern web technologies.
</p>
</div>
</div>
);
}

6 changes: 3 additions & 3 deletions apps/web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ function HomePage() {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="text-center">
<h1 className="text-4xl font-bold mb-4">Welcome to Your Starter</h1>
<h1 className="mb-4 text-4xl font-bold">Welcome to Your Starter</h1>
<p className="text-lg text-gray-600">
This is a starter template for React applications with TypeScript, Vite, and TanStack Router.
This is a starter template for React applications with TypeScript, Vite, and TanStack
Router.
</p>
</div>
</div>
);
}

4 changes: 2 additions & 2 deletions apps/web/src/providers/RouterWithAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const RouterWithAuth = () => {
<AuthSocketBridge>
<ThemeProvider>
<NetworkProvider>
<RouterWithAuthContext />
<Toaster visibleToasts={3} expand />
<RouterWithAuthContext />
<Toaster visibleToasts={3} expand />
</NetworkProvider>
</ThemeProvider>
</AuthSocketBridge>
Expand Down
Loading