The frontend is a Vue 3 Single Page Application (SPA) built with Vite. It features a modern, responsive design with support for multiple languages and 3D visualization.
<script setup> syntax and Composition API.tailwind.config.ts.StlViewer.vue to render 3D models directly in the browser.stores/auth.ts).src/pages/): Components mapped to routes. Each page should represent a full view (e.g., Index.vue, Orders.vue).src/components/): Reusable UI elements.
ui/: Small, primitive components like buttons or inputs.admin/: Specialized components used only in the Admin Dashboard.To add or modify text:
src/locales/master_user/ (for public site) or master_admin/ (for admin panel).en, me, ru, ua are present).Run the generation script:
# On Windows:
backend\.venv\Scripts\python.exe scripts\manage_locales.py split
The changes will be reflected in the generated src/locales/*.json files and picked up by Vite.
The StlViewer.vue component handles the rendering of .stl files. It supports:
Defined in src/router/index.ts.
/:lang/admin require admin role./:lang/orders require the user to be logged in./about to /en/about based on local storage or defaults)..vue file in src/pages/.src/router/index.ts.src/locales/master_user/seo.json.manage_locales.py split.