diff --git a/assets/css/style.css b/assets/css/style.css deleted file mode 100644 index 2632cee..0000000 --- a/assets/css/style.css +++ /dev/null @@ -1,2146 +0,0 @@ -/* Reset and Base Styles */ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -:root { - /* HexaHost Brand Colors - Complete Set */ - --background-color: #0d0821; - --primary-color: #ff51f9; - --accent-color-1: #a348ff; - --accent-color-2: #3978ff; - --highlight-color: #f093ff; - --accent-deep: #6b2aff; - --accent-neon-blue: #00cfff; - --accent-pink-dark: #c31adf; - --success-color: #32fba2; - --warning-color: #ffcc00; - --error-color: #ff4d6d; - --neutral-light: #1a1230; - --neutral-medium: #3d3a4e; - --text-primary: #ffffff; - --text-secondary: #cfc9dd; - - /* Legacy Neutral Colors (for compatibility) */ - --white: #ffffff; - --gray-50: #f8fafc; - --gray-100: #f1f5f9; - --gray-200: #e2e8f0; - --gray-300: #cbd5e1; - --gray-400: #94a3b8; - --gray-500: #64748b; - --gray-600: #475569; - --gray-700: #334155; - --gray-800: #1e293b; - --gray-900: #0f172a; - - /* Background Gradients */ - --bg-primary: linear-gradient(135deg, var(--background-color) 0%, var(--neutral-light) 100%); - --bg-secondary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color-1) 100%); - --bg-accent: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-color-1) 100%); - --bg-neon: linear-gradient(135deg, var(--accent-neon-blue) 0%, var(--primary-color) 100%); - - /* Glass Effect */ - --glass-bg: rgba(255, 255, 255, 0.05); - --glass-border: rgba(255, 255, 255, 0.1); - --glass-shadow: 0 8px 32px 0 rgba(255, 81, 249, 0.2); - --glass-shadow-accent: 0 8px 32px 0 rgba(163, 72, 255, 0.3); - --glass-shadow-neon: 0 8px 32px 0 rgba(0, 207, 255, 0.3); - - /* Typography */ - --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; - --font-logo: 'Russo One', sans-serif; - --font-slogan: 'Source Sans Pro', sans-serif; - --font-size-xs: 0.75rem; - --font-size-sm: 0.875rem; - --font-size-base: 1rem; - --font-size-lg: 1.125rem; - --font-size-xl: 1.25rem; - --font-size-2xl: 1.5rem; - --font-size-3xl: 1.875rem; - --font-size-4xl: 2.25rem; - --font-size-5xl: 3rem; - - /* Spacing */ - --spacing-xs: 0.25rem; - --spacing-sm: 0.5rem; - --spacing-md: 1rem; - --spacing-lg: 1.5rem; - --spacing-xl: 2rem; - --spacing-2xl: 3rem; - --spacing-3xl: 4rem; - - /* Border Radius */ - --radius-sm: 0.375rem; - --radius-md: 0.5rem; - --radius-lg: 0.75rem; - --radius-xl: 1rem; - --radius-2xl: 1.5rem; - - /* Transitions */ - --transition-fast: 0.15s ease-in-out; - --transition-base: 0.3s ease-in-out; - --transition-slow: 0.5s ease-in-out; -} - -body { - font-family: var(--font-family); - line-height: 1.6; - color: var(--text-primary); - background: var(--background-color); - min-height: 100vh; - overflow-x: hidden; -} - -/* Glass Card Effect */ -.glass-card { - background: var(--glass-bg); - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(10px); - border: 1px solid var(--glass-border); - border-radius: var(--radius-xl); - box-shadow: var(--glass-shadow); - transition: all var(--transition-base); -} - -.glass-card:hover { - transform: translateY(-5px); - box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5); -} - -/* Container */ -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 var(--spacing-lg); -} - -/* Header */ -.header { - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1000; - background: rgba(13, 8, 33, 0.5); - backdrop-filter: blur(20px); - -webkit-backdrop-filter: blur(20px); - border-bottom: 1px solid var(--glass-border); - box-shadow: 0 2px 20px rgba(255, 81, 249, 0.1); - transition: all var(--transition-base); -} - -.header.scrolled { - background: rgba(13, 8, 33, 0.523); - box-shadow: 0 4px 30px rgba(255, 81, 249, 0.2); -} - -.nav-container { - max-width: 1200px; - margin: 0 auto; - padding: 0 var(--spacing-lg); - display: flex; - align-items: center; - justify-content: space-between; - height: 70px; -} - -.nav-logo a { - text-decoration: none; - display: flex; - align-items: center; -} - -.logo-image { - height: 50px; - width: auto; - object-fit: contain; - transition: var(--transition-base); -} - -.logo-image:hover { - transform: scale(1.05); - filter: drop-shadow(0 0 10px rgba(255, 81, 249, 0.5)); -} - -.nav-menu { - display: flex; - list-style: none; - gap: var(--spacing-xl); - align-items: center; -} - -.nav-link { - text-decoration: none; - color: var(--white); - font-weight: 500; - padding: var(--spacing-sm) var(--spacing-md); - border-radius: var(--radius-md); - transition: all var(--transition-base); - position: relative; -} - -.nav-link:hover, -.nav-link.active { - background: var(--glass-bg); - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(10px); -} - -.nav-dropdown { - position: relative; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - background: var(--glass-bg); - backdrop-filter: blur(20px); - -webkit-backdrop-filter: blur(20px); - border: 1px solid var(--glass-border); - border-radius: var(--radius-lg); - padding: var(--spacing-sm); - min-width: 200px; - opacity: 0; - visibility: hidden; - transform: translateY(-10px); - transition: all var(--transition-base); - list-style: none; -} - -.nav-dropdown:hover .dropdown-menu { - opacity: 1; - visibility: visible; - transform: translateY(0); -} - -.dropdown-menu li { - margin: 0; -} - -.dropdown-menu a { - display: block; - padding: var(--spacing-sm) var(--spacing-md); - color: var(--white); - text-decoration: none; - border-radius: var(--radius-sm); - transition: background var(--transition-fast); -} - -.dropdown-menu a:hover { - background: rgba(255, 255, 255, 0.1); -} - -.nav-toggle { - display: none; - flex-direction: column; - cursor: pointer; -} - -.nav-toggle span { - width: 25px; - height: 3px; - background: var(--white); - margin: 3px 0; - transition: var(--transition-base); -} - -/* Hero Section */ -.hero { - padding: 120px 0 80px; - min-height: 100vh; - display: flex; - align-items: center; - position: relative; - overflow: hidden; -} - -.hero::before { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: url('data:image/svg+xml,'); - z-index: -1; -} - -.hero-container { - max-width: 1200px; - margin: 0 auto; - padding: 0 var(--spacing-lg); - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--spacing-3xl); - align-items: center; -} - -.hero-title { - font-size: var(--font-size-5xl); - font-weight: 700; - line-height: 1.2; - margin-bottom: var(--spacing-lg); -} - -.highlight { - background: linear-gradient(135deg, var(--primary-color), var(--highlight-color)); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; -} - -.hero-description { - font-size: var(--font-size-lg); - color: var(--text-secondary); - margin-bottom: var(--spacing-2xl); - line-height: 1.6; -} - -.hero-actions { - display: flex; - gap: var(--spacing-lg); -} - -.hero-visual { - display: flex; - justify-content: center; - align-items: center; -} - -.hero-card { - padding: var(--spacing-2xl); - text-align: center; - max-width: 300px; -} - -.server-icon { - width: 80px; - height: 80px; - margin: 0 auto var(--spacing-lg); - color: var(--primary-color); -} - -.hero-card h3 { - font-size: var(--font-size-2xl); - font-weight: 600; - margin-bottom: var(--spacing-sm); -} - -.hero-card p { - color: var(--text-secondary); - font-size: var(--font-size-lg); -} - -/* Buttons */ -.btn { - display: inline-flex; - align-items: center; - padding: var(--spacing-md) var(--spacing-xl); - border: none; - border-radius: var(--radius-lg); - font-weight: 600; - text-decoration: none; - cursor: pointer; - transition: all var(--transition-base); - font-size: var(--font-size-base); -} - -.btn-primary { - background: linear-gradient(135deg, var(--primary-color), var(--accent-color-1)); - color: var(--text-primary); - box-shadow: 0 4px 15px 0 rgba(255, 81, 249, 0.3); -} - -.btn-primary:hover { - transform: translateY(-2px); - box-shadow: 0 8px 25px 0 rgba(255, 81, 249, 0.4); -} - -.btn-secondary { - background: var(--glass-bg); - color: var(--text-primary); - border: 1px solid var(--glass-border); - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(10px); -} - -.btn-secondary:hover { - background: rgba(255, 255, 255, 0.2); - transform: translateY(-2px); -} - -/* Sections */ -.section-header { - text-align: center; - margin-bottom: var(--spacing-3xl); -} - -.section-title { - font-size: var(--font-size-4xl); - font-weight: 700; - margin-bottom: var(--spacing-lg); -} - -.section-description { - font-size: var(--font-size-lg); - color: rgba(255, 255, 255, 0.8); - max-width: 600px; - margin: 0 auto; -} - -/* Products Section */ -.products { - padding: var(--spacing-3xl) 0; -} - -.products-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); - gap: var(--spacing-xl); -} - -.product-card { - padding: var(--spacing-2xl); - text-align: center; - position: relative; - transition: all var(--transition-base); -} - -.product-card.featured { - transform: scale(1.05); - border: 2px solid var(--primary-light); -} - -.featured-badge { - position: absolute; - top: -10px; - right: var(--spacing-lg); - background: linear-gradient(135deg, var(--primary-color), var(--accent-color-2)); - color: var(--white); - padding: var(--spacing-xs) var(--spacing-md); - border-radius: var(--radius-lg); - font-size: var(--font-size-sm); - font-weight: 600; -} - -.product-icon { - width: 40px; - height: 40px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -.product-title { - font-size: var(--font-size-xl); - font-weight: 600; - margin-bottom: var(--spacing-md); -} - -.product-description { - color: rgba(255, 255, 255, 0.8); - margin-bottom: var(--spacing-lg); - line-height: 1.6; -} - -.product-features { - list-style: none; - padding: 0; - margin-bottom: var(--spacing-lg); - text-align: center; -} - -.product-features li { - color: var(--text-secondary); - font-size: var(--font-size-sm); - padding: var(--spacing-xs) 0; - line-height: 1.5; -} - -.product-features li::before { - content: '•'; - color: var(--primary-color); - font-weight: bold; - margin-right: var(--spacing-sm); -} - -.feature { - font-size: var(--font-size-sm); - color: rgba(255, 255, 255, 0.9); -} - -.product-price { - font-size: var(--font-size-lg); - margin-bottom: var(--spacing-lg); - color: rgba(255, 255, 255, 0.9); -} - -.price { - font-size: var(--font-size-2xl); - font-weight: 700; - color: var(--primary-color); -} - -/* Features Section */ -.features { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.features-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: var(--spacing-lg); -} - -.feature-item { - padding: var(--spacing-lg); - text-align: center; -} - -.feature-icon { - width: 32px; - height: 32px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -.feature-item h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-sm); -} - -.feature-item p { - color: var(--text-secondary); - line-height: 1.5; - font-size: var(--font-size-sm); -} - -/* How it Works Section */ -.how-it-works { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.02); -} - -.steps-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--spacing-xl); - margin-top: var(--spacing-2xl); -} - -.step-item { - padding: var(--spacing-xl); - text-align: center; - position: relative; -} - -.step-number { - width: 60px; - height: 60px; - background: linear-gradient(135deg, var(--primary-color), var(--accent-color-1)); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: var(--font-size-xl); - font-weight: 700; - color: var(--white); - margin: 0 auto var(--spacing-lg); - box-shadow: 0 8px 32px 0 rgba(255, 81, 249, 0.3); -} - -.step-item h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-md); - color: var(--text-primary); -} - -.step-item p { - color: var(--text-secondary); - line-height: 1.6; - font-size: var(--font-size-base); -} - -/* Mail Features Section */ -.mail-features { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.03); -} - -/* Benefits Section */ -.benefits { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.02); -} - -.benefits-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--spacing-xl); - margin-top: var(--spacing-2xl); -} - -.benefit-item { - padding: var(--spacing-xl); - text-align: center; -} - -.benefit-icon { - width: 48px; - height: 48px; - margin: 0 auto var(--spacing-lg); - color: var(--primary-color); -} - -.benefit-item h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-md); - color: var(--text-primary); -} - -.benefit-item p { - color: var(--text-secondary); - line-height: 1.6; - font-size: var(--font-size-base); -} - -/* CTA Section */ -.cta { - padding: var(--spacing-3xl) 0; -} - -.cta-content { - text-align: center; - padding: var(--spacing-3xl); -} - -.cta-content h2 { - font-size: var(--font-size-3xl); - font-weight: 700; - margin-bottom: var(--spacing-lg); -} - -.cta-content p { - font-size: var(--font-size-lg); - color: var(--text-secondary); - margin-bottom: var(--spacing-2xl); -} - -.cta-actions { - display: flex; - gap: var(--spacing-lg); - justify-content: center; -} - -/* Footer */ -.footer { - background: rgba(0, 0, 0, 0.3); - padding: var(--spacing-3xl) 0 var(--spacing-xl); - margin-top: var(--spacing-3xl); -} - -.footer-content { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--spacing-2xl); - margin-bottom: var(--spacing-2xl); -} - -.footer-section h4 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-lg); - color: var(--primary-color); -} - -.footer-section p { - color: var(--text-secondary); - margin-bottom: var(--spacing-md); -} - -.footer-location { - display: flex; - align-items: center; - gap: var(--spacing-sm); - color: rgba(255, 255, 255, 0.7); -} - -.footer-location svg { - width: 16px; - height: 16px; -} - -.footer-section ul { - list-style: none; -} - -.footer-section ul li { - margin-bottom: var(--spacing-sm); -} - -.footer-section ul li a { - color: rgba(255, 255, 255, 0.8); - text-decoration: none; - transition: color var(--transition-base); -} - -.footer-section ul li a:hover { - color: var(--primary-color); -} - -.footer-bottom { - padding-top: var(--spacing-xl); - border-top: 1px solid rgba(255, 255, 255, 0.1); - text-align: center; - color: rgba(255, 255, 255, 0.6); -} - -/* Responsive Design */ -@media (max-width: 768px) { - .nav-menu { - display: none; - } - - .nav-toggle { - display: flex; - } - - .hero-container { - grid-template-columns: 1fr; - text-align: center; - gap: var(--spacing-2xl); - } - - .hero-title { - font-size: var(--font-size-3xl); - } - - .hero-actions { - flex-direction: column; - align-items: center; - } - - .products-grid { - grid-template-columns: 1fr; - } - - .features-grid { - grid-template-columns: 1fr; - } - - .cta-actions { - flex-direction: column; - align-items: center; - } - - .footer-content { - grid-template-columns: 1fr; - text-align: center; - } -} - -@media (max-width: 480px) { - .container { - padding: 0 var(--spacing-md); - } - - .nav-container { - padding: 0 var(--spacing-md); - } - - .hero { - padding: 100px 0 60px; - } - - .hero-title { - font-size: var(--font-size-2xl); - } - - .section-title { - font-size: var(--font-size-3xl); - } - - .product-card, - .feature-item, - .cta-content { - padding: var(--spacing-xl); - } - - .values-grid { - grid-template-columns: 1fr !important; - } - - .team-stats { - grid-template-columns: 1fr 1fr !important; - } -} - -/* Product Pages Styles */ -.product-hero { - padding: 120px 0 80px; - min-height: 60vh; - display: flex; - align-items: center; -} - -.product-hero-content { - max-width: 800px; - margin: 0 auto; - text-align: center; - padding: 0 var(--spacing-lg); -} - -.breadcrumb { - margin-bottom: var(--spacing-lg); - color: var(--text-secondary); - font-size: var(--font-size-sm); -} - -.breadcrumb a { - color: var(--primary-color); - text-decoration: none; -} - -.breadcrumb span { - margin: 0 var(--spacing-sm); -} - -.product-hero-title { - font-size: var(--font-size-4xl); - font-weight: 700; - line-height: 1.2; - margin-bottom: var(--spacing-lg); -} - -.product-hero-description { - font-size: var(--font-size-lg); - color: var(--text-secondary); - margin-bottom: var(--spacing-2xl); - line-height: 1.6; -} - -.product-hero-features { - display: flex; - justify-content: center; - gap: var(--spacing-2xl); - flex-wrap: wrap; -} - -.hero-feature { - display: flex; - align-items: center; - gap: var(--spacing-sm); - color: var(--primary-color); - font-weight: 500; -} - -.hero-feature svg { - width: 16px; - height: 16px; -} - -/* Package Cards */ -.packages { - padding: var(--spacing-3xl) 0; -} - -.packages-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); - gap: var(--spacing-2xl); -} - -.package-card { - padding: var(--spacing-2xl); - position: relative; - text-align: center; -} - -.package-header { - margin-bottom: var(--spacing-xl); -} - -.package-name { - font-size: var(--font-size-xl); - font-weight: 600; - margin-bottom: var(--spacing-md); -} - -.package-price { - margin-bottom: var(--spacing-xl); -} - -.package-price .price { - font-size: var(--font-size-3xl); - font-weight: 700; - color: var(--primary-color); -} - -.package-price .period { - color: var(--text-secondary); - font-size: var(--font-size-base); -} - -.package-specs { - margin-bottom: var(--spacing-xl); - text-align: left; -} - -.spec-item { - display: flex; - justify-content: space-between; - align-items: center; - padding: var(--spacing-sm) 0; - border-bottom: 1px solid rgba(255, 255, 255, 0.1); -} - -.spec-label { - color: rgba(255, 255, 255, 0.8); -} - -.spec-value { - font-weight: 600; - color: var(--white); -} - -.package-features { - margin-bottom: var(--spacing-xl); - text-align: left; -} - -.package-features .feature { - padding: var(--spacing-xs) 0; - color: rgba(255, 255, 255, 0.9); - font-size: var(--font-size-sm); -} - -/* Technical Details */ -.technical-details, -.mail-features, -.web-features, -.vps-features { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.details-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: var(--spacing-lg); -} - -.detail-card { - padding: var(--spacing-lg); - text-align: center; -} - -.detail-icon { - width: 32px; - height: 32px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -.detail-card h3 { - font-size: var(--font-size-base); - font-weight: 600; - margin-bottom: var(--spacing-sm); -} - -.detail-card p { - color: var(--text-secondary); - line-height: 1.5; - font-size: var(--font-size-sm); -} - -/* Use Cases */ -.use-cases { - padding: var(--spacing-3xl) 0; -} - -.use-cases-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); - gap: var(--spacing-lg); -} - -.use-case-item { - padding: var(--spacing-lg); -} - -.use-case-item h3 { - font-size: var(--font-size-base); - font-weight: 600; - margin-bottom: var(--spacing-sm); - color: var(--primary-color); -} - -.use-case-item p { - color: var(--text-secondary); - line-height: 1.5; - font-size: var(--font-size-sm); -} - -/* Operating Systems Grid */ -.operating-systems, -.technologies, -.cms-support { - padding: var(--spacing-3xl) 0; -} - -.os-grid, -.tech-grid, -.cms-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); - gap: var(--spacing-md); -} - -.os-item, -.tech-item, -.cms-item { - padding: var(--spacing-md); - text-align: center; -} - -.os-icon, -.tech-icon { - width: 28px; - height: 28px; - margin: 0 auto var(--spacing-sm); - color: var(--primary-color); -} - -.cms-logo { - width: 40px; - height: 40px; - margin: 0 auto var(--spacing-sm); - background: linear-gradient(135deg, var(--primary-color), var(--accent-color-1)); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-weight: 700; - font-size: var(--font-size-base); - color: var(--text-primary); -} - -.os-item h3, -.tech-item h3, -.cms-item h3 { - font-size: var(--font-size-sm); - font-weight: 600; - margin-bottom: var(--spacing-xs); -} - -.os-item p, -.tech-item p, -.cms-item p { - color: rgba(255, 255, 255, 0.7); - font-size: var(--font-size-xs); -} - -/* Performance & Security */ -.performance-security { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.perf-sec-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: var(--spacing-lg); -} - -.perf-sec-item { - padding: var(--spacing-lg); - text-align: center; -} - -.perf-sec-icon { - width: 32px; - height: 32px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -/* About Page Styles */ -.about-hero, -.contact-hero { - padding: 120px 0 80px; - min-height: 60vh; - display: flex; - align-items: center; -} - -.about-hero-content, -.contact-hero-content { - max-width: 800px; - margin: 0 auto; - text-align: center; - padding: 0 var(--spacing-lg); -} - -.about-hero-title, -.contact-hero-title { - font-size: var(--font-size-4xl); - font-weight: 700; - line-height: 1.2; - margin-bottom: var(--spacing-lg); -} - -.about-hero-description, -.contact-hero-description { - font-size: var(--font-size-lg); - color: rgba(255, 255, 255, 0.8); - line-height: 1.6; -} - -/* Company Story */ -.company-story { - padding: var(--spacing-3xl) 0; -} - -.story-content { - display: grid; - grid-template-columns: 2fr 1fr; - gap: var(--spacing-3xl); - align-items: center; -} - -.story-text p { - margin-bottom: var(--spacing-lg); - color: var(--text-secondary); - line-height: 1.6; -} - -.story-visual { - padding: var(--spacing-2xl); - text-align: center; -} - -.location-info { - margin-bottom: var(--spacing-2xl); -} - -.location-icon { - width: 60px; - height: 60px; - margin: 0 auto var(--spacing-lg); - color: var(--primary-color); -} - -.location-info h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-sm); -} - -.location-details { - text-align: center; -} - -.location-details p { - color: var(--text-secondary); - margin-bottom: var(--spacing-xs); - font-size: var(--font-size-sm); -} - -.stats { - display: flex; - justify-content: space-around; - gap: var(--spacing-lg); -} - -.stat-item { - text-align: center; -} - -.stat-number { - display: block; - font-size: var(--font-size-2xl); - font-weight: 700; - color: var(--primary-color); - margin-bottom: var(--spacing-xs); -} - -.stat-label { - font-size: var(--font-size-sm); - color: var(--text-secondary); -} - -/* Mission */ -.mission { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.mission-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: var(--spacing-lg); -} - -.mission-item { - padding: var(--spacing-lg); - text-align: center; -} - -.mission-icon { - width: 32px; - height: 32px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -/* Values */ -.values { - padding: var(--spacing-3xl) 0; -} - -.values-grid { - display: grid !important; - grid-template-columns: repeat(4, 1fr) !important; - gap: var(--spacing-xl); - margin-top: var(--spacing-2xl); -} - -.values-grid .value-item { - display: flex; - flex-direction: column; - align-items: center; - padding: var(--spacing-xl); - text-align: center; -} - -.values-grid .value-icon { - width: 48px; - height: 48px; - margin-bottom: var(--spacing-lg); - color: var(--primary-color); - display: flex; - align-items: center; - justify-content: center; -} - -.values-grid .value-icon svg { - width: 100%; - height: 100%; -} - -.values-grid .value-item h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-md); -} - -.values-grid .value-item p { - color: var(--text-secondary); - line-height: 1.6; - font-size: var(--font-size-sm); -} - -/* Team Section */ -.team { - padding: var(--spacing-3xl) 0; -} - -.team-content { - margin-top: var(--spacing-2xl); -} - -.team-text { - margin-bottom: var(--spacing-2xl); -} - -.team-text p { - color: var(--text-secondary); - line-height: 1.6; - margin-bottom: var(--spacing-lg); -} - -.team-stats { - display: grid !important; - grid-template-columns: repeat(4, 1fr) !important; - gap: var(--spacing-lg); - padding: var(--spacing-2xl); - text-align: center; -} - -/* Technology Section */ -.technology { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.02); -} - -.tech-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--spacing-xl); - margin-top: var(--spacing-2xl); -} - -.tech-item { - padding: var(--spacing-xl); - text-align: center; -} - -.tech-item .tech-icon { - width: 48px; - height: 48px; - margin: 0 auto var(--spacing-lg); - color: var(--primary-color); -} - -.tech-item h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-md); -} - -.tech-item p { - color: var(--text-secondary); - line-height: 1.6; - font-size: var(--font-size-sm); -} - -.value-number { - font-size: var(--font-size-2xl); - font-weight: 700; - color: var(--primary-color); - min-width: 60px; -} - -.value-content h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-sm); -} - -.value-content p { - color: rgba(255, 255, 255, 0.8); - line-height: 1.6; -} - -/* Technology Stack */ -.technology-stack { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.tech-stack-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: var(--spacing-lg); -} - -.tech-stack-item { - padding: var(--spacing-lg); - text-align: center; -} - -.tech-icon { - width: 50px; - height: 50px; - margin: 0 auto var(--spacing-lg); - color: var(--primary-color); -} - -/* Why Choose Us */ -.why-choose-us { - padding: var(--spacing-3xl) 0; -} - -.advantages-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--spacing-lg); -} - -.advantage-item { - padding: var(--spacing-lg); - text-align: center; -} - -.advantage-icon { - width: 32px; - height: 32px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -/* Contact Page Styles */ -.contact-options { - padding: var(--spacing-3xl) 0; -} - -.contact-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: var(--spacing-lg); -} - -.contact-item { - padding: var(--spacing-lg); - text-align: center; -} - -.contact-icon { - width: 32px; - height: 32px; - margin: 0 auto var(--spacing-md); - color: var(--primary-color); -} - -.contact-link { - display: inline-block; - margin-top: var(--spacing-md); - color: var(--primary-color); - text-decoration: none; - font-weight: 600; - padding: var(--spacing-sm) var(--spacing-md); - border: 2px solid var(--primary-color); - border-radius: var(--radius-md); - transition: all var(--transition-base); -} - -.contact-link:hover { - background: var(--primary-color); - color: var(--text-primary); -} - -.chat-btn { - background: none; - cursor: pointer; -} - -.contact-hours { - margin-top: var(--spacing-sm); - font-size: var(--font-size-sm); - color: var(--text-secondary); -} - -/* Contact Form */ -.contact-form-section { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.form-container { - max-width: 800px; - margin: 0 auto; -} - -.form-header { - text-align: center; - margin-bottom: var(--spacing-2xl); -} - -.contact-form { - padding: var(--spacing-2xl); -} - -.form-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--spacing-lg); -} - -.form-group { - margin-bottom: var(--spacing-lg); -} - -.form-group label { - display: block; - margin-bottom: var(--spacing-sm); - color: var(--text-primary); - font-weight: 500; -} - -.form-group input, -.form-group select, -.form-group textarea { - width: 100%; - padding: var(--spacing-md); - border: 1px solid rgba(255, 255, 255, 0.2); - border-radius: var(--radius-md); - background: rgba(255, 255, 255, 0.1); - color: var(--text-primary); - font-family: inherit; - transition: all var(--transition-base); -} - -/* Spezielle Styling für Select-Elemente */ -.form-group select { - background: rgba(255, 255, 255, 0.1); - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(10px); -} - -.form-group select option { - background: rgba(13, 8, 33, 0.95); - color: var(--text-primary); - padding: var(--spacing-sm); -} - -.form-group input:focus, -.form-group select:focus, -.form-group textarea:focus { - outline: none; - border-color: var(--primary-color); - background: rgba(255, 255, 255, 0.15); -} - -.form-group input::placeholder, -.form-group textarea::placeholder { - color: var(--text-secondary); -} - -.checkbox-group { - display: flex; - align-items: flex-start; - gap: var(--spacing-sm); -} - -.checkbox-label { - display: flex; - align-items: flex-start; - gap: var(--spacing-sm); - cursor: pointer; - font-size: var(--font-size-sm); - line-height: 1.4; -} - -.checkbox-label input[type="checkbox"] { - width: auto; - margin: 0; -} - -.checkmark { - width: 20px; - height: 20px; - border: 2px solid rgba(255, 255, 255, 0.3); - border-radius: var(--radius-sm); - background: transparent; - position: relative; - flex-shrink: 0; - margin-top: 2px; -} - -.checkbox-label input[type="checkbox"]:checked + .checkmark { - background: var(--primary-color); - border-color: var(--primary-color); -} - -.checkbox-label input[type="checkbox"]:checked + .checkmark::after { - content: '✓'; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - color: var(--white); - font-size: 12px; - font-weight: bold; -} - -.checkbox-label a { - color: var(--primary-color); - text-decoration: none; -} - -.checkbox-label a:hover { - text-decoration: underline; -} - -.form-actions { - display: flex; - gap: var(--spacing-lg); - justify-content: center; - margin-top: var(--spacing-xl); -} - -/* FAQ Section */ -.faq-section { - padding: var(--spacing-3xl) 0; -} - -.faq-grid { - display: grid; - gap: var(--spacing-lg); - max-width: 800px; - margin: 0 auto; -} - -.faq-item { - padding: 0; - overflow: hidden; - transition: all var(--transition-base); - border: 1px solid transparent; -} - -.faq-item:hover { - border-color: var(--primary-color); - box-shadow: 0 0 20px rgba(255, 81, 249, 0.2); - transform: translateY(-2px); -} - -.faq-question { - display: flex; - justify-content: space-between; - align-items: center; - padding: var(--spacing-lg); - cursor: pointer; - transition: background var(--transition-base); -} - -.faq-question h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin: 0; -} - -.faq-toggle { - font-size: var(--font-size-2xl); - font-weight: 300; - color: var(--primary-color); - transition: transform var(--transition-base); -} - -.faq-item.open .faq-toggle { - transform: rotate(45deg); -} - -.faq-answer { - max-height: 0; - overflow: hidden; - transition: max-height var(--transition-base); -} - -.faq-answer p { - padding: 0 var(--spacing-lg) var(--spacing-lg); - color: rgba(255, 255, 255, 0.8); - line-height: 1.6; - margin: 0; -} - -/* Response Time */ -.response-time { - padding: var(--spacing-3xl) 0; - background: rgba(255, 255, 255, 0.05); -} - -.response-content { - display: grid; - grid-template-columns: 2fr 1fr; - gap: var(--spacing-2xl); - align-items: center; - padding: var(--spacing-2xl); -} - -.response-stats { - display: flex; - justify-content: space-around; - gap: var(--spacing-lg); -} - -.response-text h3 { - font-size: var(--font-size-xl); - font-weight: 600; - margin-bottom: var(--spacing-md); -} - -.response-text p { - color: rgba(255, 255, 255, 0.8); - line-height: 1.6; -} - -/* Additional responsive styles */ -@media (max-width: 768px) { - .product-hero-features { - gap: var(--spacing-lg); - } - - .hero-feature { - font-size: var(--font-size-sm); - } - - .packages-grid { - grid-template-columns: 1fr; - } - - .steps-grid { - grid-template-columns: 1fr; - gap: var(--spacing-lg); - } - - .benefits-grid { - grid-template-columns: 1fr; - gap: var(--spacing-lg); - } - - .story-content { - grid-template-columns: 1fr; - } - - .stats { - flex-direction: column; - gap: var(--spacing-md); - } - - .values-grid { - grid-template-columns: 1fr 1fr !important; - } - - .team-stats { - grid-template-columns: 1fr 1fr !important; - } - - .form-row { - grid-template-columns: 1fr; - } - - .response-content { - grid-template-columns: 1fr; - text-align: center; - } - - .response-stats { - flex-direction: column; - gap: var(--spacing-md); - } - - .form-actions { - flex-direction: column; - align-items: center; - } -} - -/* ========================================== - LEGAL PAGES (Impressum, Datenschutz) - ========================================== */ - -.legal-hero { - padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl); - background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); - text-align: center; -} - -.legal-hero-content { - max-width: 800px; - margin: 0 auto; -} - -.legal-hero-title { - font-size: clamp(2rem, 5vw, 3rem); - font-weight: 700; - margin-bottom: var(--spacing-md); - background: var(--gradient-primary); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; -} - -.legal-hero-description { - font-size: 1.125rem; - color: var(--text-secondary); - max-width: 600px; - margin: 0 auto; -} - -.legal-content { - padding: var(--spacing-2xl) 0; -} - -.legal-container { - max-width: 900px; - margin: 0 auto; - display: flex; - flex-direction: column; - gap: var(--spacing-lg); -} - -.legal-section { - padding: var(--spacing-xl); -} - -.legal-section h2 { - font-size: 1.5rem; - font-weight: 600; - color: var(--text-primary); - margin-bottom: var(--spacing-md); - padding-bottom: var(--spacing-sm); - border-bottom: 2px solid var(--primary); -} - -.legal-section h3 { - font-size: 1.125rem; - font-weight: 600; - color: var(--text-primary); - margin-bottom: var(--spacing-sm); - margin-top: var(--spacing-md); -} - -.legal-section h3:first-child { - margin-top: 0; -} - -.legal-block { - margin-bottom: var(--spacing-md); -} - -.legal-block:last-child { - margin-bottom: 0; -} - -.legal-block p { - color: var(--text-secondary); - line-height: 1.8; - margin-bottom: var(--spacing-sm); -} - -.legal-block p:last-child { - margin-bottom: 0; -} - -.legal-block a { - color: var(--primary); - text-decoration: none; - transition: color var(--transition-fast); -} - -.legal-block a:hover { - color: var(--primary-light); - text-decoration: underline; -} - -.legal-block ul, -.legal-block ol { - margin: var(--spacing-sm) 0; - padding-left: var(--spacing-lg); - color: var(--text-secondary); -} - -.legal-block li { - margin-bottom: var(--spacing-xs); - line-height: 1.7; -} - -.legal-note { - font-size: 0.875rem; - color: var(--text-muted); - background: rgba(var(--primary-rgb), 0.1); - padding: var(--spacing-sm) var(--spacing-md); - border-radius: var(--radius-sm); - border-left: 3px solid var(--primary); -} - -/* Legal Page Responsive */ -@media (max-width: 768px) { - .legal-section { - padding: var(--spacing-lg); - } - - .legal-section h2 { - font-size: 1.25rem; - } - - .legal-hero { - padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl); - } -} - -/* ========================================== - COOKIE CONSENT BANNER - ========================================== */ - -.cookie-consent { - position: fixed; - bottom: 0; - left: 0; - right: 0; - z-index: 10000; - background: rgba(13, 8, 33, 0.98); - backdrop-filter: blur(20px); - -webkit-backdrop-filter: blur(20px); - border-top: 1px solid var(--glass-border); - box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3); - transform: translateY(100%); - opacity: 0; - visibility: hidden; - transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); -} - -.cookie-consent.show { - transform: translateY(0); - opacity: 1; - visibility: visible; -} - -.cookie-consent.hide { - transform: translateY(100%); - opacity: 0; - visibility: hidden; -} - -.cookie-consent-container { - max-width: 1200px; - margin: 0 auto; - padding: var(--spacing-xl) var(--spacing-lg); - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: var(--spacing-lg); -} - -.cookie-consent-content { - display: flex; - align-items: flex-start; - gap: var(--spacing-lg); - flex: 1; - min-width: 300px; -} - -.cookie-consent-icon { - width: 48px; - height: 48px; - flex-shrink: 0; - color: var(--primary-color); -} - -.cookie-consent-icon svg { - width: 100%; - height: 100%; -} - -.cookie-consent-text h3 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-sm); - color: var(--text-primary); -} - -.cookie-consent-text p { - font-size: var(--font-size-sm); - color: var(--text-secondary); - line-height: 1.6; - margin: 0; -} - -.cookie-consent-text a { - color: var(--primary-color); - text-decoration: none; - font-weight: 500; -} - -.cookie-consent-text a:hover { - text-decoration: underline; -} - -.cookie-consent-actions { - display: flex; - flex-wrap: wrap; - gap: var(--spacing-md); - align-items: center; -} - -.cookie-consent-actions .btn { - white-space: nowrap; -} - -.btn-text { - background: transparent; - color: var(--text-secondary); - border: none; - padding: var(--spacing-sm) var(--spacing-md); - font-weight: 500; - cursor: pointer; - transition: color var(--transition-base); -} - -.btn-text:hover { - color: var(--primary-color); -} - -/* Cookie Settings Panel */ -.cookie-settings-panel { - border-top: 1px solid var(--glass-border); - background: rgba(0, 0, 0, 0.3); - animation: slideDown 0.3s ease-out; -} - -@keyframes slideDown { - from { - opacity: 0; - transform: translateY(-10px); - } - to { - opacity: 1; - transform: translateY(0); - } -} - -.cookie-settings-content { - max-width: 800px; - margin: 0 auto; - padding: var(--spacing-xl) var(--spacing-lg); -} - -.cookie-settings-content h4 { - font-size: var(--font-size-lg); - font-weight: 600; - margin-bottom: var(--spacing-lg); - color: var(--text-primary); -} - -.cookie-option { - display: flex; - justify-content: space-between; - align-items: center; - padding: var(--spacing-md) 0; - border-bottom: 1px solid rgba(255, 255, 255, 0.1); -} - -.cookie-option:last-of-type { - border-bottom: none; -} - -.cookie-option-info { - flex: 1; - padding-right: var(--spacing-lg); -} - -.cookie-option-info strong { - display: block; - font-size: var(--font-size-base); - font-weight: 600; - color: var(--text-primary); - margin-bottom: var(--spacing-xs); -} - -.cookie-option-info p { - font-size: var(--font-size-sm); - color: var(--text-secondary); - margin: 0; - line-height: 1.5; -} - -/* Cookie Toggle Switch */ -.cookie-toggle { - position: relative; - display: inline-block; - width: 52px; - height: 28px; - flex-shrink: 0; -} - -.cookie-toggle input { - opacity: 0; - width: 0; - height: 0; -} - -.cookie-toggle-slider { - position: absolute; - cursor: pointer; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(255, 255, 255, 0.2); - border-radius: 28px; - transition: all var(--transition-base); -} - -.cookie-toggle-slider::before { - position: absolute; - content: ""; - height: 22px; - width: 22px; - left: 3px; - bottom: 3px; - background: var(--text-primary); - border-radius: 50%; - transition: all var(--transition-base); -} - -.cookie-toggle input:checked + .cookie-toggle-slider { - background: linear-gradient(135deg, var(--primary-color), var(--accent-color-1)); -} - -.cookie-toggle input:checked + .cookie-toggle-slider::before { - transform: translateX(24px); -} - -.cookie-toggle.disabled .cookie-toggle-slider { - cursor: not-allowed; - opacity: 0.7; -} - -.cookie-toggle input:focus + .cookie-toggle-slider { - box-shadow: 0 0 0 3px rgba(255, 81, 249, 0.3); -} - -.cookie-settings-actions { - display: flex; - gap: var(--spacing-md); - justify-content: flex-end; - margin-top: var(--spacing-xl); - padding-top: var(--spacing-lg); - border-top: 1px solid rgba(255, 255, 255, 0.1); -} - -/* Cookie Consent Responsive */ -@media (max-width: 768px) { - .cookie-consent-container { - flex-direction: column; - align-items: stretch; - padding: var(--spacing-lg); - } - - .cookie-consent-content { - flex-direction: column; - align-items: center; - text-align: center; - } - - .cookie-consent-icon { - width: 40px; - height: 40px; - } - - .cookie-consent-actions { - flex-direction: column; - width: 100%; - } - - .cookie-consent-actions .btn { - width: 100%; - justify-content: center; - } - - .cookie-settings-actions { - flex-direction: column; - } - - .cookie-settings-actions .btn { - width: 100%; - } - - .cookie-option { - flex-direction: column; - align-items: flex-start; - gap: var(--spacing-md); - } - - .cookie-option-info { - padding-right: 0; - } -} \ No newline at end of file diff --git a/assets/js/contact.js b/assets/js/contact.js deleted file mode 100644 index a27478b..0000000 --- a/assets/js/contact.js +++ /dev/null @@ -1,320 +0,0 @@ -// Contact page specific JavaScript -(function() { - 'use strict'; - - // FAQ Accordion functionality - function initFAQ() { - const faqItems = document.querySelectorAll('.faq-item'); - - faqItems.forEach(item => { - const question = item.querySelector('.faq-question'); - const answer = item.querySelector('.faq-answer'); - const toggle = item.querySelector('.faq-toggle'); - - question.addEventListener('click', function() { - const isOpen = item.classList.contains('open'); - - // Close all other FAQ items - faqItems.forEach(otherItem => { - if (otherItem !== item) { - otherItem.classList.remove('open'); - const otherAnswer = otherItem.querySelector('.faq-answer'); - const otherToggle = otherItem.querySelector('.faq-toggle'); - otherAnswer.style.maxHeight = null; - otherToggle.textContent = '+'; - } - }); - - // Toggle current item - if (isOpen) { - item.classList.remove('open'); - answer.style.maxHeight = null; - toggle.textContent = '+'; - } else { - item.classList.add('open'); - answer.style.maxHeight = answer.scrollHeight + 'px'; - toggle.textContent = '−'; - } - }); - }); - } - - // Contact form handling - function initContactForm() { - const form = document.getElementById('contactForm'); - - if (!form) return; - - form.addEventListener('submit', function(e) { - e.preventDefault(); - - // Get form data - const formData = new FormData(form); - - // Basic validation - const data = {}; - for (let [key, value] of formData.entries()) { - data[key] = value; - } - - if (!validateForm(data)) { - return; - } - - // Show loading state - const submitBtn = form.querySelector('button[type="submit"]'); - const originalText = submitBtn.textContent; - submitBtn.textContent = 'Wird gesendet...'; - submitBtn.disabled = true; - - // Send form data to PHP backend - fetch('contact-handler.php', { - method: 'POST', - body: formData - }) - .then(response => response.json()) - .then(data => { - // Reset button state - submitBtn.textContent = originalText; - submitBtn.disabled = false; - - if (data.success) { - // Reset form - form.reset(); - - // Show success message - showNotification(data.message, 'success'); - - // Scroll to top - window.scrollTo({ top: 0, behavior: 'smooth' }); - } else { - // Show error message - showNotification(data.message, 'error'); - - // Highlight missing fields if provided - if (data.missing_fields) { - data.missing_fields.forEach(field => { - const fieldElement = document.getElementById(field); - if (fieldElement) { - fieldElement.style.borderColor = '#ff4d6d'; - setTimeout(() => { - fieldElement.style.borderColor = ''; - }, 3000); - } - }); - } - } - }) - .catch(error => { - console.error('Error:', error); - showNotification('Ein Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.', 'error'); - submitBtn.textContent = originalText; - submitBtn.disabled = false; - }); - }); - } - - // Form validation - function validateForm(data) { - const requiredFields = ['firstName', 'lastName', 'email', 'subject', 'message']; - const errors = []; - - // Check required fields - requiredFields.forEach(field => { - if (!data[field] || data[field].trim() === '') { - errors.push(`Das Feld "${getFieldLabel(field)}" ist erforderlich.`); - } - }); - - // Email validation - if (data.email && !isValidEmail(data.email)) { - errors.push('Bitte geben Sie eine gültige E-Mail-Adresse ein.'); - } - - // Privacy checkbox - if (!data.privacy) { - errors.push('Sie müssen der Datenschutzerklärung zustimmen.'); - } - - if (errors.length > 0) { - showNotification(errors.join('\n'), 'error'); - return false; - } - - return true; - } - - // Helper function to get field labels - function getFieldLabel(fieldName) { - const labels = { - firstName: 'Vorname', - lastName: 'Nachname', - email: 'E-Mail-Adresse', - subject: 'Betreff', - message: 'Nachricht' - }; - return labels[fieldName] || fieldName; - } - - // Email validation - function isValidEmail(email) { - const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; - return re.test(email); - } - - // Notification system (using the global one from main.js) - function showNotification(message, type = 'info') { - if (window.HexaHost && window.HexaHost.showNotification) { - window.HexaHost.showNotification(message, type); - } else { - // Fallback - alert(message); - } - } - - // Live chat placeholder function - window.openLiveChat = function() { - showNotification('Live Chat wird geöffnet... (Demo-Funktion)', 'info'); - // Here you would integrate with your actual live chat service - // For example: Tawk.to, Intercom, Zendesk Chat, etc. - }; - - // Auto-fill form based on URL parameters - function autofillForm() { - const urlParams = new URLSearchParams(window.location.search); - const packageParam = urlParams.get('package'); - const productParam = urlParams.get('product'); - - if (packageParam || productParam) { - const subjectSelect = document.getElementById('subject'); - const messageTextarea = document.getElementById('message'); - - if (packageParam) { - // Set subject based on package - const packageNames = { - 'vpc-starter': 'Virtual Private Container - Starter Paket', - 'vpc-business': 'Virtual Private Container - Business Paket', - 'vpc-professional': 'Virtual Private Container - Professional Paket', - 'vpc-enterprise': 'Virtual Private Container - Enterprise Paket', - 'vps-basic': 'Virtual Private Server - Basic Paket', - 'vps-standard': 'Virtual Private Server - Standard Paket', - 'vps-premium': 'Virtual Private Server - Premium Paket', - 'vps-enterprise': 'Virtual Private Server - Enterprise Paket', - 'mail-starter': 'Mail Gateway - Starter Paket', - 'mail-business': 'Mail Gateway - Business Paket', - 'mail-professional': 'Mail Gateway - Professional Paket', - 'mail-enterprise': 'Mail Gateway - Enterprise Paket', - 'web-starter': 'Webhosting - Starter Paket', - 'web-business': 'Webhosting - Business Paket', - 'web-professional': 'Webhosting - Professional Paket', - 'web-enterprise': 'Webhosting - Enterprise Paket' - }; - - if (packageNames[packageParam]) { - messageTextarea.value = `Hallo,\n\nich interessiere mich für das ${packageNames[packageParam]}.\n\nBitte senden Sie mir weitere Informationen und ein individuelles Angebot.\n\nVielen Dank!`; - - // Set appropriate subject - if (packageParam.startsWith('vpc-')) { - subjectSelect.value = 'vpc-anfrage'; - } else if (packageParam.startsWith('vps-')) { - subjectSelect.value = 'vps-anfrage'; - } else if (packageParam.startsWith('mail-')) { - subjectSelect.value = 'mail-gateway-anfrage'; - } else if (packageParam.startsWith('web-')) { - subjectSelect.value = 'webhosting-anfrage'; - } - } - } else if (productParam) { - // Set subject based on product - const productSubjects = { - 'vpc': 'vpc-anfrage', - 'vps': 'vps-anfrage', - 'mail-gateway': 'mail-gateway-anfrage', - 'webhosting': 'webhosting-anfrage' - }; - - if (productSubjects[productParam]) { - subjectSelect.value = productSubjects[productParam]; - messageTextarea.value = `Hallo,\n\nich interessiere mich für Ihre ${productParam.replace('-', ' ')} Lösungen.\n\nBitte kontaktieren Sie mich für eine persönliche Beratung.\n\nVielen Dank!`; - } - } - } - } - - // Form field enhancements - function enhanceFormFields() { - const inputs = document.querySelectorAll('input, select, textarea'); - - inputs.forEach(input => { - // Add focus/blur effects - input.addEventListener('focus', function() { - this.parentElement.classList.add('focused'); - }); - - input.addEventListener('blur', function() { - if (!this.value) { - this.parentElement.classList.remove('focused'); - } - }); - - // Check if field already has value (for autofilled forms) - if (input.value) { - input.parentElement.classList.add('focused'); - } - }); - - // Phone number formatting - const phoneInput = document.getElementById('phone'); - if (phoneInput) { - phoneInput.addEventListener('input', function() { - // Simple German phone number formatting - let value = this.value.replace(/\D/g, ''); - if (value.startsWith('49')) { - value = '+' + value; - } else if (value.startsWith('0')) { - value = '+49' + value.substring(1); - } - this.value = value; - }); - } - } - - // Accessibility improvements - function improveAccessibility() { - // Add ARIA labels to form elements - const requiredFields = document.querySelectorAll('input[required], select[required], textarea[required]'); - requiredFields.forEach(field => { - field.setAttribute('aria-required', 'true'); - }); - - // Add keyboard navigation for FAQ - const faqQuestions = document.querySelectorAll('.faq-question'); - faqQuestions.forEach(question => { - question.setAttribute('tabindex', '0'); - question.setAttribute('role', 'button'); - question.setAttribute('aria-expanded', 'false'); - - question.addEventListener('keydown', function(e) { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - this.click(); - } - }); - }); - } - - // Initialize everything when DOM is loaded - document.addEventListener('DOMContentLoaded', function() { - initFAQ(); - initContactForm(); - autofillForm(); - enhanceFormFields(); - improveAccessibility(); - - // Show a welcome message for contact page - setTimeout(() => { - showNotification('💬 Haben Sie Fragen? Wir helfen gerne!', 'info'); - }, 2000); - }); - -})(); \ No newline at end of file diff --git a/assets/js/cookie-consent.js b/assets/js/cookie-consent.js deleted file mode 100644 index ce44911..0000000 --- a/assets/js/cookie-consent.js +++ /dev/null @@ -1,323 +0,0 @@ -/** - * Cookie Consent Manager für HexaHost.de - * DSGVO-konformes Cookie-Banner mit granularen Einstellungen - */ -(function() { - 'use strict'; - - // Cookie-Konfiguration - const COOKIE_NAME = 'hexahost_cookie_consent'; - const COOKIE_EXPIRY_DAYS = 365; - - // DOM-Elemente - const banner = document.getElementById('cookieConsent'); - const settingsPanel = document.getElementById('cookieSettingsPanel'); - const acceptAllBtn = document.getElementById('cookieAcceptAll'); - const acceptEssentialBtn = document.getElementById('cookieAcceptEssential'); - const settingsBtn = document.getElementById('cookieSettings'); - const saveSettingsBtn = document.getElementById('cookieSaveSettings'); - const closeSettingsBtn = document.getElementById('cookieCloseSettings'); - const analyticsCheckbox = document.getElementById('cookieAnalytics'); - const marketingCheckbox = document.getElementById('cookieMarketing'); - - /** - * Cookie-Hilfsfunktionen - */ - const CookieUtils = { - set: function(name, value, days) { - const date = new Date(); - date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); - const expires = 'expires=' + date.toUTCString(); - document.cookie = name + '=' + JSON.stringify(value) + ';' + expires + ';path=/;SameSite=Lax;Secure'; - }, - - get: function(name) { - const nameEQ = name + '='; - const cookies = document.cookie.split(';'); - for (let i = 0; i < cookies.length; i++) { - let cookie = cookies[i].trim(); - if (cookie.indexOf(nameEQ) === 0) { - try { - return JSON.parse(cookie.substring(nameEQ.length)); - } catch (e) { - return null; - } - } - } - return null; - }, - - delete: function(name) { - document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;'; - } - }; - - /** - * Cookie Consent Manager - */ - const CookieConsent = { - // Standardeinstellungen - defaultConsent: { - essential: true, // Immer aktiviert - analytics: false, - marketing: false, - timestamp: null - }, - - /** - * Initialisierung - */ - init: function() { - if (!banner) return; - - const consent = this.getConsent(); - - if (consent && consent.timestamp) { - // Consent bereits gegeben - Banner verstecken - this.hideBanner(); - this.applyConsent(consent); - } else { - // Zeige Banner - this.showBanner(); - } - - this.bindEvents(); - }, - - /** - * Event-Listener binden - */ - bindEvents: function() { - if (acceptAllBtn) { - acceptAllBtn.addEventListener('click', () => this.acceptAll()); - } - - if (acceptEssentialBtn) { - acceptEssentialBtn.addEventListener('click', () => this.acceptEssential()); - } - - if (settingsBtn) { - settingsBtn.addEventListener('click', () => this.showSettings()); - } - - if (saveSettingsBtn) { - saveSettingsBtn.addEventListener('click', () => this.saveSettings()); - } - - if (closeSettingsBtn) { - closeSettingsBtn.addEventListener('click', () => this.hideSettings()); - } - - // ESC-Taste zum Schließen der Einstellungen - document.addEventListener('keydown', (e) => { - if (e.key === 'Escape' && settingsPanel && settingsPanel.style.display !== 'none') { - this.hideSettings(); - } - }); - }, - - /** - * Alle Cookies akzeptieren - */ - acceptAll: function() { - const consent = { - essential: true, - analytics: true, - marketing: true, - timestamp: new Date().toISOString() - }; - this.saveConsent(consent); - this.hideBanner(); - this.applyConsent(consent); - this.showNotification('Alle Cookies wurden akzeptiert.', 'success'); - }, - - /** - * Nur essenzielle Cookies akzeptieren - */ - acceptEssential: function() { - const consent = { - essential: true, - analytics: false, - marketing: false, - timestamp: new Date().toISOString() - }; - this.saveConsent(consent); - this.hideBanner(); - this.applyConsent(consent); - this.showNotification('Nur notwendige Cookies wurden akzeptiert.', 'info'); - }, - - /** - * Einstellungen speichern - */ - saveSettings: function() { - const consent = { - essential: true, - analytics: analyticsCheckbox ? analyticsCheckbox.checked : false, - marketing: marketingCheckbox ? marketingCheckbox.checked : false, - timestamp: new Date().toISOString() - }; - this.saveConsent(consent); - this.hideSettings(); - this.hideBanner(); - this.applyConsent(consent); - this.showNotification('Cookie-Einstellungen wurden gespeichert.', 'success'); - }, - - /** - * Consent im Cookie speichern - */ - saveConsent: function(consent) { - CookieUtils.set(COOKIE_NAME, consent, COOKIE_EXPIRY_DAYS); - }, - - /** - * Consent aus Cookie lesen - */ - getConsent: function() { - return CookieUtils.get(COOKIE_NAME); - }, - - /** - * Consent anwenden (z.B. Analytics laden) - */ - applyConsent: function(consent) { - // Dispatch Custom Event für andere Scripts - window.dispatchEvent(new CustomEvent('cookieConsentUpdated', { - detail: consent - })); - - // Analytics aktivieren/deaktivieren - if (consent.analytics) { - this.enableAnalytics(); - } else { - this.disableAnalytics(); - } - - // Marketing aktivieren/deaktivieren - if (consent.marketing) { - this.enableMarketing(); - } else { - this.disableMarketing(); - } - }, - - /** - * Analytics aktivieren (Placeholder für z.B. Google Analytics) - */ - enableAnalytics: function() { - // Hier können Analytics-Scripts geladen werden - // Beispiel für Google Analytics: - // if (typeof gtag === 'undefined') { - // const script = document.createElement('script'); - // script.src = 'https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID'; - // script.async = true; - // document.head.appendChild(script); - // } - console.log('Analytics enabled'); - }, - - /** - * Analytics deaktivieren - */ - disableAnalytics: function() { - // Analytics-Cookies entfernen falls vorhanden - console.log('Analytics disabled'); - }, - - /** - * Marketing aktivieren (Placeholder für Marketing-Tools) - */ - enableMarketing: function() { - console.log('Marketing enabled'); - }, - - /** - * Marketing deaktivieren - */ - disableMarketing: function() { - console.log('Marketing disabled'); - }, - - /** - * Banner anzeigen - */ - showBanner: function() { - if (banner) { - banner.classList.remove('hide'); - banner.classList.add('show'); - banner.setAttribute('aria-hidden', 'false'); - // Fokus auf ersten Button setzen für Accessibility - setTimeout(() => { - if (acceptAllBtn) acceptAllBtn.focus(); - }, 100); - } - }, - - /** - * Banner verstecken - */ - hideBanner: function() { - if (banner) { - banner.classList.remove('show'); - banner.classList.add('hide'); - banner.setAttribute('aria-hidden', 'true'); - } - }, - - /** - * Einstellungen-Panel anzeigen - */ - showSettings: function() { - if (settingsPanel) { - // Aktuelle Einstellungen in Checkboxen laden - const consent = this.getConsent() || this.defaultConsent; - if (analyticsCheckbox) analyticsCheckbox.checked = consent.analytics; - if (marketingCheckbox) marketingCheckbox.checked = consent.marketing; - - settingsPanel.style.display = 'block'; - settingsPanel.setAttribute('aria-hidden', 'false'); - } - }, - - /** - * Einstellungen-Panel verstecken - */ - hideSettings: function() { - if (settingsPanel) { - settingsPanel.style.display = 'none'; - settingsPanel.setAttribute('aria-hidden', 'true'); - } - }, - - /** - * Notification anzeigen (nutzt HexaHost-Notification-System falls verfügbar) - */ - showNotification: function(message, type) { - if (window.HexaHost && typeof window.HexaHost.showNotification === 'function') { - window.HexaHost.showNotification(message, type); - } - }, - - /** - * Consent zurücksetzen (für Datenschutz-Link) - */ - resetConsent: function() { - CookieUtils.delete(COOKIE_NAME); - this.showBanner(); - if (settingsPanel) settingsPanel.style.display = 'none'; - } - }; - - // Initialisierung wenn DOM geladen - if (document.readyState === 'loading') { - document.addEventListener('DOMContentLoaded', () => CookieConsent.init()); - } else { - CookieConsent.init(); - } - - // Globaler Zugriff für manuelle Steuerung - window.CookieConsent = CookieConsent; - -})(); diff --git a/assets/js/main.js b/assets/js/main.js deleted file mode 100644 index 19429b6..0000000 --- a/assets/js/main.js +++ /dev/null @@ -1,310 +0,0 @@ -// Main JavaScript for HexaHost.de -(function() { - 'use strict'; - - // DOM Elements - const navToggle = document.querySelector('.nav-toggle'); - const navMenu = document.querySelector('.nav-menu'); - const navLinks = document.querySelectorAll('.nav-link'); - const glassCards = document.querySelectorAll('.glass-card'); - const productCards = document.querySelectorAll('.product-card'); - - // Mobile Navigation Toggle - if (navToggle && navMenu) { - navToggle.addEventListener('click', function() { - navMenu.classList.toggle('active'); - navToggle.classList.toggle('active'); - }); - - // Close mobile menu when clicking on a link - navLinks.forEach(link => { - link.addEventListener('click', function() { - navMenu.classList.remove('active'); - navToggle.classList.remove('active'); - }); - }); - } - - // Smooth scrolling for anchor links - document.querySelectorAll('a[href^="#"]').forEach(anchor => { - anchor.addEventListener('click', function(e) { - e.preventDefault(); - const target = document.querySelector(this.getAttribute('href')); - if (target) { - target.scrollIntoView({ - behavior: 'smooth', - block: 'start' - }); - } - }); - }); - - // Enhanced glass card hover effects - glassCards.forEach(card => { - card.addEventListener('mouseenter', function() { - this.style.transform = 'translateY(-8px) scale(1.02)'; - }); - - card.addEventListener('mouseleave', function() { - this.style.transform = 'translateY(0) scale(1)'; - }); - }); - - // Product card interactive effects - productCards.forEach(card => { - card.addEventListener('mouseenter', function() { - if (!this.classList.contains('featured')) { - this.style.transform = 'translateY(-10px) scale(1.03)'; - } - }); - - card.addEventListener('mouseleave', function() { - if (!this.classList.contains('featured')) { - this.style.transform = 'translateY(0) scale(1)'; - } - }); - }); - - // Intersection Observer for animations - const observerOptions = { - threshold: 0.1, - rootMargin: '0px 0px -50px 0px' - }; - - const observer = new IntersectionObserver(function(entries) { - entries.forEach(entry => { - if (entry.isIntersecting) { - entry.target.classList.add('animate-in'); - } - }); - }, observerOptions); - - // Observe elements for animation - const animateElements = document.querySelectorAll('.glass-card, .feature-item, .product-card'); - animateElements.forEach(el => { - observer.observe(el); - }); - - // Header scroll effect - always visible with transparency change - const header = document.querySelector('.header'); - const hero = document.querySelector('.hero'); - - // Kombinierter, optimierter Scroll-Handler mit requestAnimationFrame - let ticking = false; - - function handleScroll() { - const scrollTop = window.pageYOffset || document.documentElement.scrollTop; - - // Header-Effekt - if (header) { - if (scrollTop > 50) { - header.classList.add('scrolled'); - } else { - header.classList.remove('scrolled'); - } - } - - // Parallax-Effekt für Hero - if (hero) { - const rate = scrollTop * -0.5; - hero.style.transform = `translateY(${rate}px)`; - } - - ticking = false; - } - - window.addEventListener('scroll', function() { - if (!ticking) { - requestAnimationFrame(handleScroll); - ticking = true; - } - }, { passive: true }); - - // Form validation (for contact forms) - const forms = document.querySelectorAll('form'); - forms.forEach(form => { - form.addEventListener('submit', function(e) { - const requiredFields = form.querySelectorAll('[required]'); - let isValid = true; - - requiredFields.forEach(field => { - if (!field.value.trim()) { - isValid = false; - field.classList.add('error'); - - // Remove error class on focus - field.addEventListener('focus', function() { - this.classList.remove('error'); - }, { once: true }); - } - }); - - if (!isValid) { - e.preventDefault(); - showNotification('Bitte füllen Sie alle Pflichtfelder aus.', 'error'); - } - }); - }); - - // Notification system - function showNotification(message, type = 'info') { - const notification = document.createElement('div'); - notification.className = `notification notification-${type}`; - notification.textContent = message; - - notification.style.position = 'fixed'; - notification.style.top = '20px'; - notification.style.right = '20px'; - notification.style.padding = '15px 20px'; - notification.style.borderRadius = '8px'; - notification.style.color = 'white'; - notification.style.fontWeight = '500'; - notification.style.zIndex = '9999'; - notification.style.transform = 'translateX(400px)'; - notification.style.transition = 'transform 0.3s ease-in-out'; - - if (type === 'error') { - notification.style.background = 'linear-gradient(135deg, #ef4444, #dc2626)'; - } else if (type === 'success') { - notification.style.background = 'linear-gradient(135deg, #10b981, #059669)'; - } else { - notification.style.background = 'linear-gradient(135deg, #3b82f6, #2563eb)'; - } - - document.body.appendChild(notification); - - // Animate in - setTimeout(() => { - notification.style.transform = 'translateX(0)'; - }, 100); - - // Remove after 5 seconds - setTimeout(() => { - notification.style.transform = 'translateX(400px)'; - setTimeout(() => { - if (notification.parentNode) { - notification.parentNode.removeChild(notification); - } - }, 300); - }, 5000); - } - - // Lazy loading for images - const images = document.querySelectorAll('img[data-src]'); - const imageObserver = new IntersectionObserver((entries, observer) => { - entries.forEach(entry => { - if (entry.isIntersecting) { - const img = entry.target; - img.src = img.dataset.src; - img.classList.remove('lazy'); - imageObserver.unobserve(img); - } - }); - }); - - images.forEach(img => imageObserver.observe(img)); - - // Performance optimization: Debounce scroll events - function debounce(func, wait) { - let timeout; - return function executedFunction(...args) { - const later = () => { - clearTimeout(timeout); - func(...args); - }; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - }; - } - - // Apply debounce to scroll events - const debouncedScrollHandler = debounce(function() { - // Any scroll-based animations or calculations - updateScrollProgress(); - }, 16); // ~60fps - - window.addEventListener('scroll', debouncedScrollHandler); - - // Scroll progress indicator - function updateScrollProgress() { - const scrollTop = window.pageYOffset; - const docHeight = document.body.scrollHeight - window.innerHeight; - const scrollPercent = (scrollTop / docHeight) * 100; - - // You can use this to show a progress bar - document.documentElement.style.setProperty('--scroll-progress', scrollPercent + '%'); - } - - // Dark mode toggle (future feature) - function initDarkMode() { - const darkModeToggle = document.querySelector('.dark-mode-toggle'); - if (darkModeToggle) { - darkModeToggle.addEventListener('click', function() { - document.body.classList.toggle('dark-mode'); - localStorage.setItem('darkMode', document.body.classList.contains('dark-mode')); - }); - - // Check for saved dark mode preference - if (localStorage.getItem('darkMode') === 'true') { - document.body.classList.add('dark-mode'); - } - } - } - - // FAQ Accordion functionality - function initFAQ() { - const faqItems = document.querySelectorAll('.faq-item'); - - faqItems.forEach(item => { - const question = item.querySelector('.faq-question'); - const answer = item.querySelector('.faq-answer'); - - if (question && answer) { - question.addEventListener('click', function() { - // Close all other FAQ items - faqItems.forEach(otherItem => { - if (otherItem !== item && otherItem.classList.contains('open')) { - otherItem.classList.remove('open'); - const otherAnswer = otherItem.querySelector('.faq-answer'); - if (otherAnswer) { - otherAnswer.style.maxHeight = null; - } - } - }); - - // Toggle current item - item.classList.toggle('open'); - - if (item.classList.contains('open')) { - answer.style.maxHeight = answer.scrollHeight + 'px'; - } else { - answer.style.maxHeight = null; - } - }); - } - }); - } - - // Initialize all features when DOM is loaded - document.addEventListener('DOMContentLoaded', function() { - initDarkMode(); - initFAQ(); - - // Add loading animation complete class - document.body.classList.add('loaded'); - - // Show welcome message on first visit - if (!localStorage.getItem('hasVisited')) { - setTimeout(() => { - showNotification('Willkommen bei HexaHost.de! 🚀', 'success'); - localStorage.setItem('hasVisited', 'true'); - }, 1000); - } - }); - - // Export functions for global access if needed - window.HexaHost = { - showNotification: showNotification - }; - -})(); \ No newline at end of file diff --git a/config/config.php b/config/config.php deleted file mode 100644 index 139fce6..0000000 --- a/config/config.php +++ /dev/null @@ -1,171 +0,0 @@ - 'smtp.gmail.com', // z.B. smtp.gmail.com - 'smtp_port' => 587, // 587 für TLS, 465 für SSL - 'smtp_username' => 'test@hexahost.de', // z.B. info@hexahost.de - 'smtp_password' => 'your-app-password', // Ihr SMTP-Passwort - 'smtp_encryption' => 'tls', // 'tls' oder 'ssl' - - // Absender-Einstellungen - 'from_email' => 'test@hexahost.de', // Absender-E-Mail - 'from_name' => 'HexaHost.de Kontaktformular', // Absender-Name - - // Empfänger-Einstellungen - 'to_email' => 'info@hexahost.de', // Empfänger-E-Mail - 'to_name' => 'HexaHost Support', // Empfänger-Name - - // Sicherheitseinstellungen - 'max_requests_per_hour' => 5, // Max. Anfragen pro Stunde pro IP - 'honeypot_field' => 'website', // Verstecktes Feld für Bot-Schutz - - // E-Mail-Template-Einstellungen - 'email_template' => 'html', // 'html' oder 'text' - 'include_ip_address' => true, // IP-Adresse in E-Mail anzeigen - 'include_timestamp' => true, // Zeitstempel in E-Mail anzeigen -]; - -// DNS-Einstellungen für Spam-Schutz (werden über DNS konfiguriert) -$dns_config = [ - // SPF Record (TXT Record in DNS) - 'spf_record' => 'v=spf1 include:_spf.hexahost.de ~all', - - // DMARC Record (TXT Record in DNS) - 'dmarc_record' => 'v=DMARC1; p=quarantine; rua=mailto:dmarc@hexahost.de', - - // DKIM wird über den Mail-Server konfiguriert -]; - -// Debug-Einstellungen (nur für Entwicklung) -$debug_config = [ - 'debug_mode' => false, // Debug-Modus aktivieren - 'log_errors' => true, // Fehler loggen - 'log_file' => 'contact_form_errors.log', // Log-Datei -]; - -// Exportiere Konfiguration für andere Dateien -if (!defined('HEXAHOST_CONFIG_LOADED')) { - define('HEXAHOST_CONFIG_LOADED', true); - - // Globale Variablen für andere Dateien - $GLOBALS['hexahost_smtp_config'] = $smtp_config; - $GLOBALS['hexahost_dns_config'] = $dns_config; - $GLOBALS['hexahost_debug_config'] = $debug_config; -} - -// Hilfsfunktion zum Abrufen der Konfiguration -function getHexaHostConfig($key = null) { - global $smtp_config, $dns_config, $debug_config; - - if ($key === null) { - return array_merge($smtp_config, $dns_config, $debug_config); - } - - if (isset($smtp_config[$key])) { - return $smtp_config[$key]; - } - - if (isset($dns_config[$key])) { - return $dns_config[$key]; - } - - if (isset($debug_config[$key])) { - return $debug_config[$key]; - } - - return null; -} - -// Debug-Funktion -function hexahostDebug($message, $type = 'info') { - global $debug_config; - - if (!$debug_config['debug_mode']) { - return; - } - - $timestamp = date('Y-m-d H:i:s'); - $log_message = "[$timestamp] [$type] $message" . PHP_EOL; - - if ($debug_config['log_errors']) { - error_log($log_message, 3, $debug_config['log_file']); - } - - if ($debug_config['debug_mode']) { - echo "\n"; - } -} - -// Validierung der SMTP-Konfiguration -function validateSMTPConfig() { - $config = getHexaHostConfig(); - $errors = []; - - // Prüfe ob alle erforderlichen Felder ausgefüllt sind - $required_fields = ['smtp_host', 'smtp_username', 'smtp_password', 'from_email', 'to_email']; - - foreach ($required_fields as $field) { - if (empty($config[$field]) || $config[$field] === 'YOUR_SMTP_' . strtoupper(substr($field, 5))) { - $errors[] = "Konfigurationsfehler: $field ist nicht korrekt eingestellt."; - } - } - - // Prüfe SMTP-Port - if (!is_numeric($config['smtp_port']) || $config['smtp_port'] < 1 || $config['smtp_port'] > 65535) { - $errors[] = "Konfigurationsfehler: Ungültiger SMTP-Port."; - } - - // Prüfe E-Mail-Format - if (!filter_var($config['from_email'], FILTER_VALIDATE_EMAIL)) { - $errors[] = "Konfigurationsfehler: Ungültige Absender-E-Mail."; - } - - if (!filter_var($config['to_email'], FILTER_VALIDATE_EMAIL)) { - $errors[] = "Konfigurationsfehler: Ungültige Empfänger-E-Mail."; - } - - return $errors; -} - -// Zeige Konfigurationsfehler an (nur im Debug-Modus) -if (getHexaHostConfig('debug_mode')) { - $config_errors = validateSMTPConfig(); - if (!empty($config_errors)) { - hexahostDebug('SMTP-Konfigurationsfehler: ' . implode(', ', $config_errors), 'error'); - } -} -?> \ No newline at end of file diff --git a/config/mail-config.php b/config/mail-config.php deleted file mode 100644 index 6e10b72..0000000 --- a/config/mail-config.php +++ /dev/null @@ -1,155 +0,0 @@ - 'HexaHost.de Contact Form', - 'X-Priority' => '3', - 'X-MSMail-Priority' => 'Normal', - 'Importance' => 'Normal', - 'X-Report-Abuse' => 'Please report abuse here: abuse@hexahost.de', - 'List-Unsubscribe' => '', - 'Precedence' => 'bulk' -]); - -// Erlaubte Domains für E-Mail-Adressen (optional) -define('ALLOWED_EMAIL_DOMAINS', [ - // Leer lassen für alle Domains zu erlauben - // 'gmail.com', - // 'outlook.com', - // 'web.de', - // 'gmx.de' -]); - -// Blacklist für E-Mail-Adressen (optional) -define('BLACKLISTED_EMAILS', [ - // 'spam@example.com', - // 'test@test.com' -]); - -// Validierung der Konfiguration -if (!defined('SMTP_HOST') || !defined('SMTP_USERNAME') || !defined('SMTP_PASSWORD')) { - die('SMTP-Konfiguration ist unvollständig. Bitte überprüfen Sie die mail-config.php'); -} - -// Überprüfung der E-Mail-Adressen -if (!filter_var(SMTP_FROM_EMAIL, FILTER_VALIDATE_EMAIL)) { - die('Ungültige SMTP_FROM_EMAIL Adresse'); -} - -if (!filter_var(SMTP_TO_EMAIL, FILTER_VALIDATE_EMAIL)) { - die('Ungültige SMTP_TO_EMAIL Adresse'); -} - -// Logging-Funktion -function logEmail($type, $data) { - if (!LOG_EMAILS) return; - - $logFile = __DIR__ . '/../logs/email.log'; - $logDir = dirname($logFile); - - if (!is_dir($logDir)) { - mkdir($logDir, 0755, true); - } - - $timestamp = date('Y-m-d H:i:s'); - $logEntry = "[$timestamp] $type: " . json_encode($data) . "\n"; - - file_put_contents($logFile, $logEntry, FILE_APPEND | LOCK_EX); -} - -// Hilfsfunktion für E-Mail-Validierung -function isValidEmail($email) { - if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { - return false; - } - - // Prüfe Blacklist - if (in_array($email, BLACKLISTED_EMAILS)) { - return false; - } - - // Prüfe Domain-Whitelist (falls gesetzt) - if (!empty(ALLOWED_EMAIL_DOMAINS)) { - $domain = substr(strrchr($email, "@"), 1); - if (!in_array($domain, ALLOWED_EMAIL_DOMAINS)) { - return false; - } - } - - return true; -} - -// CSRF Token generieren -function generateCSRFToken() { - if (!isset($_SESSION['csrf_token'])) { - $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); - } - return $_SESSION['csrf_token']; -} - -// CSRF Token validieren -function validateCSRFToken($token) { - return isset($_SESSION['csrf_token']) && hash_equals($_SESSION['csrf_token'], $token); -} -?> \ No newline at end of file diff --git a/includes/footer.php b/includes/footer.php deleted file mode 100644 index 13430fa..0000000 --- a/includes/footer.php +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/includes/functions.php b/includes/functions.php deleted file mode 100644 index 912433d..0000000 --- a/includes/functions.php +++ /dev/null @@ -1,98 +0,0 @@ - 'Home', 'url' => 'index.html'], ...] - */ -function generateBreadcrumbs($breadcrumbs) { - echo ''; -} - -/** - * Generate CSRF token for form security - * - * @return string CSRF token - */ -function generateCSRFToken() { - if (!isset($_SESSION['csrf_token'])) { - $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); - } - return $_SESSION['csrf_token']; -} -?> \ No newline at end of file diff --git a/includes/header.php b/includes/header.php deleted file mode 100644 index d2b4780..0000000 --- a/includes/header.php +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - <?php echo isset($page_title) ? htmlspecialchars($page_title) : 'HexaHost.de - Zuverlässiges Hosting aus Niederbayern'; ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index c3e6575..0000000 --- a/package-lock.json +++ /dev/null @@ -1,1686 +0,0 @@ -{ - "name": "hexahost-backend", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "hexahost-backend", - "version": "1.0.0", - "license": "LGPL-2.1", - "devDependencies": { - "chalk": "^4.1.2", - "chokidar": "^3.6.0", - "clean-css": "^5.3.3", - "javascript-obfuscator": "^4.1.1" - } - }, - "node_modules/@inversifyjs/common": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@inversifyjs/common/-/common-1.3.3.tgz", - "integrity": "sha512-ZH0wrgaJwIo3s9gMCDM2wZoxqrJ6gB97jWXncROfYdqZJv8f3EkqT57faZqN5OTeHWgtziQ6F6g3L8rCvGceCw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@inversifyjs/core": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@inversifyjs/core/-/core-1.3.4.tgz", - "integrity": "sha512-gCCmA4BdbHEFwvVZ2elWgHuXZWk6AOu/1frxsS+2fWhjEk2c/IhtypLo5ytSUie1BCiT6i9qnEo4bruBomQsAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@inversifyjs/common": "1.3.3", - "@inversifyjs/reflect-metadata-utils": "0.2.3" - } - }, - "node_modules/@inversifyjs/reflect-metadata-utils": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@inversifyjs/reflect-metadata-utils/-/reflect-metadata-utils-0.2.3.tgz", - "integrity": "sha512-d3D0o9TeSlvaGM2I24wcNw/Aj3rc4OYvHXOKDC09YEph5fMMiKd6fq1VTQd9tOkDNWvVbw+cnt45Wy9P/t5Lvw==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "reflect-metadata": "0.2.2" - } - }, - "node_modules/@javascript-obfuscator/escodegen": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.3.1.tgz", - "integrity": "sha512-Z0HEAVwwafOume+6LFXirAVZeuEMKWuPzpFbQhCEU9++BMz0IwEa9bmedJ+rMn/IlXRBID9j3gQ0XYAa6jM10g==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@javascript-obfuscator/estraverse": "^5.3.0", - "esprima": "^4.0.1", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/@javascript-obfuscator/estraverse": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@javascript-obfuscator/estraverse/-/estraverse-5.4.0.tgz", - "integrity": "sha512-CZFX7UZVN9VopGbjTx4UXaXsi9ewoM1buL0kY7j1ftYdSs7p2spv9opxFjHlQ/QGTgh4UqufYqJJ0WKLml7b6w==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/validator": { - "version": "13.15.10", - "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.10.tgz", - "integrity": "sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==", - "dev": true, - "license": "MIT" - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", - "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/array-differ": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", - "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/assert": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", - "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "is-nan": "^1.3.2", - "object-is": "^1.1.5", - "object.assign": "^4.1.4", - "util": "^0.12.5" - } - }, - "node_modules/atomically": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/atomically/-/atomically-2.1.0.tgz", - "integrity": "sha512-+gDffFXRW6sl/HCwbta7zK4uNqbPjv4YJEAdz7Vu+FLQHe77eZ4bvbJGi4hE0QPeJlMYMA3piXEr1UL3dAwx7Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "stubborn-fs": "^2.0.0", - "when-exit": "^2.1.4" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chance": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/chance/-/chance-1.1.13.tgz", - "integrity": "sha512-V6lQCljcLznE7tUYUM9EOAnnKXbctE6j/rdQkYOHIWbfGQbrzTsAXNW9CdU5XCo4ArXQCj/rb6HgxPlmGJcaUg==", - "dev": true, - "license": "MIT" - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/charenc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/class-validator": { - "version": "0.14.3", - "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.3.tgz", - "integrity": "sha512-rXXekcjofVN1LTOSw+u4u9WXVEUvNBVjORW154q/IdmYWy1nMbOU9aNtZB0t8m+FJQ9q91jlr2f9CwwUFdFMRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/validator": "^13.15.3", - "libphonenumber-js": "^1.11.1", - "validator": "^13.15.20" - } - }, - "node_modules/clean-css": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz", - "integrity": "sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 10.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/conf": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/conf/-/conf-15.0.2.tgz", - "integrity": "sha512-JBSrutapCafTrddF9dH3lc7+T2tBycGF4uPkI4Js+g4vLLEhG6RZcFi3aJd5zntdf5tQxAejJt8dihkoQ/eSJw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^8.17.1", - "ajv-formats": "^3.0.1", - "atomically": "^2.0.3", - "debounce-fn": "^6.0.0", - "dot-prop": "^10.0.0", - "env-paths": "^3.0.0", - "json-schema-typed": "^8.0.1", - "semver": "^7.7.2", - "uint8array-extras": "^1.5.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/crypt": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, - "node_modules/debounce-fn": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-6.0.0.tgz", - "integrity": "sha512-rBMW+F2TXryBwB54Q0d8drNEI+TfoS9JpNTAoVpukbWEhjXQq4rySFYLaqXMFXwdv61Zb2OHtj5bviSoimqxRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-function": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/dot-prop": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-10.1.0.tgz", - "integrity": "sha512-MVUtAugQMOff5RnBy2d9N31iG0lNwg1qAoAOn7pOK5wf94WIaE3My2p3uwTQuvS2AcqchkcR3bHByjaM0mmi7Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^5.0.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/env-paths": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", - "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/inversify": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/inversify/-/inversify-6.1.4.tgz", - "integrity": "sha512-PbxrZH/gTa1fpPEEGAjJQzK8tKMIp5gRg6EFNJlCtzUcycuNdmhv3uk5P8Itm/RIjgHJO16oQRLo9IHzQN51bA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@inversifyjs/common": "1.3.3", - "@inversifyjs/core": "1.3.4" - } - }, - "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true, - "license": "MIT" - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-nan": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", - "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/javascript-obfuscator": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/javascript-obfuscator/-/javascript-obfuscator-4.2.2.tgz", - "integrity": "sha512-+7oXAUnFCA6vS0omIGHcWpSr67dUBIF7FKGYSXyzxShSLqM6LBgdugWKFl0XrYtGWyJMGfQR5F4LL85iCefkRA==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@javascript-obfuscator/escodegen": "2.3.1", - "@javascript-obfuscator/estraverse": "5.4.0", - "acorn": "8.15.0", - "assert": "2.1.0", - "chalk": "4.1.2", - "chance": "1.1.13", - "class-validator": "0.14.3", - "commander": "12.1.0", - "conf": "15.0.2", - "eslint-scope": "8.4.0", - "eslint-visitor-keys": "4.2.1", - "fast-deep-equal": "3.1.3", - "inversify": "6.1.4", - "js-string-escape": "1.0.1", - "md5": "2.3.0", - "mkdirp": "3.0.1", - "multimatch": "5.0.0", - "process": "0.11.10", - "reflect-metadata": "0.2.2", - "source-map-support": "0.5.21", - "string-template": "1.0.0", - "stringz": "2.1.0", - "tslib": "2.8.1" - }, - "bin": { - "javascript-obfuscator": "bin/javascript-obfuscator" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-typed": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", - "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/libphonenumber-js": { - "version": "1.12.34", - "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.34.tgz", - "integrity": "sha512-v/Ip8k8eYdp7bINpzqDh46V/PaQ8sK+qi97nMQgjZzFlb166YFqlR/HVI+MzsI9JqcyyVWCOipmmretiaSyQyw==", - "dev": true, - "license": "MIT" - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/md5": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", - "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" - } - }, - "node_modules/mimic-function": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", - "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/multimatch": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz", - "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/minimatch": "^3.0.3", - "array-differ": "^3.0.0", - "array-union": "^2.1.0", - "arrify": "^2.0.1", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-is": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", - "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/reflect-metadata": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", - "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/string-template": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string-template/-/string-template-1.0.0.tgz", - "integrity": "sha512-SLqR3GBUXuoPP5MmYtD7ompvXiG87QjT6lzOszyXjTM86Uu7At7vNnt2xgyTLq5o9T4IxTYFyGxcULqpsmsfdg==", - "dev": true, - "license": "MIT" - }, - "node_modules/stringz": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/stringz/-/stringz-2.1.0.tgz", - "integrity": "sha512-KlywLT+MZ+v0IRepfMxRtnSvDCMc3nR1qqCs3m/qIbSOWkNZYT8XHQA31rS3TnKp0c5xjZu3M4GY/2aRKSi/6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "char-regex": "^1.0.2" - } - }, - "node_modules/stubborn-fs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/stubborn-fs/-/stubborn-fs-2.0.0.tgz", - "integrity": "sha512-Y0AvSwDw8y+nlSNFXMm2g6L51rBGdAQT20J3YSOqxC53Lo3bjWRtr2BKcfYoAf352WYpsZSTURrA0tqhfgudPA==", - "dev": true, - "license": "MIT", - "dependencies": { - "stubborn-utils": "^1.0.1" - } - }, - "node_modules/stubborn-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stubborn-utils/-/stubborn-utils-1.0.2.tgz", - "integrity": "sha512-zOh9jPYI+xrNOyisSelgym4tolKTJCQd5GBhK0+0xJvcYDcwlOoxF/rnFKQ2KRZknXSG9jWAp66fwP6AxN9STg==", - "dev": true, - "license": "MIT" - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tagged-tag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tagged-tag/-/tagged-tag-1.0.0.tgz", - "integrity": "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true, - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.4.1.tgz", - "integrity": "sha512-xygQcmneDyzsEuKZrFbRMne5HDqMs++aFzefrJTgEIKjQ3rekM+RPfFCVq2Gp1VIDqddoYeppCj4Pcb+RZW0GQ==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "dependencies": { - "tagged-tag": "^1.0.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/uint8array-extras": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.5.0.tgz", - "integrity": "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, - "node_modules/validator": { - "version": "13.15.26", - "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.26.tgz", - "integrity": "sha512-spH26xU080ydGggxRyR1Yhcbgx+j3y5jbNXk/8L+iRvdIEQ4uTRH2Sgf2dokud6Q4oAtsbNvJ1Ft+9xmm6IZcA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/when-exit": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/when-exit/-/when-exit-2.1.5.tgz", - "integrity": "sha512-VGkKJ564kzt6Ms1dbgPP/yuIoQCrsFAnRbptpC5wOEsDaNsbCB2bnfnaA8i/vRs5tjUSEOtIuvl9/MyVsvQZCg==", - "dev": true, - "license": "MIT" - }, - "node_modules/which-typed-array": { - "version": "1.1.20", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", - "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 37c946b..0000000 --- a/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "hexahost-backend", - "version": "1.0.0", - "description": "HexaHost.de Backend - Build-System für Obfuscation und Minification", - "scripts": { - "build": "node scripts/build.js", - "build:js": "node scripts/build.js --js-only", - "build:css": "node scripts/build.js --css-only", - "clean": "rm -rf dist", - "watch": "node scripts/watch.js" - }, - "devDependencies": { - "javascript-obfuscator": "^4.1.1", - "clean-css": "^5.3.3", - "chokidar": "^3.6.0", - "chalk": "^4.1.2" - }, - "keywords": [ - "hexahost", - "obfuscation", - "minification", - "build" - ], - "author": "HexaHost.de", - "license": "LGPL-2.1" -} diff --git a/scripts/build.js b/scripts/build.js deleted file mode 100644 index 3fb9164..0000000 --- a/scripts/build.js +++ /dev/null @@ -1,293 +0,0 @@ -#!/usr/bin/env node -/** - * HexaHost.de Build Script - * - * Obfusciert JavaScript und minifiziert CSS für die Produktion - * - * Verwendung: - * npm run build - Alles bauen - * npm run build:js - Nur JavaScript - * npm run build:css - Nur CSS - */ - -const fs = require('fs'); -const path = require('path'); -const JavaScriptObfuscator = require('javascript-obfuscator'); -const CleanCSS = require('clean-css'); - -// Konfiguration -const config = { - srcDir: path.join(__dirname, '..'), - distDir: path.join(__dirname, '..', 'dist'), - - // JavaScript-Dateien zum Obfuscieren - jsFiles: [ - 'assets/js/main.js', - 'assets/js/contact.js', - 'assets/js/cookie-consent.js' - ], - - // CSS-Dateien zum Minifizieren - cssFiles: [ - 'assets/css/style.css' - ], - - // PHP-Dateien (nur kopieren) - phpFiles: [ - 'config/config.php', - 'config/mail-config.php', - 'includes/header.php', - 'includes/footer.php', - 'includes/functions.php' - ], - - // JavaScript Obfuscator Optionen - jsObfuscatorOptions: { - compact: true, - controlFlowFlattening: true, - controlFlowFlatteningThreshold: 0.7, - deadCodeInjection: true, - deadCodeInjectionThreshold: 0.4, - debugProtection: false, - disableConsoleOutput: true, - identifierNamesGenerator: 'hexadecimal', - log: false, - numbersToExpressions: true, - renameGlobals: false, - selfDefending: true, - simplify: true, - splitStrings: true, - splitStringsChunkLength: 10, - stringArray: true, - stringArrayCallsTransform: true, - stringArrayEncoding: ['base64'], - stringArrayIndexShift: true, - stringArrayRotate: true, - stringArrayShuffle: true, - stringArrayWrappersCount: 2, - stringArrayWrappersChainedCalls: true, - stringArrayWrappersParametersMaxCount: 4, - stringArrayWrappersType: 'function', - stringArrayThreshold: 0.75, - transformObjectKeys: true, - unicodeEscapeSequence: false - }, - - // Clean-CSS Optionen - cssMinifyOptions: { - level: { - 1: { - specialComments: 0 - }, - 2: { - mergeMedia: true, - removeEmpty: true, - removeDuplicateFontRules: true, - removeDuplicateMediaBlocks: true, - removeDuplicateRules: true - } - } - } -}; - -// Hilfsfunktionen -function ensureDir(dir) { - if (!fs.existsSync(dir)) { - fs.mkdirSync(dir, { recursive: true }); - } -} - -function copyFile(src, dest) { - ensureDir(path.dirname(dest)); - fs.copyFileSync(src, dest); -} - -function formatBytes(bytes) { - if (bytes === 0) return '0 Bytes'; - const k = 1024; - const sizes = ['Bytes', 'KB', 'MB']; - const i = Math.floor(Math.log(bytes) / Math.log(k)); - return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]; -} - -function getCompressionRatio(original, compressed) { - return ((1 - compressed / original) * 100).toFixed(1); -} - -// JavaScript obfuscieren -function obfuscateJS(filePath) { - const srcPath = path.join(config.srcDir, filePath); - const destPath = path.join(config.distDir, filePath); - - if (!fs.existsSync(srcPath)) { - console.log(` ⚠️ Datei nicht gefunden: ${filePath}`); - return null; - } - - const originalCode = fs.readFileSync(srcPath, 'utf8'); - const originalSize = Buffer.byteLength(originalCode, 'utf8'); - - try { - const obfuscatedCode = JavaScriptObfuscator.obfuscate( - originalCode, - config.jsObfuscatorOptions - ).getObfuscatedCode(); - - const obfuscatedSize = Buffer.byteLength(obfuscatedCode, 'utf8'); - - ensureDir(path.dirname(destPath)); - fs.writeFileSync(destPath, obfuscatedCode); - - return { - file: filePath, - originalSize, - newSize: obfuscatedSize, - ratio: getCompressionRatio(originalSize, obfuscatedSize) - }; - } catch (error) { - console.log(` ❌ Fehler bei ${filePath}: ${error.message}`); - return null; - } -} - -// CSS minifizieren -function minifyCSS(filePath) { - const srcPath = path.join(config.srcDir, filePath); - const destPath = path.join(config.distDir, filePath); - - if (!fs.existsSync(srcPath)) { - console.log(` ⚠️ Datei nicht gefunden: ${filePath}`); - return null; - } - - const originalCode = fs.readFileSync(srcPath, 'utf8'); - const originalSize = Buffer.byteLength(originalCode, 'utf8'); - - try { - const minified = new CleanCSS(config.cssMinifyOptions).minify(originalCode); - - if (minified.errors.length > 0) { - console.log(` ❌ Fehler bei ${filePath}: ${minified.errors.join(', ')}`); - return null; - } - - const minifiedSize = Buffer.byteLength(minified.styles, 'utf8'); - - ensureDir(path.dirname(destPath)); - fs.writeFileSync(destPath, minified.styles); - - return { - file: filePath, - originalSize, - newSize: minifiedSize, - ratio: getCompressionRatio(originalSize, minifiedSize) - }; - } catch (error) { - console.log(` ❌ Fehler bei ${filePath}: ${error.message}`); - return null; - } -} - -// PHP-Dateien kopieren (keine Obfuscation) -function copyPHP(filePath) { - const srcPath = path.join(config.srcDir, filePath); - const destPath = path.join(config.distDir, filePath); - - if (!fs.existsSync(srcPath)) { - console.log(` ⚠️ Datei nicht gefunden: ${filePath}`); - return null; - } - - try { - copyFile(srcPath, destPath); - const size = fs.statSync(srcPath).size; - - return { - file: filePath, - originalSize: size, - newSize: size, - ratio: '0' - }; - } catch (error) { - console.log(` ❌ Fehler bei ${filePath}: ${error.message}`); - return null; - } -} - -// Hauptfunktion -function build() { - const args = process.argv.slice(2); - const jsOnly = args.includes('--js-only'); - const cssOnly = args.includes('--css-only'); - - console.log('\n╔════════════════════════════════════════════════════════════╗'); - console.log('║ HexaHost.de - Build System ║'); - console.log('║ Obfuscation & Minification ║'); - console.log('╚════════════════════════════════════════════════════════════╝\n'); - - // dist-Verzeichnis erstellen/leeren - if (fs.existsSync(config.distDir)) { - fs.rmSync(config.distDir, { recursive: true }); - } - ensureDir(config.distDir); - - const results = []; - - // JavaScript obfuscieren - if (!cssOnly) { - console.log('📦 JavaScript obfuscieren...\n'); - config.jsFiles.forEach(file => { - process.stdout.write(` → ${file}... `); - const result = obfuscateJS(file); - if (result) { - console.log(`✓ (${formatBytes(result.originalSize)} → ${formatBytes(result.newSize)}, -${result.ratio}%)`); - results.push(result); - } - }); - console.log(); - } - - // CSS minifizieren - if (!jsOnly) { - console.log('🎨 CSS minifizieren...\n'); - config.cssFiles.forEach(file => { - process.stdout.write(` → ${file}... `); - const result = minifyCSS(file); - if (result) { - console.log(`✓ (${formatBytes(result.originalSize)} → ${formatBytes(result.newSize)}, -${result.ratio}%)`); - results.push(result); - } - }); - console.log(); - } - - // PHP-Dateien kopieren - if (!jsOnly && !cssOnly) { - console.log('📄 PHP-Dateien kopieren...\n'); - config.phpFiles.forEach(file => { - process.stdout.write(` → ${file}... `); - const result = copyPHP(file); - if (result) { - console.log(`✓ (${formatBytes(result.originalSize)})`); - results.push(result); - } - }); - console.log(); - } - - // Zusammenfassung - const totalOriginal = results.reduce((sum, r) => sum + r.originalSize, 0); - const totalNew = results.reduce((sum, r) => sum + r.newSize, 0); - - console.log('═══════════════════════════════════════════════════════════════'); - console.log(`✅ Build abgeschlossen!`); - console.log(` Dateien: ${results.length}`); - console.log(` Original: ${formatBytes(totalOriginal)}`); - console.log(` Optimiert: ${formatBytes(totalNew)}`); - console.log(` Ersparnis: ${formatBytes(totalOriginal - totalNew)} (${getCompressionRatio(totalOriginal, totalNew)}%)`); - console.log(` Ausgabe: ${config.distDir}`); - console.log('═══════════════════════════════════════════════════════════════\n'); -} - -// Build starten -build();