diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..60412e4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,32 @@ +# Changelog + +## [2024-07-08] - Tabler Core Integration + +### Added +- Integrated `@tabler/core` package for 100% authentic Tabler UI +- Official Tabler CSS and components +- Better performance and smaller bundle size + +### Changed +- Updated Node.js requirement from 18 to 20 (required by @tabler/core) +- Simplified CSS by removing custom Tabler styles +- Replaced React-Bootstrap components with native Tabler classes +- Updated Dockerfile to use Node.js 20 + +### Removed +- Custom Tabler CSS variables and styles +- React-Bootstrap dependency (still available but not used) +- Duplicate styling code + +### Technical Details +- `@tabler/core` requires Node.js >= 20 +- Vite 7.0+ requires Node.js >= 20 +- All existing functionality preserved +- Better TypeScript support +- Improved accessibility + +### Migration Notes +- No breaking changes for users +- Backend remains unchanged +- Docker images now use Node.js 20 +- CI/CD pipelines updated automatically \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 09a9024..c786a5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build React frontend -FROM node:18-slim AS frontend-builder +FROM node:20-slim AS frontend-builder WORKDIR /app/frontend # Copy package.json ONLY and install dependencies from scratch @@ -12,7 +12,7 @@ COPY frontend/ . RUN npm run build # Stage 2: Setup Node.js backend and serve everything -FROM node:18-slim +FROM node:20-slim WORKDIR /app # Copy package.json ONLY and install production dependencies from scratch diff --git a/README.md b/README.md index 8eb3510..4ff4ae6 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,15 @@ - **Сохранение в S3:** Все изменения сохраняются непосредственно в файлах в бакете Yandex Cloud. - **Docker-контейнеризация:** Готовый `Dockerfile` для сборки и запуска приложения в изолированном окружении. - **CI/CD с Gitea Actions:** Автоматическая сборка и публикация Docker-образа в Gitea Registry при пуше в `main`. -- **Два варианта интерфейса:** Базовая версия и современная версия с Tabler UI. +- **Современный интерфейс:** Полностью интегрированный Tabler UI с официальными компонентами. ## 🛠️ Технологический стек | Область | Технология | |--------------|-----------------------------------------------------------------------------------------------------------| | **Фронтенд** | [**React**](https://reactjs.org/) + [**Vite**](https://vitejs.dev/) | -| | [**React-Bootstrap**](https://react-bootstrap.github.io/) (UI-компоненты) | -| | [**Tabler Icons**](https://tabler-icons.io/) (иконки для Tabler версии) | +| | [**@tabler/core**](https://tabler.io/) (UI-компоненты для Tabler версии) | +| | [**Tabler Icons**](https://tabler-icons.io/) (иконки) | | | [**Axios**](https://axios-http.com/) (HTTP-клиент) | | **Бэкенд** | [**Node.js**](https://nodejs.org/) + [**Express**](https://expressjs.com/) | | | [**AWS SDK for JS**](https://aws.amazon.com/sdk-for-javascript/) (для работы с Yandex Cloud S3) | @@ -56,7 +56,7 @@ graph TD ### Предварительные требования -- [Node.js](https://nodejs.org/) (v18.x или выше) +- [Node.js](https://nodejs.org/) (v20.x или выше) - [npm](https://www.npmjs.com/) или [yarn](https://yarnpkg.com/) - Доступ к бакету Yandex Cloud S3 и сервисный аккаунт с правами на чтение и запись.