Skip to content

Commit

Permalink
move commands out to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Sep 20, 2024
1 parent c922609 commit 1252d14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions includes/Classifai/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ public function enqueue_admin_assets() {

if ( wp_script_is( 'wp-commands', 'registered' ) ) {
wp_enqueue_script(
'classifai-commands',
CLASSIFAI_PLUGIN_URL . 'dist/commands.js',
get_asset_info( 'commands', 'dependencies' ),
get_asset_info( 'commands', 'version' ),
'classifai-plugin-commands-js',
CLASSIFAI_PLUGIN_URL . 'dist/classifai-plugin-commands.js',
get_asset_info( 'classifai-plugin-commands', 'dependencies' ),
get_asset_info( 'classifai-plugin-commands', 'version' ),
true
);
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module.exports = {
'recommended-content-block-frontend': [
'./includes/Classifai/Blocks/recommended-content-block/frontend.js',
],
commands: [ './src/js/gutenberg-plugins/commands.js' ],
'extend-image-blocks': './src/js/extend-image-block-generate-image.js',

'classifai-plugin-commands': [ './src/js/plugins/commands.js' ],
'classifai-plugin-classification': './src/js/plugins/classification/index.js',
'classifai-plugin-fill': './src/js/plugins/slot-fill/index.js',
'classifai-plugin-text-to-speech': './src/js/plugins/text-to-speech/index.js',
Expand Down

0 comments on commit 1252d14

Please sign in to comment.