Giter Site home page Giter Site logo

front / cloud-blocks Goto Github PK

View Code? Open in Web Editor NEW
51.0 28.0 4.0 6.07 MB

WP plugin for Gutenberg Cloud – Your library of blocks in the cloud!

Home Page: https://gutenbergcloud.org

CSS 4.19% JavaScript 51.53% PHP 42.50% SCSS 1.78%
wordpress wordpress-plugin gutenberg gutenberg-blocks gutenberg-cloud

cloud-blocks's People

Contributors

ajotka avatar cipo28 avatar dependabot[bot] avatar foadyousefi avatar krzysiek0912 avatar perandre avatar sofiasousa 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

Watchers

 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

cloud-blocks's Issues

A few notes to version 1.1.0

Hi!
Thanks for "Local" tab in a new version.

I noticed few things:

  1. I build blocks automatically (CI) and blocks are still not installed in your panel.
  2. I have a button "go to homepage" even if I don't have any link in package.json
  3. There are always sample image even if I add a custom screenshot

zrzut ekranu z 2019-01-03 22-22-14

Wrong final path in block extraction

Something is going wrong while uploading a zip file of a block.

I've checked my wp-content/uploads/gutenberg-blocks direcory and the content of the block was uploaded, but it is in the root (not under the block folder as expected).

Add modal with block info (like themes)

Just like the standard popup for themes, we can do the same for blocks. I realize that all info can actually come from package.json (except possible the description?):

info

This is useful for promoting the author, and also get get a better view of the screenshot.

Incorrect labels on buttons

Hi!

I found two delete buttons.
I think, one of it should be Uninstall and it seems that you should check the translations after a string update.

zrzut ekranu z 2019-01-08 11-09-46

Network activation means no blocks loaded on admin page

Tested on several multisite networks and if, and only if, network activated it does not load any blocks on admin Cloud Blocks page.

If activated per site it works, so it's not multisite related, but the type of activation. If per site activated first, then network activated later, it stops working, even if site activated on all the sites.

A script is not loaded on the admin page, it seems, but no console errors.

Only difference between network activation and site activation is the order of including the main plugin file, but haven't been able to find the actual reason for this strange behaviour by studying the code.

screenshot_2019-01-10 cloud blocks nettvendt wordpress

Block assets enqueue issue

I was testing private blocks and I realized that the same editor.css file was included 3 times (the same number of my private blocks) in the page.

Database table does not exist error in Multisite if first Network Activated

If this plugin is Network Activated only (not per site) the first time, the table "cloud_blocks" is not created when a site is accessed (and this plugin loaded).

WordPress database error Table 'mydbname.myprefix_3_cloud_blocks' doesn't exist for query SELECT * FROM nytt_3_cloud_blocks made by require('wp-blog-header.php')[,...,] WP_Hook->apply_filters, CloudBlocks\Blocks\Blocks->blocks_register_styles, CloudBlocks\Blocks\Options::get_all

This because the custom table creation is only called at plugin activation.

For a plugin, that creates persistent changes like this, to be network (Multisite) ready , it must check that it's installed upon loading (at least admin_init) by an option or directly checking existence of the resource (table). If not, run the installer on that site to create the tables.

Looping through sites at activation is not recommended as it dosn't take are of new sites added later.

I suggest get_option( 'cloud_blocks_installed' ) or similar in this case.

Finding the blocks which are not activated/installed

There is a tab for installed blocks, but it is also relevant to show the blocks which are not installed. Per now the only way is to hover over blocks in the other tabs to check each block. Perhaps a new tab "Not installed" should be added?

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.