mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
small style fix, switch back datasource, switch course id back
This commit is contained in:
parent
273ff18a17
commit
85bce5544d
@ -1,14 +1,14 @@
|
|||||||
datasource db {
|
|
||||||
provider = "postgresql"
|
|
||||||
url = env("DATABASE_URL")
|
|
||||||
}
|
|
||||||
|
|
||||||
// datasource db {
|
// datasource db {
|
||||||
// provider = "postgresql"
|
// provider = "postgresql"
|
||||||
// url = env("POSTGRES_PRISMA_URL")
|
// url = env("DATABASE_URL")
|
||||||
// directUrl = env("POSTGRES_URL_NON_POOLING")
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
datasource db {
|
||||||
|
provider = "postgresql"
|
||||||
|
url = env("POSTGRES_PRISMA_URL")
|
||||||
|
directUrl = env("POSTGRES_URL_NON_POOLING")
|
||||||
|
}
|
||||||
|
|
||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,8 @@ const allTasks = [
|
|||||||
status: 'PlebDevs Starter',
|
status: 'PlebDevs Starter',
|
||||||
completed: false,
|
completed: false,
|
||||||
tier: 'Plebdev',
|
tier: 'Plebdev',
|
||||||
// courseId: "f538f5c5-1a72-4804-8eb1-3f05cea64874",
|
courseId: "f538f5c5-1a72-4804-8eb1-3f05cea64874",
|
||||||
courseId: "5664e78f-c618-410d-a7cc-f3393b021fdf",
|
// courseId: "5664e78f-c618-410d-a7cc-f3393b021fdf",
|
||||||
subTasks: [
|
subTasks: [
|
||||||
{ status: 'Complete the course', completed: false },
|
{ status: 'Complete the course', completed: false },
|
||||||
]
|
]
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"content":"",
|
|
||||||
"created_at":1733852920,
|
|
||||||
"id":"b0a72bef2d167359e46f29371c6fab353364aded30dd04778e9c66b3e58def46",
|
|
||||||
"kind":30009,
|
|
||||||
"pubkey":"62bad2c804210b9ccd8b3d6b49da7333185bae17c12b6d7a8ed5865642e82b1e",
|
|
||||||
"sig":"6b481176a7208b6f8edc76de1bf90859d3fe97b8894f49ee1fd2471ccf3584fb990e7e8a2bba075e6c9867e351c092d262c3fb67997c8c983c4deaef82adba8e",
|
|
||||||
"tags":[
|
|
||||||
["d","testr42069"],
|
|
||||||
["name","mario-test"],
|
|
||||||
["description","A test for mario, it's a' me."],
|
|
||||||
["image","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","1024x1024"],
|
|
||||||
["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","512x512"],
|
|
||||||
["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","256x256"],
|
|
||||||
["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","64x64"],
|
|
||||||
["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","32x32"],
|
|
||||||
["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","16x16"]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Key points for implementation:
|
|
||||||
|
|
||||||
Use a unique identifier in the d tag that includes the course level and year
|
|
||||||
Include high-res (1024x1024) badge images and multiple thumbnail sizes
|
|
||||||
Create Badge Award events (kind 8) to assign badges to students who complete courses
|
|
||||||
Students can then choose to display badges via Profile Badges events (kind 30008)
|
|
@ -101,7 +101,7 @@ const UserSubscription = () => {
|
|||||||
<div className="w-full flex flex-row max-lap:flex-col">
|
<div className="w-full flex flex-row max-lap:flex-col">
|
||||||
{/* Left Column - 22% */}
|
{/* Left Column - 22% */}
|
||||||
<div className="w-[21%] h-full max-lap:w-full">
|
<div className="w-[21%] h-full max-lap:w-full">
|
||||||
<div className="p-4 bg-gray-800 rounded-lg">
|
<div className="p-4 bg-gray-800 rounded-lg max-lap:mb-4">
|
||||||
{/* Subscription Status Messages */}
|
{/* Subscription Status Messages */}
|
||||||
{subscribed && !user?.role?.nwc && (
|
{subscribed && !user?.role?.nwc && (
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user