Skip to content

Commit

Permalink
All stream code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed May 30, 2024
1 parent 65d1f9f commit ab5252a
Show file tree
Hide file tree
Showing 58 changed files with 75,710 additions and 31,165 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ plugins/kodex-posts-likes
plugins/term-selector
plugins/code-block-pro
plugins/command-palette-tools
plugins/query-monitor
plugins/wordpress-es-modules-plugin
node_modules
vendor
debug.log
.vscode
.DS_Store
languages/*
mu-plugins/*
db.php
18 changes: 18 additions & 0 deletions plugins/directives/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2
30 changes: 30 additions & 0 deletions plugins/directives/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage directory used by tools like istanbul
coverage

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of `npm pack`
*.tgz

# Output of `wp-scripts plugin-zip`
*.zip

# dotenv environment variables file
.env
35 changes: 35 additions & 0 deletions plugins/directives/directives.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* Plugin Name: Directives
* Description: Example block scaffolded with Create Block tool.
* Requires at least: 6.1
* Requires PHP: 7.0
* Version: 0.1.0
* Author: The WordPress Contributors
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: directives
*
* @package twitch
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

/**
* Registers the block using the metadata loaded from the `block.json` file.
* Behind the scenes, it registers also all assets so they can be enqueued
* through the block editor in the corresponding context.
*
* @see https://developer.wordpress.org/reference/functions/register_block_type/
*/
function directives_directives_block_init() {

if ( function_exists( 'wp_interactivity_state' ) ) {
register_block_type( __DIR__ . '/build/data-wp-text' );
register_block_type( __DIR__ . '/build/data-wp-on' );
register_block_type( __DIR__ . '/build/data-wp-bind' );
}
}
add_action( 'init', 'directives_directives_block_init' );
Loading

0 comments on commit ab5252a

Please sign in to comment.