Coder Social home page Coder Social logo

wp-block-components's Introduction

Hi there ๐Ÿ‘‹๐Ÿป ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

I'm Daniel, the Co-Founder and Lead Developer at FireTree Design, LLC, and Systems Administrator at Scientific Cutting Tools, Inc.

I built my first website in 1998 and I've been working in the IT field for over 25 years. I write WordPress plugins and love working with JavaScript.

You can find me on the web ๐ŸŒŽ:

wp-block-components's People

Contributors

danielmilner avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wp-block-components's Issues

Add support for all core blocks

The plan is to support all core Gutenberg blocks.

  • CoreCodeBlock
  • CoreHeadingBlock
  • CoreParagraphBlock
  • CoreImageBlock
  • CoreListBlock
  • CoreGalleryBlock
  • CoreQuoteBlock
  • CoreShortcodeBlock
  • CoreArchivesBlock
  • CoreAudioBlock
  • CoreButtonBlock
  • CoreCalendarBlock
  • CoreCategoriesBlock
  • CoreColumnsBlock
  • CoreColumnBlock
  • CoreCoverBlock
  • CoreEmbedBlock
  • CoreEmbedTwitterBlock
  • CoreEmbedYoutubeBlock
  • CoreEmbedFacebookBlock
  • CoreEmbedInstagramBlock
  • CoreEmbedWordpressBlock
  • CoreEmbedSoundcloudBlock
  • CoreEmbedSpotifyBlock
  • CoreEmbedFlickrBlock
  • CoreEmbedVimeoBlock
  • CoreEmbedAnimotoBlock
  • CoreEmbedCloudupBlock
  • CoreEmbedCollegehumorBlock
  • CoreEmbedCrowdsignalBlock
  • CoreEmbedDailymotionBlock
  • CoreEmbedHuluBlock
  • CoreEmbedImgurBlock
  • CoreEmbedIssuuBlock
  • CoreEmbedKickstarterBlock
  • CoreEmbedMeetupComBlock
  • CoreEmbedMixcloudBlock
  • CoreEmbedPolldaddyBlock
  • CoreEmbedRedditBlock
  • CoreEmbedReverbnationBlock
  • CoreEmbedScreencastBlock
  • CoreEmbedScribdBlock
  • CoreEmbedSlideshareBlock
  • CoreEmbedSmugmugBlock
  • CoreEmbedSpeakerBlock
  • CoreEmbedSpeakerDeckBlock
  • CoreEmbedTedBlock
  • CoreEmbedTumblrBlock
  • CoreEmbedVideopressBlock
  • CoreEmbedWordpressTvBlock
  • CoreEmbedAmazonKindleBlock
  • CoreFileBlock
  • CoreFreeformBlock
  • CoreHtmlBlock
  • CoreMediaTextBlock
  • CoreLatestCommentsBlock
  • CoreLatestPostsBlock
  • CoreMissingBlock
  • CoreMoreBlock
  • CoreNextpageBlock
  • CorePreformattedBlock
  • CorePullquoteBlock
  • CoreRssBlock
  • CoreSearchBlock
  • CoreSeparatorBlock
  • CoreSpacerBlock
  • CoreSubheadBlock
  • CoreTableBlock
  • CoreTagCloudBlock
  • CoreTemplateBlock
  • CoreTextColumnsBlock
  • CoreVerseBlock
  • CoreVideoBlock

cant parse the block... the result is not rendered

{blocks.map((block, index) => {
if ('WPGraphQL_CoreCodeBlock' === block.__typename) {
block.attributes.content = block.attributes.codeContent
delete block.attributes.codeContent
}
return

it return the following ...
Screenshot from 2020-03-16 16-50-35

PropTypes are incorrect

The following components have invalid PropTypes:

  • CoreHeadingBlock - level should be a number.
  • CoreParagraphBlock - dropCap should be a boolean

Create a CoreBlock component

I'm thinking about creating a CoreBlock component that automatically returns the appropriate component based on the __typename passed from GraphQL. This would only require you to import one component instead of needing to know each component ahead of time.

The individual components would still be able to be imported as needed.

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.