Adds a new 'S3-Compatible Storage' provider that works with any
S3-API-compatible object storage service, including MinIO, Ceph,
Cloudflare R2, Backblaze B2, and others.
Changes:
- New provider class: classes/providers/storage/s3-compatible-provider.php
- Provider key: s3compatible
- Reads user-configured endpoint URL from settings
- Uses path-style URL access (required by most S3-compatible services)
- Supports credentials via AS3CF_S3COMPAT_ACCESS_KEY_ID /
AS3CF_S3COMPAT_SECRET_ACCESS_KEY wp-config.php constants
- Disables AWS-specific features (Block Public Access, Object Ownership)
- New provider SVG icons (s3compatible.svg, -link.svg, -round.svg)
- Registered provider in main plugin class with endpoint setting support
- Updated StorageProviderSubPage to show endpoint URL input for S3-compatible
- Built pro settings bundle with rollup (Svelte 4.2.19)
- Added package.json and updated rollup.config.mjs for pro-only builds
1 line
1.2 KiB
JavaScript
1 line
1.2 KiB
JavaScript
var as3cfDeactivatePluginModal=function(o,e){var t={selector:".as3cf-deactivate-plugin-container",event:{}},a=window.wpApiSettings;return t.open=function(o){t.event=o,t.event.preventDefault(),e.open(t.selector,null,"deactivate-plugin")},t.close=function(o){e.setLoadingState(!1),e.close(),1===parseInt(o)?t.startTool():window.location=t.event.target},t.startTool=function(){o.ajax({url:a.root+"wp-offload-media/v1/tool/",method:"POST",beforeSend:function(o){o.setRequestHeader("Accept","application/json"),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-WP-Nonce",a.nonce)},data:JSON.stringify({id:"downloader",action:"start"})}).done(function(o){window.location=as3cfpro_downloader.plugin_url})},o(document).ready(function(){o("body").on("click",".deactivate-plugin [data-download-tool]",function(a){var n=o(this).data("download-tool");o("[data-download-tool]").prop("disabled",!0).siblings(".spinner").css("visibility","visible").show(),e.setLoadingState(!0),t.close(n)}),o("body").on("click","#"+as3cfpro_downloader.plugin_slug+' .deactivate a, [data-slug="'+as3cfpro_downloader.plugin_slug+'"] .deactivate a',function(o){as3cfDeactivatePluginModal.open(o)})}),t}(jQuery,as3cfModal); |