Connected DB to events/jobs + more

- Modified handlers.js to be the same as on frm.so
- Added --trash-src to shared.css
- Modified Event and Job cards to include a trash icon for deleting
- Deleting works, it just does not smoothly re-render yet
- Adjusted visual bug on Events/Jobs where the contents of the AppWindow would overflow vertically. They now scroll and the title/search bar remain fixed.
- Refactored part of People.js into PeopleCard.js
This commit is contained in:
2026-03-15 19:45:04 -04:00
parent dde27f9b31
commit 834d5e763e
9 changed files with 160 additions and 98 deletions

View File

@@ -8,11 +8,11 @@ const handlers = {
},
async editEvent(id, updatedEvent, networkId, userId) {
return await global.db.events.add(id, updatedEvent, networkId, userId);
return await global.db.events.edit(id, updatedEvent, networkId, userId);
},
async deleteEvent(id, networkId, userId) {
return await global.db.events.add(id, networkId, userId);
return await global.db.events.delete(id, networkId, userId);
},
async getEvent(id) {
@@ -28,11 +28,11 @@ const handlers = {
},
async editJob(id, updatedJob, networkId, userId) {
return await global.db.jobs.add(id, updatedJob, networkId, userId);
return await global.db.jobs.edit(id, updatedJob, networkId, userId);
},
async deleteJob(id, networkId, userId) {
return await global.db.jobs.add(id, networkId, userId);
return await global.db.jobs.delete(id, networkId, userId);
},
async getJob(id) {

View File

@@ -27,6 +27,7 @@
--column-src: /_/icons/column2.svg;
--nodes-src: /_/icons/nodes.svg;
--forum-src: /_/icons/forum.svg;
--trash-src: /_/icons/trash.svg;
--pin-src: /_/icons/pin.svg;
--time-src: /_/icons/time.svg;
@@ -56,6 +57,7 @@
--column-src: /_/icons/column2.svg;
--nodes-src: /_/icons/nodes.svg;
--forum-src: /_/icons/forum.svg;
--trash-src: /_/icons/trash.svg;
--pin-src: /_/icons/pinlight.svg;
--time-src: /_/icons/timelight.svg;