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:
@@ -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