驭风行PC站
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
3.8 KiB

import{E as g}from"./DC4XoMQp.js";import{E as h}from"./BIKH2PMP.js";import{E as w}from"./Bjtl-9Gw.js";import{s as x}from"./BPRC2v3K.js";import{u as v,a as k,b}from"./Ch8OMI22.js";import{f as V,m as C,c as r,a as o,t as m,g as c,b as l,w as n,A as S,o as p,u as d,B as E,d as f}from"./Ca9y1zsW.js";import{u as U}from"./B6GSEys7.js";import{o as B}from"./PFP8Cci7.js";import"./DaX0k22-.js";import"./YeUNH851.js";import"./B3sO6I2n.js";import"./Immh241S.js";import"./sr4qPEz_.js";import"./CeUmO8rY.js";import"./CPNNouYu.js";import"./BB_Ol6Sd.js";import"./aPBqHQcn.js";import"./Cq9Fpw4b.js";import"./BR6Cm0N-.js";/* empty css */import"./Ak2swtwV.js";import"./BUADUvnR.js";const H={class:"banner m-auto relative sm:flex"},N=S('<svg viewBox="0 0 1440 181" fill="none" xmlns="http://www.w3.org/2000/svg" class="pointer-events-none absolute w-full top-[-2px] transition-all text-green-5 flex-shrink-0 opacity-100 duration-[400ms] opacity-80 -z-10"><mask id="path-1-inside-1_414_5526" fill="white"><path d="M0 0H1440V181H0V0Z"></path></mask><path d="M0 0H1440V181H0V0Z" fill="url(#paint0_linear_414_5526)" fill-opacity="0.22"></path><path d="M0 2H1440V-2H0V2Z" fill="url(#paint1_linear_414_5526)" mask="url(#path-1-inside-1_414_5526)"></path><defs><linearGradient id="paint0_linear_414_5526" x1="720" y1="0" x2="720" y2="181" gradientUnits="userSpaceOnUse"><stop stop-color="currentColor"></stop><stop offset="1" stop-color="currentColor" stop-opacity="0"></stop></linearGradient><linearGradient id="paint1_linear_414_5526" x1="0" y1="90.5" x2="1440" y2="90.5" gradientUnits="userSpaceOnUse"><stop stop-color="currentColor" stop-opacity="0"></stop><stop offset="0.395" stop-color="currentColor"></stop><stop offset="1" stop-color="currentColor" stop-opacity="0"></stop></linearGradient></defs></svg>',1),G={class:"md:w-screen-xl m-auto md:p-0 px-4"},T={class:"py-8 sm:py-16",_path:"/templates",_dir:"",_draft:"false",_partial:"false",_locale:"",_id:"content:4.templates.yml",_type:"yaml",_source:"content",_file:"4.templates.yml",_stem:"4.templates",_extension:"yml"},z={key:0,class:"gap-8 sm:gap-y-16 grid lg:grid-cols-2 lg:items-center"},M={class:""},Z={class:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl lg:text-5xl"},D={key:0},I={key:1},K={class:"mt-4 text-lg text-gray-500 dark:text-gray-400"},O={class:"flex justify-between w-full items-center mt-4"},R={class:"w-[500px]"},mt=V({__name:"PageBanner",props:{layout:{},title:{default:"Templates"},desc:{default:"Explore community templates to get up and running in a few seconds."},buyUrl:{default:"https://github.com/websoft9/ansible-templates"}},setup(j){v(),k();const i=C({keywords:""});b();const u=async()=>{var t,e,a;if(i.keywords=="")return!1;if(activeName.value=="web"){const{data:s}=await U("/cms/cms-website/page",{baseURL:runtimeConfig.public.apiServer,params:{page:page.value,keywords:i.keywords}});(t=s.value)!=null&&t.data&&((e=s.value)!=null&&e.data.list&&(websites.value=(a=s.value)==null?void 0:a.data.list),s.value.data.count==0&&(resultText.value="暂无相关结果"))}};return(t,e)=>{const a=g,s=h,y=w;return p(),r("div",H,[N,o("div",G,[o("div",T,[t.layout?(p(),r("div",z,[o("div",M,[o("h1",Z,[t.layout.title?(p(),r("span",D,m(t.layout.title),1)):c("",!0),t.layout.name?(p(),r("span",I,m(t.layout.name),1)):c("",!0)]),o("div",K,m(t.layout.description),1),o("div",O,[l(y,null,{default:n(()=>[o("div",R,[l(s,{modelValue:d(i).keywords,"onUpdate:modelValue":e[0]||(e[0]=_=>d(i).keywords=_),placeholder:"搜索","prefix-icon":d(x),onKeydown:E(u,["enter"])},{append:n(()=>[l(a,{size:"large",type:"primary",onClick:u},{default:n(()=>[f("搜索")]),_:1})]),_:1},8,["modelValue","prefix-icon"])]),l(a,{size:"large",onClick:e[1]||(e[1]=_=>d(B)("/passport/login"))},{default:n(()=>[f(" 创建 ")]),_:1})]),_:1})])])])):c("",!0)])])])}}});export{mt as default};