xithead 1.4.0 → 1.5.1
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.
- package/README.md +108 -72
- package/app/api/config/route.ts +22 -0
- package/app/api/export/route.ts +83 -0
- package/app/api/models/route.ts +12 -0
- package/app/api/stats/route.ts +46 -0
- package/app/dashboard/page.tsx +445 -0
- package/app/globals.css +35 -0
- package/app/installation/page.tsx +293 -0
- package/app/layout.tsx +35 -0
- package/app/master-design-system.css +2076 -0
- package/app/master-design-system.source.css +8 -0
- package/app/page.tsx +187 -0
- package/app/rechtliches/agb/page.tsx +165 -0
- package/app/rechtliches/datenschutz/page.tsx +128 -0
- package/app/rechtliches/impressum/page.tsx +122 -0
- package/app/rechtliches/widerruf/page.tsx +185 -0
- package/bin/xithead.js +264 -0
- package/components/layout/AppShell.tsx +25 -0
- package/components/layout/Footer.tsx +120 -0
- package/components/layout/Header.tsx +145 -0
- package/components/marketing/LegalHighlights.tsx +45 -0
- package/components/marketing/LegalPageShell.tsx +49 -0
- package/components/marketing/LegalPanel.tsx +41 -0
- package/components/marketing/index.ts +3 -0
- package/design-system/README.md +80 -0
- package/design-system/base.css +127 -0
- package/design-system/components.css +1943 -0
- package/design-system/fonts.css +17 -0
- package/design-system/tailwind-preset.js +95 -0
- package/design-system/tokens.css +48 -0
- package/design-system/utilities.css +53 -0
- package/lib/config/index.ts +12 -0
- package/lib/hooks/index.ts +4 -0
- package/lib/hooks/use-mounted.ts +13 -0
- package/lib/hooks/use-session.ts +34 -0
- package/lib/hooks/use-settings.ts +49 -0
- package/lib/utils/index.ts +1 -0
- package/lib/utils/settings.ts +162 -0
- package/lib/utils/utils.ts +6 -0
- package/middleware.ts +26 -0
- package/next-env.d.ts +7 -0
- package/next.config.ts +12 -0
- package/package.json +77 -36
- package/postcss.config.mjs +7 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/logo-transparent.png +0 -0
- package/public/xithead.ps1 +937 -0
- package/scripts/README.md +77 -0
- package/scripts/audit_wheel_glibc_symbols.py +217 -0
- package/scripts/build-master-design-system.cjs +33 -0
- package/scripts/build_rust_extension.sh +58 -0
- package/scripts/changelog-gen.py +203 -0
- package/scripts/eval_output_shaper.py +235 -0
- package/scripts/export_kompress_v2_onnx.py +267 -0
- package/scripts/fixtures/anthropic_replay_body.json +133 -0
- package/scripts/fixtures/codex_response_create_frame.json +52 -0
- package/scripts/install-git-hooks.sh +104 -0
- package/scripts/install.ps1 +1809 -0
- package/scripts/install.sh +1673 -0
- package/scripts/pr-governance.py +297 -0
- package/scripts/record_fixtures.py +59 -0
- package/scripts/refresh_model_limits.sh +48 -0
- package/scripts/replay_codex_ws_load.py +445 -0
- package/scripts/repro_codex_replay.py +699 -0
- package/scripts/smoke_issue_327.py +233 -0
- package/scripts/sync-plugin-versions.py +116 -0
- package/scripts/tests/test_changelog_gen.py +302 -0
- package/scripts/tests/test_pr_governance.py +163 -0
- package/scripts/tests/test_pr_health_labels.py +94 -0
- package/scripts/tests/test_pr_health_workflow.py +14 -0
- package/scripts/tests/test_sync_plugin_versions.py +131 -0
- package/scripts/tests/test_version_sync.py +291 -0
- package/scripts/validate-workflows.sh +39 -0
- package/scripts/verify-versions.py +106 -0
- package/scripts/version-sync.py +207 -0
- package/tailwind.config.js +31 -0
- package/tailwind.master.config.cjs +47 -0
- package/tsconfig.json +84 -0
- package/types/api.ts +12 -0
- package/types/config.ts +9 -0
- package/types/index.ts +2 -0
- package/npm/bin/xithead.js +0 -366
- package/npm/index.d.ts +0 -57
- package/npm/index.js +0 -139
- package/npm/package.json +0 -54
- package/npm/postinstall.js +0 -43
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Clock, ExternalLink, FileText, Info, ListChecks, Phone, RefreshCw, Scale, XCircle } from "lucide-react"
|
|
2
|
+
|
|
3
|
+
import { LegalHighlights, LegalPageShell, LegalPanel } from "@/components/marketing"
|
|
4
|
+
|
|
5
|
+
export const metadata = {
|
|
6
|
+
title: "Widerrufsrecht",
|
|
7
|
+
description: "Widerrufsrecht und Widerrufsbelehrung - Xtream-ITSolutions UG",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function Widerruf() {
|
|
11
|
+
const updatedAt = new Date().toLocaleDateString("de-DE", { year: "numeric", month: "long", day: "numeric" })
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<LegalPageShell
|
|
15
|
+
badge="Widerrufsrecht"
|
|
16
|
+
title="Widerrufsrecht"
|
|
17
|
+
description="Belehrung zum Widerrufsrecht gemäß § 355 BGB"
|
|
18
|
+
icon={FileText}
|
|
19
|
+
updatedAt={updatedAt}
|
|
20
|
+
tone="rose"
|
|
21
|
+
>
|
|
22
|
+
<div className="space-y-12">
|
|
23
|
+
<LegalHighlights
|
|
24
|
+
tone="rose"
|
|
25
|
+
items={[
|
|
26
|
+
{ icon: Clock, label: "Widerrufsfrist", value: "14 Tage" },
|
|
27
|
+
{ icon: Scale, label: "Rechtsgrundlage", value: "§ 355 BGB" },
|
|
28
|
+
]}
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
<div className="grid gap-5 md:grid-cols-2">
|
|
32
|
+
<LegalPanel icon={FileText} title="Widerrufsrecht" tone="rose">
|
|
33
|
+
<p>
|
|
34
|
+
Sie haben das Recht, Ihren Vertrag innerhalb von 14 Tagen ohne Angabe von Gründen zu widerrufen. Die
|
|
35
|
+
Widerrufsfrist beträgt 14 Tage ab dem Tag, an dem der Vertrag geschlossen wurde.
|
|
36
|
+
</p>
|
|
37
|
+
<p>
|
|
38
|
+
Um Ihr Widerrufsrecht auszuüben, müssen Sie uns mit einer eindeutigen Erklärung (per Post, Fax oder
|
|
39
|
+
E-Mail) mitteilen, dass Sie von diesem Vertrag zurücktreten möchten. Sie können das beigefügte
|
|
40
|
+
Muster-Widerrufsformular oder eine andere eindeutige Erklärung verwenden.
|
|
41
|
+
</p>
|
|
42
|
+
</LegalPanel>
|
|
43
|
+
|
|
44
|
+
<LegalPanel icon={Phone} title="Kontakt für Widerruf" tone="rose">
|
|
45
|
+
<p>Wenden Sie sich für einen Widerruf an:</p>
|
|
46
|
+
<div className="rounded-lg border border-brand-500/10 bg-brand-500/5 p-4">
|
|
47
|
+
<p className="font-semibold text-white">Xtream-ITSolutions UG</p>
|
|
48
|
+
<p>Sophienstr. 9, 45699 Herten</p>
|
|
49
|
+
<p>Deutschland</p>
|
|
50
|
+
<p className="mt-2">
|
|
51
|
+
Telefon:{" "}
|
|
52
|
+
<a href="tel:+4923665830630" className="text-brand-300 hover:text-brand-200">
|
|
53
|
+
+49 (0) 236 658 30 630
|
|
54
|
+
</a>
|
|
55
|
+
</p>
|
|
56
|
+
<p>
|
|
57
|
+
E-Mail:{" "}
|
|
58
|
+
<a href="mailto:info@xtream-itsolutions.com" className="text-brand-300 hover:text-brand-200">
|
|
59
|
+
info@xtream-itsolutions.com
|
|
60
|
+
</a>
|
|
61
|
+
</p>
|
|
62
|
+
</div>
|
|
63
|
+
</LegalPanel>
|
|
64
|
+
|
|
65
|
+
<LegalPanel icon={RefreshCw} title="Folgen des Widerrufs" tone="rose">
|
|
66
|
+
<p>
|
|
67
|
+
Wenn Sie den Vertrag widerrufen, müssen wir alle Zahlungen, die wir von Ihnen erhalten haben, sowie
|
|
68
|
+
alle Leistungen, die wir erbracht haben, unverzüglich rückgängig machen. Dies geschieht mit denselben
|
|
69
|
+
Zahlungsmitteln, die Sie verwendet haben, es sei denn, es wurde etwas anderes vereinbart.
|
|
70
|
+
</p>
|
|
71
|
+
<p>
|
|
72
|
+
Beachten Sie, dass für Leistungen, die vollständig erbracht wurden, möglicherweise Ausnahmen vom
|
|
73
|
+
Widerrufsrecht gelten. Besondere Regelungen können für digitale Inhalte und Dienstleistungen gelten.
|
|
74
|
+
</p>
|
|
75
|
+
</LegalPanel>
|
|
76
|
+
|
|
77
|
+
<LegalPanel icon={XCircle} title="Ausnahmen vom Widerrufsrecht" tone="rose">
|
|
78
|
+
<p>Das Widerrufsrecht besteht nicht für:</p>
|
|
79
|
+
<ul className="list-disc list-inside space-y-2 ml-4">
|
|
80
|
+
<li>Dienstleistungen, die vollständig ausgeführt wurden, sofern nicht anders vereinbart</li>
|
|
81
|
+
<li>Digitale Inhalte, die vollständig heruntergeladen wurden</li>
|
|
82
|
+
<li>
|
|
83
|
+
Verträge mit Verbrauchern, bei denen die Parteien von Anfang an vereinbart haben, dass der
|
|
84
|
+
Unternehmer mit der Erbringung der Dienstleistung vor Ende der Widerrufsfrist beginnt
|
|
85
|
+
</li>
|
|
86
|
+
</ul>
|
|
87
|
+
</LegalPanel>
|
|
88
|
+
|
|
89
|
+
<LegalPanel icon={ListChecks} title="Muster-Widerrufsformular" tone="rose">
|
|
90
|
+
<p>
|
|
91
|
+
Wenn Sie den Vertrag durch ein Musterformular widerrufen möchten, können Sie folgende Vorlage
|
|
92
|
+
verwenden und an uns senden:
|
|
93
|
+
</p>
|
|
94
|
+
<div className="rounded-lg border border-brand-500/10 bg-black/50 p-4">
|
|
95
|
+
<p className="font-mono text-sm text-white">
|
|
96
|
+
---
|
|
97
|
+
<br />
|
|
98
|
+
<br />
|
|
99
|
+
Widerrufsformular
|
|
100
|
+
<br />
|
|
101
|
+
<br />
|
|
102
|
+
An Xtream-ITSolutions UG, Sophienstr. 9, 45699 Herten,
|
|
103
|
+
<br />
|
|
104
|
+
E-Mail: info@xtream-itsolutions.com
|
|
105
|
+
<br />
|
|
106
|
+
<br />
|
|
107
|
+
Hiermit widerrufe(n) ich/wir (*) den von mir/uns (*) abgeschlossenen Vertrag über die
|
|
108
|
+
<br />
|
|
109
|
+
Erbringung der folgenden Dienstleistung (*)
|
|
110
|
+
<br />
|
|
111
|
+
<br />
|
|
112
|
+
____________________________________________________________________
|
|
113
|
+
<br />
|
|
114
|
+
<br />
|
|
115
|
+
Bestellt/erhalten am (*)
|
|
116
|
+
<br />
|
|
117
|
+
____________________________________________________________________
|
|
118
|
+
<br />
|
|
119
|
+
<br />
|
|
120
|
+
Name des/der Verbraucher(s)
|
|
121
|
+
<br />
|
|
122
|
+
____________________________________________________________________
|
|
123
|
+
<br />
|
|
124
|
+
<br />
|
|
125
|
+
Adresse des/der Verbraucher(s)
|
|
126
|
+
<br />
|
|
127
|
+
____________________________________________________________________
|
|
128
|
+
<br />
|
|
129
|
+
<br />
|
|
130
|
+
Unterschrift des/der Verbraucher(s) (nur bei schriftlicher Mitteilung)
|
|
131
|
+
<br />
|
|
132
|
+
____________________________________________________________________
|
|
133
|
+
<br />
|
|
134
|
+
<br />
|
|
135
|
+
Datum
|
|
136
|
+
<br />
|
|
137
|
+
____________________________________________________________________
|
|
138
|
+
<br />
|
|
139
|
+
<br />
|
|
140
|
+
(*) Unzutreffendes streichen
|
|
141
|
+
</p>
|
|
142
|
+
</div>
|
|
143
|
+
</LegalPanel>
|
|
144
|
+
|
|
145
|
+
<LegalPanel icon={Info} title="Wichtige Hinweise" tone="rose">
|
|
146
|
+
<p>
|
|
147
|
+
Bitte beachten Sie, dass das Widerrufsrecht nicht in allen Fällen gilt. Insbesondere bei digitalen
|
|
148
|
+
Dienstleistungen, die vollständig erbracht wurden, besteht möglicherweise kein Widerrufsrecht mehr.
|
|
149
|
+
</p>
|
|
150
|
+
<p>
|
|
151
|
+
Wenn Sie unsicher sind, ob Ihr Widerruf berechtigt ist, oder wenn Sie weitere Fragen haben, können Sie
|
|
152
|
+
sich jederzeit an uns wenden. Wir helfen Ihnen gerne weiter.
|
|
153
|
+
</p>
|
|
154
|
+
</LegalPanel>
|
|
155
|
+
|
|
156
|
+
<LegalPanel icon={ExternalLink} title="Weitere Informationen" tone="rose">
|
|
157
|
+
<p>Weitere Informationen zu Ihren Verbraucherrechten finden Sie unter:</p>
|
|
158
|
+
<ul className="list-disc list-inside space-y-2 ml-4">
|
|
159
|
+
<li>
|
|
160
|
+
<a
|
|
161
|
+
href="https://www.verbraucherzentrale.de"
|
|
162
|
+
target="_blank"
|
|
163
|
+
rel="noopener"
|
|
164
|
+
className="text-brand-300 hover:text-brand-200"
|
|
165
|
+
>
|
|
166
|
+
Verbraucherzentrale Deutschland
|
|
167
|
+
</a>
|
|
168
|
+
</li>
|
|
169
|
+
<li>
|
|
170
|
+
<a
|
|
171
|
+
href="https://www.bafin.de"
|
|
172
|
+
target="_blank"
|
|
173
|
+
rel="noopener"
|
|
174
|
+
className="text-brand-300 hover:text-brand-200"
|
|
175
|
+
>
|
|
176
|
+
BaFin - Bundesanstalt für Finanzdienstleistungsaufsicht
|
|
177
|
+
</a>
|
|
178
|
+
</li>
|
|
179
|
+
</ul>
|
|
180
|
+
</LegalPanel>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</LegalPageShell>
|
|
184
|
+
)
|
|
185
|
+
}
|
package/bin/xithead.js
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const { spawn } = require("child_process");
|
|
6
|
+
const http = require("http");
|
|
7
|
+
|
|
8
|
+
const PORT = 8787;
|
|
9
|
+
const PKG_PATH = path.dirname(__dirname);
|
|
10
|
+
const PKG_JSON = path.join(PKG_PATH, "package.json");
|
|
11
|
+
|
|
12
|
+
function getVersion() {
|
|
13
|
+
try {
|
|
14
|
+
const pkg = JSON.parse(fs.readFileSync(PKG_JSON, "utf8"));
|
|
15
|
+
return pkg.version || "unknown";
|
|
16
|
+
} catch {
|
|
17
|
+
return "unknown";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function log(msg, color = "white") {
|
|
22
|
+
const colors = {
|
|
23
|
+
green: "\x1b[32m",
|
|
24
|
+
cyan: "\x1b[36m",
|
|
25
|
+
yellow: "\x1b[33m",
|
|
26
|
+
red: "\x1b[31m",
|
|
27
|
+
gray: "\x1b[90m",
|
|
28
|
+
white: "\x1b[37m",
|
|
29
|
+
reset: "\x1b[0m",
|
|
30
|
+
};
|
|
31
|
+
console.log(`${colors[color] || ""} ${msg}${colors.reset}`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function isPortInUse(port) {
|
|
35
|
+
return new Promise((resolve) => {
|
|
36
|
+
const server = http.createServer();
|
|
37
|
+
server.once("error", () => resolve(true));
|
|
38
|
+
server.once("listening", () => {
|
|
39
|
+
server.close();
|
|
40
|
+
resolve(false);
|
|
41
|
+
});
|
|
42
|
+
server.listen(port, "127.0.0.1");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async function main() {
|
|
47
|
+
const args = process.argv.slice(2);
|
|
48
|
+
|
|
49
|
+
// Help
|
|
50
|
+
if (args.includes("--help") || args.includes("-h") || args[0] === "help") {
|
|
51
|
+
log("");
|
|
52
|
+
log("+=========================================================+", "cyan");
|
|
53
|
+
log("| * xtream-head — Local Development Server |", "cyan");
|
|
54
|
+
log("| Version " + getVersion(), "gray");
|
|
55
|
+
log("+=========================================================+", "cyan");
|
|
56
|
+
log("");
|
|
57
|
+
log("🚀 SERVER COMMANDS:", "yellow");
|
|
58
|
+
log(" xithead Start dev server (port 8787)", "white");
|
|
59
|
+
log(" xithead build Build for production", "white");
|
|
60
|
+
log(" xithead start Start production server (built)", "white");
|
|
61
|
+
log("");
|
|
62
|
+
log("📊 DATA & EXPORT:", "cyan");
|
|
63
|
+
log(" xithead stats Show statistics", "white");
|
|
64
|
+
log(" xithead logs Display activity logs", "white");
|
|
65
|
+
log(" xithead export json Export config + stats as JSON", "white");
|
|
66
|
+
log(" xithead export csv Export config + stats as CSV", "white");
|
|
67
|
+
log(" xithead reset Reset all data & settings", "white");
|
|
68
|
+
log("");
|
|
69
|
+
log("🔧 TOOLS:", "cyan");
|
|
70
|
+
log(" xithead doctor System diagnostics", "white");
|
|
71
|
+
log(" xithead version Show version info", "white");
|
|
72
|
+
log(" xithead help Show this help", "white");
|
|
73
|
+
log("");
|
|
74
|
+
log("💻 ACCESS:", "white");
|
|
75
|
+
log(" Dashboard: http://localhost:8787/dashboard", "cyan");
|
|
76
|
+
log(" Homepage: http://localhost:8787", "cyan");
|
|
77
|
+
log("");
|
|
78
|
+
process.exit(0);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Version
|
|
82
|
+
if (args.includes("--version") || args.includes("-v") || args[0] === "version") {
|
|
83
|
+
log("xtream-head v" + getVersion());
|
|
84
|
+
log("Node.js: " + process.version);
|
|
85
|
+
log("Platform: " + process.platform);
|
|
86
|
+
process.exit(0);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const cmd = args[0] || "dev";
|
|
90
|
+
|
|
91
|
+
// Check if port is in use
|
|
92
|
+
if ((cmd === "dev" || !cmd) && (await isPortInUse(PORT))) {
|
|
93
|
+
log("");
|
|
94
|
+
log(
|
|
95
|
+
`[!] Port ${PORT} is already in use. Kill existing process or use a different port.`,
|
|
96
|
+
"yellow"
|
|
97
|
+
);
|
|
98
|
+
log("");
|
|
99
|
+
process.exit(1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
log("");
|
|
103
|
+
log("+=========================================================+", "cyan");
|
|
104
|
+
log("| * xtream-head v" + getVersion() + " |", "cyan");
|
|
105
|
+
log("+=========================================================+", "cyan");
|
|
106
|
+
log("");
|
|
107
|
+
|
|
108
|
+
if (cmd === "dev") {
|
|
109
|
+
log("[>>] Starting dev server...", "cyan");
|
|
110
|
+
const nextDev = spawn("next", ["dev", "-p", String(PORT)], {
|
|
111
|
+
cwd: PKG_PATH,
|
|
112
|
+
stdio: "inherit",
|
|
113
|
+
shell: true,
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
process.on("SIGINT", () => {
|
|
117
|
+
log("");
|
|
118
|
+
log("[>>] Shutting down...", "gray");
|
|
119
|
+
nextDev.kill();
|
|
120
|
+
process.exit(0);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
nextDev.on("exit", (code) => {
|
|
124
|
+
process.exit(code || 0);
|
|
125
|
+
});
|
|
126
|
+
} else if (cmd === "build") {
|
|
127
|
+
log("[>>] Building for production...", "cyan");
|
|
128
|
+
const nextBuild = spawn("next", ["build"], {
|
|
129
|
+
cwd: PKG_PATH,
|
|
130
|
+
stdio: "inherit",
|
|
131
|
+
shell: true,
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
nextBuild.on("exit", (code) => {
|
|
135
|
+
if (code === 0) {
|
|
136
|
+
log("[OK] Build complete.", "green");
|
|
137
|
+
} else {
|
|
138
|
+
log("[X] Build failed.", "red");
|
|
139
|
+
}
|
|
140
|
+
process.exit(code || 0);
|
|
141
|
+
});
|
|
142
|
+
} else if (cmd === "start") {
|
|
143
|
+
log(`[>>] Starting production server on port ${PORT}...`, "cyan");
|
|
144
|
+
const nextStart = spawn("next", ["start", "-p", String(PORT)], {
|
|
145
|
+
cwd: PKG_PATH,
|
|
146
|
+
stdio: "inherit",
|
|
147
|
+
shell: true,
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
process.on("SIGINT", () => {
|
|
151
|
+
log("");
|
|
152
|
+
log("[>>] Shutting down...", "gray");
|
|
153
|
+
nextStart.kill();
|
|
154
|
+
process.exit(0);
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
nextStart.on("exit", (code) => {
|
|
158
|
+
process.exit(code || 0);
|
|
159
|
+
});
|
|
160
|
+
} else if (cmd === "stats") {
|
|
161
|
+
log("[>>] Fetching statistics...", "cyan");
|
|
162
|
+
try {
|
|
163
|
+
const res = await fetch(`http://localhost:${PORT}/api/stats`);
|
|
164
|
+
if (res.ok) {
|
|
165
|
+
const data = await res.json();
|
|
166
|
+
log("");
|
|
167
|
+
log("📊 xtream-head Statistics", "cyan");
|
|
168
|
+
log(" Requests: " + data.requests, "white");
|
|
169
|
+
log(" Tokens Saved: " + data.tokensSaved.toLocaleString(), "green");
|
|
170
|
+
log(" Cost Saved: $" + data.costSaved.toFixed(2), "green");
|
|
171
|
+
log(" Cache Hit: " + (data.cacheHitRate * 100).toFixed(1) + "%", "cyan");
|
|
172
|
+
log(" Uptime: " + data.uptime_formatted, "white");
|
|
173
|
+
log("");
|
|
174
|
+
} else {
|
|
175
|
+
log("[!] Could not fetch stats. Is the server running?", "yellow");
|
|
176
|
+
}
|
|
177
|
+
} catch (e) {
|
|
178
|
+
log("[X] Error: Server not running on port " + PORT, "red");
|
|
179
|
+
}
|
|
180
|
+
process.exit(0);
|
|
181
|
+
} else if (cmd === "logs") {
|
|
182
|
+
log("[>>] Fetching activity logs...", "cyan");
|
|
183
|
+
try {
|
|
184
|
+
const res = await fetch(`http://localhost:${PORT}/api/logs?limit=10`);
|
|
185
|
+
if (res.ok) {
|
|
186
|
+
const data = await res.json();
|
|
187
|
+
log("");
|
|
188
|
+
log("📋 Recent Activity (last 10)", "cyan");
|
|
189
|
+
if (data.logs.length === 0) {
|
|
190
|
+
log(" (No logs yet)", "gray");
|
|
191
|
+
} else {
|
|
192
|
+
data.logs.forEach((log) => {
|
|
193
|
+
const time = new Date(log.timestamp).toLocaleTimeString();
|
|
194
|
+
const icon = {
|
|
195
|
+
request: "→",
|
|
196
|
+
cache_hit: "✓",
|
|
197
|
+
cache_miss: "✗",
|
|
198
|
+
config_change: "⚙️",
|
|
199
|
+
error: "⚠️",
|
|
200
|
+
}[log.type] || "•";
|
|
201
|
+
console.log(` [${time}] ${icon} ${log.message}`);
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
log("");
|
|
205
|
+
}
|
|
206
|
+
} catch (e) {
|
|
207
|
+
log("[X] Server not running", "red");
|
|
208
|
+
}
|
|
209
|
+
process.exit(0);
|
|
210
|
+
} else if (cmd === "export") {
|
|
211
|
+
const format = args[1] || "json";
|
|
212
|
+
log(`[>>] Exporting data as ${format.toUpperCase()}...`, "cyan");
|
|
213
|
+
try {
|
|
214
|
+
const res = await fetch(`http://localhost:${PORT}/api/export?format=${format}`);
|
|
215
|
+
if (res.ok) {
|
|
216
|
+
const data = await res.text();
|
|
217
|
+
const filename = `xithead-export-${Date.now()}.${format}`;
|
|
218
|
+
const fs = require("fs");
|
|
219
|
+
fs.writeFileSync(filename, data);
|
|
220
|
+
log(`[OK] Exported to: ${filename}`, "green");
|
|
221
|
+
}
|
|
222
|
+
} catch (e) {
|
|
223
|
+
log("[X] Export failed", "red");
|
|
224
|
+
}
|
|
225
|
+
process.exit(0);
|
|
226
|
+
} else if (cmd === "reset") {
|
|
227
|
+
log("[>>] Resetting all data...", "yellow");
|
|
228
|
+
try {
|
|
229
|
+
fetch(`http://localhost:${PORT}/api/logs`, { method: "DELETE" }).catch(() => {});
|
|
230
|
+
log("[OK] Data reset", "green");
|
|
231
|
+
} catch (e) {
|
|
232
|
+
log("[X] Reset failed", "red");
|
|
233
|
+
}
|
|
234
|
+
process.exit(0);
|
|
235
|
+
} else if (cmd === "doctor") {
|
|
236
|
+
log("");
|
|
237
|
+
log("🏥 xtream-head System Check", "cyan");
|
|
238
|
+
log("");
|
|
239
|
+
log("Node.js: " + process.version, "white");
|
|
240
|
+
log("Platform: " + process.platform, "white");
|
|
241
|
+
log("Version: v" + getVersion(), "white");
|
|
242
|
+
try {
|
|
243
|
+
const res = await fetch(`http://localhost:${PORT}/api/stats`);
|
|
244
|
+
if (res.ok) {
|
|
245
|
+
log("Server: ✓ Running on port " + PORT, "green");
|
|
246
|
+
} else {
|
|
247
|
+
log("Server: ✗ Not responding", "red");
|
|
248
|
+
}
|
|
249
|
+
} catch {
|
|
250
|
+
log("Server: ✗ Not running", "red");
|
|
251
|
+
}
|
|
252
|
+
log("");
|
|
253
|
+
process.exit(0);
|
|
254
|
+
} else {
|
|
255
|
+
log(`[X] Unknown command: ${cmd}`, "red");
|
|
256
|
+
log(` Try 'xithead help' for usage.`, "gray");
|
|
257
|
+
process.exit(1);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
main().catch((err) => {
|
|
262
|
+
log(`[X] ${err.message}`, "red");
|
|
263
|
+
process.exit(1);
|
|
264
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import type { ReactNode } from "react"
|
|
4
|
+
import { Header } from "@/components/layout/Header"
|
|
5
|
+
import { Footer } from "@/components/layout/Footer"
|
|
6
|
+
|
|
7
|
+
type AppShellProps = {
|
|
8
|
+
children: ReactNode
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function AppShell({ children }: AppShellProps) {
|
|
12
|
+
return (
|
|
13
|
+
<div className="app-gradient-bg flex min-h-screen flex-col overflow-x-hidden max-w-full">
|
|
14
|
+
<div className="sticky top-0 z-50">
|
|
15
|
+
<Header />
|
|
16
|
+
</div>
|
|
17
|
+
<main id="main-content" className="min-w-0 max-w-full flex-1 overflow-x-clip focus:outline-none" tabIndex={-1} aria-label="Hauptinhalt">
|
|
18
|
+
<div className="layout-content py-3 sm:py-5">
|
|
19
|
+
<div className="layout-page-stack">{children}</div>
|
|
20
|
+
</div>
|
|
21
|
+
</main>
|
|
22
|
+
<Footer />
|
|
23
|
+
</div>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import Link from "next/link"
|
|
2
|
+
import Image from "next/image"
|
|
3
|
+
import { ArrowUpRight, Zap, Shield, Gauge } from "lucide-react"
|
|
4
|
+
import { config } from "@/lib/config"
|
|
5
|
+
|
|
6
|
+
type FooterLink = { href: string; label: string; internal?: boolean }
|
|
7
|
+
type FooterColumn = { title: string; links: FooterLink[] }
|
|
8
|
+
|
|
9
|
+
const footerColumns: FooterColumn[] = [
|
|
10
|
+
{
|
|
11
|
+
title: "Produkt",
|
|
12
|
+
links: [
|
|
13
|
+
{ href: "/", label: "Startseite", internal: true },
|
|
14
|
+
{ href: "/installation", label: "Installation", internal: true },
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: "Community",
|
|
19
|
+
links: [
|
|
20
|
+
{ href: config.discordUrl, label: "Discord" },
|
|
21
|
+
{ href: config.githubUrl.replace(/\/xithead$/, ""), label: "GitHub" },
|
|
22
|
+
{ href: config.githubUrl + "/issues", label: "Issues" },
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: "Unternehmen",
|
|
27
|
+
links: [
|
|
28
|
+
{ href: config.companyUrl, label: "Xtream-ITSolutions" },
|
|
29
|
+
{ href: config.companyUrl + "/impressum", label: "Impressum" },
|
|
30
|
+
{ href: config.companyUrl + "/datenschutz", label: "Datenschutz" },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "Rechtliches",
|
|
35
|
+
links: [
|
|
36
|
+
{ href: "https://www.apache.org/licenses/LICENSE-2.0", label: "Apache 2.0 Lizenz" },
|
|
37
|
+
{ href: config.companyUrl + "/rechtliches/agb", label: "AGB" },
|
|
38
|
+
{ href: config.companyUrl + "/rechtliches/widerrufsrecht", label: "Widerrufsrecht" },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
const features = [
|
|
44
|
+
{ icon: Zap, title: "Instant Setup", description: "Automatische Bereitstellung mit einem Befehl" },
|
|
45
|
+
{ icon: Shield, title: "100% Lokal", description: "Kein Server, keine geteilten Daten, privat" },
|
|
46
|
+
{ icon: Gauge, title: "Live Dashboard", description: "localhost:8787/dashboard — deine Stats" },
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
function FooterDestination({ link }: { link: FooterLink }) {
|
|
50
|
+
const content = <><ArrowUpRight aria-hidden="true" size={12} /><span>{link.label}</span></>
|
|
51
|
+
const className = "group flex items-center gap-1.5 text-sm text-white transition-colors hover:text-white overflow-hidden"
|
|
52
|
+
return link.internal ? <Link href={link.href} className={className}>{content}</Link> : <a href={link.href} target="_blank" rel="noreferrer" className={className}>{content}</a>
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function Footer() {
|
|
56
|
+
return <footer className="relative mt-auto w-full">
|
|
57
|
+
<div className="h-px w-full bg-gradient-to-r from-transparent via-brand-400/30 to-transparent" />
|
|
58
|
+
<div
|
|
59
|
+
className="relative w-full border-t py-12"
|
|
60
|
+
style={{
|
|
61
|
+
backdropFilter: "blur(16px)",
|
|
62
|
+
WebkitBackdropFilter: "blur(16px)",
|
|
63
|
+
background: "rgba(0, 0, 0, 0.4)",
|
|
64
|
+
borderColor: "rgba(0, 127, 255, 0.2)",
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
67
|
+
<div className="layout-content">
|
|
68
|
+
<div className="grid gap-10 border-b border-brand-400/10 pb-10 lg:grid-cols-[1fr_auto] lg:items-start">
|
|
69
|
+
<section className="max-w-sm min-w-0" aria-labelledby="footer-title">
|
|
70
|
+
<div className="mb-5 min-w-0">
|
|
71
|
+
<Image
|
|
72
|
+
src="/logo-transparent.png"
|
|
73
|
+
alt="Xtream-ITSolutions"
|
|
74
|
+
width={220}
|
|
75
|
+
height={88}
|
|
76
|
+
className="h-14 w-auto object-contain"
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
<p id="footer-title" className="text-sm leading-7 text-white">Lokaler Claude Code Proxy — Anthropic Prompt Cache maximieren und Token-Kosten bis zu 88% reduzieren.</p>
|
|
80
|
+
</section>
|
|
81
|
+
<section className="grid grid-cols-1 sm:grid-cols-3 gap-3 lg:w-[400px]" aria-label="XIT Head Funktionen">
|
|
82
|
+
{features.map(({ icon: Icon, title, description }) => <article
|
|
83
|
+
key={title}
|
|
84
|
+
className="glass-card p-4"
|
|
85
|
+
>
|
|
86
|
+
<div className="mb-3 flex h-8 w-8 items-center justify-center rounded-xl border border-brand-300/20 bg-brand-300/10 text-brand-300 shrink-0">
|
|
87
|
+
<Icon className="h-4 w-4" aria-hidden="true" />
|
|
88
|
+
</div>
|
|
89
|
+
<p className="text-xs font-bold text-white line-clamp-2">{title}</p>
|
|
90
|
+
<p className="mt-2 text-[12px] leading-5 text-white line-clamp-3">{description}</p>
|
|
91
|
+
</article>)}
|
|
92
|
+
</section>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<div className="grid grid-cols-2 gap-6 border-b border-brand-400/10 py-10 sm:gap-8 sm:grid-cols-4">
|
|
96
|
+
{footerColumns.map((column) => <section key={column.title} className="min-w-0">
|
|
97
|
+
<h2 className="mb-4 text-[10px] font-bold uppercase tracking-[0.22em] text-white truncate">{column.title}</h2>
|
|
98
|
+
<div className="flex flex-col gap-2.5">
|
|
99
|
+
{column.links.map((link) => (
|
|
100
|
+
<FooterDestination key={link.href} link={link} />
|
|
101
|
+
))}
|
|
102
|
+
</div>
|
|
103
|
+
</section>)}
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div className="flex flex-col gap-3 pt-6 sm:flex-row sm:items-center sm:justify-between">
|
|
107
|
+
<p className="text-xs text-white break-words">
|
|
108
|
+
© 2024–{new Date().getFullYear()} Xtream-ITSolutions UG | Entwickelt mit{" "}
|
|
109
|
+
<span className="text-red-500/70">❤</span> | Alle Rechte vorbehalten.
|
|
110
|
+
</p>
|
|
111
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs sm:justify-end">
|
|
112
|
+
<a href={config.companyUrl} target="_blank" rel="noreferrer" className="text-white transition-colors hover:text-brand-200">
|
|
113
|
+
Eine Seite der Xtream-ITSolutions UG
|
|
114
|
+
</a>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</footer>
|
|
120
|
+
}
|