Giter VIP home page Giter VIP logo

cockpit-base's Issues

Add endpoint "folder" field

/custom-work/ could be /works/custom-work/
Add field on default data structure named "folder" or manage it directly on php endpoint configuration.

Final API format model

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": {},
   }  

}

Assign tags / catégories

  • CrĂ©er un endpoint categories/
  • CrĂ©er un sĂ©lecteur de catĂ©gorie dans chaque le template de Singleton et de Collection

Auto-generate sitemap

Sera géré cÎté front puisque nous sommes dans le cas d'un headless CMS

Add pageTypr field by default

Each content type need to be specified by field with default value.
ex: Works post as type "workPage" used by the router.

Create generic collections model & singletons model

  • Create singletons model who can be extends by each singletons class :
class Home extends SingletonsModel { }
  • Create collections model who can be extends by each collections class :
class Works extends CollectionsModel { }

Create meta field collection base

  • Create a default "Site" singleton who contains site informations :

  • meta title

  • meta description

  • meta image

  • copyright

  • tags keywords

  • mail

  • address

  • phone

  • Create meta field in storage singletons and collections as example who overwrite default site metas informations.

  • meta title

  • meta description

  • meta image

Change api data structure

{
  datas: ...
  metas: ...
  config: ...
},

to

{
  content: ...
  metas: ...
  config: ...
}

allow to target :

const datas = getCurrentPage();

return <div>{datas.content.tile}</div>

Markdown field parser

Helper permettant de parser le field markdown en HTML avant de le retourner Ă  l'API.

Request parameters

How to get request parameters from controllers ?
Get or post. Just to send an e-mail from a front-end form.
Thx, xoxo

Responsive image model

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 
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.