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
26 lines
2.7 KiB
XML
26 lines
2.7 KiB
XML
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<g filter="url(#filter0_d_1132_9421)">
|
|
<rect x="4" y="2" width="32" height="32" rx="6" fill="white" shape-rendering="crispEdges"/>
|
|
<g clip-path="url(#clip0_1132_9421)">
|
|
<path d="M13.9768 18.6524H25.4964C25.8499 18.6524 26.1364 18.359 26.1364 17.9971V17.3419C26.1364 16.4372 25.4201 15.7038 24.5365 15.7038H21.5471C21.502 15.7036 21.4589 15.684 21.4286 15.6497C21.3983 15.6154 21.3835 15.5697 21.3878 15.5236L21.7839 11.4677C21.8594 10.6701 21.4865 9.89773 20.8216 9.47494C20.1568 9.05214 19.3152 9.05214 18.6504 9.47494C17.9855 9.89773 17.6125 10.6701 17.6881 11.4677L18.0842 15.5236C18.0886 15.5697 18.074 15.6155 18.0439 15.6501C18.0138 15.6839 17.9714 15.7033 17.9268 15.7038H14.9368C14.0532 15.7038 13.3368 16.4372 13.3368 17.3419V17.9971C13.3368 18.359 13.6234 18.6524 13.9768 18.6524ZM20.3766 11.6086C20.3766 11.9704 20.0901 12.2638 19.7366 12.2638C19.3832 12.2638 19.0967 11.9704 19.0967 11.6086C19.0967 11.2467 19.3832 10.9533 19.7366 10.9533C20.0901 10.9533 20.3766 11.2467 20.3766 11.6086Z" fill="#87A2C2"/>
|
|
<path d="M26.3719 23.8674C25.7998 22.9571 25.4958 21.8972 25.4965 20.8147V19.9629C25.4965 19.7819 25.3532 19.6353 25.1765 19.6353H14.2968C14.1201 19.6353 13.9768 19.7819 13.9768 19.9629V20.8147C13.9773 21.8974 13.6734 22.9574 13.1013 23.8681C12.9749 24.0698 12.9662 24.326 13.0785 24.5363C13.1907 24.7465 13.4062 24.8772 13.6402 24.8772H14.5963C15.3453 24.8779 16.0449 24.4947 16.4599 23.8563C16.5956 23.6486 16.7409 23.4225 16.8823 23.2011C16.9208 23.14 16.994 23.1123 17.0621 23.1329C17.1301 23.1535 17.1768 23.2175 17.1767 23.2902V24.2219C17.1767 24.5838 17.4632 24.8772 17.8167 24.8772H25.8331C26.0673 24.8774 26.283 24.7466 26.3953 24.5361C26.5076 24.3256 26.4987 24.0691 26.3719 23.8674Z" fill="#87A2C2"/>
|
|
</g>
|
|
<rect x="4.5" y="2.5" width="31" height="31" rx="5.5" stroke="#E1E5E9" shape-rendering="crispEdges"/>
|
|
</g>
|
|
<defs>
|
|
<filter id="filter0_d_1132_9421" x="0" y="0" width="40" height="40" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
<feOffset dy="2"/>
|
|
<feGaussianBlur stdDeviation="2"/>
|
|
<feComposite in2="hardAlpha" operator="out"/>
|
|
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
|
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1132_9421"/>
|
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1132_9421" result="shape"/>
|
|
</filter>
|
|
<clipPath id="clip0_1132_9421">
|
|
<rect width="13.4737" height="16" fill="white" transform="translate(13 10)"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|