leoloso / graphiql-wp-block
WordPress 块,用于添加 GraphiQL 客户端,以查询 GraphQL 服务器
dev-master / 1.0.x-dev
2020-03-09 13:29 UTC
Requires
- php: ~7.1
- dev-master / 1.0.x-dev
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/graphiql-1.4.7
- dev-dependabot/npm_and_yarn/tmpl-1.0.5
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/merge-deep-3.0.3
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/codemirror-5.61.0
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-5.7.4
This package is auto-updated.
Last update: 2024-09-05 12:25:17 UTC
README
WordPress 块,用于添加 GraphiQL 客户端,以查询 GraphQL 服务器
使用方法
通过 Composer 包含到你的项目中
$ composer require leoloso/graphiql-wp-block dev-master
注意: 你的 composer.json
文件必须具有以下配置以接受最小稳定性 "dev"
(PoP 尚未发布,代码直接从 master
分支安装)
{ ... "minimum-stability": "dev", "prefer-stable": true, ... }
然后,通过运行以下命令进行初始化
(new \Leoloso\GraphiQLWPBlock\Block($graphiQLURLPath))->init();
$graphiQLURLPath
是包含块 URL 路径的字符串。从一个插件中,它可以这样计算
$graphiQLPath = 'vendor/leoloso/graphiql-wp-block'; $graphiQLURLPath = \plugins_url($graphiQLPath, __FILE__);
致谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 以获取更多信息。