Skip to content

Commit cf10f6b

Browse files
Fix v1.1.2
1 parent 6c31778 commit cf10f6b

9 files changed

+26
-23
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ node_modules/
2525

2626
# dotenv environment variables file
2727
.env
28+
29+
.fake
30+
.ionide

block.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "soare-robert/qr-code-generator-simple-block",
2+
"name": "soare-robert/simple-qr-code-generator-block",
33
"title": "QR Block Generator",
44
"category": "widgets",
5-
"icon": "smiley",
5+
"icon": "format-image",
66
"description": "A simple QR Code Generator.",
77
"textdomain": "soare-robert",
88
"supports": {

build/index.asset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '262cd5a3e9974fb954fa72c9cbb9cc58');
1+
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1dd78a09b9a9d074e289002bfe2a0171');

build/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "testing",
3-
"version": "0.1.0",
4-
"description": "Example block written with ESNext standard and JSX support – build step required.",
5-
"author": "The WordPress Contributors",
2+
"name": "simple-qr-code-generator",
3+
"version": "1.1.2",
4+
"description": "It generate a QR Code based on a giving text..",
5+
"author": "soarerobert17",
66
"license": "GPL-2.0-or-later",
77
"main": "build/index.js",
88
"scripts": {

readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: soarerobertdaniel17
33
Tags: block, qrcode, generator
44
Requires at least: 5.5.5
55
Tested up to: 5.5.0
6-
Stable tag: 1.1.0
6+
Stable tag: 1.1.2
77
Requires PHP: 7.0.0
88
License: GNU GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import attributes from './attributes.js';
3232
*
3333
* @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block
3434
*/
35-
registerBlockType( 'soare-robert/qr-code-generator-simple-block', {
35+
registerBlockType( 'soare-robert/simple-qr-code-generator-block', {
3636
/**
3737
* This is the display title for your block, which can be translated with `i18n` functions.
3838
* The block inserter will show this name.
@@ -59,7 +59,7 @@ registerBlockType( 'soare-robert/qr-code-generator-simple-block', {
5959
* An icon property should be specified to make it easier to identify a block.
6060
* These can be any of WordPress’ Dashicons, or a custom svg element.
6161
*/
62-
icon: 'smiley',
62+
icon: 'format-image',
6363

6464
/**
6565
* Optional block extended support features.

src/obj/fsac.cache

+2-2
Large diffs are not rendered by default.

testing.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Simple QR Code Generator Block
44
* Plugin URI: https://github.com/Soare-Robert-Daniel/QR-Code-Generator-Block
55
* Description: It generate a QR Code based on a giving text.
6-
* Version: 1.1.0
6+
* Version: 1.1.2
77
* Requires at least: 5.2
88
* Requires PHP: 7.2
99
* Author: Soare Robert Daniel
@@ -17,7 +17,7 @@
1717
*
1818
* @see https://developer.wordpress.org/block-editor/tutorials/block-tutorial/applying-styles-with-stylesheets/
1919
*/
20-
function create_block_testing_block_init() {
20+
function simple_qr_code_generator_init() {
2121
$dir = dirname( __FILE__ );
2222

2323
$script_asset_path = "$dir/build/index.asset.php";
@@ -29,32 +29,32 @@ function create_block_testing_block_init() {
2929
$index_js = 'build/index.js';
3030
$script_asset = require( $script_asset_path );
3131
wp_register_script(
32-
'create-block-testing-block-editor',
32+
'simple-qr-code-generator-editor',
3333
plugins_url( $index_js, __FILE__ ),
3434
$script_asset['dependencies'],
3535
$script_asset['version']
3636
);
3737

3838
$editor_css = 'build/index.css';
3939
wp_register_style(
40-
'create-block-testing-block-editor',
40+
'simple-qr-code-generator-editor',
4141
plugins_url( $editor_css, __FILE__ ),
4242
array(),
4343
filemtime( "$dir/$editor_css" )
4444
);
4545

4646
$style_css = 'build/style-index.css';
4747
wp_register_style(
48-
'create-block-testing-block',
48+
'simple-qr-code-generator',
4949
plugins_url( $style_css, __FILE__ ),
5050
array(),
5151
filemtime( "$dir/$style_css" )
5252
);
5353

54-
register_block_type( 'soare-robert/qr-code-generator-simple-block', array(
55-
'editor_script' => 'create-block-testing-block-editor',
56-
'editor_style' => 'create-block-testing-block-editor',
57-
'style' => 'create-block-testing-block',
54+
register_block_type( 'soare-robert/simple-qr-code-generator-block', array(
55+
'editor_script' => 'simple-qr-code-generator-editor',
56+
'editor_style' => 'simple-qr-code-generator-editor',
57+
'style' => 'simple-qr-code-generator',
5858
) );
5959
}
60-
add_action( 'init', 'create_block_testing_block_init' );
60+
add_action( 'init', 'simple_qr_code_generator_init' );

0 commit comments

Comments
 (0)