Work on ad and social

This commit is contained in:
2025-08-07 12:33:27 +02:00
parent 789ab07afb
commit b6d18c2681
25 changed files with 27839 additions and 25 deletions

View File

@@ -0,0 +1,63 @@
{
"kind": "collectionType",
"collectionName": "ads",
"info": {
"singularName": "ad",
"pluralName": "ads",
"displayName": "Ad",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"category": {
"type": "enumeration",
"enum": [
"hire",
"equipment",
"management",
"sheetmusic",
"local"
]
},
"description": {
"type": "text"
},
"validUntil": {
"type": "date"
},
"author": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"views": {
"type": "integer"
},
"applies": {
"type": "integer"
},
"location": {
"type": "component",
"repeatable": false,
"component": "address.full-address"
},
"contactname": {
"type": "string"
},
"contactemail": {
"type": "string"
},
"contactphone": {
"type": "string"
},
"featured": {
"type": "boolean"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* ad controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::ad.ad');

7
src/api/ad/routes/ad.ts Normal file
View File

@@ -0,0 +1,7 @@
/**
* ad router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::ad.ad');

View File

@@ -0,0 +1,7 @@
/**
* ad service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::ad.ad');