Add PostgreSQL support with SQLite/Postgres database compatibility layer
- Add dbGet/dbAll helper functions for database-agnostic queries - Add toDbBool/convertBooleansForDb for boolean type conversion - Add toDbDate/getNow for timestamp type handling - Add generateId that returns UUID for Postgres, nanoid for SQLite - Update all routes to use compatibility helpers - Add normalizeEvent to return clean number types from Postgres decimal - Add formatPrice utility for consistent price display - Add legal pages admin interface with RichTextEditor - Update carousel images - Add drizzle migration files for PostgreSQL
This commit is contained in:
@@ -99,3 +99,57 @@
|
||||
text-wrap: balance;
|
||||
}
|
||||
}
|
||||
|
||||
/* TipTap Rich Text Editor Styles */
|
||||
.ProseMirror {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.ProseMirror p.is-editor-empty:first-child::before {
|
||||
@apply text-gray-400 pointer-events-none float-left h-0;
|
||||
content: attr(data-placeholder);
|
||||
}
|
||||
|
||||
.ProseMirror > * + * {
|
||||
margin-top: 0.75em;
|
||||
}
|
||||
|
||||
.ProseMirror h1 {
|
||||
@apply text-2xl font-bold mt-6 mb-3;
|
||||
}
|
||||
|
||||
.ProseMirror h2 {
|
||||
@apply text-xl font-bold mt-5 mb-2;
|
||||
}
|
||||
|
||||
.ProseMirror h3 {
|
||||
@apply text-lg font-semibold mt-4 mb-2;
|
||||
}
|
||||
|
||||
.ProseMirror ul {
|
||||
@apply list-disc list-inside my-3;
|
||||
}
|
||||
|
||||
.ProseMirror ol {
|
||||
@apply list-decimal list-inside my-3;
|
||||
}
|
||||
|
||||
.ProseMirror li {
|
||||
@apply my-1;
|
||||
}
|
||||
|
||||
.ProseMirror blockquote {
|
||||
@apply border-l-4 border-gray-300 pl-4 my-4 italic text-gray-600;
|
||||
}
|
||||
|
||||
.ProseMirror hr {
|
||||
@apply border-t border-gray-300 my-6;
|
||||
}
|
||||
|
||||
.ProseMirror strong {
|
||||
@apply font-bold;
|
||||
}
|
||||
|
||||
.ProseMirror em {
|
||||
@apply italic;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user