preseto/block-context

WordPress插件,根据上下文显示或隐藏Gutenberg块。

安装次数: 5

依赖者: 0

建议者: 0

安全: 0

星标: 10

关注者: 3

分支: 2

开放问题: 7

类型:wordpress-plugin

0.1.1 2019-03-03 15:13 UTC

This package is auto-updated.

Last update: 2024-09-04 18:08:05 UTC


README

一个WordPress插件,用于根据上下文显示或隐藏WordPress编辑器(Gutenberg)块。

Build Status Coverage Status

WordPress的Gutenberg Block Context插件源代码。

要求

安装

  • 在WordPress仪表板中,在“插件 → 添加新插件”下搜索“Block Context”。

  • 作为Composer依赖项安装

    composer require preseto/block-context
    

功能路线图

查看路线图

开发

  1. 克隆插件存储库

    git clone https://github.com/preseto/block-context.git
    cd block-context
    
  2. 使用Node.jsComposer设置开发环境和工具

    npm install
    
  3. 使用VagrantVirtualBox启动虚拟测试环境

    vagrant up
    

    配置后将在http://blockcontext.local可用(用户名:admin,密码:password)。

  4. 构建插件JS和CSS资源

    npm run build
    

屏幕截图

Block Context settings

致谢

Kaspars Dambis创建。