xithead 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/bin/xithead.js +486 -226
  2. package/index.d.ts +57 -0
  3. package/index.js +139 -0
  4. package/package.json +44 -63
  5. package/postinstall.js +43 -0
  6. package/LICENSE +0 -190
  7. package/README.md +0 -108
  8. package/app/api/config/route.ts +0 -22
  9. package/app/api/export/route.ts +0 -83
  10. package/app/api/models/route.ts +0 -12
  11. package/app/api/stats/route.ts +0 -46
  12. package/app/dashboard/page.tsx +0 -445
  13. package/app/globals.css +0 -35
  14. package/app/installation/page.tsx +0 -293
  15. package/app/layout.tsx +0 -35
  16. package/app/master-design-system.css +0 -2076
  17. package/app/master-design-system.source.css +0 -8
  18. package/app/page.tsx +0 -187
  19. package/app/rechtliches/agb/page.tsx +0 -165
  20. package/app/rechtliches/datenschutz/page.tsx +0 -128
  21. package/app/rechtliches/impressum/page.tsx +0 -122
  22. package/app/rechtliches/widerruf/page.tsx +0 -185
  23. package/components/layout/AppShell.tsx +0 -25
  24. package/components/layout/Footer.tsx +0 -120
  25. package/components/layout/Header.tsx +0 -145
  26. package/components/marketing/LegalHighlights.tsx +0 -45
  27. package/components/marketing/LegalPageShell.tsx +0 -49
  28. package/components/marketing/LegalPanel.tsx +0 -41
  29. package/components/marketing/index.ts +0 -3
  30. package/design-system/README.md +0 -80
  31. package/design-system/base.css +0 -127
  32. package/design-system/components.css +0 -1943
  33. package/design-system/fonts.css +0 -17
  34. package/design-system/tailwind-preset.js +0 -95
  35. package/design-system/tokens.css +0 -48
  36. package/design-system/utilities.css +0 -53
  37. package/lib/config/index.ts +0 -12
  38. package/lib/hooks/index.ts +0 -4
  39. package/lib/hooks/use-mounted.ts +0 -13
  40. package/lib/hooks/use-session.ts +0 -34
  41. package/lib/hooks/use-settings.ts +0 -49
  42. package/lib/utils/index.ts +0 -1
  43. package/lib/utils/settings.ts +0 -162
  44. package/lib/utils/utils.ts +0 -6
  45. package/middleware.ts +0 -26
  46. package/next-env.d.ts +0 -7
  47. package/next.config.ts +0 -12
  48. package/postcss.config.mjs +0 -7
  49. package/public/apple-touch-icon.png +0 -0
  50. package/public/logo-transparent.png +0 -0
  51. package/public/xithead.ps1 +0 -937
  52. package/scripts/README.md +0 -77
  53. package/scripts/audit_wheel_glibc_symbols.py +0 -217
  54. package/scripts/build-master-design-system.cjs +0 -33
  55. package/scripts/build_rust_extension.sh +0 -58
  56. package/scripts/changelog-gen.py +0 -203
  57. package/scripts/eval_output_shaper.py +0 -235
  58. package/scripts/export_kompress_v2_onnx.py +0 -267
  59. package/scripts/fixtures/anthropic_replay_body.json +0 -133
  60. package/scripts/fixtures/codex_response_create_frame.json +0 -52
  61. package/scripts/install-git-hooks.sh +0 -104
  62. package/scripts/install.ps1 +0 -1809
  63. package/scripts/install.sh +0 -1673
  64. package/scripts/pr-governance.py +0 -297
  65. package/scripts/record_fixtures.py +0 -59
  66. package/scripts/refresh_model_limits.sh +0 -48
  67. package/scripts/replay_codex_ws_load.py +0 -445
  68. package/scripts/repro_codex_replay.py +0 -699
  69. package/scripts/smoke_issue_327.py +0 -233
  70. package/scripts/sync-plugin-versions.py +0 -116
  71. package/scripts/tests/test_changelog_gen.py +0 -302
  72. package/scripts/tests/test_pr_governance.py +0 -163
  73. package/scripts/tests/test_pr_health_labels.py +0 -94
  74. package/scripts/tests/test_pr_health_workflow.py +0 -14
  75. package/scripts/tests/test_sync_plugin_versions.py +0 -131
  76. package/scripts/tests/test_version_sync.py +0 -291
  77. package/scripts/validate-workflows.sh +0 -39
  78. package/scripts/verify-versions.py +0 -106
  79. package/scripts/version-sync.py +0 -207
  80. package/tailwind.config.js +0 -31
  81. package/tailwind.master.config.cjs +0 -47
  82. package/tsconfig.json +0 -84
  83. package/types/api.ts +0 -12
  84. package/types/config.ts +0 -9
  85. package/types/index.ts +0 -2
