Skip to content

Commit 9c44cc9

Browse files
authored
Merge pull request #60 from wp-graphql/issue-31-custom-buttons
Allow registration of custom buttons
2 parents 591c1ea + aa06897 commit 9c44cc9

25 files changed

+23286
-22458
lines changed
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
name: WordPress Coding Standards
22

33
on:
4-
push:
5-
branches:
6-
- develop
7-
- main
8-
pull_request:
9-
branches:
10-
- develop
11-
- main
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
pull_request:
9+
branches:
10+
- develop
11+
- main
1212

1313
jobs:
14-
run:
15-
runs-on: ubuntu-latest
16-
name: PHPCS
17-
strategy:
18-
matrix:
19-
php: [ 8.1 ]
14+
run:
15+
runs-on: ubuntu-latest
16+
name: PHPCS
17+
strategy:
18+
matrix:
19+
php: [8.1]
2020

21-
steps:
22-
- name: Cancel previous runs of this workflow (pull requests only)
23-
if: ${{ github.event_name == 'pull_request' }}
24-
uses: styfle/[email protected]
25-
with:
26-
access_token: ${{ github.token }}
21+
steps:
22+
- name: Cancel previous runs of this workflow (pull requests only)
23+
if: ${{ github.event_name == 'pull_request' }}
24+
uses: styfle/[email protected]
25+
with:
26+
access_token: ${{ github.token }}
2727

28-
- name: Checkout
29-
uses: actions/checkout@v3
28+
- name: Checkout
29+
uses: actions/checkout@v3
3030

31-
- name: Setup PHP
32-
uses: shivammathur/setup-php@v2
33-
with:
34-
php-version: ${{ matrix.php }}
35-
tools: composer:v2
36-
coverage: none
31+
- name: Setup PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: ${{ matrix.php }}
35+
tools: composer:v2
36+
coverage: none
3737

38-
- name: Install dependencies
39-
uses: ramsey/composer-install@v2
40-
with:
41-
composer-options: "--no-progress"
38+
- name: Install dependencies
39+
uses: ramsey/composer-install@v2
40+
with:
41+
composer-options: '--no-progress'
4242

43-
- name: Run PHPCS
44-
run: composer run-script check-cs
43+
- name: Run PHPCS
44+
run: composer run-script check-cs

ACTIONS_AND_FILTERS.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
-> [Original documentation](https://www.wpgraphql.com/docs/customizing-wpgraphiql)
44

5-
_legend_ 🎉 = new
5+
_legend_ 🎉 = new functionality
66

77
## PHP Actions
88

@@ -21,4 +21,11 @@ _legend_ 🎉 = new
2121

2222
## JavaScript Filters
2323

24-
...
24+
- `wpgraphqlide_toolbar_buttons` ([graphiql_toolbar_buttons](https://www.wpgraphql.com/docs/customizing-wpgraphiql#graphiql_toolbar_buttons))
25+
26+
## Legacy Hooks
27+
28+
Not all actions/filters were ported over from the legacy WPGraphQL IDE.
29+
30+
- `graphiql_toolbar_before_buttons`
31+
- `graphiql_toolbar_after_buttons`

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing
2+
3+
## Commands
4+
5+
### development
6+
7+
```sh
8+
npm start
9+
```
10+
11+
### production
12+
13+
```sh
14+
npm run build
15+
```

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,9 @@ When this plugin is active, a new link "GraphQL IDE" will appear to the right of
1616

1717
GraphiQL IDE has intentionally been updated to read "GraphQL IDE", which feels more inline with the colloquial reference to the editor when inside of WordPress, and simply "WPGraphQL IDE" when not in a WordPress context.
1818

19-
## Development
19+
## Contributing
2020

21-
1. Install project dependencies.
22-
23-
```sh
24-
npm install
25-
```
26-
27-
2. Compile JavaScript assets.
28-
29-
```sh
30-
npm run build
31-
```
32-
33-
Builds are only required for JS updates as the plugin's CSS is directly enqueued.
21+
See [CONTRIBUTING.md](CONTRIBUTING.md)
3422

3523
## Custom Hooks
3624

composer.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
2-
"name": "josephfusco/wpgraphql-ide",
3-
"description": "A next-gen query editor for WPGraphQL.",
4-
"type": "wordpress-plugin",
5-
"license": "GPL-3.0-or-later",
6-
"authors": [
7-
{
8-
"name": "Joseph Fusco",
9-
"homepage": "https://github.com/josephfusco",
10-
"role": "Developer"
11-
}
12-
],
13-
"require": {
14-
"php": "^8.0"
15-
},
16-
"require-dev": {
17-
"automattic/vipwpcs": "^3.0",
18-
"slevomat/coding-standard": "^8.9",
19-
"phpcompatibility/phpcompatibility-wp": "^2.1",
20-
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9"
21-
},
22-
"scripts": {
23-
"phpcs-i": [
24-
"php ./vendor/bin/phpcs -i"
25-
],
26-
"check-cs": [
27-
"php ./vendor/bin/phpcs"
28-
],
29-
"fix-cs": [
30-
"php ./vendor/bin/phpcbf"
31-
]
32-
},
33-
"config": {
34-
"allow-plugins": {
35-
"dealerdirect/phpcodesniffer-composer-installer": true
36-
}
37-
}
2+
"name": "josephfusco/wpgraphql-ide",
3+
"description": "A next-gen query editor for WPGraphQL.",
4+
"type": "wordpress-plugin",
5+
"license": "GPL-3.0-or-later",
6+
"authors": [
7+
{
8+
"name": "Joseph Fusco",
9+
"homepage": "https://github.com/josephfusco",
10+
"role": "Developer"
11+
}
12+
],
13+
"require": {
14+
"php": "^8.0"
15+
},
16+
"require-dev": {
17+
"automattic/vipwpcs": "^3.0",
18+
"slevomat/coding-standard": "^8.9",
19+
"phpcompatibility/phpcompatibility-wp": "^2.1",
20+
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9"
21+
},
22+
"scripts": {
23+
"phpcs-i": [
24+
"php ./vendor/bin/phpcs -i"
25+
],
26+
"check-cs": [
27+
"php ./vendor/bin/phpcs"
28+
],
29+
"fix-cs": [
30+
"php ./vendor/bin/phpcbf"
31+
]
32+
},
33+
"config": {
34+
"allow-plugins": {
35+
"dealerdirect/phpcodesniffer-composer-installer": true
36+
}
37+
}
3838
}

0 commit comments

Comments
 (0)