webseite-version-01
No files matched your search
@@ -2,6 +2,7 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"type": "static",
|
"type": "static",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"displayName": "Webklar Preview Vorlage",
|
"displayName": "Beyt Beytak Abu Ali",
|
||||||
"subdomain": "webklar-preview-template"
|
"subdomain": "Beyt-Beytak-Abu-Ali",
|
||||||
|
"index": "www"
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
# webklar-preview-template
|
# Beyt Beytak Abu Ali
|
||||||
|
|
||||||
Vorlage fuer Kunden-Websites mit automatischer Preview unter `*.project.webklar.com`.
|
Kunden-Website mit automatischer Preview unter `*.project.webklar.com`.
|
||||||
|
|
||||||
## Preview aktivieren
|
## Preview aktivieren
|
||||||
|
|
||||||
Dieses Repo enthaelt [`.webklar-preview.json`](.webklar-preview.json). Beim Push auf den konfigurierten Branch startet der Deploy:
|
Dieses Repo enthaelt [`.webklar-preview.json`](.webklar-preview.json). Beim Push auf den konfigurierten Branch startet der Deploy:
|
||||||
|
|
||||||
- URL: `https://project.webklar.com/webhook/gitea`
|
- URL: `https://project.webklar.com/webhook/gitea`
|
||||||
- Vorschau: `https://<subdomain>.project.webklar.com`
|
- Vorschau: `https://Beyt-Beytak-Abu-Ali.project.webklar.com`
|
||||||
|
|
||||||
## Konfiguration (`.webklar-preview.json`)
|
## Konfiguration (`.webklar-preview.json`)
|
||||||
|
|
||||||
@@ -18,40 +18,14 @@ Dieses Repo enthaelt [`.webklar-preview.json`](.webklar-preview.json). Beim Push
|
|||||||
| `branch` | Branch fuer Deploy, z. B. `main` |
|
| `branch` | Branch fuer Deploy, z. B. `main` |
|
||||||
| `displayName` | Anzeigename im Kundenportal |
|
| `displayName` | Anzeigename im Kundenportal |
|
||||||
| `subdomain` | Optional; Default = Repo-Name |
|
| `subdomain` | Optional; Default = Repo-Name |
|
||||||
|
| `index` | Optional; Unterordner mit `index.html` als Webroot (z. B. `www`) — Default = Repo-Root |
|
||||||
|
|
||||||
**Keine Passwoerter** in dieser Datei.
|
**Keine Passwoerter** in dieser Datei.
|
||||||
|
|
||||||
### Beispiel fuer statische Seite
|
### Dieses Projekt
|
||||||
|
|
||||||
```json
|
- **Typ:** `static` (reine HTML/CSS/JS-Seite, kein npm-Build)
|
||||||
{
|
- **Webroot:** [`www/`](www/) — Einstieg `www/index.html`
|
||||||
"enabled": true,
|
|
||||||
"type": "static",
|
|
||||||
"branch": "main",
|
|
||||||
"displayName": "Friseur Mueller",
|
|
||||||
"subdomain": "friseur-mueller"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Beispiel fuer Vite/React (Build)
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"enabled": true,
|
|
||||||
"type": "node_build",
|
|
||||||
"branch": "main",
|
|
||||||
"displayName": "Restaurant Demo",
|
|
||||||
"subdomain": "restaurant-demo"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Neues Projekt aus dieser Vorlage
|
|
||||||
|
|
||||||
1. In Gitea: **Use this template** / Repository aus Template erstellen
|
|
||||||
2. `displayName` und `subdomain` in `.webklar-preview.json` anpassen
|
|
||||||
3. Website-Inhalt ersetzen (`index.html` oder eigenes Frontend)
|
|
||||||
4. Push auf `main` – Webhook deployt automatisch
|
|
||||||
5. Im Admin-Portal (`project.webklar.com`) Kunde dem Projekt zuweisen
|
|
||||||
|
|
||||||
## Gitea-Webhook (einmalig pro Org/Repo)
|
## Gitea-Webhook (einmalig pro Org/Repo)
|
||||||
|
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<title>Webklar Preview Vorlage</title>
|
|
||||||
<style>
|
|
||||||
:root { --bg: #0f1419; --card: #1a2332; --text: #e7ecf3; --accent: #3b82f6; }
|
|
||||||
* { box-sizing: border-box; }
|
|
||||||
body {
|
|
||||||
font-family: system-ui, -apple-system, sans-serif;
|
|
||||||
background: var(--bg);
|
|
||||||
color: var(--text);
|
|
||||||
margin: 0;
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
main {
|
|
||||||
max-width: 32rem;
|
|
||||||
background: var(--card);
|
|
||||||
border-radius: 12px;
|
|
||||||
padding: 2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
h1 { color: var(--accent); margin-top: 0; }
|
|
||||||
p { line-height: 1.6; opacity: 0.9; }
|
|
||||||
code { background: #0f172a; padding: 0.15rem 0.4rem; border-radius: 4px; }
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<main>
|
|
||||||
<h1>Webklar Preview Vorlage</h1>
|
|
||||||
<p>Dieses Repository ist als Preview-Projekt konfiguriert.</p>
|
|
||||||
<p>Nach dem Push wird die Vorschau unter<br>
|
|
||||||
<code>webklar-preview-template.project.webklar.com</code><br>
|
|
||||||
bereitgestellt (Login über <code>project.webklar.com</code>).</p>
|
|
||||||
<p>Passe <code>.webklar-preview.json</code> und diese Seite fuer dein Kundenprojekt an.</p>
|
|
||||||
</main>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 763 KiB |
|
After Width: | Height: | Size: 784 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 820 KiB |
|
After Width: | Height: | Size: 853 KiB |
|
After Width: | Height: | Size: 896 KiB |
|
After Width: | Height: | Size: 831 KiB |
|
After Width: | Height: | Size: 893 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 626 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 362 KiB |
|
After Width: | Height: | Size: 563 KiB |
|
After Width: | Height: | Size: 490 KiB |
|
After Width: | Height: | Size: 310 KiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 472 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 416 KiB |
|
After Width: | Height: | Size: 422 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 3.2 MiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 2.5 MiB |