Major Changes: - Migrate components from Options API to Composition API with <script setup> - Add centralized service layer (serviceService, deliveryService, adminService) - Implement new reusable components (EnhancedButton, EnhancedModal, StatCard, etc.) - Add theme store for consistent theming across application - Improve ServiceCalendar with federal holidays and better styling - Refactor customer profile and tank estimation components - Update all delivery and payment pages to use centralized services - Add utility functions for formatting and validation - Update Dockerfiles for better environment configuration - Enhance Tailwind config with custom design tokens UI Improvements: - Modern, premium design with glassmorphism effects - Improved form layouts with FloatingInput components - Better loading states and empty states - Enhanced modals and tables with consistent styling - Responsive design improvements across all pages Technical Improvements: - Strict TypeScript types throughout - Better error handling and validation - Removed deprecated api.js in favor of TypeScript services - Improved code organization and maintainability
39 lines
1.0 KiB
Docker
39 lines
1.0 KiB
Docker
FROM node:20.11.1 AS builder
|
|
|
|
ENV VITE_BASE_URL="http://192.168.1.204:9610"
|
|
ENV VITE_AUTO_URL="http://192.168.1.204:9614"
|
|
ENV VITE_MONEY_URL="http://192.168.1.204:9613"
|
|
ENV VITE_AUTHORIZE_URL="http://192.168.1.204:9616"
|
|
ENV VITE_VOIPMS_URL="http://192.168.1.204:9617"
|
|
ENV VITE_SERVICE_URL="http://192.168.1.204:9615"
|
|
ENV VITE_COMPANY_ID='1'
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
|
|
# --- THE FIX IS HERE ---
|
|
# 1. Install ALL dependencies (including devDependencies like vue-tsc)
|
|
RUN npm install
|
|
|
|
# 2. Copy the rest of your source code
|
|
COPY . .
|
|
|
|
# 3. Now run the build, which will succeed because vue-tsc is installed
|
|
RUN npm run build
|
|
|
|
# --- STAGE 2: Serve the built files with Nginx ---
|
|
FROM nginx:stable-alpine
|
|
|
|
# Copy the static files from the 'builder' stage
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
# Copy your custom Nginx configuration
|
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Tell the world that port 80 is now listening
|
|
EXPOSE 80
|
|
|
|
# Start Nginx when the container launches
|
|
CMD ["nginx", "-g", "daemon off;"] |