Code Monkey home page Code Monkey logo

extensions's Introduction

Contentful extensions repository

This repository provides core field editors and samples of Contentful extensions, developed using the UI Extensions SDK.

Core field editors

We're progressively opening our core field editors within this repository, allowing you to understand how each component works, and create your own extensions based on them rather than starting from scratch.

Extensions samples

Each example comes with a README file explaining how to build and use it. They're showing various types of integrations with popular frameworks or build systems like:

  • npm
  • Gulp
  • Makefile
  • Webpack
  • Babel

Please remember that most of them require you to host their dependencies on your own server which supports CORS and is available in HTTPS in order to be used outside your local environment.

rating-dropdown

This example is a basic extension meant to help you get started with custom extensions development. Uses a dropdown to change the value of a number field and makes some CMA requests.

alloy-editor

This example integrates the Alloy rich-text/HTML editor to edit “Text” fields. Great to personalize the entry editor and enable HTML editing as an alternative to Markdown.

slug-extension

This example will automatically generate its value from an entry's title field. For example typing “Hello World” into the title field will set the extensions input field to “hello-world”. It will also check the uniquness of the slug across a customizable list of content types. It highlights how the extensions SDK can be used to inspect any value of an entry and react to changes.

json-editor-ok

This example provides a JSON formatter and validator based on the Codemirror library. It should be used with fields with the type “Object”.

json-form-editor

This example integrates the JSON Editor library to display an edit form based on a predefined JSON Schema. Form input gets stored as a JSON object.

translate-extension

This example translates text from the default locale to other locales in a space using the Yandex translation API.

Screenshot of Wistia extension

This example loads videos from a project on wistia into the Contentful Web Application. A video can be easily previewed, selected and then stored as part of your content. In this example extension we store the video embed URL in Contentful so the video can be embedded easily.

youtube-id

This example extracts the video id from a valid YouTube URI. Useful as a simple way to integrate with 3rd party media services.

Screenshot of diff extension

The diff editor extension shows the diff between the draft value and the published value of a short text field.

Chessboard extension in action

This example displays a chessboard and stores the board position as a JSON object. You can drag pieces on the chessboard and the position data will be updated automatically. The extension also supports collaborative editing. If two editors open the same entry moves will be synced between them. It highlights the flexibility and potential of solutions that can be built using the UI Extensions SDK.

extensions's People

Contributors

camzilla avatar floelhoeffel avatar robhowell avatar

Watchers

 avatar

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.