Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit 27f2b59

Browse files
author
Julian Luneburg
committed
format all code with npm run format
1 parent 12b41dd commit 27f2b59

37 files changed

Lines changed: 1450 additions & 1021 deletions

frontend/src/components/AppContainer.tsx

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { Avatar, ConfigProvider, Dropdown, Layout, Menu, theme as antdTheme } from "utils/antd.tsx";
22
import { Outlet, useLocation, useNavigate } from "react-router-dom";
3-
import { CalendarOutlined, DashboardOutlined, LogoutOutlined, TeamOutlined, UserOutlined } from "@ant-design/icons";
3+
import {
4+
CalendarOutlined,
5+
DashboardOutlined,
6+
LogoutOutlined,
7+
TeamOutlined,
8+
UserOutlined,
9+
} from "@ant-design/icons";
410
import { useAuth } from "../contexts/AuthContext";
511
import useApiService from "../services/apiService.ts";
612
import { useState } from "react";
@@ -27,11 +33,15 @@ export const AppContainer = () => {
2733
icon: <CalendarOutlined />,
2834
label: "Events",
2935
},
30-
...(user?.roles?.find(role => role === "ADMIN") ? [{
31-
key: "/employees",
32-
icon: <TeamOutlined />,
33-
label: "Employees",
34-
}] : []),
36+
...(user?.roles?.find(role => role === "ADMIN")
37+
? [
38+
{
39+
key: "/employees",
40+
icon: <TeamOutlined />,
41+
label: "Employees",
42+
},
43+
]
44+
: []),
3545
].filter(Boolean);
3646

3747
const handleMenuClick = (key: string) => {
@@ -186,11 +196,15 @@ export const AppContainer = () => {
186196
}}
187197
placement="topLeft"
188198
>
189-
<div style={{ backgroundColor: "#00aeff", borderRadius: "50%" }}
190-
className="w-28 h-28 shadow-md flex flex-col items-center justify-center cursor-pointer hover:shadow-lg transition-all">
199+
<div
200+
style={{ backgroundColor: "#00aeff", borderRadius: "50%" }}
201+
className="w-28 h-28 shadow-md flex flex-col items-center justify-center cursor-pointer hover:shadow-lg transition-all"
202+
>
191203
<Avatar icon={<UserOutlined />} className="bg-blue-200" size="large" />
192-
<span
193-
className="mt-1 text-white text-sm font-medium text-center"> {user?.name || user?.email || "User"} </span>
204+
<span className="mt-1 text-white text-sm font-medium text-center">
205+
{" "}
206+
{user?.name || user?.email || "User"}{" "}
207+
</span>
194208
</div>
195209
</Dropdown>
196210
</div>
@@ -208,11 +222,14 @@ export const AppContainer = () => {
208222
<Outlet />
209223
</div>
210224
</Content>
211-
<Footer className="text-center border-t border-white-200" style={{ background: "transparent" }}>
225+
<Footer
226+
className="text-center border-t border-white-200"
227+
style={{ background: "transparent" }}
228+
>
212229
Event Exchange Platform ©{new Date().getFullYear()}
213230
</Footer>
214231
</Layout>
215232
</Layout>
216233
</ConfigProvider>
217234
);
218-
};
235+
};

frontend/src/components/CanvasTooltip.tsx

Lines changed: 46 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import { Tooltip } from "utils/antd.tsx";
33

