Coder Social home page Coder Social logo

getblocklab / block-lab Goto Github PK

View Code? Open in Web Editor NEW
416.0 18.0 62.0 12.85 MB

A WordPress Admin interface and a simple templating system for building custom Gutenberg blocks.

Home Page: https://getblocklab.com

License: GNU General Public License v2.0

Makefile 0.17% PHP 69.32% JavaScript 23.09% Shell 0.87% CSS 4.40% SCSS 2.14%
wordpress gutenberg blocks custom

block-lab's People

Contributors

byronkeet avatar dependabot-preview[bot] avatar jasperspeicher avatar jeffpaul avatar kienstra avatar kopepasah avatar lukecarbis avatar mukeshpanchal27 avatar pedro-mendonca avatar pharmarin avatar phpbits avatar rheinardkorf avatar robstino avatar rohan2388 avatar ronaldhuereca avatar shwethakpradeep avatar violy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

block-lab's Issues

Export block as stand-alone plugin.

It would be nice if there was a way to export a block as a standalone plugin with minimal scaffolding required.

It would still need to maintain the current acb_locate_template() mechanism and template loader.

Can't use Number in Block Slug

I noticed that although I could successfully save a custom block with a number character in the slug, as well as set up the template file, the block was not accessible in the GB editor. After changing the slug (removing number), and updating the template to match I was able to access it in the editor.

Textarea/Text max length defaults to zero.

When not providing a value to the max length property it defaults to zero and you can't enter characters. This value needs to not be written to the json value, or use the HTML default of 524288.

Block preview

In the editor, once the fields have been completed, a preview of the block is show.

This should include the ability to return to "edit" mode to change the fields again.

Lost our Dashicon Icons

With the update to the icons in GB (Material icons), it seems we've lost access, in the current format, to dashicons.

Improve plugin packaging scripts.

The current scripts are incredibly basic and has been used as a quick way to clean up the plugin for distribution.

We need to consider whether gulp is the right tool for the job, what we ideally would like automated (e.g. readme.txt with auto changelog), etc.

"Post" control type

A searchable list of posts, from a given post type.

  • Post type
  • Post
  • Taxonomy filter

Error when publishing a CPT

When tryinh to publish a CPT from another plugin, I get the WordPress admin error
The link you have followed has expired
When I disable this plugin, I am able to publish as normal.
Have tested on a few environments and observed the same issue.

PHP Notices when fields not provided.

Steps:

  • Create new custom block.
  • Provide title, description, slug.
  • DON'T add any fields.
  • Publish the block.

Result:

Notice: Undefined index: fields 

Need to check for empty value.

"Select" control type

This should introduce the concept of control options for custom fields. Potentially, abstract fields out further to have a field type interface / abstract, with each field type (text, texture, select) implemented as its own class.

  • Choices

Add Block Icon to Properties panel

The user should be able to choose from the Dashicons library. The options should be displayed visually, not as text from a dropdown menu.

Only dashicons for now.

Frontend API

acb_field( $name, $echo ) and acb_value( $name ).

Fatal Error on Plugin Activation

Plugin could not be activated because it triggered a fatal error.

Fatal error: Uncaught Error: Class 'AdvancedCustomBlocks\View\Admin_Menu' not found in /var/www/vhosts/acb.number11.co/httpdocs/wp-content/plugins/advanced-custom-blocks/advanced-custom-blocks.php:95 Stack trace: #0 /var/www/vhosts/acb.number11.co/httpdocs/wp-admin/includes/plugin.php(1897): include() #1 /var/www/vhosts/acb.number11.co/httpdocs/wp-admin/plugins.php(178): plugin_sandbox_scrape('advanced-custom...') #2 {main} thrown in /var/www/vhosts/acb.number11.co/httpdocs/wp-content/plugins/advanced-custom-blocks/advanced-custom-blocks.php on line 95

  • This is on a new WP install.
  • Plugin is v0.1 from the wp.org repo
  • Default theme
  • Not other plugins active
  • PHP 7.1.20
  • Has Let's Encrypt SSL Cert
  • https://acb.number11.co/
  • Apache

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.