Replace left/center/right buttons with real drag-and-drop positioning
Follow-up to the previous commit per explicit feedback: three preset buttons weren't what was asked for - the ask was to grab the label in the live preview and drag it directly. Swaps app_settings.gallery_card_text_align (ENUM left/center/right, one commit old) for gallery_card_text_x (TINYINT UNSIGNED 0-100, same default position as before at 0). A discrete enum can't represent a free-dragged position, so this is a real column replacement via migration_gallery_card_drag.sql (drops the old column outright rather than keeping both, since the old one is a single commit old and unlikely to hold any real per-site customization yet). The label is now positioned with `left: X%; transform: translateX(-X%)` instead of a text-align class - the standard CSS trick for interpolating a single percentage continuously between flush-left (X=0) and flush-right (X=100, shifted back by its own width) with X=50 centering it, so dragging feels continuous rather than snapping between three fixed states. hifi-src/src/utils/galleryCardAlign.js now exports a style-computing function instead of a class lookup table. WebsiteSettings.jsx's preview label is draggable via Pointer Events (setPointerCapture on pointerdown, so tracking keeps working even if the cursor leaves the element mid-drag) with the card's own getBoundingClientRect() converting cursor position to a 0-100 percent. Kept small Links/Mittig/Rechts buttons as a secondary quick-jump alongside the drag, not instead of it. Verified against the local database directly via PHP CLI: default comes back as 0, and an arbitrary value (73) written directly to the column round-trips correctly through SiteSettingsController::show(). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
142f9adb05
commit
e9f68d054c
15 changed files with 180 additions and 120 deletions
|
|
@ -44,7 +44,7 @@ const DEFAULT_SITE_SETTINGS = {
|
|||
package_card_theme: 'graphite',
|
||||
package_card_layout: 'strip',
|
||||
package_wheel_hint_interval: 8,
|
||||
gallery_card_text_align: 'left',
|
||||
gallery_card_text_x: 0,
|
||||
};
|
||||
|
||||
// Das Impressum (und die anderen rechtlichen Pflichtseiten) müssen laut § 5 DDG
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const SiteSettingsContext = createContext({
|
|||
business_hours: null,
|
||||
hero_image_path: null,
|
||||
ga_measurement_id: null,
|
||||
gallery_card_text_align: 'left',
|
||||
gallery_card_text_x: 0,
|
||||
});
|
||||
|
||||
export const SiteSettingsProvider = SiteSettingsContext.Provider;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { api } from '../../../api/client.js';
|
||||
import ImageUploadField from '../../../components/ImageUploadField.jsx';
|
||||
import { GALLERY_CARD_ALIGN } from '../../../utils/galleryCardAlign.js';
|
||||
import { galleryCardLabelStyle } from '../../../utils/galleryCardAlign.js';
|
||||
|
||||
const DAYS = [
|
||||
{ key: 'mon', label: 'Montag' },
|
||||
|
|
@ -32,15 +32,9 @@ const emptyForm = {
|
|||
package_card_theme: 'graphite',
|
||||
package_card_layout: 'strip',
|
||||
package_wheel_hint_interval: 8,
|
||||
gallery_card_text_align: 'left',
|
||||
gallery_card_text_x: 0,
|
||||
};
|
||||
|
||||
const GALLERY_CARD_ALIGN_OPTIONS = [
|
||||
{ value: 'left', label: 'Links' },
|
||||
{ value: 'center', label: 'Mittig' },
|
||||
{ value: 'right', label: 'Rechts' },
|
||||
];
|
||||
|
||||
const PACKAGE_CARD_THEMES = [
|
||||
{ value: 'graphite', label: 'Graphite Green', description: 'Graphit über Bronze/Silber/Gold/Platin bis zur Onyx-Krönung.' },
|
||||
{ value: 'deep-blue', label: 'Deep Blue Luxury', description: 'Kühles Blau, das sich über Grün zu Gold erwärmt.' },
|
||||
|
|
@ -59,9 +53,31 @@ export default function WebsiteSettings() {
|
|||
const [busy, setBusy] = useState(false);
|
||||
const [saved, setSaved] = useState(false);
|
||||
const [error, setError] = useState('');
|
||||
// Fuer die Live-Vorschau der Bildergalerie-Kachel-Ausrichtung - eine echte, bereits
|
||||
// Fuer die Live-Vorschau der Bildergalerie-Kachel-Position - eine echte, bereits
|
||||
// hochgeladene Marke (falls vorhanden), damit die Vorschau zeigt, wie es wirklich aussieht.
|
||||
const [previewBrand, setPreviewBrand] = useState(null);
|
||||
const galleryPreviewRef = useRef(null);
|
||||
const [galleryDragging, setGalleryDragging] = useState(false);
|
||||
|
||||
const galleryXFromPointer = (clientX) => {
|
||||
const rect = galleryPreviewRef.current.getBoundingClientRect();
|
||||
const pct = ((clientX - rect.left) / rect.width) * 100;
|
||||
return Math.max(0, Math.min(100, Math.round(pct)));
|
||||
};
|
||||
const handleGalleryDragStart = (e) => {
|
||||
e.preventDefault();
|
||||
e.currentTarget.setPointerCapture(e.pointerId);
|
||||
setGalleryDragging(true);
|
||||
update('gallery_card_text_x', galleryXFromPointer(e.clientX));
|
||||
};
|
||||
const handleGalleryDragMove = (e) => {
|
||||
if (!galleryDragging) return;
|
||||
update('gallery_card_text_x', galleryXFromPointer(e.clientX));
|
||||
};
|
||||
const handleGalleryDragEnd = (e) => {
|
||||
setGalleryDragging(false);
|
||||
e.currentTarget.releasePointerCapture(e.pointerId);
|
||||
};
|
||||
|
||||
const [gaPropertyId, setGaPropertyId] = useState('');
|
||||
const [gaServiceAccountJson, setGaServiceAccountJson] = useState('');
|
||||
|
|
@ -98,7 +114,7 @@ export default function WebsiteSettings() {
|
|||
package_card_theme: res.package_card_theme || 'graphite',
|
||||
package_card_layout: res.package_card_layout || 'strip',
|
||||
package_wheel_hint_interval: res.package_wheel_hint_interval || 8,
|
||||
gallery_card_text_align: res.gallery_card_text_align || 'left',
|
||||
gallery_card_text_x: res.gallery_card_text_x ?? 0,
|
||||
})
|
||||
)
|
||||
.finally(() => setLoading(false));
|
||||
|
|
@ -437,38 +453,58 @@ export default function WebsiteSettings() {
|
|||
Ausrichtung des Marken-/Projekt-Namens auf den Kacheln der Bildergalerie-Übersicht und der
|
||||
Marken-Detailseite.
|
||||
</p>
|
||||
<div className="grid gap-4 sm:grid-cols-[auto_1fr] sm:items-start">
|
||||
<div className="w-40 shrink-0">
|
||||
<div className="relative aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm">
|
||||
<div className="grid gap-4 sm:grid-cols-[16rem_1fr] sm:items-start">
|
||||
<div>
|
||||
<div
|
||||
ref={galleryPreviewRef}
|
||||
className="relative aspect-[4/3] select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm"
|
||||
>
|
||||
{previewBrand ? (
|
||||
<img src={previewBrand.cover_image_path} alt="" className="h-full w-full object-cover" />
|
||||
<img
|
||||
src={previewBrand.cover_image_path}
|
||||
alt=""
|
||||
draggable={false}
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
) : (
|
||||
<div className="h-full w-full bg-gradient-to-br from-neutral-700 to-neutral-900" />
|
||||
)}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent" />
|
||||
<span
|
||||
className={`absolute inset-x-0 bottom-0 p-3 text-sm font-extrabold text-white ${GALLERY_CARD_ALIGN[form.gallery_card_text_align] || GALLERY_CARD_ALIGN.left}`}
|
||||
onPointerDown={handleGalleryDragStart}
|
||||
onPointerMove={handleGalleryDragMove}
|
||||
onPointerUp={handleGalleryDragEnd}
|
||||
style={{ ...galleryCardLabelStyle(form.gallery_card_text_x), touchAction: 'none' }}
|
||||
className={`absolute bottom-0 select-none whitespace-nowrap rounded p-3 text-sm font-extrabold text-white transition-colors ${
|
||||
galleryDragging ? 'cursor-grabbing bg-white/10 ring-2 ring-brand-400' : 'cursor-grab hover:bg-white/10'
|
||||
}`}
|
||||
>
|
||||
{previewBrand ? previewBrand.name : 'Beispiel-Marke'}
|
||||
</span>
|
||||
</div>
|
||||
<p className="mt-1.5 text-center text-xs text-neutral-400">Live-Vorschau</p>
|
||||
<p className="mt-1.5 text-center text-xs text-neutral-400">Namen zum Verschieben ziehen</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-2 sm:pt-1">
|
||||
{GALLERY_CARD_ALIGN_OPTIONS.map((opt) => (
|
||||
<button
|
||||
key={opt.value}
|
||||
type="button"
|
||||
onClick={() => update('gallery_card_text_align', opt.value)}
|
||||
className={`rounded-md border px-4 py-2 text-sm font-medium transition ${
|
||||
form.gallery_card_text_align === opt.value
|
||||
? 'border-brand-500 bg-brand-500 text-white'
|
||||
: 'border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800'
|
||||
}`}
|
||||
>
|
||||
{opt.label}
|
||||
</button>
|
||||
))}
|
||||
<div className="flex flex-col gap-3 sm:pt-1">
|
||||
<p className="text-sm text-neutral-500 dark:text-neutral-400">
|
||||
Position:{' '}
|
||||
<span className="font-mono font-semibold text-neutral-700 dark:text-neutral-200">
|
||||
{form.gallery_card_text_x}%
|
||||
</span>
|
||||
</p>
|
||||
<div>
|
||||
<p className="mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400">Schnellauswahl</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<button type="button" onClick={() => update('gallery_card_text_x', 0)} className="rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800">
|
||||
Links
|
||||
</button>
|
||||
<button type="button" onClick={() => update('gallery_card_text_x', 50)} className="rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800">
|
||||
Mittig
|
||||
</button>
|
||||
<button type="button" onClick={() => update('gallery_card_text_x', 100)} className="rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800">
|
||||
Rechts
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ import { api } from '../../api/client.js';
|
|||
import usePageMeta from '../../hooks/usePageMeta.js';
|
||||
import { useLanguage } from '../../context/LanguageContext.jsx';
|
||||
import { useSiteSettings } from '../../context/SiteSettingsContext.jsx';
|
||||
import { GALLERY_CARD_ALIGN } from '../../utils/galleryCardAlign.js';
|
||||
import { galleryCardLabelStyle } from '../../utils/galleryCardAlign.js';
|
||||
|
||||
export default function GalleryBrandPage() {
|
||||
const { brandSlug } = useParams();
|
||||
const [data, setData] = useState(null);
|
||||
const [error, setError] = useState('');
|
||||
const { t } = useLanguage();
|
||||
const { gallery_card_text_align: cardAlign } = useSiteSettings();
|
||||
const { gallery_card_text_x: cardTextX } = useSiteSettings();
|
||||
|
||||
useEffect(() => {
|
||||
api.get(`/gallery-brands/${brandSlug}/projects`).then(setData).catch((e) => setError(e.message));
|
||||
|
|
@ -61,7 +61,10 @@ export default function GalleryBrandPage() {
|
|||
<div className="flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800" />
|
||||
)}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95" />
|
||||
<span className={`absolute inset-x-0 bottom-0 p-4 text-lg font-extrabold text-white ${GALLERY_CARD_ALIGN[cardAlign] || GALLERY_CARD_ALIGN.left}`}>
|
||||
<span
|
||||
className="absolute bottom-0 whitespace-nowrap p-4 text-lg font-extrabold text-white"
|
||||
style={galleryCardLabelStyle(cardTextX)}
|
||||
>
|
||||
{project.name}
|
||||
</span>
|
||||
</Link>
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@ import { api } from '../../api/client.js';
|
|||
import usePageMeta from '../../hooks/usePageMeta.js';
|
||||
import { useLanguage } from '../../context/LanguageContext.jsx';
|
||||
import { useSiteSettings } from '../../context/SiteSettingsContext.jsx';
|
||||
import { GALLERY_CARD_ALIGN } from '../../utils/galleryCardAlign.js';
|
||||
import { galleryCardLabelStyle } from '../../utils/galleryCardAlign.js';
|
||||
|
||||
export default function GalleryOverview() {
|
||||
const [brands, setBrands] = useState(null);
|
||||
const [error, setError] = useState('');
|
||||
const { t } = useLanguage();
|
||||
const { gallery_card_text_align: cardAlign } = useSiteSettings();
|
||||
const { gallery_card_text_x: cardTextX } = useSiteSettings();
|
||||
|
||||
usePageMeta({
|
||||
title: t('galleryOverview.metaTitle'),
|
||||
|
|
@ -52,7 +52,10 @@ export default function GalleryOverview() {
|
|||
<div className="flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800" />
|
||||
)}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95" />
|
||||
<span className={`absolute inset-x-0 bottom-0 p-4 text-lg font-extrabold text-white ${GALLERY_CARD_ALIGN[cardAlign] || GALLERY_CARD_ALIGN.left}`}>
|
||||
<span
|
||||
className="absolute bottom-0 whitespace-nowrap p-4 text-lg font-extrabold text-white"
|
||||
style={galleryCardLabelStyle(cardTextX)}
|
||||
>
|
||||
{brand.name}
|
||||
</span>
|
||||
</Link>
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
// Ausrichtung des Marken-/Projekt-Namens auf den Bildergalerie-Kacheln
|
||||
// (app_settings.gallery_card_text_align, siehe SiteSettingsController.php), genutzt von
|
||||
// GalleryOverview.jsx, GalleryBrandPage.jsx und der Live-Vorschau in WebsiteSettings.jsx.
|
||||
// Feste Lookup-Tabelle statt eines dynamisch zusammengesetzten `text-${align}`-Strings -
|
||||
// Tailwinds Build-Zeit-Scanner braucht die vollstaendigen Klassennamen woertlich im
|
||||
// Quellcode, sonst werden sie aus dem Production-CSS herausgefiltert.
|
||||
// Der Namens-Schriftzug ist ein absolut positioniertes Element mit inset-x-0 (volle
|
||||
// Breite ueber left/right:0), eine reine text-align-Klasse reicht darum - kein Flex-
|
||||
// Container involviert.
|
||||
export const GALLERY_CARD_ALIGN = {
|
||||
left: 'text-left',
|
||||
center: 'text-center',
|
||||
right: 'text-right',
|
||||
};
|
||||
// Horizontale Position des Marken-/Projekt-Namens auf den Bildergalerie-Kacheln
|
||||
// (app_settings.gallery_card_text_x, 0-100, siehe SiteSettingsController.php) - per Drag &
|
||||
// Drop in der Live-Vorschau gesetzt (WebsiteSettings.jsx), genutzt von GalleryOverview.jsx
|
||||
// und GalleryBrandPage.jsx.
|
||||
//
|
||||
// left: X% + transform: translateX(-X%) ist der Standard-CSS-Trick, um einen einzigen
|
||||
// Prozentwert stufenlos zwischen linksbuendig (X=0, Element faengt bei 0% an) und
|
||||
// rechtsbuendig (X=100, Element endet bei 100%, da es um seine volle Breite zurueckgeschoben
|
||||
// wird) zu interpolieren - bei X=50 landet die Textmitte in der Kachelmitte. Deshalb eine
|
||||
// echte Inline-Style-Berechnung statt einer festen Tailwind-Klasse (anders als z.B. bei den
|
||||
// Home.jsx-Abschnitten, wo drei feste Werte genuegen).
|
||||
export function galleryCardLabelStyle(xPercent) {
|
||||
const x = Math.max(0, Math.min(100, Number(xPercent) || 0));
|
||||
return {
|
||||
left: `${x}%`,
|
||||
transform: `translateX(-${x}%)`,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
15
hifi/api/database/migration_gallery_card_drag.sql
Normal file
15
hifi/api/database/migration_gallery_card_drag.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
USE hifi_shop;
|
||||
|
||||
-- Ersetzt die feste links/mittig/rechts-Auswahl (gallery_card_text_align, siehe
|
||||
-- migration_gallery_card_align.sql) durch eine frei per Drag & Drop einstellbare
|
||||
-- horizontale Position (0 = ganz links, 50 = mittig, 100 = ganz rechts). Die alte
|
||||
-- Spalte war erst wenige Commits alt und hat auf einer echten Seite vermutlich noch
|
||||
-- keinen individuell gesetzten Wert - deshalb direkt ersetzt statt beide parallel zu pflegen.
|
||||
-- Hinweis: Auf der Live-Seite reicht stattdessen ein Klick auf "Datenbankstruktur aktualisieren"
|
||||
-- unter Admin-Panel -> Einstellungen -> Datenbank (legt die neue Spalte an, lässt die alte
|
||||
-- aber automatisch/additiv stehen - siehe DEPLOY.md/SchemaController: der Button loescht nie
|
||||
-- eine bestehende Spalte, nur die manuelle .sql-Route hier tut das explizit).
|
||||
|
||||
ALTER TABLE app_settings
|
||||
DROP COLUMN IF EXISTS gallery_card_text_align,
|
||||
ADD COLUMN IF NOT EXISTS gallery_card_text_x TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER package_wheel_hint_interval;
|
||||
|
|
@ -36,7 +36,7 @@ CREATE TABLE app_settings (
|
|||
package_card_theme VARCHAR(30) NOT NULL DEFAULT 'graphite',
|
||||
package_card_layout VARCHAR(20) NOT NULL DEFAULT 'strip',
|
||||
package_wheel_hint_interval INT NOT NULL DEFAULT 8,
|
||||
gallery_card_text_align ENUM('left','center','right') NOT NULL DEFAULT 'left',
|
||||
gallery_card_text_x TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
mail_host VARCHAR(255) NULL,
|
||||
mail_port INT NULL,
|
||||
mail_username VARCHAR(255) NULL,
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class SettingsController
|
|||
'logo_path', 'logo_dark_path', 'business_hours',
|
||||
'hero_image_path',
|
||||
'ga_measurement_id', 'ga_property_id', 'google_place_id',
|
||||
'package_card_theme', 'package_card_layout', 'package_wheel_hint_interval', 'gallery_card_text_align',
|
||||
'package_card_theme', 'package_card_layout', 'package_wheel_hint_interval', 'gallery_card_text_x',
|
||||
'mail_host', 'mail_port', 'mail_username', 'mail_encryption',
|
||||
'mail_from_email', 'mail_from_name', 'mail_notify_email',
|
||||
'mail_customer_subject', 'mail_customer_body', 'mail_owner_subject', 'mail_owner_body',
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class SiteSettingsController
|
|||
'package_card_theme' => 'graphite',
|
||||
'package_card_layout' => 'strip',
|
||||
'package_wheel_hint_interval' => 8,
|
||||
'gallery_card_text_align' => 'left',
|
||||
'gallery_card_text_x' => 0,
|
||||
];
|
||||
|
||||
// Entspricht dem, was zuvor hart in Footer.jsx (isOpenNow() + die drei separaten
|
||||
|
|
@ -42,9 +42,7 @@ class SiteSettingsController
|
|||
|
||||
private const APP_SETTINGS_COLUMNS = 'phone, whatsapp, contact_email, address_street, address_zip, address_city,
|
||||
logo_path, logo_dark_path, business_hours, hero_image_path, ga_measurement_id,
|
||||
package_card_theme, package_card_layout, package_wheel_hint_interval, gallery_card_text_align';
|
||||
|
||||
private const TEXT_ALIGNS = ['left', 'center', 'right'];
|
||||
package_card_theme, package_card_layout, package_wheel_hint_interval, gallery_card_text_x';
|
||||
|
||||
public static function show(): void
|
||||
{
|
||||
|
|
@ -92,10 +90,11 @@ class SiteSettingsController
|
|||
$wheelHintInterval = (int) ($body['package_wheel_hint_interval'] ?? 8);
|
||||
$wheelHintInterval = max(2, min(120, $wheelHintInterval ?: 8));
|
||||
|
||||
$galleryCardTextAlign = trim($body['gallery_card_text_align'] ?? '') ?: 'left';
|
||||
if (!in_array($galleryCardTextAlign, self::TEXT_ALIGNS, true)) {
|
||||
$galleryCardTextAlign = 'left';
|
||||
}
|
||||
// Horizontale Position des Marken-/Projekt-Namens auf den Bildergalerie-Kacheln in
|
||||
// Prozent (0 = ganz links, 100 = ganz rechts), per Drag & Drop in der Live-Vorschau
|
||||
// gesetzt (siehe WebsiteSettings.jsx) - auf den gueltigen Bereich geklammert, damit ein
|
||||
// fehlerhafter Client-Wert nicht ausserhalb der Kachel landet.
|
||||
$galleryCardTextX = max(0, min(100, (int) ($body['gallery_card_text_x'] ?? 0)));
|
||||
|
||||
$newHeroImagePath = trim($body['hero_image_path'] ?? '') ?: null;
|
||||
$newLogoPath = trim($body['logo_path'] ?? '') ?: null;
|
||||
|
|
@ -126,7 +125,7 @@ class SiteSettingsController
|
|||
'UPDATE app_settings SET phone = ?, whatsapp = ?, contact_email = ?, address_street = ?, address_zip = ?,
|
||||
address_city = ?, logo_path = ?, logo_dark_path = ?, business_hours = ?, hero_image_path = ?,
|
||||
ga_measurement_id = ?, package_card_theme = ?, package_card_layout = ?, package_wheel_hint_interval = ?,
|
||||
gallery_card_text_align = ?
|
||||
gallery_card_text_x = ?
|
||||
WHERE id = 1'
|
||||
);
|
||||
$stmt->execute([
|
||||
|
|
@ -144,7 +143,7 @@ class SiteSettingsController
|
|||
$packageCardTheme,
|
||||
$packageCardLayout,
|
||||
$wheelHintInterval,
|
||||
$galleryCardTextAlign,
|
||||
$galleryCardTextX,
|
||||
]);
|
||||
|
||||
Uploads::deleteIfOrphaned($old['hero_image_path'] ?? null, $newHeroImagePath);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class Schema
|
|||
package_card_theme VARCHAR(30) NOT NULL DEFAULT 'graphite',
|
||||
package_card_layout VARCHAR(20) NOT NULL DEFAULT 'strip',
|
||||
package_wheel_hint_interval INT NOT NULL DEFAULT 8,
|
||||
gallery_card_text_align ENUM('left','center','right') NOT NULL DEFAULT 'left',
|
||||
gallery_card_text_x TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
mail_host VARCHAR(255) NULL,
|
||||
mail_port INT NULL,
|
||||
mail_username VARCHAR(255) NULL,
|
||||
|
|
@ -345,7 +345,7 @@ class Schema
|
|||
'package_card_theme' => "VARCHAR(30) NOT NULL DEFAULT 'graphite'",
|
||||
'package_card_layout' => "VARCHAR(20) NOT NULL DEFAULT 'strip'",
|
||||
'package_wheel_hint_interval' => 'INT NOT NULL DEFAULT 8',
|
||||
'gallery_card_text_align' => "ENUM('left','center','right') NOT NULL DEFAULT 'left'",
|
||||
'gallery_card_text_x' => 'TINYINT UNSIGNED NOT NULL DEFAULT 0',
|
||||
'mail_host' => 'VARCHAR(255) NULL',
|
||||
'mail_port' => 'INT NULL',
|
||||
'mail_username' => 'VARCHAR(255) NULL',
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1
hifi/assets/index-CxsdIqOv.css
Normal file
1
hifi/assets/index-CxsdIqOv.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -43,9 +43,9 @@
|
|||
"sameAs": ["https://www.youtube.com/@hifiplanet2812"]
|
||||
}
|
||||
</script>
|
||||
<script type="module" crossorigin src="/assets/index-D_IEWnB1.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Ddoucb3i.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/lucide-icons-Cg2IxtAO.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BN9M3ekV.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CxsdIqOv.css">
|
||||
</head>
|
||||
<body class="bg-white text-slate-900 dark:bg-slate-950 dark:text-slate-100">
|
||||
<div id="root"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue