How sinoyuhanxiao/mes-maintenance-frontend works
Project type and purpose
• This is a single‐page application (SPA) built with Vue 3 and Vite, intended as an administrative dashboard or enterprise UI.
• It integrates with a PostgREST backend (PostgreSQL over a REST interface) and MinIO for file storage. It uses Element Plus for components, Pinia for state management, Vue Router for navigation, and a variety of charting and mapping libraries.
File structure
• Top-level:
• config/ – build and plugin configuration for Vite
• public/ – static assets and index.html template
• mock/ – CommonJS mock data for local development
• src/ – the heart of the SPA
– api/ – wrappers around HTTP calls to PostgREST and MinIO
– components/, layout/, views/ – Vue components (global, layout, and page views)
– router/ – route definitions and dynamic module splitting
– store/ – Pinia modules for global state
– plugins/, directive/, utils/ – application‐wide utilities and directives
• postgrest.yml – configuration for the PostgREST server
• vite.config.js – Vite build and dev server configuration