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 7bdc71ce56
commit 73a2e40941
8 changed files with 229 additions and 110 deletions
+25
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,
},
});
});