mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
deploy: 3f7bad75ec
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import{d as ue,x as d,h as f,z as re,c as r,o as c,e as P,j as e,a3 as i,k as ce,a as H,t,G as z,H as B,ak as g,al as A,a4 as D,am as Z,n as R,_ as ve}from"./framework.C2AwuPrQ.js";import{d as F}from"./extensions.data.Do_M1RVu.js";const pe={key:0,class:"warning custom-block",style:{"margin-bottom":"16px"}},me={class:"option-line"},be=["id","value"],ye=["for"],ge={class:"option-line"},fe=["disabled"],we={class:"box"},he=["placeholder"],xe=["id","value"],Ce=["for"],Se={style:{color:"orangered","font-weight":"bolder"}},ke={class:"box"},Pe=["id","value"],$e=["for"],Ne={key:3,class:"warning custom-block"},Ie={value:"spc"},Ve={value:"native"},Ue=["value"],Ee={value:""},Te={for:"zts-yes"},ze={for:"zts-no"},Be={for:"pre-built-yes"},Ae={for:"pre-built-no"},De={key:0},Re={for:"upx-yes"},Ge={for:"upx-no"},Oe={for:"nostrip-yes"},We={for:"nostrip-no"},qe=["placeholder"],Le={key:4,class:"command-container"},Xe={key:0,class:"command-preview"},je={class:"command-content"},Me={key:1},He={class:"warning custom-block"},Ze={class:"command-container"},Fe={class:"command-preview"},Ke={class:"command-content"},Ye={class:"command-container"},Je={class:"command-preview"},Qe={class:"command-content"},_e={class:"command-container"},el={class:"command-preview pre"},ll={class:"command-content"},nl={name:"CliGenerator"},tl=ue({...nl,props:{lang:{type:String,default:"zh"}},setup(o){const K=["cli","fpm","micro","embed","frankenphp","cgi"],Y=["8.0","8.1","8.2","8.3","8.4","8.5"],J=F.missing??!1,Q=F.extensions??[],w=d(""),m=d([]),b=d(["cli"]),$=d("spc"),N=d("8.4"),u=d("linux"),I=d("x86_64"),h=d(""),C=d(!1),S=d(!0),x=d(!1),k=d(!1),V=d(10),U=d(5),E=d(""),v=d({spcDownload:!1,doctor:!1,build:!1,craft:!1}),_=[{os:"linux",label:"Linux"},{os:"macos",label:"macOS"},{os:"windows",label:"Windows"}],G=f(()=>Q.filter(s=>u.value==="linux"?s.linux:u.value==="macos"?s.macos:u.value==="windows"?s.windows:!0).map(s=>s.name)),W=f(()=>[...m.value].sort().join(",")),q=f(()=>$.value==="native"?"bin/spc":u.value==="windows"?".\\spc.exe":"./spc"),L=f(()=>{const s=u.value==="macos"?"macos":"linux",l=I.value;return`curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-${s}-${l} -o spc && chmod +x spc`}),X=f(()=>`${q.value} doctor --auto-fix`),ee=f(()=>{const s=E.value.split(`
|
||||
import{d as ue,x as d,h as f,z as re,c as r,o as c,e as P,j as e,a3 as i,k as ce,a as H,t,G as z,H as B,ak as g,al as A,a4 as D,am as Z,n as R,_ as ve}from"./framework.C2AwuPrQ.js";import{d as F}from"./extensions.data.Dj1UiTk2.js";const pe={key:0,class:"warning custom-block",style:{"margin-bottom":"16px"}},me={class:"option-line"},be=["id","value"],ye=["for"],ge={class:"option-line"},fe=["disabled"],we={class:"box"},he=["placeholder"],xe=["id","value"],Ce=["for"],Se={style:{color:"orangered","font-weight":"bolder"}},ke={class:"box"},Pe=["id","value"],$e=["for"],Ne={key:3,class:"warning custom-block"},Ie={value:"spc"},Ve={value:"native"},Ue=["value"],Ee={value:""},Te={for:"zts-yes"},ze={for:"zts-no"},Be={for:"pre-built-yes"},Ae={for:"pre-built-no"},De={key:0},Re={for:"upx-yes"},Ge={for:"upx-no"},Oe={for:"nostrip-yes"},We={for:"nostrip-no"},qe=["placeholder"],Le={key:4,class:"command-container"},Xe={key:0,class:"command-preview"},je={class:"command-content"},Me={key:1},He={class:"warning custom-block"},Ze={class:"command-container"},Fe={class:"command-preview"},Ke={class:"command-content"},Ye={class:"command-container"},Je={class:"command-preview"},Qe={class:"command-content"},_e={class:"command-container"},el={class:"command-preview pre"},ll={class:"command-content"},nl={name:"CliGenerator"},tl=ue({...nl,props:{lang:{type:String,default:"zh"}},setup(o){const K=["cli","fpm","micro","embed","frankenphp","cgi"],Y=["8.0","8.1","8.2","8.3","8.4","8.5"],J=F.missing??!1,Q=F.extensions??[],w=d(""),m=d([]),b=d(["cli"]),$=d("spc"),N=d("8.4"),u=d("linux"),I=d("x86_64"),h=d(""),C=d(!1),S=d(!0),x=d(!1),k=d(!1),V=d(10),U=d(5),E=d(""),v=d({spcDownload:!1,doctor:!1,build:!1,craft:!1}),_=[{os:"linux",label:"Linux"},{os:"macos",label:"macOS"},{os:"windows",label:"Windows"}],G=f(()=>Q.filter(s=>u.value==="linux"?s.linux:u.value==="macos"?s.macos:u.value==="windows"?s.windows:!0).map(s=>s.name)),W=f(()=>[...m.value].sort().join(",")),q=f(()=>$.value==="native"?"bin/spc":u.value==="windows"?".\\spc.exe":"./spc"),L=f(()=>{const s=u.value==="macos"?"macos":"linux",l=I.value;return`curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-${s}-${l} -o spc && chmod +x spc`}),X=f(()=>`${q.value} doctor --auto-fix`),ee=f(()=>{const s=E.value.split(`
|
||||
`).filter(l=>l.indexOf("=")>=1);return s.length>0?" "+s.map(l=>`-I "${l}"`).join(" "):""}),j=f(()=>{const s=b.value.map(de=>`--build-${de}`).join(" "),l=` --dl-with-php=${N.value}`,n=` --dl-parallel=${V.value}`,p=` --dl-retry=${U.value}`,y=" --dl-ignore-cache=php-src",te=S.value?" --dl-prefer-binary":"",oe=k.value?" --no-strip":"",ae=x.value?" --with-upx-pack":"",se=C.value?" --enable-zts":"",ie=h.value?` ${h.value}`:"";return`${q.value} build:php "${W.value}" ${s}${l}${n}${p}${y}${te}${oe}${ae}${se}${ee.value}${ie}`}),M=f(()=>{let s=`php-version: ${N.value}
|
||||
`;s+=`extensions: "${W.value}"
|
||||
`,b.value.length===1?s+=`sapi:
|
||||
@@ -1 +1 @@
|
||||
import{x as u,c as n,o as l,k as f,j as e,a as h,G as p,e as v,a3 as g,a4 as _,H as k,t as a}from"./framework.C2AwuPrQ.js";import{d as i}from"./extensions.data.Do_M1RVu.js";const y={key:0,class:"warning custom-block",style:{"margin-bottom":"16px"}},w={class:"DocSearch-SearchBar",style:{padding:"0"}},b={class:"DocSearch-Form searchinput"},N={key:0},S=["href"],V=["href"],D={key:0,style:{margin:"0 4px 20px 4px",color:"var(--vp-c-text-2)","font-size":"14px"}},B={name:"SearchTable"},H=Object.assign(B,{setup(L){const m=i.missing,d=u(i.extensions),o=u(i.extensions),r=u(""),x=()=>{if(r.value===""){o.value=d.value;return}o.value=d.value.filter(c=>c.name.toLowerCase().includes(r.value.toLowerCase()))};return(c,s)=>(l(),n("div",null,[f(m)?(l(),n("div",y,[...s[1]||(s[1]=[e("p",{class:"custom-block-title"},"WARNING",-1),e("p",null,[h("Extension list is not generated yet. Run "),e("code",null,"bin/spc dev:gen-ext-docs"),h(" to generate it.")],-1)])])):(l(),n(p,{key:1},[e("header",w,[e("form",b,[g(e("input",{class:"DocSearch-Input","onUpdate:modelValue":s[0]||(s[0]=t=>r.value=t),placeholder:"Filter name...",onInput:x},null,544),[[_,r.value]])])]),e("table",null,[s[3]||(s[3]=e("thead",null,[e("tr",null,[e("th",null,"Extension Name"),e("th",null,"Linux"),e("th",null,"macOS"),e("th",null,"Windows"),e("th",null,"Website")])],-1)),e("tbody",null,[(l(!0),n(p,null,k(o.value,t=>(l(),n("tr",{key:t.name},[e("td",null,[t.hasNotes?(l(),n("a",{key:1,href:"./extension-notes.html#"+t.name},a(t.name),9,S)):(l(),n("span",N,a(t.name),1))]),e("td",null,a(t.linux?"✅":""),1),e("td",null,a(t.macos?"✅":""),1),e("td",null,a(t.windows?"✅":""),1),e("td",null,[t.url?(l(),n("a",{key:0,href:t.url,target:"_blank",rel:"noopener noreferrer",class:"ext-source-link"},[...s[2]||(s[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"12",height:"12",fill:"currentColor"},[e("path",{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 01-1 1H4a1 1 0 01-1-1V7a1 1 0 011-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z"})],-1)])],8,V)):v("",!0)])]))),128))])]),o.value.length===0?(l(),n("div",D," No result, please try another keyword. ")):v("",!0)],64))]))}});export{H as _};
|
||||
import{x as u,c as n,o as l,k as f,j as e,a as h,G as p,e as v,a3 as g,a4 as _,H as k,t as a}from"./framework.C2AwuPrQ.js";import{d as i}from"./extensions.data.Dj1UiTk2.js";const y={key:0,class:"warning custom-block",style:{"margin-bottom":"16px"}},w={class:"DocSearch-SearchBar",style:{padding:"0"}},b={class:"DocSearch-Form searchinput"},N={key:0},S=["href"],V=["href"],D={key:0,style:{margin:"0 4px 20px 4px",color:"var(--vp-c-text-2)","font-size":"14px"}},B={name:"SearchTable"},H=Object.assign(B,{setup(L){const m=i.missing,d=u(i.extensions),o=u(i.extensions),r=u(""),x=()=>{if(r.value===""){o.value=d.value;return}o.value=d.value.filter(c=>c.name.toLowerCase().includes(r.value.toLowerCase()))};return(c,s)=>(l(),n("div",null,[f(m)?(l(),n("div",y,[...s[1]||(s[1]=[e("p",{class:"custom-block-title"},"WARNING",-1),e("p",null,[h("Extension list is not generated yet. Run "),e("code",null,"bin/spc dev:gen-ext-docs"),h(" to generate it.")],-1)])])):(l(),n(p,{key:1},[e("header",w,[e("form",b,[g(e("input",{class:"DocSearch-Input","onUpdate:modelValue":s[0]||(s[0]=t=>r.value=t),placeholder:"Filter name...",onInput:x},null,544),[[_,r.value]])])]),e("table",null,[s[3]||(s[3]=e("thead",null,[e("tr",null,[e("th",null,"Extension Name"),e("th",null,"Linux"),e("th",null,"macOS"),e("th",null,"Windows"),e("th",null,"Website")])],-1)),e("tbody",null,[(l(!0),n(p,null,k(o.value,t=>(l(),n("tr",{key:t.name},[e("td",null,[t.hasNotes?(l(),n("a",{key:1,href:"./extension-notes.html#"+t.name},a(t.name),9,S)):(l(),n("span",N,a(t.name),1))]),e("td",null,a(t.linux?"✅":""),1),e("td",null,a(t.macos?"✅":""),1),e("td",null,a(t.windows?"✅":""),1),e("td",null,[t.url?(l(),n("a",{key:0,href:t.url,target:"_blank",rel:"noopener noreferrer",class:"ext-source-link"},[...s[2]||(s[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"12",height:"12",fill:"currentColor"},[e("path",{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 01-1 1H4a1 1 0 01-1-1V7a1 1 0 011-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z"})],-1)])],8,V)):v("",!0)])]))),128))])]),o.value.length===0?(l(),n("div",D," No result, please try another keyword. ")):v("",!0)],64))]))}});export{H as _};
|
||||
File diff suppressed because one or more lines are too long
1
assets/chunks/extensions.data.Dj1UiTk2.js
Normal file
1
assets/chunks/extensions.data.Dj1UiTk2.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
assets/chunks/theme.CoS8sfxC.js
Normal file
3
assets/chunks/theme.CoS8sfxC.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user