chore(deps): Bump dependencies
revert(assets): Rename js/ back to scripts/ revert(assets): Rename css/ back to styles/
This commit is contained in:
8
resources/scripts/app.js
Normal file
8
resources/scripts/app.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* External Dependencies
|
||||
*/
|
||||
import 'jquery';
|
||||
|
||||
$(document).ready(() => {
|
||||
// console.log('Hello world');
|
||||
});
|
||||
15
resources/scripts/customizer.js
Normal file
15
resources/scripts/customizer.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* This file allows you to add functionality to the Theme Customizer
|
||||
* live preview. jQuery is readily available.
|
||||
*
|
||||
* {@link https://codex.wordpress.org/Theme_Customization_API}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Change the blog name value.
|
||||
*
|
||||
* @param {string} value
|
||||
*/
|
||||
wp.customize('blogname', value => {
|
||||
value.bind(to => $('.brand').text(to));
|
||||
});
|
||||
12
resources/scripts/editor.js
Normal file
12
resources/scripts/editor.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import '@wordpress/edit-post';
|
||||
import domReady from '@wordpress/dom-ready';
|
||||
import { unregisterBlockStyle, registerBlockStyle } from '@wordpress/blocks';
|
||||
|
||||
domReady(() => {
|
||||
unregisterBlockStyle('core/button', 'outline');
|
||||
|
||||
registerBlockStyle('core/button', {
|
||||
name: 'outline',
|
||||
label: 'Outline',
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user