Skip to content

Commit 37feadc

Browse files
committed
Completely overhaul the pizza system using tickets
1 parent a10d614 commit 37feadc

37 files changed

Lines changed: 1373 additions & 1284 deletions

File tree

docker-compose.db.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- MONGO_INITDB_ROOT_PASSWORD=pass
99
ports:
1010
- '27017:27017'
11-
volumes:
11+
volumes:
1212
- db_data:/data/db.deprecated
1313
networks:
1414
- db
@@ -28,7 +28,7 @@ services:
2828
- ME_CONFIG_BASICAUTH_PASSWORD=tribes
2929
ports:
3030
- '8081:8081'
31-
volumes:
31+
volumes:
3232
- db_data:/data/db.deprecated
3333
networks:
3434
- db

src/app/admin/manage/database/page.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { EditableConfig } from "@/model/config";
1717
export default function ManagePage() {
1818
const queryClient = useQueryClient();
1919
const [message, setMessage] = useState('');
20-
const [enableChanges, setEnable] = useState(false);
20+
const [enableChanges, setEnableChanges] = useState(false);
2121
const [systemMessage, setSystemMessage] = useState('');
2222
const [configData, setConfigData] = useState('');
2323
const t = useTranslations();
@@ -100,16 +100,14 @@ export default function ManagePage() {
100100
icon={<Database className="size-10 text-blue-600"/>}
101101
/>
102102

103-
<div className="container mx-auto px-4 py-6 max-w-4xl">
104-
<div
105-
className="bg-white/80 backdrop-blur-sm border border-slate-200/60 rounded-3xl shadow-xl shadow-slate-200/50 p-8 space-y-8">
106-
107-
{/* System Controls Section */}
108-
<div className="space-y-6">
109-
<h3 className="text-lg font-semibold text-slate-800 border-b border-slate-200 pb-2">
103+
<div className="max-w-4xl mx-auto p-6">
104+
<div className="bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden">
105+
<div className="bg-gradient-to-r from-primary-50 to-primary-100 px-6 py-4 border-b border-gray-200">
106+
<h2 className="text-xl font-semibold text-gray-900">
110107
System Controls
111-
</h3>
112-
108+
</h2>
109+
</div>
110+
<div className="p-6 space-y-6">
113111
{/* Enable Changes Toggle */}
114112
<div
115113
className="flex items-center gap-4 p-4 bg-slate-50/50 rounded-2xl border border-slate-200/50">
@@ -122,7 +120,7 @@ export default function ManagePage() {
122120
id="enableChanges"
123121
name="enableChanges"
124122
checked={enableChanges}
125-
onChange={() => setEnable(!enableChanges)}
123+
onChange={() => setEnableChanges(!enableChanges)}
126124
className="peer h-5 w-5 cursor-pointer transition-all appearance-none rounded shadow hover:shadow-md border border-primary-50 checked:bg-primary-800 checked:border-primary-800"
127125
/>
128126
</div>
@@ -204,7 +202,7 @@ export default function ManagePage() {
204202
</div>
205203

206204
{/* Configuration Section */}
207-
<div className="space-y-6">
205+
<div className="p-6 space-y-6">
208206
<div className="flex items-center justify-between">
209207
<h3 className="text-lg font-semibold text-slate-800 border-b border-slate-200 pb-2 flex-1">
210208
Configuration Editor

src/app/admin/manage/pizza/EditItem.tsx

Lines changed: 227 additions & 136 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)