add proper carousel to store page

uses the VueCarousel library to add an actual carousel to the store page
for the images. uses responsive styles
This commit is contained in:
DecDuck
2024-10-27 15:21:31 +11:00
parent 46551f9330
commit b2ab827a55
8 changed files with 229 additions and 110 deletions

25
server/plugins/setup.ts Normal file
View File

@ -0,0 +1,25 @@
import prisma from "../internal/db/database";
export default defineNitroPlugin(async (nitro) => {
const userCount = await prisma.user.count({});
if (userCount != 0) return;
// This setup runs every time the server sets up,
// so it should be in-place
// Create admin invitation
await prisma.invitation.upsert({
where: {
id: "admin",
},
create: {
id: "admin",
isAdmin: true,
},
update: {
isAdmin: true,
},
});
});