mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
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:
25
server/plugins/setup.ts
Normal file
25
server/plugins/setup.ts
Normal 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,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user