文件操作 - LlmsSitemap.95d7fd55.js
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/LlmsSitemap.95d7fd55.js
编辑文件内容
import{b as X,z as J,a6 as Y,h as Z,c as y,G as S,ab as H}from"./app-core.fa86622d.js";import{u as ee}from"./CommonSitemap.d3bc15ea.js";import{b as te,r as U,an as V,f as p,i as se,a0 as i,R as n,j as m,ae as u,U as r,v as e,Q as c,M as g,u as E}from"./vendor-vue-ui.ad4935f9.js";import{u as le}from"./MaxCounts.4e8a0190.js";import{B as I}from"./Checkbox.850765ce.js";import{C as z}from"./Index.3b124722.js";import{C as R}from"./Card.121699e0.js";import{C as O}from"./ExcludePosts.186f4485.js";import{C as G}from"./HtmlTagsEditor.5752f0f7.js";import{C as N}from"./PostTypeOptions.423b023b.js";import{C as $}from"./ProBadge.f78ad48f.js";import{C as x}from"./SettingsRow.603a6032.js";import{C as q}from"./Tooltip.2fa6a359.js";import{S as M}from"./External.b27964a0.js";import{a as j,_ as o}from"./vendor-other.835e467b.js";import"./vendor-lodash.45e85310.js";import"./Checkmark.39a3e934.js";import"./_plugin-vue_export-helper.eefbdd86.js";import"./Close.8e99996b.js";import"./Caret.d3343e56.js";import"./Trash.49bbc1a8.js";import"./Slide.bdb08a3f.js";import"./JsonValues.a0694556.js";import"./Button.aa421c00.js";import"./Select.f5a57de5.js";import"./AddPlus.49b64488.js";import"./Editor.689eaad3.js";import"./vendor-quill.d288b31f.js";import"./Input.a5933210.js";import"./Pencil.8f53e16a.js";import"./UnfilteredHtml.b30239a9.js";import"./vendor-emoji.92c96208.js";import"./PostTypes.d0efd79c.js";import"./HighlightToggle.019c7500.js";import"./Radio.08721189.js";import"./Row.5037f897.js";const Q=_=>{const s=X(),T=J(),A=U(!0),t=U(!1),k=()=>{A.value=!1,h()},h=()=>{if(!T.options.sitemap.llms[_]){t.value=!1;return}_==="enableFull"?t.value=s.aioseo.urls.llmsFullUrl.isAccessible:t.value=s.aioseo.urls.llmsUrl.isAccessible};return te(()=>{window.aioseoBus.$on("changes-saved",async()=>{if(k(),T.options.sitemap.llms[_])try{const L=_==="enableFull"?s.aioseo.urls.llmsFullUrl.url:s.aioseo.urls.llmsUrl.url;let v=0;const f=10,C=2e4;for(;v<f;){try{const{status:b}=await Y.get(L);if(b===200){t.value=!0;break}}catch{}v++,v<f&&await new Promise(b=>setTimeout(b,C))}v>=f&&(t.value=!1)}catch{t.value=!1}}),h()}),{llmsButtonLocked:A,llmsTxtAccessible:t,processChangesSaved:k,checkLlmsTxtAccessibility:h}},oe={class:"aioseo-llms-sitemap"},ne={class:"aioseo-settings-row aioseo-section-description"},ie=["innerHTML"],ae={class:"aioseo-description aioseo-llms-txt-description"},me={class:"aioseo-description aioseo-llms-txt-description"},re={class:"aioseo-description aioseo-llms-txt-description"},de=["innerHTML"],ue=["innerHTML"],pe=["innerHTML"],ce=["innerHTML"],ge={class:"aioseo-description"},Te=["innerHTML"],xe={class:"aioseo-description"},ve=["innerHTML"],fe={class:"aioseo-description"},be=["innerHTML"],st={__name:"LlmsSitemap",setup(_){const s="all-in-one-seo-pack",T=Z(),A=X(),t=J(),{maxRecommendedCount:k}=le(),{validateLinksPerIndex:h}=ee(1,5e4),{llmsButtonLocked:L,llmsTxtAccessible:v}=Q("enable"),{llmsButtonLocked:f,llmsTxtAccessible:C}=Q("enableFull"),b=U(0),F=U(0),K=E(()=>["attachment"]),B=E({get(){return t.options.sitemap.llms.advancedSettings.linksPerPostTax},set(D){const a=h(D);t.options.sitemap.llms.advancedSettings.linksPerPostTax=a}}),l={title:o("LLMs.txt",s),description:o("The llms.txt is a specialized file designed to help AI engines (such as language models) discover the content on your site more easily. Similar to how XML sitemaps assist search engines, the llms.txt file guides AI crawlers by providing important details about the available site content, improving visibility and discoverability across AI-driven tools.",s),llmsTxtEnable:o("Enable llms.txt",s),llmsTxt:o("llms.txt",s),llmsTxtDescription:o("Generate an llms.txt file to help AI engines discover the content on your site more easily.",s),llmsTxtButton:o("Open llms.txt",s),llmsTxtTooltip:o("To view the llms.txt file, enable the setting, save changes and wait a minute for the file to be generated.",s),llmsTxtFullEnable:o("Enable llms-full.txt",s),llmsTxtFullDescription:o("Generate a detailed llms-full.txt file to help AI engines index all of your site’s content quickly without straining your server’s resources.",s),llmsTxtFullButton:o("Open llms-full.txt",s),llmsTxtFullTooltip:o("To view the llms-full.txt file, enable the setting, save changes and wait a minute for the file to be generated.",s),llmsTxtConvertToMd:o("Convert Posts to Markdown",s),llmsTxtConvertToMdDescription:o("Generate a markdown version of your posts when <code>.md</code> is appended to their permalink. This provides AI engines with clean version of your pages that can be crawled more quickly.",s),llmsAdvancedSettings:o("LLMs.txt Settings",s),llmsAdvancedSettingsExcludePostsPages:o("Exclude Posts / Pages",s),llmsAdvancedSettingsExcludeTerms:o("Exclude Terms",s),llmsAdvancedSettingsPostTypes:o("Post Types",s),llmsAdvancedSettingsTaxonomies:o("Taxonomies",s),llmsAdvancedSettingsSelectPostTypes:o("Select which Post Types to include in the llms.txt file.",s),llmsAdvancedSettingsSelectTaxonomies:o("Select which Taxonomies to include in the llms.txt file.",s),llmsAdvancedSettingsIncludeAllPostTypes:o("Include All Post Types",s),llmsAdvancedSettingsIncludeAllTaxonomies:o("Include All Taxonomies",s),llmsAdvancedSettingsLinksPerPostTax:o("URLs per Post Type / Taxonomy",s),llmsAdvancedSettingsLinksPerPostTaxDescription:o("Allows you to specify the maximum number of pages per post type/taxonomy in your llms.txt file.",s),llmsAdvancedSettingsTitle:o("Title",s),llmsAdvancedSettingsDescription:o("The title of the llms.txt file.",s),llmsAdvancedSettingsClickToAddLlmsTitle:o("Click on the tags below to insert variables into your title.",s),llmsAdvancedSettingsClickToAddLlmsDescriptionTitle:o("Description",s),llmsAdvancedSettingsClickToAddLlmsDescription:o("Click on the tags below to insert variables into your description.",s),llmsTxtConvertToMdUpsell:j(o("Converting posts to markdown is a %1$s feature. %2$s",s),"PRO",y.getUpsellLink("sitemaps","convert-posts-to-markdown",S.learnMore,"liteUpgrade",!0)),llmsFullTxtUpsell:j(o("The llms-full.txt is a %1$s feature. %2$s",s),"PRO",y.getUpsellLink("sitemaps","llms-full-txt",S.learnMore,"liteUpgrade",!0))};return(D,a)=>{const w=V("base-toggle"),P=V("base-button"),W=V("base-input");return p(),se("div",oe,[i(e(R),{slug:"llmsSitemap"},{header:n(()=>[m("span",null,r(l.title),1)]),default:n(()=>[m("div",ne,[u(r(l.description)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,ie)]),i(e(x),{name:l.llmsTxtEnable},{content:n(()=>[i(w,{modelValue:e(t).options.sitemap.llms.enable,"onUpdate:modelValue":a[0]||(a[0]=d=>e(t).options.sitemap.llms.enable=d)},null,8,["modelValue"]),m("div",ae,[m("div",null,r(l.llmsTxtDescription),1),!(e(v)&&e(t).options.sitemap.llms.enable)||e(L)&&!e(t).options.sitemap.llms.enable?(p(),c(e(q),{key:0,type:"action",tag:"div",class:"aioseo-llms-txt-tooltip"},{tooltip:n(()=>[u(r(l.llmsTxtTooltip),1)]),default:n(()=>[m("span",null,[e(t).options.sitemap.llms.enable?(p(),c(P,{key:0,disabled:!0,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"button"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtButton),1)]),_:1})):g("",!0)])]),_:1})):g("",!0),!e(L)&&e(v)&&e(t).options.sitemap.llms.enable||e(L)&&e(v)&&e(t).options.sitemap.llms.enable?(p(),c(P,{key:1,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"a",href:e(H)(e(A).aioseo.urls.llmsUrl.url),target:"_blank"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtButton),1)]),_:1},8,["href"])):g("",!0)])]),_:1},8,["name"]),i(e(x),null,{name:n(()=>[u(r(l.llmsTxtFullEnable)+" ",1),e(T).isUnlicensed?(p(),c(e($),{key:0})):g("",!0)]),content:n(()=>[i(w,{modelValue:e(t).options.sitemap.llms.enableFull,"onUpdate:modelValue":a[1]||(a[1]=d=>e(t).options.sitemap.llms.enableFull=d),disabled:e(T).isUnlicensed},null,8,["modelValue","disabled"]),m("div",me,[m("div",null,r(l.llmsTxtFullDescription),1),!e(T).isUnlicensed&&(!(e(C)&&e(t).options.sitemap.llms.enableFull)||e(f)&&!e(t).options.sitemap.llms.enableFull)?(p(),c(e(q),{key:0,type:"action",tag:"div",class:"aioseo-llms-txt-tooltip"},{tooltip:n(()=>[u(r(l.llmsTxtFullTooltip),1)]),default:n(()=>[m("span",null,[e(t).options.sitemap.llms.enableFull?(p(),c(P,{key:0,disabled:!0,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"button"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtFullButton),1)]),_:1})):g("",!0)])]),_:1})):g("",!0),!e(f)&&e(C)&&e(t).options.sitemap.llms.enableFull||e(f)&&e(C)&&e(t).options.sitemap.llms.enableFull?(p(),c(P,{key:1,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"a",href:e(H)(e(A).aioseo.urls.llmsFullUrl.url),target:"_blank"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtFullButton),1)]),_:1},8,["href"])):g("",!0)]),e(T).isUnlicensed?(p(),c(e(z),{key:0,type:"blue",innerHTML:l.llmsFullTxtUpsell},null,8,["innerHTML"])):g("",!0)]),_:1}),i(e(x),null,{name:n(()=>[u(r(l.llmsTxtConvertToMd)+" ",1),e(T).isUnlicensed?(p(),c(e($),{key:0})):g("",!0)]),content:n(()=>[i(w,{modelValue:e(t).options.sitemap.llms.convertToMd,"onUpdate:modelValue":a[2]||(a[2]=d=>e(t).options.sitemap.llms.convertToMd=d),disabled:e(T).isUnlicensed},null,8,["modelValue","disabled"]),m("div",re,[m("div",{innerHTML:l.llmsTxtConvertToMdDescription},null,8,de)]),e(T).isUnlicensed?(p(),c(e(z),{key:0,class:"inline-upsell",type:"blue"},{default:n(()=>[m("div",{innerHTML:l.llmsTxtConvertToMdUpsell},null,8,ue)]),_:1})):g("",!0)]),_:1})]),_:1}),i(e(R),{slug:"llmsSitemapAdvancedSettings"},{header:n(()=>[m("span",null,r(l.llmsAdvancedSettings),1)]),default:n(()=>[m("div",null,[i(e(x),{name:l.llmsAdvancedSettingsTitle,align:""},{content:n(()=>[i(e(G),{modelValue:e(t).options.sitemap.llms.advancedSettings.title,"onUpdate:modelValue":a[3]||(a[3]=d=>e(t).options.sitemap.llms.advancedSettings.title=d),"line-numbers":!1,single:"",onCounter:a[4]||(a[4]=d=>b.value=d.length),"tags-context":"llmsTitle","default-tags":["site_title","tagline"],"show-all-tags-link":!1},{"tags-description":n(()=>[u(r(l.llmsAdvancedSettingsClickToAddLlmsTitle),1)]),_:1},8,["modelValue"]),m("div",{class:"max-recommended-count",innerHTML:e(k)(b.value,95)},null,8,pe)]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsClickToAddLlmsDescriptionTitle,align:""},{content:n(()=>[i(e(G),{modelValue:e(t).options.sitemap.llms.advancedSettings.description,"onUpdate:modelValue":a[5]||(a[5]=d=>e(t).options.sitemap.llms.advancedSettings.description=d),"line-numbers":!1,description:"",onCounter:a[6]||(a[6]=d=>F.value=d.length),"tags-context":"llmsDescription","default-tags":["site_title","tagline"],"show-all-tags-link":!1},{"tags-description":n(()=>[u(r(l.llmsAdvancedSettingsClickToAddLlmsDescription),1)]),_:1},8,["modelValue"]),m("div",{class:"max-recommended-count",innerHTML:e(k)(F.value,200)},null,8,ce)]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsLinksPerPostTax},{content:n(()=>[i(W,{modelValue:B.value,"onUpdate:modelValue":a[7]||(a[7]=d=>B.value=d),class:"aioseo-links-per-post-tax",type:"number",size:"medium",min:1,max:5e4},null,8,["modelValue"]),m("div",ge,[u(r(l.llmsAdvancedSettingsLinksPerPostTaxDescription)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,Te)])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsPostTypes},{content:n(()=>[i(e(I),{size:"medium",modelValue:e(t).options.sitemap.llms.advancedSettings.postTypes.all,"onUpdate:modelValue":a[8]||(a[8]=d=>e(t).options.sitemap.llms.advancedSettings.postTypes.all=d)},{default:n(()=>[u(r(l.llmsAdvancedSettingsIncludeAllPostTypes),1)]),_:1},8,["modelValue"]),e(t).options.sitemap.llms.advancedSettings.postTypes.all?g("",!0):(p(),c(e(N),{key:0,options:e(t).options.sitemap.llms.advancedSettings,type:"postTypes",excluded:K.value},null,8,["options","excluded"])),m("div",xe,[u(r(l.llmsAdvancedSettingsSelectPostTypes)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,ve)])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsTaxonomies},{content:n(()=>[i(e(I),{size:"medium",modelValue:e(t).options.sitemap.llms.advancedSettings.taxonomies.all,"onUpdate:modelValue":a[9]||(a[9]=d=>e(t).options.sitemap.llms.advancedSettings.taxonomies.all=d)},{default:n(()=>[u(r(l.llmsAdvancedSettingsIncludeAllTaxonomies),1)]),_:1},8,["modelValue"]),e(t).options.sitemap.llms.advancedSettings.taxonomies.all?g("",!0):(p(),c(e(N),{key:0,options:e(t).options.sitemap.llms.advancedSettings,type:"taxonomies",excluded:[]},null,8,["options"])),m("div",fe,[u(r(l.llmsAdvancedSettingsSelectTaxonomies)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,be)])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsExcludePostsPages,class:"aioseo-exclude-pages-posts",align:""},{content:n(()=>[i(e(O),{options:e(t).options.sitemap.llms.advancedSettings,type:"posts"},null,8,["options"])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsExcludeTerms,class:"aioseo-exclude-terms",align:""},{content:n(()=>[i(e(O),{options:e(t).options.sitemap.llms.advancedSettings,type:"terms"},null,8,["options"])]),_:1},8,["name"])])]),_:1})])}}};export{st as default};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件