@@ -1,17 +0,0 @@
1
- /*
2
- * Schriften der Corporate Identity.
3
- *
4
- * Der Master laedt sie ueber `next/font/google` und setzt dabei die beiden
5
- * Variablen `--font-display` und `--font-body`. Repositories ohne Next.js
6
- * binden stattdessen diese Datei ein - die Variablennamen bleiben gleich,
7
- * damit /design-system/base.css und components.css unveraendert funktionieren.
8
- */
9
-
10
- @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Space+Grotesk:wght@300..700&display=swap");
11
-
12
- :root {
13
- /* Display: Ueberschriften, KPI-Werte, Seitentitel */
14
- --font-display: "Space Grotesk";
15
- /* Body: Fliesstext, Formulare, Tabellen */
16
- --font-body: "Manrope";
17
- }
@@ -1,95 +0,0 @@
1
- /**
2
- * Tailwind-Preset der Corporate Identity.
3
- *
4
- * Enthaelt alles, was ein Repository braucht, damit die Klassennamen aus
5
- * /design-system/*.css dieselben Farben ergeben wie im Master:
6
- * - die Token-Bruecken (border, background, primary, card, …)
7
- * - die exakte Marken-Skala `brand` mit #007FFF
8
- * - die auf den Markenfarbton umgestellte `slate`-Skala
9
- * - Radien, Keyframes und Animationen
10
- *
11
- * Einbindung im Zielrepo:
12
- *
13
- * // tailwind.config.js
14
- * module.exports = {
15
- * presets: [require("./design-system/tailwind-preset.js")],
16
- * content: ["./src/**\/*.{js,ts,jsx,tsx}"],
17
- * }
18
- */
19
-
20
- module.exports = {
21
- darkMode: ["class"],
22
- theme: {
23
- container: {
24
- center: true,
25
- padding: "1rem",
26
- screens: { "2xl": "1400px" },
27
- },
28
- extend: {
29
- colors: {
30
- border: "hsl(var(--border))",
31
- input: "hsl(var(--input))",
32
- ring: "hsl(var(--primary))",
33
- background: "hsl(var(--background))",
34
- foreground: "hsl(var(--foreground))",
35
-
36
- // Neutrals remain black/white; the brand scale is Azureblau.
37
- slate: { 50: "#FFFFFF", 100: "#F5F5F5", 200: "#E5E5E5", 300: "#FFFFFF", 400: "#FFFFFF", 500: "#FFFFFF", 600: "#FFFFFF", 700: "#222222", 800: "#111111", 900: "#080808", 950: "#000000" },
38
-
39
- // Primary: Azureblau #007FFF, secondary: Pastell-Azurblau #A7D8F0.
40
- brand: {
41
- DEFAULT: "#007FFF", 50: "#EAF6FF", 100: "#D5EEFC", 200: "#A7D8F0",
42
- 300: "#66B9F5", 400: "#1A99FF", 500: "#007FFF", 600: "#0066CC",
43
- 700: "#0052A3", 800: "#003D7A", 900: "#002952", 950: "#001A33",
44
- },
45
- pastel: { DEFAULT: "#A7D8F0", 50: "#F5FBFE", 100: "#EAF6FC", 200: "#A7D8F0", 300: "#72C1E8", 400: "#3DA9DC", 500: "#A7D8F0" },
46
-
47
- primary: { DEFAULT: "hsl(var(--primary))", foreground: "hsl(var(--primary-foreground))" },
48
- secondary: { DEFAULT: "hsl(var(--secondary))", foreground: "hsl(var(--secondary-foreground))" },
49
- destructive: { DEFAULT: "hsl(var(--destructive))", foreground: "hsl(var(--destructive-foreground))" },
50
- muted: { DEFAULT: "hsl(var(--muted))", foreground: "hsl(var(--muted-foreground))" },
51
- accent: { DEFAULT: "hsl(var(--accent))", foreground: "hsl(var(--accent-foreground))" },
52
- popover: { DEFAULT: "hsl(var(--popover))", foreground: "hsl(var(--popover-foreground))" },
53
- card: { DEFAULT: "hsl(var(--card))", foreground: "hsl(var(--card-foreground))" },
54
- },
55
- borderRadius: {
56
- lg: "var(--radius)",
57
- md: "calc(var(--radius) - 4px)",
58
- sm: "calc(var(--radius) - 8px)",
59
- },
60
- keyframes: {
61
- "accordion-down": { from: { height: "0" }, to: { height: "var(--radix-accordion-content-height)" } },
62
- "accordion-up": { from: { height: "var(--radix-accordion-content-height)" }, to: { height: "0" } },
63
- "glass-float": { "0%, 100%": { transform: "translateY(0px)" }, "50%": { transform: "translateY(-8px)" } },
64
- "glass-glow": {
65
- "0%, 100%": { boxShadow: "0 0 20px rgba(0, 127, 255, 0.3)" },
66
- "50%": { boxShadow: "0 0 40px rgba(0, 127, 255, 0.6)" },
67
- },
68
- "3d-rotate": {
69
- "0%": { transform: "perspective(1200px) rotateX(0deg) rotateY(0deg)" },
70
- "50%": { transform: "perspective(1200px) rotateX(2deg) rotateY(2deg)" },
71
- "100%": { transform: "perspective(1200px) rotateX(0deg) rotateY(0deg)" },
72
- },
73
- shimmer: { "0%": { backgroundPosition: "-1000px 0" }, "100%": { backgroundPosition: "1000px 0" } },
74
- "fade-in-up": {
75
- "0%": { opacity: "0", transform: "translateY(10px)" },
76
- "100%": { opacity: "1", transform: "translateY(0)" },
77
- },
78
- "fade-in-down": {
79
- "0%": { opacity: "0", transform: "translateY(-10px)" },
80
- "100%": { opacity: "1", transform: "translateY(0)" },
81
- },
82
- },
83
- animation: {
84
- "accordion-down": "accordion-down 0.2s ease-out",
85
- "accordion-up": "accordion-up 0.2s ease-out",
86
- "glass-float": "glass-float 3s ease-in-out infinite",
87
- "glass-glow": "glass-glow 3s ease-in-out infinite",
88
- "3d-rotate": "3d-rotate 6s ease-in-out infinite",
89
- shimmer: "shimmer 8s infinite linear",
90
- "fade-in-up": "fade-in-up 0.6s ease-out",
91
- "fade-in-down": "fade-in-down 0.6s ease-out",
92
- },
93
- },
94
- },
95
- }
@@ -1,48 +0,0 @@
1
- /* Xtream-Head Color System: Azurblau (#007FFF) + Pastell-Azurblau (#A7D8F0) */
2
- @layer base {
3
- :root {
4
- /* Primary: Azurblau #007FFF = hsl(210, 100%, 50%) */
5
- /* Secondary: Pastell-Azurblau #A7D8F0 = hsl(200, 71%, 80%) */
6
- --background: 0 0% 2%;
7
- --foreground: 0 0% 98%;
8
- --card: 0 0% 8%;
9
- --card-foreground: 0 0% 98%;
10
- --popover: 0 0% 8%;
11
- --popover-foreground: 0 0% 98%;
12
- --primary: 210 100% 50%; /* Azurblau #007FFF */
13
- --primary-foreground: 0 0% 100%; /* Weiß auf Azur */
14
- --secondary: 200 71% 80%; /* Pastell-Azurblau #A7D8F0 */
15
- --secondary-foreground: 0 0% 0%;
16
- --muted: 0 0% 12%;
17
- --muted-foreground: 0 0% 82%;
18
- --accent: 200 71% 80%; /* Pastell als Akzent */
19
- --accent-foreground: 0 0% 0%;
20
- --destructive: 0 74% 50%;
21
- --destructive-foreground: 0 0% 100%;
22
- --border: 210 40% 20%;
23
- --input: 210 40% 20%;
24
- --ring: 210 100% 50%;
25
- --radius: 1rem;
26
- }
27
- .dark {
28
- --background: 0 0% 2%;
29
- --foreground: 0 0% 98%;
30
- --card: 0 0% 8%;
31
- --card-foreground: 0 0% 98%;
32
- --popover: 0 0% 8%;
33
- --popover-foreground: 0 0% 98%;
34
- --primary: 210 100% 50%; /* Azurblau #007FFF */
35
- --primary-foreground: 0 0% 100%;
36
- --secondary: 200 71% 80%; /* Pastell-Azurblau #A7D8F0 */
37
- --secondary-foreground: 0 0% 0%;
38
- --muted: 0 0% 12%;
39
- --muted-foreground: 0 0% 82%;
40
- --accent: 200 71% 80%;
41
- --accent-foreground: 0 0% 0%;
42
- --destructive: 0 74% 50%;
43
- --destructive-foreground: 0 0% 100%;
44
- --border: 210 40% 18%;
45
- --input: 210 40% 18%;
46
- --ring: 210 100% 50%;
47
- }
48
- }
@@ -1,53 +0,0 @@
1
- /* ==========================================================================
2
- Text-Overflow Utilities (safe-truncate / safe-break / no-overflow-x)
3
- Nutzung opt-in. Keine !important, keine globalen Regeln auf *.
4
- ========================================================================== */
5
-
6
- @layer utilities {
7
- /* Einzeiliger Truncate mit min-width:0 (funktioniert in Flex-Kindern) */
8
- .safe-truncate {
9
- min-width: 0;
10
- max-width: 100%;
11
- overflow: hidden;
12
- text-overflow: ellipsis;
13
- white-space: nowrap;
14
- }
15
-
16
- /* Sanftes Umbrechen langer Wörter/URLs/Emails ohne über den Rand zu laufen */
17
- .safe-break {
18
- min-width: 0;
19
- max-width: 100%;
20
- word-break: break-word;
21
- overflow-wrap: anywhere;
22
- }
23
-
24
- /* Container-Safety: verhindert horizontales Scrollen einzelner Panels */
25
- .no-overflow-x {
26
- overflow-x: hidden;
27
- min-width: 0;
28
- }
29
-
30
- /* Opt-in Safety-Net: setzt min-width:0 auf alle direkten Nachfahren.
31
- Hilft in verschachtelten Flex-Layouts, wo Truncate sonst nicht greift. */
32
- .overflow-safe * {
33
- min-width: 0;
34
- }
35
-
36
- /* Dichte Tabelle mit fixem Layout: ellipsis in Zellen wirkt nur mit table-fixed */
37
- .dense-table {
38
- table-layout: fixed;
39
- width: 100%;
40
- }
41
- .dense-table td,
42
- .dense-table th {
43
- overflow: hidden;
44
- text-overflow: ellipsis;
45
- white-space: nowrap;
46
- }
47
- .dense-table td.cell-wrap,
48
- .dense-table th.cell-wrap {
49
- white-space: normal;
50
- word-break: break-word;
51
- overflow-wrap: anywhere;
52
- }
53
- }
@@ -1,12 +0,0 @@
1
- export const config = {
2
- appUrl: process.env.NEXT_PUBLIC_APP_URL ?? "https://xtream-head.com",
3
- appName: process.env.NEXT_PUBLIC_APP_NAME ?? "xtream-head",
4
- companyName: process.env.NEXT_PUBLIC_COMPANY_NAME ?? "Xtream-ITSolutions UG",
5
- companyUrl: process.env.NEXT_PUBLIC_COMPANY_URL ?? "https://xtream-itsolutions.com",
6
- discordUrl: process.env.NEXT_PUBLIC_DISCORD_URL ?? "https://discord.gg/xtream-itsolutions",
7
- githubUrl: process.env.NEXT_PUBLIC_GITHUB_URL ?? "https://github.com/xtream-itsolutions/xithead",
8
- logoUrl: process.env.NEXT_PUBLIC_LOGO_URL ?? "/logo-transparent.png",
9
- logoSourceUrl: process.env.NEXT_PUBLIC_LOGO_SOURCE_URL ?? "https://cdn.xtream-itsolutions.com/r/Pc1hfX",
10
- model: process.env.XITHEAD_MODEL ?? "claude-sonnet-4-6",
11
- upstream: process.env.XITHEAD_UPSTREAM ?? "https://api.anthropic.com",
12
- } as const;
@@ -1,4 +0,0 @@
1
- // Custom React Hooks
2
- export * from './use-mounted';
3
- export * from './use-settings';
4
- export * from './use-session';
@@ -1,13 +0,0 @@
1
- 'use client';
2
-
3
- import { useEffect, useState } from 'react';
4
-
5
- export function useMounted() {
6
- const [isMounted, setIsMounted] = useState(false);
7
-
8
- useEffect(() => {
9
- setIsMounted(true);
10
- }, []);
11
-
12
- return isMounted;
13
- }
@@ -1,34 +0,0 @@
1
- 'use client';
2
-
3
- import { useCallback, useEffect, useState } from 'react';
4
-
5
- interface Session {
6
- id?: string;
7
- model?: string;
8
- [key: string]: any;
9
- }
10
-
11
- export function useSession() {
12
- const [session, setSession] = useState<Session | null>(null);
13
- const [loading, setLoading] = useState(true);
14
-
15
- useEffect(() => {
16
- const loadSession = async () => {
17
- try {
18
- const response = await fetch('/api/sessions');
19
- if (response.ok) {
20
- const data = await response.json();
21
- setSession(data);
22
- }
23
- } catch (error) {
24
- console.error('Failed to load session:', error);
25
- } finally {
26
- setLoading(false);
27
- }
28
- };
29
-
30
- loadSession();
31
- }, []);
32
-
33
- return { session, loading };
34
- }
@@ -1,49 +0,0 @@
1
- 'use client';
2
-
3
- import { useCallback, useEffect, useState } from 'react';
4
-
5
- interface Settings {
6
- theme?: string;
7
- model?: string;
8
- [key: string]: any;
9
- }
10
-
11
- export function useSettings() {
12
- const [settings, setSettings] = useState<Settings>({});
13
- const [loading, setLoading] = useState(true);
14
-
15
- useEffect(() => {
16
- const loadSettings = async () => {
17
- try {
18
- const response = await fetch('/api/settings');
19
- if (response.ok) {
20
- const data = await response.json();
21
- setSettings(data);
22
- }
23
- } catch (error) {
24
- console.error('Failed to load settings:', error);
25
- } finally {
26
- setLoading(false);
27
- }
28
- };
29
-
30
- loadSettings();
31
- }, []);
32
-
33
- const updateSettings = useCallback(async (newSettings: Settings) => {
34
- try {
35
- const response = await fetch('/api/settings', {
36
- method: 'POST',
37
- headers: { 'Content-Type': 'application/json' },
38
- body: JSON.stringify(newSettings),
39
- });
40
- if (response.ok) {
41
- setSettings(newSettings);
42
- }
43
- } catch (error) {
44
- console.error('Failed to update settings:', error);
45
- }
46
- }, []);
47
-
48
- return { settings, loading, updateSettings };
49
- }
@@ -1 +0,0 @@
1
- export * from '../config';
@@ -1,162 +0,0 @@
1
- /**
2
- * Settings Management - Client-side
3
- * Handles model selection, preferences, and real-time sync
4
- */
5
-
6
- export type ModelId = 'claude-opus-5' | 'claude-sonnet-5' | 'claude-haiku-4-5' | 'claude-fable-5-1';
7
-
8
- export interface Settings {
9
- selectedModel: ModelId;
10
- cachingEnabled: boolean;
11
- maxTokens?: number;
12
- temperature?: number;
13
- theme: 'dark' | 'light';
14
- notifications: boolean;
15
- autoOptimize: boolean;
16
- advancedMode: boolean;
17
- }
18
-
19
- export const DEFAULT_SETTINGS: Settings = {
20
- selectedModel: 'claude-sonnet-5',
21
- cachingEnabled: true,
22
- maxTokens: 4096,
23
- temperature: 0.7,
24
- theme: 'dark',
25
- notifications: true,
26
- autoOptimize: true,
27
- advancedMode: false,
28
- };
29
-
30
- export const AVAILABLE_MODELS: Array<{
31
- id: ModelId;
32
- name: string;
33
- cost: number;
34
- speed: number;
35
- quality: number;
36
- description: string;
37
- }> = [
38
- {
39
- id: 'claude-opus-5',
40
- name: 'Claude 3.5 Opus',
41
- cost: 15,
42
- speed: 8,
43
- quality: 10,
44
- description: 'Beste Qualität, höchste Kosten. Für komplexe Probleme ideal.',
45
- },
46
- {
47
- id: 'claude-sonnet-5',
48
- name: 'Claude 3.5 Sonnet',
49
- cost: 3,
50
- speed: 9,
51
- quality: 9,
52
- description: 'Beste Balance zwischen Qualität und Kosten. Standard-Wahl.',
53
- },
54
- {
55
- id: 'claude-haiku-4-5',
56
- name: 'Claude 4.5 Haiku',
57
- cost: 0.8,
58
- speed: 10,
59
- quality: 7,
60
- description: 'Schnell und günstig. Für einfache Tasks.',
61
- },
62
- {
63
- id: 'claude-fable-5-1',
64
- name: 'Claude Fable 5.1',
65
- cost: 0.5,
66
- speed: 10,
67
- quality: 5,
68
- description: 'Kostengünstigste Option. Für Prototypes.',
69
- },
70
- ];
71
-
72
- /**
73
- * Get settings from localStorage
74
- */
75
- export function loadSettings(): Settings {
76
- if (typeof window === 'undefined') return DEFAULT_SETTINGS;
77
-
78
- try {
79
- const stored = localStorage.getItem('xithead_settings');
80
- if (!stored) return DEFAULT_SETTINGS;
81
-
82
- const parsed = JSON.parse(stored);
83
- return { ...DEFAULT_SETTINGS, ...parsed };
84
- } catch (error) {
85
- console.error('Failed to load settings:', error);
86
- return DEFAULT_SETTINGS;
87
- }
88
- }
89
-
90
- /**
91
- * Save settings to localStorage and sync to backend
92
- */
93
- export async function saveSettings(settings: Partial<Settings>): Promise<void> {
94
- if (typeof window === 'undefined') return;
95
-
96
- try {
97
- const current = loadSettings();
98
- const updated = { ...current, ...settings };
99
-
100
- localStorage.setItem('xithead_settings', JSON.stringify(updated));
101
-
102
- // Sync to backend
103
- await syncSettingsToBackend(updated);
104
- } catch (error) {
105
- console.error('Failed to save settings:', error);
106
- throw error;
107
- }
108
- }
109
-
110
- /**
111
- * Sync settings to backend API
112
- */
113
- export async function syncSettingsToBackend(settings: Settings): Promise<void> {
114
- try {
115
- const response = await fetch('/api/settings', {
116
- method: 'POST',
117
- headers: { 'Content-Type': 'application/json' },
118
- body: JSON.stringify(settings),
119
- });
120
-
121
- if (!response.ok) {
122
- throw new Error(`API error: ${response.statusText}`);
123
- }
124
- } catch (error) {
125
- console.error('Failed to sync settings to backend:', error);
126
- // Don't throw - settings are still saved locally
127
- }
128
- }
129
-
130
- /**
131
- * Listen for settings changes from backend/other tabs
132
- */
133
- export function onSettingsChange(callback: (settings: Settings) => void): () => void {
134
- const handler = (event: StorageEvent) => {
135
- if (event.key === 'xithead_settings' && event.newValue) {
136
- callback(JSON.parse(event.newValue));
137
- }
138
- };
139
-
140
- window.addEventListener('storage', handler);
141
- return () => window.removeEventListener('storage', handler);
142
- }
143
-
144
- /**
145
- * Get model details
146
- */
147
- export function getModelInfo(modelId: ModelId) {
148
- return AVAILABLE_MODELS.find(m => m.id === modelId) || AVAILABLE_MODELS[1];
149
- }
150
-
151
- /**
152
- * Format cost for display
153
- */
154
- export function formatCost(tokens: number, modelId: ModelId): string {
155
- const model = getModelInfo(modelId);
156
- const costPer1M = model.cost;
157
- const totalCost = (tokens / 1_000_000) * costPer1M;
158
-
159
- if (totalCost < 0.01) return '< $0.01';
160
- if (totalCost < 1) return `$${totalCost.toFixed(4)}`;
161
- return `$${totalCost.toFixed(2)}`;
162
- }
@@ -1,6 +0,0 @@
1
- import { clsx, type ClassValue } from "clsx"
2
- import { twMerge } from "tailwind-merge"
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
package/middleware.ts DELETED
@@ -1,26 +0,0 @@
1
- import { NextResponse } from 'next/server';
2
- import type { NextRequest } from 'next/server';
3
-
4
- export function middleware(request: NextRequest) {
5
- const { pathname } = request.nextUrl;
6
-
7
- // Leite zu Dashboard weiter wenn auf root
8
- if (pathname === '/') {
9
- const response = NextResponse.next();
10
- return response;
11
- }
12
-
13
- return NextResponse.next();
14
- }
15
-
16
- export const config = {
17
- matcher: [
18
- /*
19
- * Match all request paths except for the ones starting with:
20
- * - _next/static (static files)
21
- * - _next/image (image optimization files)
22
- * - favicon.ico (favicon file)
23
- */
24
- '/((?!_next/static|_next/image|favicon.ico).*)',
25
- ],
26
- };
package/next-env.d.ts DELETED
@@ -1,7 +0,0 @@
1
- /// <reference types="next" />
2
- /// <reference types="next/image-types/global" />
3
- import "./.next/types/routes.d.ts";
4
- import "./.next/types/root-params.d.ts";
5
-
6
- // NOTE: This file should not be edited
7
- // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
package/next.config.ts DELETED
@@ -1,12 +0,0 @@
1
- import type { NextConfig } from "next";
2
-
3
- const nextConfig: NextConfig = {
4
- output: "standalone",
5
- images: {
6
- remotePatterns: [
7
- { protocol: "https", hostname: "cdn.xtream-itsolutions.com" },
8
- ],
9
- },
10
- };
11
-
12
- export default nextConfig;
@@ -1,7 +0,0 @@
1
- const config = {
2
- plugins: {
3
- "@tailwindcss/postcss": {},
4
- },
5
- }
6
-
7
- export default config
Binary file
Binary file