PageSourceSearch

https://clameyes.com/_next/static/chunks/pages/tags-ae995f2a6f90d8a4.js

js clameyes.com collected 2026-10-04 07:47:39 UTC 10,134 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{8468:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tags",function(){return s(4946)}])},2950:function(e,t,s){"use strict";var n=s(5893);t.Z=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:"container mx-auto",children:t})}},7428:function(e,t,s){"use strict";s.d(t,{Z:function(){return u}});var n=s(5893),r=s(2950),a=s(1664),l=s.n(a),i=()=>(0,n.jsx)("footer",{className:"bg-neutral-focus border-t border-neutral-200 text-neutral-content",children:(0,n.jsx)(r.Z,{children:(0,n.jsx)("div",{className:"flex max-w-4xl mx-auto justify-center",children:(0,n.jsxs)("div",{className:"py-6 flex flex-col items-center",children:[(0,n.jsx)("h2",{className:"text-2xl my-4 md:text-4xl font-bold",children:(0,n.jsx)(l(),{href:"/",className:"hover:underline",children:"clameyes"})}),(0,n.jsxs)("div",{className:"flex flex-row justify-center items-center pt-1",children:[(0,n.jsx)(l(),{href:"/about",className:"hover:underline",children:"clameyesについて"}),(0,n.jsx)(l(),{href:"/terms",className:"hover:underline pl-4",children:"利用規約"}),(0,n.jsx)("a",{href:"https://github.com/clameyes/clameyes-community/issues",target:"_blank",rel:"noopener noreferrer",className:"hover:underline pl-4",children:"お問合わせ"})]}),(0,n.jsxs)("p",{className:"pt-2",children:["\xa9 2025 clameyes all rights reserved. Icons by ",(0,n.jsx)("a",{href:"https://icons8.com/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"Icons8"})]})]})})})}),c=s(2010),o=()=>{let{theme:e,setTheme:t}=(0,c.F)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("header",{className:"sticky bg-base-100 top-0 z-50 border-b",children:(0,n.jsxs)("div",{className:"navbar max-w-6xl justify-center items-center mx-auto",children:[(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(l(),{href:"/",className:"btn btn-circle btn-ghost normal-case ml-4 xl:ml-0",children:(0,n.jsx)("img",{src:"/assets/about/clameyes.png",alt:"clameyes",className:"h-8 w-8 md:h-10 md:w-10 xl:h-12 xl:w-12"})})}),(0,n.jsx)("div",{className:"flex-none",children:(0,n.jsx)(l(),{href:"/tags",className:"btn btn-ghost btn-circle xl:text-lg mr-4 xl:mr-0",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})})}),(0,n.jsx)("div",{className:"flex-none",children:(0,n.jsx)("button",{name:"themeSwitchButton",className:"btn btn-ghost btn-circle",onClick:()=>t("dark"===e?"light":"dark"),children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})})})})]})})})},d=s(9008),m=s.n(d),x=s(7447),h=()=>(0,n.jsxs)(m(),{children:[(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/favicon/apple-touch-icon.png"}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"}),(0,n.jsx)("link",{rel:"manifest",href:"/favicon/site.webmanifest"}),(0,n.jsx)("link",{rel:"mask-icon",href:"/favicon/safari-pinned-tab.svg",color:"#000000"}),(0,n.jsx)("link",{rel:"shortcut icon",href:"/favicon/favicon.ico"}),(0,n.jsx)("meta",{name:"msapplication-TileColor",content:"#000000"}),(0,n.jsx)("meta",{name:"msapplication-config",content:"/favicon/browserconfig.xml"}),(0,n.jsx)("meta",{name:"theme-color",content:"#000"}),(0,n.jsx)("link",{rel:"alternate",type:"application/rss+xml",href:"/feed.xml"}),(0,n.jsx)("meta",{name:"description",content:"ITエンジニアの自論と備忘録"}),(0,n.jsx)("meta",{property:"og:image",content:x.vC})]}),u=e=>{let{preview:t,children:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{}),(0,n.jsx)(o,{}),(0,n.jsx)("div",{className:"min-h-screen bg-base-200 pt-10 py-10 md:py-16",children:(0,n.jsx)("main",{children:s})}),(0,n.jsx)(i,{})]})}},3014:function(e,t,s){"use strict";var n=s(5893),r=s(1664),a=s.n(r),l=s(7447);t.Z=e=>{let{name:t}=e;return(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(a(),{href:"/tags/".concat(t),children:(0,n.jsxs)("div",{className:"btn btn-outline btn-xs md:btn-md",children:[(0,n.jsx)("img",{src:"/assets/blog/tags/".concat(t,".svg"),className:"w-4 h-4 md:w-6 md:h-6 md:mr-1",alt:t}),(0,n.jsx)("div",{className:"md:text-md font-bold",children:(0,l.sA)(t)})]})})})}},7447:function(e,t,s){"use strict";s.d(t,{sA:function(){return r},vC:function(){return n}});let n="https://clameyes.com/assets/about/clameyes.png";function r(e){return e?e.endsWith("js")?e.slice(0,-2)+".js":e:""}},4946:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return m},default:function(){return x}});var n=s(5893),r=s(7294),a=s(2950),l=s(7428),i=s(3014),c=s(2962),o=s(2424);let d=()=>{let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(""),[l,i]=(0,r.useState)([]),[c,d]=(0,r.useState)(!1),[m,x]=(0,r.useState)(!1),h=(0,r.useRef)(null),u=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=async()=>{try{if(!document.getElementById("pagefind-module")){let e=document.createElement("script");e.id="pagefind-module",e.type="module",e.innerHTML="\n            import * as pagefind from '/pagefind/pagefind.js';\n            window.pagefind = pagefind;\n            await pagefind.init();\n          ",document.head.appendChild(e)}}catch(e){console.warn("Pagefind loading failed - will work in production:",e)}};e()},[]);let f=async e=>{if(!e.trim()){i([]);return}if(!window.pagefind){d(!0),setTimeout(()=>{i([{url:"/posts/example-post",title:"「".concat(e,"」に関する記事"),excerpt:"検索機能を初期化中です。少々お待ちください。"}]),d(!1)},500);return}d(!0);try{let t=await window.pagefind.search(e),s=await Promise.all(t.results.slice(0,10).map(async e=>{var t,s;let n=await e.data(),r=n.url||n.raw_url||"";return r.endsWith(".html")&&(r=r.slice(0,-5)),{url:r,title:(null===(t=n.meta)||void 0===t?void 0:t.t
1itle)||n.title||"Untitled",excerpt:n.excerpt||(null===(s=n.content)||void 0===s?void 0:s.substring(0,100))||""}}));i(s)}catch(e){console.error("Search error:",e),i([])}d(!1)},p=e=>{h.current&&!h.current.contains(e.target)&&t(!1)};return(0,r.useEffect)(()=>(document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}),[]),(0,r.useEffect)(()=>{e&&u.current&&u.current.focus()},[e]),(0,n.jsxs)("div",{className:"w-full max-w-xl mx-auto mb-8 relative",ref:h,children:[(0,n.jsxs)("div",{className:"form-control",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{ref:u,type:"text",value:s,onChange:e=>{let t=e.target.value;a(t),m||(clearTimeout(window.searchTimeout),window.searchTimeout=setTimeout(()=>{t.length>0?f(t):i([])},300))},onFocus:()=>{t(!0)},onCompositionStart:()=>{x(!0)},onCompositionEnd:e=>{x(!1);let t=e.target.value;t.length>0?f(t):i([])},placeholder:"記事を検索...",className:"input input-bordered input-md w-full pr-12 focus:input-primary transition-all duration-200 hover:shadow-md"}),(0,n.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-base-content opacity-50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]}),c&&(0,n.jsx)("div",{className:"absolute right-10 top-1/2 transform -translate-y-1/2",children:(0,n.jsx)("span",{role:"status",className:"loading loading-spinner loading-sm text-primary"})})]}),e&&l.length>0&&(0,n.jsx)("div",{className:"absolute z-50 w-full mt-2 left-0 right-0",children:(0,n.jsx)("div",{className:"card search-results bg-base-100 shadow-xl border border-base-300",children:(0,n.jsx)("div",{className:"card-body p-0 max-h-96 overflow-y-auto",children:l.map((e,s)=>(0,n.jsxs)("a",{href:e.url,className:"search-result-item block px-4 py-3 hover:bg-base-200 transition-colors duration-150 border-b border-base-200 last:border-b-0",onClick:()=>t(!1),children:[(0,n.jsx)("h3",{className:"font-semibold text-base-content text-sm mb-1 line-clamp-1",dangerouslySetInnerHTML:{__html:o.Z.sanitize(e.title)}}),(0,n.jsx)("div",{className:"text-xs text-base-content opacity-70 line-clamp-2",dangerouslySetInnerHTML:{__html:o.Z.sanitize(e.excerpt)}})]},s))})})}),e&&s.length>2&&0===l.length&&!c&&(0,n.jsx)("div",{className:"absolute z-50 w-full mt-2 left-0 right-0",children:(0,n.jsx)("div",{className:"card search-results bg-base-100 shadow-xl border border-base-300",children:(0,n.jsxs)("div",{className:"card-body p-8 text-center",children:[(0,n.jsx)("div",{className:"text-4xl mb-3",children:"\uD83D\uDD0D"}),(0,n.jsx)("p",{className:"text-base-content font-medium",children:"検索結果が見つかりませんでした"}),(0,n.jsx)("p",{className:"text-sm text-base-content opacity-60 mt-1",children:"別のキーワードで試してみてください"})]})})})]})};var m=!0;function x(e){let{allTags:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(c.PB,{title:"タグ一覧"}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)("div",{className:"flex flex-col max-w-5xl mx-auto px-4 md:px-10",children:[(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(d,{})}),(0,n.jsx)("h2",{className:"mb-6 text-2xl md:text-xl font-bold tracking-tighter leading-tight",children:"タグ一覧"}),(0,n.jsx)("div",{className:"flex flex-wrap mb-16",children:t.length>0&&t.map((e,t)=>(0,n.jsx)("div",{className:"m-0.5 md:m-1",children:(0,n.jsx)(i.Z,{name:e})},t))})]})})]})})}}},function(e){e.O(0,[664,424,774,888,179],function(){return e(e.s=8468)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.