Add light/dark mode support with CSS variables
This commit is contained in:
parent
970b185151
commit
fb02688166
25 changed files with 1293 additions and 1177 deletions
|
|
@ -64,12 +64,16 @@ export default defineEventHandler(async (event) => {
|
|||
|
||||
// Handle offering and lookingFor separately (nested objects)
|
||||
if (body.offering !== undefined) {
|
||||
updateData["offering.text"] = body.offering.text || "";
|
||||
updateData["offering.tags"] = body.offering.tags || [];
|
||||
updateData.offering = {
|
||||
text: body.offering.text || "",
|
||||
tags: body.offering.tags || [],
|
||||
};
|
||||
}
|
||||
if (body.lookingFor !== undefined) {
|
||||
updateData["lookingFor.text"] = body.lookingFor.text || "";
|
||||
updateData["lookingFor.tags"] = body.lookingFor.tags || [];
|
||||
updateData.lookingFor = {
|
||||
text: body.lookingFor.text || "",
|
||||
tags: body.lookingFor.tags || [],
|
||||
};
|
||||
}
|
||||
|
||||
// Handle privacy settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue