willybrauner / cockpit-base Goto Github PK
View Code? Open in Web Editor NEWđ Cockpit CMS base, ready to use
đ Cockpit CMS base, ready to use
Create a default "Site" singleton who contains site informations :
meta title
meta description
meta image
copyright
tags keywords
address
phone
Create meta field in storage singletons and collections as example who overwrite default site metas informations.
meta title
meta description
meta image
How to get request parameters from controllers ?
Get or post. Just to send an e-mail from a front-end form.
Thx, xoxo
On the same way than GalleryModel
Besoin d'un seul endpoint API dont l'output prendra la forme suivante :
(ce endpoint pourra ĂȘtre appelĂ© via curl cĂŽtĂ© serveur puis injectĂ© dans window
)
{
"global": {
"config": {
"analytics": "",
"languages": {}
},
"dictionnary": {},
"menus": {},
"meta": {},
"copyright": {},
},
"pages": {
"/fr": {},
"/fr/about": {},
}
}
Plugin permettant de formater chaque field image en une structure d'interface :
IImageData: {
alt: string
caption?: string
image: IImage[]
}
IImage : {
url: string
width: number
height: number
ratio: number
}
voir ce repos - https://github.com/pauloamgomes/CockpitCMS-Helpers
Each content type need to be specified by field with default value.
ex: Works post as type "workPage" used by the router.
{
datas: ...
metas: ...
config: ...
},
to
{
content: ...
metas: ...
config: ...
}
allow to target :
const datas = getCurrentPage();
return <div>{datas.content.tile}</div>
fixes #18
Créer des structures "block" field que l'on pourra réutiliser dans plusieurs types de pages
Helper permettant de parser le field markdown en HTML avant de le retourner Ă l'API.
/custom-work/
could be /works/custom-work/
Add field on default data structure named "folder" or manage it directly on php endpoint configuration.
Automatiser l'installation du back via un script.
exemple : https://github.com/pauloamgomes/CockpitCMS-React-Static/blob/master/cockpit/install.sh
class Home extends SingletonsModel { }
class Works extends CollectionsModel { }
Voir l'exemple de ce repos
Sera géré cÎté front puisque nous sommes dans le cas d'un headless CMS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â€ïž Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.