Plugin Directory

Changeset 3188608


Ignore:
Timestamp:
11/14/2024 11:30:19 AM (4 months ago)
Author:
Katsushi Kawamori
Message:
  • Fix - Rebuilt javascript.
Location:
plus-webp/trunk
Files:
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • plus-webp/trunk/guten/build/index-rtl.css

    r3186103 r3188608  
    1 
    21.span1Style{font-weight:700}.aStyle{text-decoration:none}.boxStyle{border:2px solid #ccc;height:180px;width:250px}.boxStyle,.divStyle{margin:5px;padding:5px}.divStyle{text-align:left}.span2Style{background-color:green;color:#fff;padding:3px}.buttonStyle{margin:5px;padding:5px}
    32.settings{padding:5px}.settings2{padding:10px}.range_width{width:300px}
  • plus-webp/trunk/guten/build/index.asset.php

    r3186103 r3188608  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '2f8c4bf0c29171da772a');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'e43ea8bb3af6485d743f');
  • plus-webp/trunk/guten/build/index.css

    r3186103 r3188608  
    1 
    21.span1Style{font-weight:700}.aStyle{text-decoration:none}.boxStyle{border:2px solid #ccc;height:180px;width:250px}.boxStyle,.divStyle{margin:5px;padding:5px}.divStyle{text-align:right}.span2Style{background-color:green;color:#fff;padding:3px}.buttonStyle{margin:5px;padding:5px}
    32.settings{padding:5px}.settings2{padding:10px}.range_width{width:300px}
  • plus-webp/trunk/guten/build/index.js

    r3186103 r3188608  
    1 (()=>{"use strict";var e={n:s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return e.d(t,{a:t}),t},d:(s,t)=>{for(var n in t)e.o(t,n)&&!e.o(s,n)&&Object.defineProperty(s,n,{enumerable:!0,get:t[n]})},o:(e,s)=>Object.prototype.hasOwnProperty.call(e,s)};const s=window.wp.domReady;var t=e.n(s);const n=window.wp.element,a=window.wp.components,l=window.ReactJSXRuntime,i=()=>(0,l.jsxs)("details",{children:[(0,l.jsx)("summary",{children:(0,l.jsx)("strong",{children:credit.links})}),(0,l.jsxs)("span",{className:"span1Style",children:[(0,l.jsxs)("div",{children:[credit.plugin_version," |",(0,l.jsx)("a",{className:"aStyle",href:credit.faq,target:"_blank",rel:"noopener noreferrer",children:"FAQ"})," | ",(0,l.jsx)("a",{className:"aStyle",href:credit.support,target:"_blank",rel:"noopener noreferrer",children:"Support Forums"})," | ",(0,l.jsx)("a",{className:"aStyle",href:credit.review,target:"_blank",rel:"noopener noreferrer",children:"Reviews"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("a",{className:"aStyle",href:credit.translate,target:"_blank",rel:"noopener noreferrer",children:credit.translate_text})," | ",(0,l.jsx)("a",{className:"aStyle",href:credit.facebook,target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("span",{class:"dashicons dashicons-facebook"})})," | ",(0,l.jsx)("a",{className:"aStyle",href:credit.twitter,target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("span",{class:"dashicons dashicons-twitter"})})," | ",(0,l.jsx)("a",{className:"aStyle",href:credit.youtube,target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("span",{class:"dashicons dashicons-video-alt3"})})]}),(0,l.jsxs)("div",{className:"boxStyle",children:[(0,l.jsx)("h3",{children:credit.donate_text}),(0,l.jsxs)("div",{className:"divStyle",children:[(0,l.jsx)("span",{className:"span2Style",children:"Plugin Author"})," ",(0,l.jsx)("span",{className:"span1Style",children:"Katsushi Kawamori"})]}),(0,l.jsx)(a.Button,{className:"button button-large",href:credit.donate,target:"_blank",children:credit.donate_button})]})]})]}),r=window.wp.i18n,c=window.wp.apiFetch;var o=e.n(c);const p=e=>{let s=Math.round(e.p_count/e.max_count*100);const t=[];t.push((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("progress",{value:s,max:"100"}),"  ",e.p_count," / ",e.max_count,"  |  ",s," %"]}));const n=[];return n.push((0,l.jsx)(l.Fragment,{children:t})),100==s&&n.push((0,l.jsx)(a.Notice,{status:"success",onRemove:()=>{window.location.reload()},children:e.text})),(0,l.jsx)("div",{children:n})},d=()=>{const e=JSON.parse(pluswebpgenerate_data.post_ids),[s,t]=(0,n.useState)(0),[i,c]=(0,n.useState)(!1),d=e.length,h=(0,n.useRef)(!0);(0,n.useEffect)((()=>{if(h.current)h.current=!1;else try{(async()=>{for(let s=0;s<d;s++)await o()({path:"rf/plus-webp-generate_api/token",method:"POST",data:{post_id:e[s],count:s+1,max_count:d,generate:i}}).then((e=>{e.generate?t(s+1):window.location.reload()}))})()}catch(e){console.log(e)}}),[i]);const g=[],u=[],m=[],b=[],x=[];return i?(u.push((0,l.jsx)(p,{p_count:s,max_count:d,text:(0,r.__)("Generation has been completed.","plus-webp"),updatecurrentProgress:t,updatecurrentSubmit:c})),0<s&&s<d&&b.push((0,l.jsx)(a.Button,{className:"button button-large",onClick:()=>{c(!1)},children:(0,r.__)("Stop","plus-webp")}))):d!==s?(g.push((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"description",children:pluswebpgenerate_data.generate_description}),(0,l.jsx)("p",{className:"description",children:pluswebpgenerate_data.non_generate_description})]})),m.push((0,l.jsx)(a.Button,{className:"button button-large",onClick:()=>{c(!0)},children:(0,r.__)("Generate","plus-webp")}))):g.push((0,l.jsx)("p",{className:"description",children:(0,r.__)("Cannot find any media that can be generated.","plus-webp")})),x.push((0,l.jsx)(a.Button,{className:"button button-large",onClick:()=>{window.location.reload()},children:(0,r.__)("Check","plus-webp")})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{children:(0,r.__)("Bulk Generate","plus-webp")}),(0,l.jsx)("b",{children:(0,l.jsx)("li",{children:(0,r.__)("Notified by email with details of the generate results.","plus-webp")})}),(0,l.jsx)("b",{children:(0,l.jsx)("li",{children:(0,r.__)('To perform "Bulk Generate" after changing the following settings, press "Check" and then press "Generate".',"plus-webp")})}),(0,l.jsx)("b",{children:(0,l.jsx)("li",{children:(0,r.__)("WP-CLI commands are available. If you have a large number of files, WP-CLI commands is more reliable. Command line option allows the user to specify whether to send e-mail, the media ID of the sender and the settings.","plus-webp")})}),(0,l.jsxs)("div",{className:"settings",children:[(0,l.jsx)("strong",{children:"WP-CLI"}),(0,l.jsx)("code",{children:"wp pluswebpavif"})]}),g,m,"    ",b,"    ",x,u]})},h=()=>{const e=JSON.parse(pluswebpsettings_data.settings),[s,t]=(0,n.useState)(e);(0,n.useEffect)((()=>{o()({path:"rf/plus-webp-settings_api/token",method:"POST",data:{output_mime:s.output_mime,quality:s.quality,types:s.types,replace:s.replace,addext:s.addext}}).then((e=>{}))}),[s]);const i=[];void 0!==s&&i.push((0,l.jsx)(a.RadioControl,{selected:s.output_mime,options:[{label:"WebP",value:"image/webp"},{label:"AVIF",value:"image/avif"}],onChange:e=>{s.output_mime=e;let n=Object.assign({},s);t(n)}}));const c=[];void 0!==s&&c.push((0,l.jsx)(a.RangeControl,{max:100,min:1,value:s.quality,className:"range_width",onChange:e=>{s.quality=e;let n=Object.assign({},s);t(n)}}));const p=[];if(void 0!==s){let e=!1;s.types.includes("image/jpeg")&&(e=!0),p.push((0,l.jsx)(a.ToggleControl,{label:"image/jpeg",checked:e,onChange:e=>{if(e)s.types.push("image/jpeg");else{let e="image/jpeg",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}));let n=!1;s.types.includes("image/png")&&(n=!0),p.push((0,l.jsx)(a.ToggleControl,{label:"image/png",checked:n,onChange:e=>{if(e)s.types.push("image/png");else{let e="image/png",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}));let i=!1;s.types.includes("image/bmp")&&(i=!0),p.push((0,l.jsx)(a.ToggleControl,{label:"image/bmp",checked:i,onChange:e=>{if(e)s.types.push("image/bmp");else{let e="image/bmp",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}));let r=!1;s.types.includes("image/gif")&&(r=!0),p.push((0,l.jsx)(a.ToggleControl,{label:"image/gif",checked:r,onChange:e=>{if(e)s.types.push("image/gif");else{let e="image/gif",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}))}const d=[];void 0!==s&&d.push((0,l.jsx)(a.ToggleControl,{label:(0,r.__)("Apply","plus-webp"),checked:s.addext,onChange:e=>{s.addext=e;let n=Object.assign({},s);t(n)}}));const h=[];return void 0!==s&&h.push((0,l.jsx)(a.ToggleControl,{label:(0,r.__)("Apply","plus-webp"),checked:s.replace,onChange:e=>{s.replace=e;let n=Object.assign({},s);t(n)}})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{children:(0,r.__)("Settings","plus-webp")}),(0,l.jsxs)("div",{className:"settings",children:[(0,l.jsx)("h3",{children:(0,r.__)("Generated images","plus-webp")}),(0,l.jsxs)("div",{className:"settings2",children:[i,(0,l.jsx)("p",{className:"description",children:(0,r.__)("Specifies the file type to be output after conversion.","plus-webp")})]})]}),(0,l.jsxs)("div",{className:"settings",children:[(0,l.jsx)("h3",{children:(0,r.__)("Quality","plus-webp")}),(0,l.jsxs)("div",{className:"settings2",children:[c,(0,l.jsx)("p",{className:"description",children:(0,r.__)("Specifies the quality of generated images. The higher the number, the better the quality and the larger the file size.","plus-webp")})]})]}),(0,l.jsxs)("div",{className:"settings",children:[(0,l.jsx)("h3",{children:(0,r.__)("Type","plus-webp")}),(0,l.jsxs)("div",{className:"settings2",children:[p,(0,l.jsx)("p",{className:"description",children:(0,r.__)("Check the type of source image to be converted.","plus-webp")})]})]}),(0,l.jsxs)("div",{className:"settings",children:[(0,l.jsx)("h3",{children:(0,r.__)("Append the generated images extension(webp,avif) to the original filename","plus-webp")}),(0,l.jsxs)("div",{className:"settings2",children:[d,(0,l.jsx)("p",{className:"description",children:(0,r.__)("Checking this setting, the generated images extension(webp,avif) will be appended to the name of the file, including the extension. Not checking, only the extension is changed.","plus-webp")})]})]}),(0,l.jsxs)("div",{className:"settings",children:[(0,l.jsx)("h3",{children:(0,r.__)("WebP or AVIF replacement of images and contents","plus-webp")}),(0,l.jsxs)("div",{className:"settings2",children:[h,(0,l.jsxs)("p",{className:"description",children:[(0,r.__)("Checking this setting will replace image files with WebP or AVIF when adding new media, and delete the original image file. Also, when generating all images, the original image file ID will be overwritten as WebP or AVIF and the original image file will be deleted. All URLs in the content are also replaced.","plus-webp"),(0,r.__)('If you want to replace other databases besides content, use the "plus_webp_advanced_change_db" filter hook.',"plus-webp"),(0,l.jsx)(a.Button,{href:(0,r.__)("https://wordpress.org/plugins/plus-webp/","plus-webp"),variant:"secondary",target:"_blank",children:(0,r.__)('"plus_webp_advanced_change_db" filter hook',"plus-webp")})]})]})]})]})},g=()=>(0,l.jsxs)("div",{className:"wrap",children:[(0,l.jsx)("h2",{children:"Plus WebP or AVIF"}),(0,l.jsx)(i,{}),(0,l.jsx)("hr",{}),(0,l.jsx)(d,{}),(0,l.jsx)("hr",{}),(0,l.jsx)(h,{})]});t()((()=>{(0,n.createRoot)(document.getElementById("plus-webp-page")).render((0,l.jsx)(g,{}))}))})();
     1(()=>{"use strict";var e={n:s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return e.d(t,{a:t}),t},d:(s,t)=>{for(var n in t)e.o(t,n)&&!e.o(s,n)&&Object.defineProperty(s,n,{enumerable:!0,get:t[n]})},o:(e,s)=>Object.prototype.hasOwnProperty.call(e,s)};const s=window.wp.domReady;var t=e.n(s);const n=window.wp.element,a=window.wp.components,i=window.ReactJSXRuntime,l=()=>(0,i.jsxs)("details",{children:[(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:credit.links})}),(0,i.jsxs)("span",{className:"span1Style",children:[(0,i.jsxs)("div",{children:[credit.plugin_version," |",(0,i.jsx)("a",{className:"aStyle",href:credit.faq,target:"_blank",rel:"noopener noreferrer",children:"FAQ"})," | ",(0,i.jsx)("a",{className:"aStyle",href:credit.support,target:"_blank",rel:"noopener noreferrer",children:"Support Forums"})," | ",(0,i.jsx)("a",{className:"aStyle",href:credit.review,target:"_blank",rel:"noopener noreferrer",children:"Reviews"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{className:"aStyle",href:credit.translate,target:"_blank",rel:"noopener noreferrer",children:credit.translate_text})," | ",(0,i.jsx)("a",{className:"aStyle",href:credit.facebook,target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("span",{class:"dashicons dashicons-facebook"})})," | ",(0,i.jsx)("a",{className:"aStyle",href:credit.twitter,target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("span",{class:"dashicons dashicons-twitter"})})," | ",(0,i.jsx)("a",{className:"aStyle",href:credit.youtube,target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("span",{class:"dashicons dashicons-video-alt3"})})]}),(0,i.jsxs)("div",{className:"boxStyle",children:[(0,i.jsx)("h3",{children:credit.donate_text}),(0,i.jsxs)("div",{className:"divStyle",children:[(0,i.jsx)("span",{className:"span2Style",children:"Plugin Author"})," ",(0,i.jsx)("span",{className:"span1Style",children:"Katsushi Kawamori"})]}),(0,i.jsx)(a.Button,{className:"button button-large",href:credit.donate,target:"_blank",children:credit.donate_button})]})]})]}),r=window.wp.i18n,o=window.wp.apiFetch;var c=e.n(o);const p=e=>{let s=Math.round(e.p_count/e.max_count*100);const t=[];t.push((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("progress",{value:s,max:"100"}),"  ",e.p_count," / ",e.max_count,"  |  ",s," %"]}));const n=[];return n.push((0,i.jsx)(i.Fragment,{children:t})),100==s&&n.push((0,i.jsx)(a.Notice,{status:"success",onRemove:()=>{window.location.reload()},children:e.text})),(0,i.jsx)("div",{children:n})},d=()=>{const e=JSON.parse(pluswebpgenerate_data.post_ids),[s,t]=(0,n.useState)(0),[l,o]=(0,n.useState)(!1),d=e.length,h=(0,n.useRef)(!0);(0,n.useEffect)((()=>{if(h.current)h.current=!1;else try{(async()=>{for(let s=0;s<d;s++)await c()({path:"rf/plus-webp-generate_api/token",method:"POST",data:{post_id:e[s],count:s+1,max_count:d,generate:l}}).then((e=>{e.generate?t(s+1):window.location.reload()}))})()}catch(e){console.log(e)}}),[l]);const g=[],u=[],m=[],x=[],b=[];return l?(u.push((0,i.jsx)(p,{p_count:s,max_count:d,text:(0,r.__)("Generation has been completed.","plus-webp"),updatecurrentProgress:t,updatecurrentSubmit:o})),0<s&&s<d&&x.push((0,i.jsx)(a.Button,{className:"button button-large",onClick:()=>{o(!1)},children:(0,r.__)("Stop","plus-webp")}))):d!==s?(g.push((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"description",children:pluswebpgenerate_data.generate_description}),(0,i.jsx)("p",{className:"description",children:pluswebpgenerate_data.non_generate_description})]})),m.push((0,i.jsx)(a.Button,{className:"button button-large",onClick:()=>{o(!0)},children:(0,r.__)("Generate","plus-webp")}))):g.push((0,i.jsx)("p",{className:"description",children:(0,r.__)("Cannot find any media that can be generated.","plus-webp")})),b.push((0,i.jsx)(a.Button,{className:"button button-large",onClick:()=>{window.location.reload()},children:(0,r.__)("Check","plus-webp")})),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{children:(0,r.__)("Bulk Generate","plus-webp")}),(0,i.jsx)("b",{children:(0,i.jsx)("li",{children:(0,r.__)("Notified by email with details of the generate results.","plus-webp")})}),(0,i.jsx)("b",{children:(0,i.jsx)("li",{children:(0,r.__)('To perform "Bulk Generate" after changing the following settings, press "Check" and then press "Generate".',"plus-webp")})}),(0,i.jsx)("b",{children:(0,i.jsx)("li",{children:(0,r.__)("WP-CLI commands are available. If you have a large number of files, WP-CLI commands is more reliable. Command line option allows the user to specify whether to send e-mail, the media ID of the sender and the settings.","plus-webp")})}),(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("strong",{children:"WP-CLI"}),(0,i.jsx)("code",{children:"wp pluswebpavif"})]}),g,m,"    ",x,"    ",b,u]})},h=()=>{const e=JSON.parse(pluswebpsettings_data.settings),[s,t]=(0,n.useState)(e);(0,n.useEffect)((()=>{c()({path:"rf/plus-webp-settings_api/token",method:"POST",data:{output_mime:s.output_mime,quality:s.quality,types:s.types,replace:s.replace,addext:s.addext}}).then((e=>{}))}),[s]);const l=[];void 0!==s&&l.push((0,i.jsx)(a.RadioControl,{selected:s.output_mime,options:[{label:"WebP",value:"image/webp"},{label:"AVIF",value:"image/avif"}],onChange:e=>{s.output_mime=e;let n=Object.assign({},s);t(n)}}));const o=[];void 0!==s&&o.push((0,i.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,max:100,min:1,value:s.quality,className:"range_width",onChange:e=>{s.quality=e;let n=Object.assign({},s);t(n)}}));const p=[];if(void 0!==s){let e=!1;s.types.includes("image/jpeg")&&(e=!0),p.push((0,i.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:"image/jpeg",checked:e,onChange:e=>{if(e)s.types.push("image/jpeg");else{let e="image/jpeg",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}));let n=!1;s.types.includes("image/png")&&(n=!0),p.push((0,i.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:"image/png",checked:n,onChange:e=>{if(e)s.types.push("image/png");else{let e="image/png",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}));let l=!1;s.types.includes("image/bmp")&&(l=!0),p.push((0,i.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:"image/bmp",checked:l,onChange:e=>{if(e)s.types.push("image/bmp");else{let e="image/bmp",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}));let r=!1;s.types.includes("image/gif")&&(r=!0),p.push((0,i.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:"image/gif",checked:r,onChange:e=>{if(e)s.types.push("image/gif");else{let e="image/gif",t=s.types.indexOf(e);s.types.splice(t,1)}let n=Object.assign({},s);t(n)}}))}const d=[];void 0!==s&&d.push((0,i.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Apply","plus-webp"),checked:s.addext,onChange:e=>{s.addext=e;let n=Object.assign({},s);t(n)}}));const h=[];return void 0!==s&&h.push((0,i.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Apply","plus-webp"),checked:s.replace,onChange:e=>{s.replace=e;let n=Object.assign({},s);t(n)}})),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{children:(0,r.__)("Settings","plus-webp")}),(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("h3",{children:(0,r.__)("Generated images","plus-webp")}),(0,i.jsxs)("div",{className:"settings2",children:[l,(0,i.jsx)("p",{className:"description",children:(0,r.__)("Specifies the file type to be output after conversion.","plus-webp")})]})]}),(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("h3",{children:(0,r.__)("Quality","plus-webp")}),(0,i.jsxs)("div",{className:"settings2",children:[o,(0,i.jsx)("p",{className:"description",children:(0,r.__)("Specifies the quality of generated images. The higher the number, the better the quality and the larger the file size.","plus-webp")})]})]}),(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("h3",{children:(0,r.__)("Type","plus-webp")}),(0,i.jsxs)("div",{className:"settings2",children:[p,(0,i.jsx)("p",{className:"description",children:(0,r.__)("Check the type of source image to be converted.","plus-webp")})]})]}),(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("h3",{children:(0,r.__)("Append the generated images extension(webp,avif) to the original filename","plus-webp")}),(0,i.jsxs)("div",{className:"settings2",children:[d,(0,i.jsx)("p",{className:"description",children:(0,r.__)("Checking this setting, the generated images extension(webp,avif) will be appended to the name of the file, including the extension. Not checking, only the extension is changed.","plus-webp")})]})]}),(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("h3",{children:(0,r.__)("WebP or AVIF replacement of images and contents","plus-webp")}),(0,i.jsxs)("div",{className:"settings2",children:[h,(0,i.jsxs)("p",{className:"description",children:[(0,r.__)("Checking this setting will replace image files with WebP or AVIF when adding new media, and delete the original image file. Also, when generating all images, the original image file ID will be overwritten as WebP or AVIF and the original image file will be deleted. All URLs in the content are also replaced.","plus-webp"),(0,r.__)('If you want to replace other databases besides content, use the "plus_webp_advanced_change_db" filter hook.',"plus-webp"),(0,i.jsx)(a.Button,{href:(0,r.__)("https://wordpress.org/plugins/plus-webp/","plus-webp"),variant:"secondary",target:"_blank",children:(0,r.__)('"plus_webp_advanced_change_db" filter hook',"plus-webp")})]})]})]})]})},g=()=>(0,i.jsxs)("div",{className:"wrap",children:[(0,i.jsx)("h2",{children:"Plus WebP or AVIF"}),(0,i.jsx)(l,{}),(0,i.jsx)("hr",{}),(0,i.jsx)(d,{}),(0,i.jsx)("hr",{}),(0,i.jsx)(h,{})]});t()((()=>{(0,n.createRoot)(document.getElementById("plus-webp-page")).render((0,i.jsx)(g,{}))}))})();
  • plus-webp/trunk/guten/package.json

    r3186103 r3188608  
    11{
    22  "name": "plus-webp",
    3   "version": "2.0.1",
     3  "version": "2.0.2",
    44  "description": "Plus WebP",
    55  "main": "index.js",
  • plus-webp/trunk/guten/src/components/settings.js

    r3186103 r3188608  
    5454        items_quality.push(
    5555            <RangeControl
     56                __nextHasNoMarginBottom
    5657                max = { 100 }
    5758                min = { 1 }
     
    7778        items_types.push(
    7879            <ToggleControl
     80                __nextHasNoMarginBottom
    7981                label = 'image/jpeg'
    8082                checked = { is_jpeg }
     
    100102        items_types.push(
    101103            <ToggleControl
     104                __nextHasNoMarginBottom
    102105                label = 'image/png'
    103106                checked = { is_png }
     
    123126        items_types.push(
    124127            <ToggleControl
     128                __nextHasNoMarginBottom
    125129                label = 'image/bmp'
    126130                checked = { is_bmp }
     
    146150        items_types.push(
    147151            <ToggleControl
     152                __nextHasNoMarginBottom
    148153                label = 'image/gif'
    149154                checked = { is_gif }
     
    169174        items_addext.push(
    170175            <ToggleControl
     176                __nextHasNoMarginBottom
    171177                label = { __( 'Apply', 'plus-webp' ) }
    172178                checked = { currentOptions['addext'] }
     
    186192        items_replace.push(
    187193            <ToggleControl
     194                __nextHasNoMarginBottom
    188195                label = { __( 'Apply', 'plus-webp' ) }
    189196                checked = { currentOptions['replace'] }
  • plus-webp/trunk/guten/src/index.js

    r3186103 r3188608  
    1 import './index.css';
    21import domReady from '@wordpress/dom-ready';
    32import { createRoot } from '@wordpress/element';
  • plus-webp/trunk/pluswebp.php

    r3186103 r3188608  
    44 * Plugin URI:  https://wordpress.org/plugins/plus-webp/
    55 * Description: Generate WebP or AVIF.
    6  * Version:     5.01
     6 * Version:     5.02
    77 * Author:      Katsushi Kawamori
    88 * Author URI:  https://riverforest-wp.info/
  • plus-webp/trunk/readme.txt

    r3186103 r3188608  
    66Requires PHP: 8.1
    77Tested up to: 6.7
    8 Stable tag: 5.01
     8Stable tag: 5.02
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= [5.02] 2024/11/14 =
     72* Fix - Rebuilt javascript.
     73
    7174= [5.01] 2024/11/12 =
    7275* Fix - Rebuilt javascript.
Note: See TracChangeset for help on using the changeset viewer.