Skip to content

Commit

Permalink
Built changes for v2.0.0 from develop b3eb777
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh01 committed Jun 24, 2024
1 parent b3eb777 commit 4b6beed
Show file tree
Hide file tree
Showing 416 changed files with 47,201 additions and 404 deletions.
22 changes: 0 additions & 22 deletions .deployignore

This file was deleted.

25 changes: 0 additions & 25 deletions .github/dependabot.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/build-branch.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/built-release.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/built-tag.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/code-quality.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/dependabot-auto-approve.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/node-tests.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/unit-test.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/update-changelog.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/upgrade-wordpress-plugin.yml

This file was deleted.

44 changes: 20 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
# Build files
build
vendor
composer.lock
node_modules

# Log files
*.log

# Cache files
.phpcs/*.json
.phpunit.result.cache

# Ignore temporary OS files
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.thumbsdb

# IDE files
*.code-workspace
.idea
.vscode
wp-cli.local.yml
node_modules/
*.sql
*.tar.gz
*.zip
.phpunit.result.cache
Dockerfile
output.log
.github
tests
bin
composer.lock
.phpcs.xml
phpunit.xml
configure.php
DOCKER_ENV
phpunit.xml
tests
.phpcs
Makefile
60 changes: 0 additions & 60 deletions .phpcs.xml

This file was deleted.

Empty file removed .phpcs/.gitkeep
Empty file.
24 changes: 24 additions & 0 deletions build/post/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "wp-curate/post",
"version": "0.1.0",
"title": "Post",
"category": "theme",
"icon": "admin-post",
"description": "Container block to allow setting a post inline",
"textdomain": "wp-curate",
"editorScript": "file:index.js",
"editorStyle": "file:index.css",
"style": [
"file:style-index.css"
],
"usesContext": [
"postId",
"query"
],
"render": "file:render.php",
"supports": {
"inserter": false
}
}
1 change: 1 addition & 0 deletions build/post/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-data', 'wp-i18n'), 'version' => '4279fde35429206a9b43');
1 change: 1 addition & 0 deletions build/post/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions build/post/index.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions build/post/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Block Name: Post.
*
* @package wp-curate
*/

use Alley\WP\WP_Curate\Supported_Post_Types;

/**
* Registers the wp-curate/post block using the metadata loaded from the `block.json` file.
*/
function wp_curate_post_block_init(): void {
$supported_post_types = new Supported_Post_Types();
if ( ! $supported_post_types->should_register_block() ) {
return;
}

// Register the block by passing the location of block.json.
register_block_type(
__DIR__
);
}
add_action( 'init', 'wp_curate_post_block_init' );
Loading

0 comments on commit 4b6beed

Please sign in to comment.