chore: deploy 触发分支改 master,竞品调研/原型/色板/i18n/分享组件/文档等成果入库

This commit is contained in:
Sisyphus committed 2026-08-14 09:58:52 +08:00
1 parent 5a97e6124e
commit 40e2342a02
75 files changed
+6848 -540

No files matched your search

+1
View File
@@ -0,0 +1 @@
kl={Perler:"Perler",Hama:"Hama","Artkal-S":"Artkal",MARD:"MARD","Hama-Midi":"Hama","Artkal-Midi":"Artkal","Artkal-M-2.6mm":"Artkal","Perler-Midi":"Perler","Ikea-Pyssla":"Ikea",Nabbi:"Nabbi"}
@@ -0,0 +1 @@
(a,["export_type"])&&(a.export_type==="pdf"||a.export_type==="image"||a.export_type==="svg"||a.export_type==="json")}}function gl(){if(!(typeof window>"u"))return window.gtag}function bl(t){return t==="image/jpeg"?"jpeg":t==="image/png"?"png":"webp"}function yl(t){return t<1024*1024?"under_1_mb":t<=5*1024*1024?"1_to_5_mb":"5_to_10_mb"}function vl(t){const a=new Set;return{track(n,o){if(!xl(n,o)||ss.has(n)&&a.has(n))return!1;const l=gl();if(!l)return!1;try{l("event",n,o)}catch{return!1}return ss.has(n)&&a.add(n),!0}}}const El=750,wl=1e4,Cl=new Set(["en","zh","zh-tw","ja","vi","ko","de"]);function Nl(t){return Cl.has(t)?t:"en"}function jl(t){return t.reason==="too-large"?"IMAGE_TOO_LARGE":t.reason==="unsupported-type"?"UNSUPPORTED_IMAGE":t.reason==="read-error"?"IMAGE_DECODE_FAILED":"SITE_VA
@@ -0,0 +1 @@
.5 rounded-lg border border-[#D8CBB9] bg-white px-1.5",children:[e.jsx("input",{type:"color",value:a,onChange:o=>n(o.target.value),className:"h-6 w-7 cursor-pointer border-0 bg-transparent p-0","aria-label":t}),e.jsx("span",{className:"font-mono text-[9px] uppercase text-[#8A7768]",children:a})]})]})}function Un(t,a=za){return t*a/Oo}function zo(t){return Un(t==="5mm"?5:2.6,za)}function Uo({gridWidth:t,onGridWidthChange:a,cellSizeUnit:n,onCellSizeUnitChange:o,selectedPalette:l,onPaletteChange:i,selectedMardCategory:c,onMardCategoryChange:h,generationPreset:u,onGenerationPresetChange:m,showReferenceGrid:y,showGridNumbers:F,onToggleReferenceGrid:A,onToggleGridNumbers:d,gridGuideSettings:k,onGridGuideSettingsChange:v,onResetGridGuideSettings:N,showHeading:O=!0}){const f=de("Generator"),x=Gn.some(p=>p===t),[M,D]=r.useState(!x),[_,$]=r.useState(!1);r.useEffect(()=>{x||D(!0)},[x]);const L=p=>{D(!1),a(p)};return e.jsxs("div",{className:"space-y-0.5",children:[O&&e.jsx("div",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-[#8F7E6F]",children:f("settings")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{html
@@ -0,0 +1 @@
{id:"detailed",maxColors:16,analysisPixelsPerCell:4,minimumForegroundCoverage:.12,outlineDarkLuminance:.28,outlineDarkRatio:.3,outlineContrast:.22,outlineWeight:1.5,backgroundSeedDeltaE:8,backgroundFillDeltaE:13,backgroundMinimumConfidence:.88,cleanupMinimumNeighbors:7,cellSamplingMode:"dominant-bucket",colorBucketBits:5,paletteSelectionMode:"fixed-palette-greedy",colorDistanceMode:"ciede2000",ditheringMode:"floyd-steinberg",spatialRegularizationIterations:1,spatialSmoothness:1,spatialEdgeSigma:12}
@@ -0,0 +1 @@
{id:"legacy",maxColors:null,analysisPixelsPerCell:1,minimumForegroundCoverage:0,outlineDarkLuminance:0,outlineDarkRatio:1,outlineContrast:1,outlineWeight:1,backgroundSeedDeltaE:0,backgroundFillDeltaE:0,backgroundMinimumConfidence:1,cleanupMinimumNeighbors:null,cellSamplingMode:"average",colorBucketBits:null,paletteSelectionMode:"cluster-then-snap",colorDistanceMode:"oklab",ditheringMode:"none",spatialRegularizationIterations:0,spatialSmoothness:0,spatialEdgeSigma:1}
@@ -0,0 +1 @@
{id:"simplified",maxColors:8,analysisPixelsPerCell:4,minimumForegroundCoverage:.28,outlineDarkLuminance:.34,outlineDarkRatio:.22,outlineContrast:.18,outlineWeight:3,backgroundSeedDeltaE:8,backgroundFillDeltaE:13,backgroundMinimumConfidence:.85,cleanupMinimumNeighbors:4,cellSamplingMode:"dominant-bucket",colorBucketBits:4,paletteSelectionMode:"fixed-palette-greedy",colorDistanceMode:"oklab",ditheringMode:"none",spatialRegularizationIterations:2,spatialSmoothness:3,spatialEdgeSigma:8}
@@ -0,0 +1 @@
{id:"standard",maxColors:10,analysisPixelsPerCell:4,minimumForegroundCoverage:.2,outlineDarkLuminance:.32,outlineDarkRatio:.2,outlineContrast:.16,outlineWeight:2.5,backgroundSeedDeltaE:8,backgroundFillDeltaE:14,backgroundMinimumConfidence:.85,cleanupMinimumNeighbors:5,cellSamplingMode:"dominant-bucket",colorBucketBits:4,paletteSelectionMode:"fixed-palette-greedy",colorDistanceMode:"oklab",ditheringMode:"none",spatialRegularizationIterations:2,spatialSmoothness:2,spatialEdgeSigma:10}
@@ -0,0 +1 @@
{id:"zippland",maxColors:null,analysisPixelsPerCell:1,minimumForegroundCoverage:0,outlineDarkLuminance:0,outlineDarkRatio:1,outlineContrast:1,outlineWeight:1,backgroundSeedDeltaE:0,backgroundFillDeltaE:0,backgroundMinimumConfidence:1,cleanupMinimumNeighbors:null,cellSamplingMode:"average",colorBucketBits:null,paletteSelectionMode:"cluster-then-snap",colorDistanceMode:"oklab",ditheringMode:"none",spatialRegularizationIterations:0,spatialSmoothness:0,spatialEdgeSigma:1}
@@ -0,0 +1 @@
average",colorBucketBits:null,paletteSelectionMode:"cluster-then-snap",colorDistanceMode:"oklab",ditheringMode:"none",spatialRegularizationIterations:0,spatialSmoothness:0,spatialEdgeSigma:1},To={id:"zippland",maxColors:null,analysisPixelsPerCell:1,minimumForegroundCoverage:0,outlineDarkLuminance:0,outlineDarkRatio:1,outlineContrast:1,outlineWeight:1,backgroundSeedDeltaE:0,backgroundFillDeltaE:0,backgroundMinimumConfidence:1,cleanupMinimumNeighbors:null,cellSamplingMode:"average",colorBucketBits:null,paletteSelectionMode:"cluster-then-snap",colorDistanceMode:"oklab",ditheringMode:"none",spatialRegularizationIterations:0,spatialSmoothness:0,spatialEdgeSigma:1},_o={zippland:To,simplified:Ao,standard:Do,detailed:Po,legacy:Ro},Wt=200,Mn=10,Io="EMPTY_PATTERN";function Bn(){const t=new Error("Image processing was replaced by a newer task");return t.name="AbortError",t}function Mo(t,a,n){if(n)return{width:n.columns,height:n.rows};const o=t.naturalWidth||t.width,l=t.naturalHeight||t.height,i=Math.max(Mn,Math.min(Wt,a)),c=l/Math.max(o,1),h=Math.max(1,Math.round(i*c));if(h<=Wt)return{width:i,height:h};const u=Math.max(Mn,Math.round(i*(Wt/h)));return{width:Math.min(Wt,u),height:Wt}}function Bo(t,a,n,o,l){if(l)return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height};if(o.preset==="legacy")return{width:a,height:n};const i=t.naturalWidth||t.width,c=t.naturalHeight||t.height;if(o.preset==="zippland")return{width:i,height:c};const h=_o[o.preset].analysisPixelsPerCell,u=Math.max