Refactor Zasilkovna client, update imports and cleanup
Refactored the Zasilkovna SOAP client to use a singleton pattern with caching and lazy loading, improving reliability and startup performance. Updated invoice PDF generation to import WeasyPrint lazily, preventing startup failures on systems missing dependencies. Cleaned up unused imports and code in several frontend components, removed unused state and variables, and adjusted Docker frontend port mapping. Also updated Django migration files to reflect a new generation timestamp.
This commit is contained in:
6
frontend/src/components/hero/HeroCarousel.tsx
Normal file
6
frontend/src/components/hero/HeroCarousel.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
export default function HeroCarousel() {
|
||||
return (
|
||||
<>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -12,7 +12,6 @@ import {
|
||||
FaPlayCircle,
|
||||
FaUsers,
|
||||
FaHandsHelping,
|
||||
FaProjectDiagram,
|
||||
} from "react-icons/fa";
|
||||
import {FaClapperboard, FaCubes} from "react-icons/fa6";
|
||||
import styles from "./navbar.module.css";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { createContext, useContext, useState, useEffect, ReactNode } from "react";
|
||||
// import type { ReactNode } from "react";
|
||||
// import { createContext, useContext, useState, useEffect } from "react";
|
||||
|
||||
//TODO: připraveno pro použití jenom linknout funkce z vygenerovaného api klientan a logout() a currentUser()
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import Footer from "../components/Footer/footer";
|
||||
import ContactMeForm from "../components/Forms/ContactMe/ContactMeForm";
|
||||
import HomeNav from "../components/navbar/HomeNav";
|
||||
import Drone from "../components/ads/Drone/Drone";
|
||||
import Portfolio from "../components/ads/Portfolio/Portfolio";
|
||||
import Home from "../pages/home/home";
|
||||
import { Outlet } from "react-router";
|
||||
import Navbar from "../components/navbar/SiteNav";
|
||||
|
||||
export default function HomeLayout(){
|
||||
return(
|
||||
<>
|
||||
{/* Example usage of imported components, adjust as needed */}
|
||||
|
||||
<HomeNav />
|
||||
<Navbar user={null} onLogin={() => {}} onLogout={() => {}} />
|
||||
|
||||
<Home /> {/*page*/}
|
||||
<div style={{margin: "10em 0"}}>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
|
||||
export default function Downloader() {
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import KinematografieSection from "./kinematografie";
|
||||
import DroneServisSection from "./droneServis";
|
||||
import WebsiteServiceSection from "./webs";
|
||||
|
||||
import styles from "./Services.module.css";
|
||||
|
||||
export default function Services() {
|
||||
const [active, setActive] = useState<Project | null>(null);
|
||||
return (
|
||||
<article id="services" className="section">
|
||||
<WebsiteServiceSection />
|
||||
|
||||
@@ -37,7 +37,6 @@ export default function TradingGraph() {
|
||||
const colorOther = styles.getPropertyValue("--c-other").trim();
|
||||
const colorLines = styles.getPropertyValue("--c-lines").trim();
|
||||
const colorBoxes = styles.getPropertyValue("--c-boxes").trim();
|
||||
const colorBg = styles.getPropertyValue("--c-background").trim();
|
||||
|
||||
// Set canvas size
|
||||
const rect = canvas.getBoundingClientRect();
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import styles from "./Services.module.css";
|
||||
|
||||
|
||||
export default function DroneServisSection() {
|
||||
return (
|
||||
<article id="drone-servis" className="section">
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import styles from "./Services.module.css";
|
||||
|
||||
export default function KinematografieSection() {
|
||||
return (
|
||||
<article id="kinematografie" className="section">
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import styles from "./Services.module.css";
|
||||
import TradingGraph from "./TradingGraph";
|
||||
|
||||
export default function WebsiteServiceSection() {
|
||||
return (
|
||||
<article id="web-services" className="section">
|
||||
|
||||
Reference in New Issue
Block a user