Changeset 3189078
- Timestamp:
- 11/14/2024 10:57:01 PM (4 months ago)
- Location:
- image-to-text/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
image-to-text/trunk/block/build/block.json
r3006517 r3189078 11 11 "text" 12 12 ], 13 "version": "1.0. 3",13 "version": "1.0.4", 14 14 "textdomain": "image-to-text", 15 15 "supports": { -
image-to-text/trunk/block/build/index.asset.php
r3006517 r3189078 1 <?php return array('dependencies' => array('react ', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => '36cba3de4f167d30bdeb');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => '55c44aeb3c8794a4215f'); -
image-to-text/trunk/block/build/index.js
r3006517 r3189078 1 (()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,o=window.React,l=window.wp.i18n,a=window.wp.serverSideRender;var n=e.n(a);const i=window.wp.components,r=window.wp.blockEditor,c=JSON.parse('{"u2":"image-to-text/imagetotext-block"}');(0,t.registerBlockType)(c.u2,{edit:function({attributes:e,setAttributes:t}){let a=[];for(let e=0;e<imagetotext_file.length;e++)a.push({label:imagetotext_file[e],value:imagetotext_file[e]});const c=(0,r.useBlockProps)();return(0,o.createElement)("div",{...c},(0,o.createElement)(n(),{block:"image-to-text/imagetotext-block",attributes:e}),(0,o.createElement)(i.TextControl,{label:(0,l.__)("Text","image-to-text"),value:e.text,onChange:e=>t({text:e})}),(0,o.createElement)(r.InspectorControls,null,(0,o.createElement)(i.PanelBody,{title:(0,l.__)("View","image-to-text"),initialOpen:!1},(0,o.createElement)(i.TextControl,{label:(0,l.__)("Text","image-to-text"),value:e.text,onChange:e=>t({text:e})}),(0,o.createElement)(i.ToggleControl,{label:(0,l.__)("alt text","image-to-text"),checked:e.alt,onChange:e=>t({alt:e})}),(0,o.createElement)(i.TextControl,{label:(0,l.__)("alt text","image-to-text"),value:e.alt_text,onChange:e=>t({alt_text:e})}),(0,o.createElement)(r.PanelColorSettings,{title:(0,l.__)("Color Settings","image-to-text"),colorSettings:[{value:e.back_color,onChange:e=>t({back_color:e}),label:(0,l.__)("Back Color","image-to-text")},{value:e.font_color,onChange:e=>t({font_color:e}),label:(0,l.__)("Font Color","image-to-text")}]})),(0,o.createElement)(i.PanelBody,{title:(0,l.__)("Font","image-to-text"),initialOpen:!1},(0,o.createElement)(i.RangeControl,{label:(0,l.__)("Font Size","image-to-text"),max:100,min:3,value:e.font_size,onChange:e=>t({font_size:e})}),(0,o.createElement)(i.SelectControl,{label:(0,l.__)("Font file","image-to-text"),value:e.font_file,options:a,onChange:e=>{t({font_file:e})}}),(0,o.createElement)(i.RangeControl,{label:(0,l.__)("Font baseline adjust","image-to-text"),max:1.45,min:1.2,step:.01,value:e.vt_mg,onChange:e=>t({vt_mg:e})}))))}})})();1 (()=>{"use strict";var t={n:e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.serverSideRender;var a=t.n(n);const l=window.wp.components,i=window.wp.blockEditor,r=window.ReactJSXRuntime,_=JSON.parse('{"UU":"image-to-text/imagetotext-block"}');(0,e.registerBlockType)(_.UU,{edit:function({attributes:t,setAttributes:e}){let n=[];for(let t=0;t<imagetotext_file.length;t++)n.push({label:imagetotext_file[t],value:imagetotext_file[t]});const _=(0,i.useBlockProps)();return(0,r.jsxs)("div",{..._,children:[(0,r.jsx)(a(),{block:"image-to-text/imagetotext-block",attributes:t}),(0,r.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Text","image-to-text"),value:t.text,onChange:t=>e({text:t})}),(0,r.jsxs)(i.InspectorControls,{children:[(0,r.jsxs)(l.PanelBody,{title:(0,o.__)("View","image-to-text"),initialOpen:!1,children:[(0,r.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Text","image-to-text"),value:t.text,onChange:t=>e({text:t})}),(0,r.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("alt text","image-to-text"),checked:t.alt,onChange:t=>e({alt:t})}),(0,r.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("alt text","image-to-text"),value:t.alt_text,onChange:t=>e({alt_text:t})}),(0,r.jsx)(i.PanelColorSettings,{title:(0,o.__)("Color Settings","image-to-text"),colorSettings:[{value:t.back_color,onChange:t=>e({back_color:t}),label:(0,o.__)("Back Color","image-to-text")},{value:t.font_color,onChange:t=>e({font_color:t}),label:(0,o.__)("Font Color","image-to-text")}]})]}),(0,r.jsxs)(l.PanelBody,{title:(0,o.__)("Font","image-to-text"),initialOpen:!1,children:[(0,r.jsx)(l.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Font Size","image-to-text"),max:100,min:3,value:t.font_size,onChange:t=>e({font_size:t})}),(0,r.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Font file","image-to-text"),value:t.font_file,options:n,onChange:t=>{e({font_file:t})}}),(0,r.jsx)(l.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Font baseline adjust","image-to-text"),max:1.45,min:1.2,step:.01,value:t.vt_mg,onChange:t=>e({vt_mg:t})})]})]})]})}})})(); -
image-to-text/trunk/block/package.json
r3006517 r3189078 1 1 { 2 2 "name": "image-to-text", 3 "version": "1.0. 3",3 "version": "1.0.4", 4 4 "description": "Image to Text Block", 5 5 "main": "index.js", … … 12 12 "license": "GPL-2.0-or-later", 13 13 "devDependencies": { 14 "@wordpress/scripts": " 26.18.0"14 "@wordpress/scripts": "30.4.0" 15 15 }, 16 16 "dependencies": { 17 "@wordpress/i18n": "^ 4.47.0",18 "@wordpress/server-side-render": "^ 4.24.0"17 "@wordpress/i18n": "^5.11.0", 18 "@wordpress/server-side-render": "^5.11.0" 19 19 } 20 20 } -
image-to-text/trunk/block/src/block.json
r3006517 r3189078 11 11 "text" 12 12 ], 13 "version": "1.0. 3",13 "version": "1.0.4", 14 14 "textdomain": "image-to-text", 15 15 "supports": { -
image-to-text/trunk/block/src/edit.js
r3006517 r3189078 19 19 /> 20 20 <TextControl 21 __nextHasNoMarginBottom 21 22 label = { __( 'Text', 'image-to-text' ) } 22 23 value = { attributes.text } … … 27 28 <PanelBody title = { __( 'View', 'image-to-text' ) } initialOpen = { false }> 28 29 <TextControl 30 __nextHasNoMarginBottom 29 31 label = { __( 'Text', 'image-to-text' ) } 30 32 value = { attributes.text } … … 32 34 /> 33 35 <ToggleControl 36 __nextHasNoMarginBottom 34 37 label = { __( 'alt text', 'image-to-text' ) } 35 38 checked = { attributes.alt } … … 37 40 /> 38 41 <TextControl 42 __nextHasNoMarginBottom 39 43 label = { __( 'alt text', 'image-to-text' ) } 40 44 value = { attributes.alt_text } … … 60 64 <PanelBody title = { __( 'Font', 'image-to-text' ) } initialOpen = { false }> 61 65 <RangeControl 66 __nextHasNoMarginBottom 62 67 label = { __( 'Font Size', 'image-to-text' ) } 63 68 max = { 100 } … … 67 72 /> 68 73 <SelectControl 74 __nextHasNoMarginBottom 69 75 label = { __( 'Font file', 'image-to-text' ) } 70 76 value = { attributes.font_file } … … 73 79 /> 74 80 <RangeControl 81 __nextHasNoMarginBottom 75 82 label = { __( 'Font baseline adjust', 'image-to-text' ) } 76 83 max = { 1.45 } -
image-to-text/trunk/imagetotext.php
r3045287 r3189078 4 4 * Plugin URI: https://wordpress.org/plugins/image-to-text/ 5 5 * Description: Image to text. 6 * Version: 2.1 06 * Version: 2.11 7 7 * Author: Katsushi Kawamori 8 8 * Author URI: https://riverforest-wp.info/ -
image-to-text/trunk/readme.txt
r3182705 r3189078 3 3 Donate link: https://shop.riverforest-wp.info/donate/ 4 4 Tags: block, font, image, shortcode, text 5 Requires at least: 4.75 Requires at least: 6.6 6 6 Requires PHP: 8.0 7 7 Tested up to: 6.7 8 Stable tag: 2.1 08 Stable tag: 2.11 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 43 = [2.11] 2024/11/15 = 44 * Fix - Rebuilt javascript. 45 * Change - Changed the required version of WordPress. 42 46 43 47 = [2.10] 2024/03/05 =
Note: See TracChangeset
for help on using the changeset viewer.