Git Product home page Git Product logo

Comments (5)

bobbingwide avatar bobbingwide commented on September 24, 2024

In 2.3 the GitHub block produces a deprecated message in the console

wp.blocks.InspectorControls.TextControl is deprecated and will be removed from Gutenberg in 2.4. Please use wp.components.TextControl instead.

The code will need to be changed as indicated.

from oik-blocks.

bobbingwide avatar bobbingwide commented on September 24, 2024

While updating the block for Gutenberg v4.0.0 compatibility make minor improvements that will eventually allow the block to support the parameters already supported by the shortcode.
i.e. Add defaults for owner, repo and type.
These could then be displayed and edited in the Settings area, with defaults potentially being sourced from post meta data / options. See #16.

To support multiple issues we should extend the shortcode logic.

Note: The logic to embed the GitHub issue could use logic like WebDevStudios github-gist block.

from oik-blocks.

bobbingwide avatar bobbingwide commented on September 24, 2024

See the wp-github-oembed project for a WordPress plugin that uses GitHub's oembed API.
e.g. This issue is returned in JSON using...
https://api.github.com/repos/bobbingwide/oik-blocks/issues/4

from oik-blocks.

bobbingwide avatar bobbingwide commented on September 24, 2024

make minor improvements that will eventually allow the block to support the parameters already supported by the shortcode.
i.e. Add defaults for owner, repo and type.

As part of an investigation to implement internationalisation I've added Owner and Repo fields to the block.

from oik-blocks.

bobbingwide avatar bobbingwide commented on September 24, 2024

The GitHub block is now in oik-bob-bing-wide.
See bobbingwide/oik-bob-bing-wide#25

from oik-blocks.

Related Issues (20)

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.