Changeset 3188621
- Timestamp:
- 11/14/2024 11:39:18 AM (4 months ago)
- Location:
- plus-webp/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plus-webp/trunk/guten/build/index-rtl.css
r3188608 r3188621 1 1 .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} 2 .settings{padding:5px}.settings2{padding:10px}.range_width{width:300px} 2 .settings{padding:5px}.settings2{padding:10px}.range_width{width:300px}.line-margin{margin:1em} -
plus-webp/trunk/guten/build/index.asset.php
r3188608 r3188621 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => ' e43ea8bb3af6485d743f');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '757b064ea3a0842d9ff3'); -
plus-webp/trunk/guten/build/index.css
r3188608 r3188621 1 1 .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} 2 .settings{padding:5px}.settings2{padding:10px}.range_width{width:300px} 2 .settings{padding:5px}.settings2{padding:10px}.range_width{width:300px}.line-margin{margin:1em} -
plus-webp/trunk/guten/build/index.js
r3188608 r3188621 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,{}))}))})();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 d=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})},p=()=>{const e=JSON.parse(pluswebpgenerate_data.post_ids),[s,t]=(0,n.useState)(0),[l,o]=(0,n.useState)(!1),p=e.length,h=(0,n.useRef)(!0);(0,n.useEffect)((()=>{if(h.current)h.current=!1;else try{(async()=>{for(let s=0;s<p;s++)await c()({path:"rf/plus-webp-generate_api/token",method:"POST",data:{post_id:e[s],count:s+1,max_count:p,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)(d,{p_count:s,max_count:p,text:(0,r.__)("Generation has been completed.","plus-webp"),updatecurrentProgress:t,updatecurrentSubmit:o})),0<s&&s<p&&x.push((0,i.jsx)(a.Button,{className:"button button-large",onClick:()=>{o(!1)},children:(0,r.__)("Stop","plus-webp")}))):p!==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 d=[];if(void 0!==s){let e=!1;s.types.includes("image/jpeg")&&(e=!0),d.push((0,i.jsx)("div",{className:"line-margin",children:(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),d.push((0,i.jsx)("div",{className:"line-margin",children:(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),d.push((0,i.jsx)("div",{className:"line-margin",children:(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),d.push((0,i.jsx)("div",{className:"line-margin",children:(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 p=[];void 0!==s&&p.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:[d,(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:[p,(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)(p,{}),(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
r3188608 r3188621 1 1 { 2 2 "name": "plus-webp", 3 "version": "2.0. 2",3 "version": "2.0.3", 4 4 "description": "Plus WebP", 5 5 "main": "index.js", -
plus-webp/trunk/guten/src/components/settings.css
r2923403 r3188621 1 1 .settings { 2 2 padding: 5px; 3 3 } 4 4 .settings2 { 5 5 padding: 10px; 6 6 } 7 7 .range_width { 8 8 width: 300px; 9 9 } 10 .line-margin { 11 margin: 1em; 12 } -
plus-webp/trunk/guten/src/components/settings.js
r3188608 r3188621 77 77 } 78 78 items_types.push( 79 <ToggleControl 80 __nextHasNoMarginBottom 81 label = 'image/jpeg' 82 checked = { is_jpeg } 83 onChange = { ( value ) => 84 { 85 if ( value ) { 86 currentOptions['types'].push('image/jpeg'); 87 } else { 88 let val = 'image/jpeg'; 89 let index = currentOptions['types'].indexOf( val ); 90 currentOptions['types'].splice( index, 1 ) 91 } 92 let data = Object.assign( {}, currentOptions ); 93 updatecurrentOptions( data ); 94 } 95 } 96 /> 79 <div className="line-margin"> 80 <ToggleControl 81 __nextHasNoMarginBottom 82 label = 'image/jpeg' 83 checked = { is_jpeg } 84 onChange = { ( value ) => 85 { 86 if ( value ) { 87 currentOptions['types'].push('image/jpeg'); 88 } else { 89 let val = 'image/jpeg'; 90 let index = currentOptions['types'].indexOf( val ); 91 currentOptions['types'].splice( index, 1 ) 92 } 93 let data = Object.assign( {}, currentOptions ); 94 updatecurrentOptions( data ); 95 } 96 } 97 /> 98 </div> 97 99 ); 98 100 let is_png = false; … … 101 103 } 102 104 items_types.push( 103 <ToggleControl 104 __nextHasNoMarginBottom 105 label = 'image/png' 106 checked = { is_png } 107 onChange = { ( value ) => 108 { 109 if ( value ) { 110 currentOptions['types'].push('image/png'); 111 } else { 112 let val = 'image/png'; 113 let index = currentOptions['types'].indexOf( val ); 114 currentOptions['types'].splice( index, 1 ) 115 } 116 let data = Object.assign( {}, currentOptions ); 117 updatecurrentOptions( data ); 118 } 119 } 120 /> 105 <div className="line-margin"> 106 <ToggleControl 107 __nextHasNoMarginBottom 108 label = 'image/png' 109 checked = { is_png } 110 onChange = { ( value ) => 111 { 112 if ( value ) { 113 currentOptions['types'].push('image/png'); 114 } else { 115 let val = 'image/png'; 116 let index = currentOptions['types'].indexOf( val ); 117 currentOptions['types'].splice( index, 1 ) 118 } 119 let data = Object.assign( {}, currentOptions ); 120 updatecurrentOptions( data ); 121 } 122 } 123 /> 124 </div> 121 125 ); 122 126 let is_bmp = false; … … 125 129 } 126 130 items_types.push( 127 <ToggleControl 128 __nextHasNoMarginBottom 129 label = 'image/bmp' 130 checked = { is_bmp } 131 onChange = { ( value ) => 132 { 133 if ( value ) { 134 currentOptions['types'].push('image/bmp'); 135 } else { 136 let val = 'image/bmp'; 137 let index = currentOptions['types'].indexOf( val ); 138 currentOptions['types'].splice( index, 1 ) 139 } 140 let data = Object.assign( {}, currentOptions ); 141 updatecurrentOptions( data ); 142 } 143 } 144 /> 131 <div className="line-margin"> 132 <ToggleControl 133 __nextHasNoMarginBottom 134 label = 'image/bmp' 135 checked = { is_bmp } 136 onChange = { ( value ) => 137 { 138 if ( value ) { 139 currentOptions['types'].push('image/bmp'); 140 } else { 141 let val = 'image/bmp'; 142 let index = currentOptions['types'].indexOf( val ); 143 currentOptions['types'].splice( index, 1 ) 144 } 145 let data = Object.assign( {}, currentOptions ); 146 updatecurrentOptions( data ); 147 } 148 } 149 /> 150 </div> 145 151 ); 146 152 let is_gif = false; … … 149 155 } 150 156 items_types.push( 151 <ToggleControl 152 __nextHasNoMarginBottom 153 label = 'image/gif' 154 checked = { is_gif } 155 onChange = { ( value ) => 156 { 157 if ( value ) { 158 currentOptions['types'].push('image/gif'); 159 } else { 160 let val = 'image/gif'; 161 let index = currentOptions['types'].indexOf( val ); 162 currentOptions['types'].splice( index, 1 ) 163 } 164 let data = Object.assign( {}, currentOptions ); 165 updatecurrentOptions( data ); 166 } 167 } 168 /> 157 <div className="line-margin"> 158 <ToggleControl 159 __nextHasNoMarginBottom 160 label = 'image/gif' 161 checked = { is_gif } 162 onChange = { ( value ) => 163 { 164 if ( value ) { 165 currentOptions['types'].push('image/gif'); 166 } else { 167 let val = 'image/gif'; 168 let index = currentOptions['types'].indexOf( val ); 169 currentOptions['types'].splice( index, 1 ) 170 } 171 let data = Object.assign( {}, currentOptions ); 172 updatecurrentOptions( data ); 173 } 174 } 175 /> 176 </div> 169 177 ); 170 178 } -
plus-webp/trunk/pluswebp.php
r3188608 r3188621 4 4 * Plugin URI: https://wordpress.org/plugins/plus-webp/ 5 5 * Description: Generate WebP or AVIF. 6 * Version: 5.0 26 * Version: 5.03 7 7 * Author: Katsushi Kawamori 8 8 * Author URI: https://riverforest-wp.info/ -
plus-webp/trunk/readme.txt
r3188608 r3188621 6 6 Requires PHP: 8.1 7 7 Tested up to: 6.7 8 Stable tag: 5.0 28 Stable tag: 5.03 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 69 69 == Changelog == 70 70 71 = [5.03] 2024/11/14 = 72 * Fix - Rebuilt javascript. 73 71 74 = [5.02] 2024/11/14 = 72 75 * Fix - Rebuilt javascript.
Note: See TracChangeset
for help on using the changeset viewer.