44
const tooltipSteps = [
55
{
6-
text: "Select multiple items: Hold \"<b>SHIFT</b>\" and drag your mouse.",
7-
icon: '⇧',
6+
text: 'Select multiple items: Hold "<b>SHIFT</b>" and drag your mouse.',
7+
icon: "⇧",
88
},
99
{
10-
text: "Delete selected items: Press \"<b>BACKSPACE</b>\".",
11-
icon: '⌫',
10+
text: 'Delete selected items: Press "<b>BACKSPACE</b>".',
11+
icon: "⌫",
1212
},
1313
{
14-
text: "Deactivate Quick Wall: Press \"<b>ESC</b>\".",
14+
text: 'Deactivate Quick Wall: Press "<b>ESC</b>".',
1515
icon: "␛",
1616
},
1717
{
18-
text: "Duplicate selected items: Press \"<b>D</b>\".",
19-
icon: 'D',
18+
text: 'Duplicate selected items: Press "<b>D</b>".',
19+
icon: "D",
2020
},
2121
{
22-
text: "Undo/Redo: Press \"<b>CTRL + Z</b>\" / \"<b>CTRL + SHIFT + Z</b>\".",
22+
text: 'Undo/Redo: Press "<b>CTRL + Z</b>" / "<b>CTRL + SHIFT + Z</b>".',
2323
icon: "↩️",
2424
},
2525
{
@@ -34,36 +34,56 @@ export const CanvasTooltip = () => {
3434
className="ms-3 mt-2"
3535
title={
3636
<div style={{ minWidth: 500, padding: 4 }}>
37-
<div style={{ fontWeight: 600, marginBottom: 8, color: '#1677ff', display: 'flex', alignItems: 'center' }}>
37+
<div
38+
style={{
39+
fontWeight: 600,
40+
marginBottom: 8,
41+
color: "#1677ff",
42+
display: "flex",
43+
alignItems: "center",
44+
}}
45+
>
3846
<InfoCircleOutlined style={{ marginRight: 8, fontSize: 18 }} />
3947
Canvas Shortcuts
4048
</div>
4149
<ul style={{ paddingLeft: 18, margin: 0 }}>
4250
{tooltipSteps.map((step, idx) => (
43-
<li key={idx} style={{ marginBottom: 6, display: 'flex', alignItems: 'center' }}>
44-
<span style={{
45-
display: 'inline-block',
46-
width: 22,
47-
height: 22,
48-
background: '#e6f7ff',
49-
color: '#1677ff',
50-
borderRadius: '50%',
51-
textAlign: 'center',
52-
lineHeight: '22px',
53-
fontWeight: 700,
54-
marginRight: 10,
55-
fontSize: 13,
56-
border: '1px solid #91d5ff',
57-
}}>{step.icon}</span>
51+
<li key={idx} style={{ marginBottom: 6, display: "flex", alignItems: "center" }}>
52+
<span
53+
style={{
54+
display: "inline-block",
55+
width: 22,
56+
height: 22,
57+
background: "#e6f7ff",
58+
color: "#1677ff",
59+
borderRadius: "50%",
60+
textAlign: "center",
61+
lineHeight: "22px",
62+
fontWeight: 700,
63+
marginRight: 10,
64+
fontSize: 13,
65+
border: "1px solid #91d5ff",
66+
}}
67+
>
68+
{step.icon}
69+
</span>
5870
<span dangerouslySetInnerHTML={{ __html: step.text }} />
5971
</li>
6072
))}
6173
</ul>
6274
</div>
6375
}
6476
placement="rightBottom"
65-
styles={{ body: { borderRadius: 12, boxShadow: "0 4px 24px #1677ff22", width: "500px" } }}>
66-
<InfoCircleOutlined style={{ fontSize: 28, cursor: "pointer", color: "#1677ff", filter: 'drop-shadow(0 2px 6px #1677ff44)' }} />
77+
styles={{ body: { borderRadius: 12, boxShadow: "0 4px 24px #1677ff22", width: "500px" } }}
78+
>
79+
<InfoCircleOutlined
80+
style={{
81+
fontSize: 28,
82+
cursor: "pointer",
83+
color: "#1677ff",
84+
filter: "drop-shadow(0 2px 6px #1677ff44)",
85+
}}
86+
/>
6787
</Tooltip>
6888
);
6989
};

0 commit comments

Comments
 (0)