neogrok 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +88 -0
- package/build/client/_app/immutable/assets/0.5df5b886.css +1 -0
- package/build/client/_app/immutable/assets/0.5df5b886.css.br +0 -0
- package/build/client/_app/immutable/assets/0.5df5b886.css.gz +0 -0
- package/build/client/_app/immutable/assets/_layout.bb9a93e0.css +1 -0
- package/build/client/_app/immutable/assets/_layout.bb9a93e0.css.br +0 -0
- package/build/client/_app/immutable/assets/_layout.bb9a93e0.css.gz +0 -0
- package/build/client/_app/immutable/chunks/5.4ed993c7.js +1 -0
- package/build/client/_app/immutable/chunks/5.4ed993c7.js.br +0 -0
- package/build/client/_app/immutable/chunks/5.4ed993c7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/each.ece37974.js +1 -0
- package/build/client/_app/immutable/chunks/each.ece37974.js.br +0 -0
- package/build/client/_app/immutable/chunks/each.ece37974.js.gz +0 -0
- package/build/client/_app/immutable/chunks/example-query.ac8ef50a.js +1 -0
- package/build/client/_app/immutable/chunks/example-query.ac8ef50a.js.br +0 -0
- package/build/client/_app/immutable/chunks/example-query.ac8ef50a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.81a0017d.js +1 -0
- package/build/client/_app/immutable/chunks/index.81a0017d.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.81a0017d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.d0e6da70.js +1 -0
- package/build/client/_app/immutable/chunks/index.d0e6da70.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.d0e6da70.js.gz +0 -0
- package/build/client/_app/immutable/chunks/input-colors.e7674f0c.js +1 -0
- package/build/client/_app/immutable/chunks/input-colors.e7674f0c.js.br +0 -0
- package/build/client/_app/immutable/chunks/input-colors.e7674f0c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/integer-input.e86d05ad.js +1 -0
- package/build/client/_app/immutable/chunks/integer-input.e86d05ad.js.br +0 -0
- package/build/client/_app/immutable/chunks/integer-input.e86d05ad.js.gz +0 -0
- package/build/client/_app/immutable/chunks/link.70630bff.js +1 -0
- package/build/client/_app/immutable/chunks/link.70630bff.js.br +0 -0
- package/build/client/_app/immutable/chunks/link.70630bff.js.gz +0 -0
- package/build/client/_app/immutable/chunks/preferences.e389d16d.js +1 -0
- package/build/client/_app/immutable/chunks/preferences.e389d16d.js.br +0 -0
- package/build/client/_app/immutable/chunks/preferences.e389d16d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/regexp.50bc0e87.js +1 -0
- package/build/client/_app/immutable/chunks/regexp.50bc0e87.js.br +2 -0
- package/build/client/_app/immutable/chunks/regexp.50bc0e87.js.gz +0 -0
- package/build/client/_app/immutable/chunks/scheduler.80902d3b.js +1 -0
- package/build/client/_app/immutable/chunks/scheduler.80902d3b.js.br +0 -0
- package/build/client/_app/immutable/chunks/scheduler.80902d3b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/singletons.a17b5cab.js +1 -0
- package/build/client/_app/immutable/chunks/singletons.a17b5cab.js.br +0 -0
- package/build/client/_app/immutable/chunks/singletons.a17b5cab.js.gz +0 -0
- package/build/client/_app/immutable/chunks/stores.a4da01c2.js +1 -0
- package/build/client/_app/immutable/chunks/stores.a4da01c2.js.br +0 -0
- package/build/client/_app/immutable/chunks/stores.a4da01c2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/toggle-search-type.f1a3061d.js +1 -0
- package/build/client/_app/immutable/chunks/toggle-search-type.f1a3061d.js.br +0 -0
- package/build/client/_app/immutable/chunks/toggle-search-type.f1a3061d.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.4673b9f2.js +1 -0
- package/build/client/_app/immutable/entry/app.4673b9f2.js.br +0 -0
- package/build/client/_app/immutable/entry/app.4673b9f2.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.6bed40d3.js +3 -0
- package/build/client/_app/immutable/entry/start.6bed40d3.js.br +0 -0
- package/build/client/_app/immutable/entry/start.6bed40d3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.529467ca.js +1 -0
- package/build/client/_app/immutable/nodes/0.529467ca.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.529467ca.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.abd8d795.js +1 -0
- package/build/client/_app/immutable/nodes/1.abd8d795.js.br +5 -0
- package/build/client/_app/immutable/nodes/1.abd8d795.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.28836ccc.js +9 -0
- package/build/client/_app/immutable/nodes/10.28836ccc.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.28836ccc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.93ac6006.js +25 -0
- package/build/client/_app/immutable/nodes/11.93ac6006.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.93ac6006.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.67089c6b.js +11 -0
- package/build/client/_app/immutable/nodes/12.67089c6b.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.67089c6b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.418c6178.js +5 -0
- package/build/client/_app/immutable/nodes/13.418c6178.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.418c6178.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.40bc0592.js +161 -0
- package/build/client/_app/immutable/nodes/14.40bc0592.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.40bc0592.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.08d89d34.js +9 -0
- package/build/client/_app/immutable/nodes/2.08d89d34.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.08d89d34.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.a382d3d5.js +8 -0
- package/build/client/_app/immutable/nodes/3.a382d3d5.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.a382d3d5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.37e53904.js +8 -0
- package/build/client/_app/immutable/nodes/4.37e53904.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.37e53904.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.6cd1e711.js +14 -0
- package/build/client/_app/immutable/nodes/6.6cd1e711.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.6cd1e711.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.b6576b19.js +8 -0
- package/build/client/_app/immutable/nodes/7.b6576b19.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.b6576b19.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.b18d1c14.js +7 -0
- package/build/client/_app/immutable/nodes/8.b18d1c14.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.b18d1c14.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.b3dcb728.js +12 -0
- package/build/client/_app/immutable/nodes/9.b3dcb728.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.b3dcb728.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/android-chrome-192x192.png +0 -0
- package/build/client/android-chrome-512x512.png +0 -0
- package/build/client/apple-touch-icon.png +0 -0
- package/build/client/favicon-16x16.png +0 -0
- package/build/client/favicon-32x32.png +0 -0
- package/build/client/favicon.ico +0 -0
- package/build/client/site.webmanifest +19 -0
- package/build/env.js +37 -0
- package/build/handler.js +1307 -0
- package/build/index.js +225 -0
- package/build/server/chunks/0-040b7d6d.js +27 -0
- package/build/server/chunks/0-040b7d6d.js.map +1 -0
- package/build/server/chunks/1-5c251174.js +9 -0
- package/build/server/chunks/1-5c251174.js.map +1 -0
- package/build/server/chunks/10-f6f67083.js +133 -0
- package/build/server/chunks/10-f6f67083.js.map +1 -0
- package/build/server/chunks/11-1055c6c2.js +9 -0
- package/build/server/chunks/11-1055c6c2.js.map +1 -0
- package/build/server/chunks/12-fb53c717.js +9 -0
- package/build/server/chunks/12-fb53c717.js.map +1 -0
- package/build/server/chunks/13-7237c6c6.js +85 -0
- package/build/server/chunks/13-7237c6c6.js.map +1 -0
- package/build/server/chunks/14-6241604d.js +9 -0
- package/build/server/chunks/14-6241604d.js.map +1 -0
- package/build/server/chunks/2-bd870b05.js +9 -0
- package/build/server/chunks/2-bd870b05.js.map +1 -0
- package/build/server/chunks/3-255408ab.js +57 -0
- package/build/server/chunks/3-255408ab.js.map +1 -0
- package/build/server/chunks/4-99742ef4.js +57 -0
- package/build/server/chunks/4-99742ef4.js.map +1 -0
- package/build/server/chunks/5-369c06ab.js +19 -0
- package/build/server/chunks/5-369c06ab.js.map +1 -0
- package/build/server/chunks/6-fc810a9f.js +57 -0
- package/build/server/chunks/6-fc810a9f.js.map +1 -0
- package/build/server/chunks/7-992dd8b0.js +57 -0
- package/build/server/chunks/7-992dd8b0.js.map +1 -0
- package/build/server/chunks/8-a92e2ef7.js +454 -0
- package/build/server/chunks/8-a92e2ef7.js.map +1 -0
- package/build/server/chunks/9-55cb67b6.js +59 -0
- package/build/server/chunks/9-55cb67b6.js.map +1 -0
- package/build/server/chunks/_error.svelte-dd890063.js +13 -0
- package/build/server/chunks/_error.svelte-dd890063.js.map +1 -0
- package/build/server/chunks/_layout.svelte-9a1c428f.js +37 -0
- package/build/server/chunks/_layout.svelte-9a1c428f.js.map +1 -0
- package/build/server/chunks/_layout.svelte-bed2b2d4.js +39 -0
- package/build/server/chunks/_layout.svelte-bed2b2d4.js.map +1 -0
- package/build/server/chunks/_page.svelte-2f290f09.js +30 -0
- package/build/server/chunks/_page.svelte-2f290f09.js.map +1 -0
- package/build/server/chunks/_page.svelte-33789d2d.js +36 -0
- package/build/server/chunks/_page.svelte-33789d2d.js.map +1 -0
- package/build/server/chunks/_page.svelte-5bb56058.js +41 -0
- package/build/server/chunks/_page.svelte-5bb56058.js.map +1 -0
- package/build/server/chunks/_page.svelte-701b9558.js +284 -0
- package/build/server/chunks/_page.svelte-701b9558.js.map +1 -0
- package/build/server/chunks/_page.svelte-7848979a.js +396 -0
- package/build/server/chunks/_page.svelte-7848979a.js.map +1 -0
- package/build/server/chunks/_page.svelte-7a8514c3.js +37 -0
- package/build/server/chunks/_page.svelte-7a8514c3.js.map +1 -0
- package/build/server/chunks/_page.svelte-9ea0ef4c.js +120 -0
- package/build/server/chunks/_page.svelte-9ea0ef4c.js.map +1 -0
- package/build/server/chunks/_page.svelte-a1e80515.js +30 -0
- package/build/server/chunks/_page.svelte-a1e80515.js.map +1 -0
- package/build/server/chunks/_page.svelte-cf45c2db.js +124 -0
- package/build/server/chunks/_page.svelte-cf45c2db.js.map +1 -0
- package/build/server/chunks/_page.svelte-dcbbe643.js +56 -0
- package/build/server/chunks/_page.svelte-dcbbe643.js.map +1 -0
- package/build/server/chunks/_page.svelte-f4064b9c.js +30 -0
- package/build/server/chunks/_page.svelte-f4064b9c.js.map +1 -0
- package/build/server/chunks/_server.ts-93a1fbab.js +354 -0
- package/build/server/chunks/_server.ts-93a1fbab.js.map +1 -0
- package/build/server/chunks/_server.ts-dec04c7b.js +12 -0
- package/build/server/chunks/_server.ts-dec04c7b.js.map +1 -0
- package/build/server/chunks/configuration-d033c4d1.js +48 -0
- package/build/server/chunks/configuration-d033c4d1.js.map +1 -0
- package/build/server/chunks/example-query-99034259.js +39 -0
- package/build/server/chunks/example-query-99034259.js.map +1 -0
- package/build/server/chunks/hooks.server-cb019385.js +32 -0
- package/build/server/chunks/hooks.server-cb019385.js.map +1 -0
- package/build/server/chunks/index-64aa7a5e.js +84 -0
- package/build/server/chunks/index-64aa7a5e.js.map +1 -0
- package/build/server/chunks/index2-7c17b4da.js +100 -0
- package/build/server/chunks/index2-7c17b4da.js.map +1 -0
- package/build/server/chunks/input-colors-c9063ebd.js +15 -0
- package/build/server/chunks/input-colors-c9063ebd.js.map +1 -0
- package/build/server/chunks/integer-input-9f57bf61.js +40 -0
- package/build/server/chunks/integer-input-9f57bf61.js.map +1 -0
- package/build/server/chunks/lifecycle-cbdd95e4.js +84 -0
- package/build/server/chunks/lifecycle-cbdd95e4.js.map +1 -0
- package/build/server/chunks/link-fded4b17.js +11 -0
- package/build/server/chunks/link-fded4b17.js.map +1 -0
- package/build/server/chunks/metrics-a6a74309.js +43 -0
- package/build/server/chunks/metrics-a6a74309.js.map +1 -0
- package/build/server/chunks/navigation-a410b94d.js +22 -0
- package/build/server/chunks/navigation-a410b94d.js.map +1 -0
- package/build/server/chunks/preferences-304b2e02.js +84 -0
- package/build/server/chunks/preferences-304b2e02.js.map +1 -0
- package/build/server/chunks/regexp-5017d573.js +4 -0
- package/build/server/chunks/regexp-5017d573.js.map +1 -0
- package/build/server/chunks/ssr-0f259a0f.js +195 -0
- package/build/server/chunks/ssr-0f259a0f.js.map +1 -0
- package/build/server/chunks/stores-2f0685cf.js +32 -0
- package/build/server/chunks/stores-2f0685cf.js.map +1 -0
- package/build/server/chunks/toggle-search-type-6ced5306.js +106 -0
- package/build/server/chunks/toggle-search-type-6ced5306.js.map +1 -0
- package/build/server/chunks/zoekt-client-dec73ec9.js +26 -0
- package/build/server/chunks/zoekt-client-dec73ec9.js.map +1 -0
- package/build/server/chunks/zoekt-list-repositories-773bcddb.js +100 -0
- package/build/server/chunks/zoekt-list-repositories-773bcddb.js.map +1 -0
- package/build/server/index.js +4070 -0
- package/build/server/index.js.map +1 -0
- package/build/server/manifest.js +142 -0
- package/build/server/manifest.js.map +1 -0
- package/build/shims.js +0 -0
- package/main.js +91 -0
- package/package.json +64 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{d as vs}from"../chunks/index.81a0017d.js";import{p as is,n as us}from"../chunks/stores.a4da01c2.js";import{g as ys,I as fs,a as cs,b as hs,T as ks}from"../chunks/toggle-search-type.f1a3061d.js";import{$ as Gl,n as Ne,a2 as Zt,a7 as Nn,k as ms,u as ps,r as _s,v as gs,e as p,c as _,a as k,d as m,f as g,i as z,q as Kt,j as Je,a8 as xs,w as Sn,l as $,o as b,p as D,g as o,y as Jl,a0 as ws,z as bl,A as Cs,a1 as Es,t as H,b as j,s as te,h as rn,J as ke,H as kl,I as Ln,m as qs}from"../chunks/scheduler.80902d3b.js";import{S as Pe,i as Ie,c as N,a as P,m as I,t as x,b as w,d as A,f as vl,g as zt,e as Rt}from"../chunks/index.d0e6da70.js";import{c as ds,d as Ls,b as Ss}from"../chunks/preferences.e389d16d.js";import{I as yl}from"../chunks/integer-input.e86d05ad.js";import{c as Kl}from"../chunks/input-colors.e7674f0c.js";import{L as sn}from"../chunks/link.70630bff.js";import{E as Z}from"../chunks/example-query.ac8ef50a.js";import{e as Ke,u as Ns,o as Ps}from"../chunks/each.ece37974.js";const Wt=Object.freeze({contextLines:1,files:20,matches:500}),xl=r=>{const e=Number.parseInt(r.get("contextLines")??"",10),n=Number.parseInt(r.get("files")??"",10),t=Number.parseInt(r.get("matches")??"",10),l=r.get("q")||void 0,s=e>=0?e:Wt.contextLines,a=n>0?n:Wt.files,f=t>=0?t:Wt.matches;return{query:l,contextLines:s,files:a,matches:f}},Pn=vs(is,r=>xl(r.url.searchParams));let Wl=0;const ln=({query:r,contextLines:e,files:n,matches:t,searchType:l})=>{var d,c;const s=((c=(d=Gl(us))==null?void 0:d.to)==null?void 0:c.url)??Gl(is).url,a=xl(s.searchParams),f=r!==void 0&&(r||void 0)!==a.query,i=e!==void 0&&e>=0&&e!==a.contextLines,u=n!==void 0&&n>=0&&n!==a.files,h=t!==void 0&&t>=0&&t!==a.matches;if(f||i||u||h){const v=Date.now(),C=new URL(s);f&&r?C.searchParams.set("q",r):f&&C.searchParams.delete("q"),i&&e===Wt.contextLines?C.searchParams.delete("contextLines"):i&&C.searchParams.set("contextLines",e.toString()),u&&n===Wt.files?C.searchParams.delete("files"):u&&C.searchParams.set("files",n.toString()),h&&t===Wt.matches?C.searchParams.delete("matches"):h&&C.searchParams.set("matches",t.toString()),ys(C,{replaceState:l==="live"&&v-Wl<2e3,keepFocus:!0,noScroll:!0}),Wl=v}},Is=async({url:r,fetch:e})=>({searchOutcome:await As(r,e)}),As=async(r,e)=>{const{query:n,...t}=xl(new URL(r).searchParams);if(n===void 0)return{kind:"none"};try{const s=await(await e("/api/search",{method:"POST",body:JSON.stringify({query:n,...t}),headers:{"content-type":"application/json"}})).json();return s.kind==="success"?{kind:"success",results:s.results}:s}catch(l){return console.error("Search failed",l),{kind:"error",error:String(l)}}},zr=Object.freeze(Object.defineProperty({__proto__:null,load:Is},Symbol.toStringTag,{value:"Module"}));function Ts(r){let e;const n=r[2].default,t=ms(n,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&8)&&ps(t,n,l,l[3],e?gs(n,l[3],s,null):_s(l[3]),null)},i(l){e||(x(t,l),e=!0)},o(l){w(t,l),e=!1},d(l){t&&t.d(l)}}}function Ms(r){let e,n;const t=[{name:"chevron-right"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Ts]},$$scope:{ctx:r}};for(let s=0;s<t.length;s+=1)l=Zt(l,t[s]);return e=new fs({props:l}),{c(){N(e.$$.fragment)},l(s){P(e.$$.fragment,s)},m(s,a){I(e,s,a),n=!0},p(s,[a]){const f=a&3?cs(t,[t[0],a&2&&hs(s[1]),a&1&&{iconNode:s[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:s}),e.$set(f)},i(s){n||(x(e.$$.fragment,s),n=!0)},o(s){w(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Os(r,e,n){let{$$slots:t={},$$scope:l}=e;const s=[["polyline",{points:"9 18 15 12 9 6"}]];return r.$$set=a=>{n(1,e=Zt(Zt({},e),Nn(a))),"$$scope"in a&&n(3,l=a.$$scope)},e=Nn(e),[s,e,t,l]}class Hs extends Pe{constructor(e){super(),Ie(this,e,Os,Ms,Ne,{})}}const js=Hs;function Us(r){let e;const n=r[2].default,t=ms(n,r,r[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&8)&&ps(t,n,l,l[3],e?gs(n,l[3],s,null):_s(l[3]),null)},i(l){e||(x(t,l),e=!0)},o(l){w(t,l),e=!1},d(l){t&&t.d(l)}}}function zs(r){let e,n;const t=[{name:"list-ordered"},r[1],{iconNode:r[0]}];let l={$$slots:{default:[Us]},$$scope:{ctx:r}};for(let s=0;s<t.length;s+=1)l=Zt(l,t[s]);return e=new fs({props:l}),{c(){N(e.$$.fragment)},l(s){P(e.$$.fragment,s)},m(s,a){I(e,s,a),n=!0},p(s,[a]){const f=a&3?cs(t,[t[0],a&2&&hs(s[1]),a&1&&{iconNode:s[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:s}),e.$set(f)},i(s){n||(x(e.$$.fragment,s),n=!0)},o(s){w(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Rs(r,e,n){let{$$slots:t={},$$scope:l}=e;const s=[["line",{x1:"10",x2:"21",y1:"6",y2:"6"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18"}],["path",{d:"M4 6h1v4"}],["path",{d:"M4 10h2"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"}]];return r.$$set=a=>{n(1,e=Zt(Zt({},e),Nn(a))),"$$scope"in a&&n(3,l=a.$$scope)},e=Nn(e),[s,e,t,l]}class Ds extends Pe{constructor(e){super(),Ie(this,e,Rs,zs,Ne,{})}}const Bs=Ds;function Qs(r){let e,n,t,l,s,a,f;return n=new Bs({props:{class:"inline",size:18,color:r[0]==="line-number"?"white":"black",strokeWidth:1,fill:r[0]==="line-number"?"white":"black"}}),{c(){e=p("button"),N(n.$$.fragment),this.h()},l(i){e=_(i,"BUTTON",{class:!0,title:!0});var u=k(e);P(n.$$.fragment,u),u.forEach(m),this.h()},h(){g(e,"class",t=`rounded w-6 grid place-items-center ${r[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`),g(e,"title",l=r[0]==="line-number"?"sort matches by score":"sort matches by line number")},m(i,u){z(i,e,u),I(n,e,null),s=!0,a||(f=Kt(e,"click",r[2]),a=!0)},p(i,[u]){const h={};u&1&&(h.color=i[0]==="line-number"?"white":"black"),u&1&&(h.fill=i[0]==="line-number"?"white":"black"),n.$set(h),(!s||u&1&&t!==(t=`rounded w-6 grid place-items-center ${i[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&g(e,"class",t),(!s||u&1&&l!==(l=i[0]==="line-number"?"sort matches by score":"sort matches by line number"))&&g(e,"title",l)},i(i){s||(x(n.$$.fragment,i),s=!0)},o(i){w(n.$$.fragment,i),s=!1},d(i){i&&m(e),A(n),a=!1,f()}}}function Fs(r,e,n){let t;const l=ds();return Je(r,l,a=>n(0,t=a)),[t,l,()=>{xs(l,t=t==="line-number"?"score":"line-number",t)}]}class Vs extends Pe{constructor(e){super(),Ie(this,e,Fs,Qs,Ne,{})}}function Zl(r){let e,n;return{c(){e=p("span"),n=H(r[0]),this.h()},l(t){e=_(t,"SPAN",{class:!0});var l=k(e);n=j(l,r[0]),l.forEach(m),this.h()},h(){g(e,"class","text-xs text-red-500")},m(t,l){z(t,e,l),o(e,n)},p(t,l){l&1&&te(n,t[0])},d(t){t&&m(e)}}}function Gs(r){let e,n,t,l,s,a,f="query",i,u,h,d,c,v,C,U,T,M,q,F="context",ne,Q,he,re,G,le,oe="files",$e,L,ge,me,se,Y,pe="matches",J,X,de,K,B,ie,Me;c=new ks({}),C=new Vs({});function S(O){r[17](O)}let E={id:"context",pending:r[8]};r[2]!==void 0&&(E.value=r[2]),Q=new yl({props:E}),Sn.push(()=>vl(Q,"value",S)),Q.$on("change",r[18]);function R(O){r[19](O)}let ce={id:"files",kind:"positive",pending:r[7]};r[3]!==void 0&&(ce.value=r[3]),L=new yl({props:ce}),Sn.push(()=>vl(L,"value",R)),L.$on("change",r[20]);function we(O){r[21](O)}let _e={id:"matches",kind:"positive",pending:r[6]};r[4]!==void 0&&(_e.value=r[4]),X=new yl({props:_e}),Sn.push(()=>vl(X,"value",we)),X.$on("change",r[22]);let W=r[0]!==null&&Zl(r);return{c(){e=p("form"),n=p("input"),t=$(),l=p("div"),s=p("label"),a=p("span"),a.textContent=f,i=$(),u=p("span"),h=p("input"),d=$(),N(c.$$.fragment),v=$(),N(C.$$.fragment),T=$(),M=p("label"),q=p("span"),q.textContent=F,ne=$(),N(Q.$$.fragment),re=$(),G=p("label"),le=p("span"),le.textContent=oe,$e=$(),N(L.$$.fragment),me=$(),se=p("label"),Y=p("span"),Y.textContent=pe,J=$(),N(X.$$.fragment),K=$(),W&&W.c(),this.h()},l(O){e=_(O,"FORM",{});var V=k(e);n=_(V,"INPUT",{type:!0,class:!0}),t=b(V),l=_(V,"DIV",{class:!0});var ee=k(l);s=_(ee,"LABEL",{for:!0,class:!0});var be=k(s);a=_(be,"SPAN",{class:!0,"data-svelte-h":!0}),D(a)!=="svelte-14opivx"&&(a.textContent=f),i=b(be),u=_(be,"SPAN",{class:!0});var ae=k(u);h=_(ae,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),d=b(ae),P(c.$$.fragment,ae),v=b(ae),P(C.$$.fragment,ae),ae.forEach(m),be.forEach(m),T=b(ee),M=_(ee,"LABEL",{for:!0,class:!0});var We=k(M);q=_(We,"SPAN",{class:!0,"data-svelte-h":!0}),D(q)!=="svelte-1nbzu36"&&(q.textContent=F),ne=b(We),P(Q.$$.fragment,We),We.forEach(m),re=b(ee),G=_(ee,"LABEL",{for:!0,class:!0});var Oe=k(G);le=_(Oe,"SPAN",{class:!0,"data-svelte-h":!0}),D(le)!=="svelte-1pt1x6a"&&(le.textContent=oe),$e=b(Oe),P(L.$$.fragment,Oe),Oe.forEach(m),me=b(ee),se=_(ee,"LABEL",{for:!0,class:!0});var ve=k(se);Y=_(ve,"SPAN",{class:!0,"data-svelte-h":!0}),D(Y)!=="svelte-1hdyrgs"&&(Y.textContent=pe),J=b(ve),P(X.$$.fragment,ve),ve.forEach(m),ee.forEach(m),K=b(V),W&&W.l(V),V.forEach(m),this.h()},h(){g(n,"type","submit"),g(n,"class","hidden"),g(a,"class","text-xs px-1 text-gray-500"),g(h,"id","query"),g(h,"type","search"),h.autofocus=!0,g(h,"spellcheck",!1),g(h,"autocorrect","off"),g(h,"autocapitalize","off"),g(h,"autocomplete","off"),g(h,"class","font-mono focus:outline-none flex-auto appearance-none"),g(u,"class",U=`flex flex-auto p-1 border shadow-sm space-x-1 ${Kl({error:r[0]!==null,pending:r[9]})}`),g(s,"for","query"),g(s,"class","flex-auto flex flex-col space-y-0.5"),g(q,"class","text-xs px-1 text-gray-500"),g(M,"for","context"),g(M,"class","flex flex-col space-y-0.5"),g(le,"class","text-xs px-1 text-gray-500"),g(G,"for","files"),g(G,"class","flex flex-col space-y-0.5"),g(Y,"class","text-xs px-1 text-gray-500"),g(se,"for","matches"),g(se,"class","flex flex-col space-y-0.5"),g(l,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap")},m(O,V){z(O,e,V),o(e,n),o(e,t),o(e,l),o(l,s),o(s,a),o(s,i),o(s,u),o(u,h),Jl(h,r[1]),o(u,d),I(c,u,null),o(u,v),I(C,u,null),o(l,T),o(l,M),o(M,q),o(M,ne),I(Q,M,null),o(l,re),o(l,G),o(G,le),o(G,$e),I(L,G,null),o(l,me),o(l,se),o(se,Y),o(se,J),I(X,se,null),o(e,K),W&&W.m(e,null),B=!0,h.focus(),ie||(Me=[Kt(h,"input",r[15]),Kt(h,"input",r[16]),Kt(e,"submit",ws(r[23]))],ie=!0)},p(O,[V]){V&2&&h.value!==O[1]&&Jl(h,O[1]),(!B||V&513&&U!==(U=`flex flex-auto p-1 border shadow-sm space-x-1 ${Kl({error:O[0]!==null,pending:O[9]})}`))&&g(u,"class",U);const ee={};V&256&&(ee.pending=O[8]),!he&&V&4&&(he=!0,ee.value=O[2],bl(()=>he=!1)),Q.$set(ee);const be={};V&128&&(be.pending=O[7]),!ge&&V&8&&(ge=!0,be.value=O[3],bl(()=>ge=!1)),L.$set(be);const ae={};V&64&&(ae.pending=O[6]),!de&&V&16&&(de=!0,ae.value=O[4],bl(()=>de=!1)),X.$set(ae),O[0]!==null?W?W.p(O,V):(W=Zl(O),W.c(),W.m(e,null)):W&&(W.d(1),W=null)},i(O){B||(x(c.$$.fragment,O),x(C.$$.fragment,O),x(Q.$$.fragment,O),x(L.$$.fragment,O),x(X.$$.fragment,O),B=!0)},o(O){w(c.$$.fragment,O),w(C.$$.fragment,O),w(Q.$$.fragment,O),w(L.$$.fragment,O),w(X.$$.fragment,O),B=!1},d(O){O&&m(e),A(c),A(C),A(Q),A(L),A(X),W&&W.d(),ie=!1,Cs(Me)}}}function Js(r,e,n){let t,l,s,a,f,i,u;Je(r,Pn,L=>n(13,f=L)),Je(r,us,L=>n(14,i=L));let{queryError:h=null}=e;const d=Ls();Je(r,d,L=>n(5,u=L));let c,v,C,U;const T=Pn.subscribe(L=>{(i==null?void 0:i.type)!=="goto"&&n(1,{query:c,contextLines:v,files:C,matches:U}=L,c,n(2,v),n(3,C),n(4,U))});Es(T);const M=()=>{ln({query:c,contextLines:v,files:C,matches:U,searchType:u})};let q;function F(){c=this.value,n(1,c)}const ne=()=>{u==="live"&&ln({query:c,searchType:u})};function Q(L){v=L,n(2,v)}const he=L=>{u==="live"&&ln({contextLines:L.detail,searchType:u})};function re(L){C=L,n(3,C)}const G=L=>{u==="live"&&ln({files:L.detail,searchType:u})};function le(L){U=L,n(4,U)}const oe=L=>{u==="live"&&ln({matches:L.detail,searchType:u})},$e=()=>{u==="manual"&&M()};return r.$$set=L=>{"queryError"in L&&n(0,h=L.queryError)},r.$$.update=()=>{r.$$.dirty&4128&&(u==="live"&&q==="manual"&&M(),n(12,q=u)),r.$$.dirty&24578&&n(9,t=i===null&&(f.query??"")!==(c??"")),r.$$.dirty&24580&&n(8,l=i===null&&f.contextLines!==v),r.$$.dirty&24584&&n(7,s=i===null&&f.files!==C),r.$$.dirty&24592&&n(6,a=i===null&&f.matches!==U)},[h,c,v,C,U,u,a,s,l,t,d,M,q,f,i,F,ne,Q,he,re,G,le,oe,$e]}class Ks extends Pe{constructor(e){super(),Ie(this,e,Js,Gs,Ne,{queryError:0})}}function Ws(r){let e,n="or, learn the query syntax from the ground up";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=_(t,"SPAN",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-2dyn7y"&&(e.textContent=n),this.h()},h(){g(e,"class","text-xs")},m(t,l){z(t,e,l)},p:rn,d(t){t&&m(e)}}}function Zs(r){let e;return{c(){e=H("universal-ctags")},l(n){e=j(n,"universal-ctags")},m(n,t){z(n,e,t)},d(n){n&&m(e)}}}function Xs(r){let e;return{c(){e=H("expression")},l(n){e=j(n,"expression")},m(n,t){z(n,e,t)},d(n){n&&m(e)}}}function Ys(r){let e;return{c(){e=H("expressions")},l(n){e=j(n,"expressions")},m(n,t){z(n,e,t)},d(n){n&&m(e)}}}function er(r){let e,n="ɴᴇᴏɢʀᴏᴋ",t,l,s,a,f="query examples",i,u,h,d,c,v,C="Every query is regex",U,T,M,q,F,ne,Q="dot is a wildcard",he,re,G,le,oe,$e="escaped dot is a dot",L,ge,me,se,Y,pe,J,X,de="multiline search!",K,B,ie,Me="Filter results by...",S,E,R,ce,we,_e,W="(or <code>f:</code>)",O,V,ee,be,ae,We="(or <code>r:</code>)",Oe,ve,Ze,In,Xe,Cl="(or <code>b:</code>)",An,Xt,Ye,Tn,He,et,El="Exclude certain kinds of repositories",Mn,Ce,tt,nt,On,lt,ql="(or <code>yes</code>)",Hn,st,rt,jn,at,Ll="(or <code>yes</code>)",Un,ot,it,zn,ut,Sl="(or <code>yes</code>)",Rn,Ee,ft,Nl="Search for symbol definitions",Dn,je,Bn,Ue,Qn,Fn,ze,Yt,ct,Vn,en,ht,Gn,qe,mt,Pl="Automatic case sensitivity",Jn,pt,Il=`If a query is all-lowercase, it is case insensitive by default;
|
|
2
|
+
otherwise it is case-sensitive by default. Change that with
|
|
3
|
+
<code>case:</code>.`,Kn,Re,Ae,_t,Wn,gt,Al="vs",Zn,dt,Xn,Te,$t,Yn,bt,Tl="vs",el,vt,tl,Le,yt,Ml="Use double quotes for queries with spaces",nl,De,ll,Be,sl,rl,Qe,tn,kt,al,nn,xt,ol,Se,wt,il,Fe,ul,Ct,Ol="Seriously, read the manual for this one.",fl,ye,Et,qt,cl,Lt,Hl="negate with a leading dash",hl,St,Nt,ml,Pt,jl="expressions are implicitly 'and'ed…",pl,It,At,_l,Tt,Ul="…but explicitly 'or'ed",gl,Mt,Ot,dl,Ht,zl="group expressions with parentheses",an;return u=new sn({props:{to:"/syntax",$$slots:{default:[Ws]},$$scope:{ctx:r}}}),q=new Z({props:{query:".printf"}}),G=new Z({props:{query:"\\.printf"}}),me=new Z({props:{query:"whom?"}}),pe=new Z({props:{query:"OR[[:space:]]IMPLIED"}}),ce=new Z({props:{query:"file:README test"}}),ee=new Z({props:{query:"repo:linux test"}}),Ze=new Z({props:{query:"branch:pages test"}}),Ye=new Z({props:{query:"lang:java test"}}),nt=new Z({props:{query:"fork:no test"}}),rt=new Z({props:{query:"public:no test"}}),it=new Z({props:{query:"archived:no test"}}),Ue=new sn({props:{to:"https://ctags.io",$$slots:{default:[Zs]},$$scope:{ctx:r}}}),ct=new Z({props:{query:"sym:main"}}),ht=new Z({props:{query:"sym:Test[A-Z]"}}),_t=new Z({props:{query:"readme"}}),dt=new Z({props:{query:"readme case:yes"}}),$t=new Z({props:{query:"README"}}),vt=new Z({props:{query:"README case:no"}}),Be=new sn({props:{to:"/syntax#expressions",$$slots:{default:[Xs]},$$scope:{ctx:r}}}),kt=new Z({props:{query:'"run the test"'}}),xt=new Z({props:{query:'"goto considered harmful"'}}),Fe=new sn({props:{to:"/syntax#expressions",$$slots:{default:[Ys]},$$scope:{ctx:r}}}),qt=new Z({props:{query:"this -without_this"}}),Nt=new Z({props:{query:"all of these"}}),At=new Z({props:{query:"any or of or these"}}),Ot=new Z({props:{query:"(all of these) (any or of or these)"}}),{c(){e=p("h1"),e.textContent=n,t=$(),l=p("div"),s=p("span"),a=p("h2"),a.textContent=f,i=$(),N(u.$$.fragment),h=$(),d=p("ul"),c=p("li"),v=p("h3"),v.textContent=C,U=$(),T=p("ul"),M=p("li"),N(q.$$.fragment),F=$(),ne=p("span"),ne.textContent=Q,he=$(),re=p("li"),N(G.$$.fragment),le=$(),oe=p("span"),oe.textContent=$e,L=$(),ge=p("li"),N(me.$$.fragment),se=$(),Y=p("li"),N(pe.$$.fragment),J=$(),X=p("span"),X.textContent=de,K=$(),B=p("li"),ie=p("h3"),ie.textContent=Me,S=$(),E=p("ul"),R=p("li"),N(ce.$$.fragment),we=$(),_e=p("span"),_e.innerHTML=W,O=$(),V=p("li"),N(ee.$$.fragment),be=$(),ae=p("span"),ae.innerHTML=We,Oe=$(),ve=p("li"),N(Ze.$$.fragment),In=$(),Xe=p("span"),Xe.innerHTML=Cl,An=$(),Xt=p("li"),N(Ye.$$.fragment),Tn=$(),He=p("li"),et=p("h3"),et.textContent=El,Mn=$(),Ce=p("ul"),tt=p("li"),N(nt.$$.fragment),On=$(),lt=p("span"),lt.innerHTML=ql,Hn=$(),st=p("li"),N(rt.$$.fragment),jn=$(),at=p("span"),at.innerHTML=Ll,Un=$(),ot=p("li"),N(it.$$.fragment),zn=$(),ut=p("span"),ut.innerHTML=Sl,Rn=$(),Ee=p("li"),ft=p("h3"),ft.textContent=Nl,Dn=$(),je=p("p"),Bn=H("As identified by "),N(Ue.$$.fragment),Qn=H("."),Fn=$(),ze=p("ul"),Yt=p("li"),N(ct.$$.fragment),Vn=$(),en=p("li"),N(ht.$$.fragment),Gn=$(),qe=p("li"),mt=p("h3"),mt.textContent=Pl,Jn=$(),pt=p("p"),pt.innerHTML=Il,Kn=$(),Re=p("ul"),Ae=p("li"),N(_t.$$.fragment),Wn=$(),gt=p("span"),gt.textContent=Al,Zn=$(),N(dt.$$.fragment),Xn=$(),Te=p("li"),N($t.$$.fragment),Yn=$(),bt=p("span"),bt.textContent=Tl,el=$(),N(vt.$$.fragment),tl=$(),Le=p("li"),yt=p("h3"),yt.textContent=Ml,nl=$(),De=p("p"),ll=H(`Otherwise each word is parsed as a separate
|
|
4
|
+
`),N(Be.$$.fragment),sl=H("."),rl=$(),Qe=p("ul"),tn=p("li"),N(kt.$$.fragment),al=$(),nn=p("li"),N(xt.$$.fragment),ol=$(),Se=p("li"),wt=p("h3"),il=H("Logically compose "),N(Fe.$$.fragment),ul=$(),Ct=p("span"),Ct.textContent=Ol,fl=$(),ye=p("ul"),Et=p("li"),N(qt.$$.fragment),cl=$(),Lt=p("span"),Lt.textContent=Hl,hl=$(),St=p("li"),N(Nt.$$.fragment),ml=$(),Pt=p("span"),Pt.textContent=jl,pl=$(),It=p("li"),N(At.$$.fragment),_l=$(),Tt=p("span"),Tt.textContent=Ul,gl=$(),Mt=p("li"),N(Ot.$$.fragment),dl=$(),Ht=p("span"),Ht.textContent=zl,this.h()},l(y){e=_(y,"H1",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-wconra"&&(e.textContent=n),t=b(y),l=_(y,"DIV",{class:!0});var ue=k(l);s=_(ue,"SPAN",{class:!0});var jt=k(s);a=_(jt,"H2",{class:!0,"data-svelte-h":!0}),D(a)!=="svelte-1nqizqb"&&(a.textContent=f),i=b(jt),P(u.$$.fragment,jt),jt.forEach(m),h=b(ue),d=_(ue,"UL",{class:!0});var fe=k(d);c=_(fe,"LI",{class:!0});var Ut=k(c);v=_(Ut,"H3",{class:!0,"data-svelte-h":!0}),D(v)!=="svelte-1eyozjq"&&(v.textContent=C),U=b(Ut),T=_(Ut,"UL",{class:!0});var xe=k(T);M=_(xe,"LI",{});var on=k(M);P(q.$$.fragment,on),F=b(on),ne=_(on,"SPAN",{class:!0,"data-svelte-h":!0}),D(ne)!=="svelte-1kofq96"&&(ne.textContent=Q),on.forEach(m),he=b(xe),re=_(xe,"LI",{});var un=k(re);P(G.$$.fragment,un),le=b(un),oe=_(un,"SPAN",{class:!0,"data-svelte-h":!0}),D(oe)!=="svelte-18jaiso"&&(oe.textContent=$e),un.forEach(m),L=b(xe),ge=_(xe,"LI",{});var Rl=k(ge);P(me.$$.fragment,Rl),Rl.forEach(m),se=b(xe),Y=_(xe,"LI",{});var fn=k(Y);P(pe.$$.fragment,fn),J=b(fn),X=_(fn,"SPAN",{class:!0,"data-svelte-h":!0}),D(X)!=="svelte-1visk1u"&&(X.textContent=de),fn.forEach(m),xe.forEach(m),Ut.forEach(m),K=b(fe),B=_(fe,"LI",{class:!0});var cn=k(B);ie=_(cn,"H3",{class:!0,"data-svelte-h":!0}),D(ie)!=="svelte-1hsesxl"&&(ie.textContent=Me),S=b(cn),E=_(cn,"UL",{class:!0});var Ve=k(E);R=_(Ve,"LI",{});var hn=k(R);P(ce.$$.fragment,hn),we=b(hn),_e=_(hn,"SPAN",{class:!0,"data-svelte-h":!0}),D(_e)!=="svelte-1o4wzqf"&&(_e.innerHTML=W),hn.forEach(m),O=b(Ve),V=_(Ve,"LI",{});var mn=k(V);P(ee.$$.fragment,mn),be=b(mn),ae=_(mn,"SPAN",{class:!0,"data-svelte-h":!0}),D(ae)!=="svelte-13puatn"&&(ae.innerHTML=We),mn.forEach(m),Oe=b(Ve),ve=_(Ve,"LI",{});var pn=k(ve);P(Ze.$$.fragment,pn),In=b(pn),Xe=_(pn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Xe)!=="svelte-17xlaaj"&&(Xe.innerHTML=Cl),pn.forEach(m),An=b(Ve),Xt=_(Ve,"LI",{});var Dl=k(Xt);P(Ye.$$.fragment,Dl),Dl.forEach(m),Ve.forEach(m),cn.forEach(m),Tn=b(fe),He=_(fe,"LI",{class:!0});var _n=k(He);et=_(_n,"H3",{class:!0,"data-svelte-h":!0}),D(et)!=="svelte-l49uq"&&(et.textContent=El),Mn=b(_n),Ce=_(_n,"UL",{class:!0});var Dt=k(Ce);tt=_(Dt,"LI",{});var gn=k(tt);P(nt.$$.fragment,gn),On=b(gn),lt=_(gn,"SPAN",{class:!0,"data-svelte-h":!0}),D(lt)!=="svelte-71g2qu"&&(lt.innerHTML=ql),gn.forEach(m),Hn=b(Dt),st=_(Dt,"LI",{});var dn=k(st);P(rt.$$.fragment,dn),jn=b(dn),at=_(dn,"SPAN",{class:!0,"data-svelte-h":!0}),D(at)!=="svelte-71g2qu"&&(at.innerHTML=Ll),dn.forEach(m),Un=b(Dt),ot=_(Dt,"LI",{});var $n=k(ot);P(it.$$.fragment,$n),zn=b($n),ut=_($n,"SPAN",{class:!0,"data-svelte-h":!0}),D(ut)!=="svelte-71g2qu"&&(ut.innerHTML=Sl),$n.forEach(m),Dt.forEach(m),_n.forEach(m),Rn=b(fe),Ee=_(fe,"LI",{class:!0});var Bt=k(Ee);ft=_(Bt,"H3",{class:!0,"data-svelte-h":!0}),D(ft)!=="svelte-1w9svfj"&&(ft.textContent=Nl),Dn=b(Bt),je=_(Bt,"P",{class:!0});var bn=k(je);Bn=j(bn,"As identified by "),P(Ue.$$.fragment,bn),Qn=j(bn,"."),bn.forEach(m),Fn=b(Bt),ze=_(Bt,"UL",{class:!0});var vn=k(ze);Yt=_(vn,"LI",{});var Bl=k(Yt);P(ct.$$.fragment,Bl),Bl.forEach(m),Vn=b(vn),en=_(vn,"LI",{});var Ql=k(en);P(ht.$$.fragment,Ql),Ql.forEach(m),vn.forEach(m),Bt.forEach(m),Gn=b(fe),qe=_(fe,"LI",{class:!0});var Qt=k(qe);mt=_(Qt,"H3",{class:!0,"data-svelte-h":!0}),D(mt)!=="svelte-rw6b4q"&&(mt.textContent=Pl),Jn=b(Qt),pt=_(Qt,"P",{class:!0,"data-svelte-h":!0}),D(pt)!=="svelte-po3jik"&&(pt.innerHTML=Il),Kn=b(Qt),Re=_(Qt,"UL",{class:!0});var yn=k(Re);Ae=_(yn,"LI",{});var Ft=k(Ae);P(_t.$$.fragment,Ft),Wn=b(Ft),gt=_(Ft,"SPAN",{class:!0,"data-svelte-h":!0}),D(gt)!=="svelte-bo3bnm"&&(gt.textContent=Al),Zn=b(Ft),P(dt.$$.fragment,Ft),Ft.forEach(m),Xn=b(yn),Te=_(yn,"LI",{});var Vt=k(Te);P($t.$$.fragment,Vt),Yn=b(Vt),bt=_(Vt,"SPAN",{class:!0,"data-svelte-h":!0}),D(bt)!=="svelte-bo3bnm"&&(bt.textContent=Tl),el=b(Vt),P(vt.$$.fragment,Vt),Vt.forEach(m),yn.forEach(m),Qt.forEach(m),tl=b(fe),Le=_(fe,"LI",{class:!0});var Gt=k(Le);yt=_(Gt,"H3",{class:!0,"data-svelte-h":!0}),D(yt)!=="svelte-1ax2qg5"&&(yt.textContent=Ml),nl=b(Gt),De=_(Gt,"P",{class:!0});var kn=k(De);ll=j(kn,`Otherwise each word is parsed as a separate
|
|
5
|
+
`),P(Be.$$.fragment,kn),sl=j(kn,"."),kn.forEach(m),rl=b(Gt),Qe=_(Gt,"UL",{class:!0});var xn=k(Qe);tn=_(xn,"LI",{});var Fl=k(tn);P(kt.$$.fragment,Fl),Fl.forEach(m),al=b(xn),nn=_(xn,"LI",{});var Vl=k(nn);P(xt.$$.fragment,Vl),Vl.forEach(m),xn.forEach(m),Gt.forEach(m),ol=b(fe),Se=_(fe,"LI",{class:!0});var Jt=k(Se);wt=_(Jt,"H3",{class:!0});var $l=k(wt);il=j($l,"Logically compose "),P(Fe.$$.fragment,$l),$l.forEach(m),ul=b(Jt),Ct=_(Jt,"SPAN",{class:!0,"data-svelte-h":!0}),D(Ct)!=="svelte-18cy7j9"&&(Ct.textContent=Ol),fl=b(Jt),ye=_(Jt,"UL",{class:!0});var Ge=k(ye);Et=_(Ge,"LI",{});var wn=k(Et);P(qt.$$.fragment,wn),cl=b(wn),Lt=_(wn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Lt)!=="svelte-hf1rvj"&&(Lt.textContent=Hl),wn.forEach(m),hl=b(Ge),St=_(Ge,"LI",{});var Cn=k(St);P(Nt.$$.fragment,Cn),ml=b(Cn),Pt=_(Cn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Pt)!=="svelte-1w1fygt"&&(Pt.textContent=jl),Cn.forEach(m),pl=b(Ge),It=_(Ge,"LI",{});var En=k(It);P(At.$$.fragment,En),_l=b(En),Tt=_(En,"SPAN",{class:!0,"data-svelte-h":!0}),D(Tt)!=="svelte-cahjdy"&&(Tt.textContent=Ul),En.forEach(m),gl=b(Ge),Mt=_(Ge,"LI",{});var qn=k(Mt);P(Ot.$$.fragment,qn),dl=b(qn),Ht=_(qn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Ht)!=="svelte-8b4fxa"&&(Ht.textContent=zl),qn.forEach(m),Ge.forEach(m),Jt.forEach(m),fe.forEach(m),ue.forEach(m),this.h()},h(){g(e,"class","text-4xl text-center pt-8 tracking-wide"),g(a,"class","text-2xl font-semibold"),g(s,"class","text-center"),g(v,"class","text-lg"),g(ne,"class","text-xs"),g(oe,"class","text-xs"),g(X,"class","text-xs"),g(T,"class","space-y-1"),g(c,"class","grow basis-64 max-w-xs"),g(ie,"class","text-lg"),g(_e,"class","text-xs"),g(ae,"class","text-xs"),g(Xe,"class","text-xs"),g(E,"class","space-y-1"),g(B,"class","grow basis-64 max-w-xs"),g(et,"class","text-lg"),g(lt,"class","text-xs"),g(at,"class","text-xs"),g(ut,"class","text-xs"),g(Ce,"class","space-y-1"),g(He,"class","grow basis-64 max-w-xs"),g(ft,"class","text-lg"),g(je,"class","text-xs"),g(ze,"class","space-y-1"),g(Ee,"class","grow basis-64 max-w-xs"),g(mt,"class","text-lg"),g(pt,"class","text-xs"),g(gt,"class","text-sm"),g(bt,"class","text-sm"),g(Re,"class","space-y-1"),g(qe,"class","grow basis-64 max-w-xs"),g(yt,"class","text-lg"),g(De,"class","text-xs"),g(Qe,"class","space-y-1"),g(Le,"class","grow basis-64 max-w-xs"),g(wt,"class","text-lg"),g(Ct,"class","text-xs"),g(Lt,"class","text-xs"),g(Pt,"class","text-xs"),g(Tt,"class","text-xs"),g(Ht,"class","text-xs"),g(ye,"class","space-y-1"),g(Se,"class","grow basis-64 max-w-xs"),g(d,"class","flex flex-wrap gap-4 justify-evenly"),g(l,"class","flex flex-col items-center pt-6 gap-4")},m(y,ue){z(y,e,ue),z(y,t,ue),z(y,l,ue),o(l,s),o(s,a),o(s,i),I(u,s,null),o(l,h),o(l,d),o(d,c),o(c,v),o(c,U),o(c,T),o(T,M),I(q,M,null),o(M,F),o(M,ne),o(T,he),o(T,re),I(G,re,null),o(re,le),o(re,oe),o(T,L),o(T,ge),I(me,ge,null),o(T,se),o(T,Y),I(pe,Y,null),o(Y,J),o(Y,X),o(d,K),o(d,B),o(B,ie),o(B,S),o(B,E),o(E,R),I(ce,R,null),o(R,we),o(R,_e),o(E,O),o(E,V),I(ee,V,null),o(V,be),o(V,ae),o(E,Oe),o(E,ve),I(Ze,ve,null),o(ve,In),o(ve,Xe),o(E,An),o(E,Xt),I(Ye,Xt,null),o(d,Tn),o(d,He),o(He,et),o(He,Mn),o(He,Ce),o(Ce,tt),I(nt,tt,null),o(tt,On),o(tt,lt),o(Ce,Hn),o(Ce,st),I(rt,st,null),o(st,jn),o(st,at),o(Ce,Un),o(Ce,ot),I(it,ot,null),o(ot,zn),o(ot,ut),o(d,Rn),o(d,Ee),o(Ee,ft),o(Ee,Dn),o(Ee,je),o(je,Bn),I(Ue,je,null),o(je,Qn),o(Ee,Fn),o(Ee,ze),o(ze,Yt),I(ct,Yt,null),o(ze,Vn),o(ze,en),I(ht,en,null),o(d,Gn),o(d,qe),o(qe,mt),o(qe,Jn),o(qe,pt),o(qe,Kn),o(qe,Re),o(Re,Ae),I(_t,Ae,null),o(Ae,Wn),o(Ae,gt),o(Ae,Zn),I(dt,Ae,null),o(Re,Xn),o(Re,Te),I($t,Te,null),o(Te,Yn),o(Te,bt),o(Te,el),I(vt,Te,null),o(d,tl),o(d,Le),o(Le,yt),o(Le,nl),o(Le,De),o(De,ll),I(Be,De,null),o(De,sl),o(Le,rl),o(Le,Qe),o(Qe,tn),I(kt,tn,null),o(Qe,al),o(Qe,nn),I(xt,nn,null),o(d,ol),o(d,Se),o(Se,wt),o(wt,il),I(Fe,wt,null),o(Se,ul),o(Se,Ct),o(Se,fl),o(Se,ye),o(ye,Et),I(qt,Et,null),o(Et,cl),o(Et,Lt),o(ye,hl),o(ye,St),I(Nt,St,null),o(St,ml),o(St,Pt),o(ye,pl),o(ye,It),I(At,It,null),o(It,_l),o(It,Tt),o(ye,gl),o(ye,Mt),I(Ot,Mt,null),o(Mt,dl),o(Mt,Ht),an=!0},p(y,[ue]){const jt={};ue&1&&(jt.$$scope={dirty:ue,ctx:y}),u.$set(jt);const fe={};ue&1&&(fe.$$scope={dirty:ue,ctx:y}),Ue.$set(fe);const Ut={};ue&1&&(Ut.$$scope={dirty:ue,ctx:y}),Be.$set(Ut);const xe={};ue&1&&(xe.$$scope={dirty:ue,ctx:y}),Fe.$set(xe)},i(y){an||(x(u.$$.fragment,y),x(q.$$.fragment,y),x(G.$$.fragment,y),x(me.$$.fragment,y),x(pe.$$.fragment,y),x(ce.$$.fragment,y),x(ee.$$.fragment,y),x(Ze.$$.fragment,y),x(Ye.$$.fragment,y),x(nt.$$.fragment,y),x(rt.$$.fragment,y),x(it.$$.fragment,y),x(Ue.$$.fragment,y),x(ct.$$.fragment,y),x(ht.$$.fragment,y),x(_t.$$.fragment,y),x(dt.$$.fragment,y),x($t.$$.fragment,y),x(vt.$$.fragment,y),x(Be.$$.fragment,y),x(kt.$$.fragment,y),x(xt.$$.fragment,y),x(Fe.$$.fragment,y),x(qt.$$.fragment,y),x(Nt.$$.fragment,y),x(At.$$.fragment,y),x(Ot.$$.fragment,y),an=!0)},o(y){w(u.$$.fragment,y),w(q.$$.fragment,y),w(G.$$.fragment,y),w(me.$$.fragment,y),w(pe.$$.fragment,y),w(ce.$$.fragment,y),w(ee.$$.fragment,y),w(Ze.$$.fragment,y),w(Ye.$$.fragment,y),w(nt.$$.fragment,y),w(rt.$$.fragment,y),w(it.$$.fragment,y),w(Ue.$$.fragment,y),w(ct.$$.fragment,y),w(ht.$$.fragment,y),w(_t.$$.fragment,y),w(dt.$$.fragment,y),w($t.$$.fragment,y),w(vt.$$.fragment,y),w(Be.$$.fragment,y),w(kt.$$.fragment,y),w(xt.$$.fragment,y),w(Fe.$$.fragment,y),w(qt.$$.fragment,y),w(Nt.$$.fragment,y),w(At.$$.fragment,y),w(Ot.$$.fragment,y),an=!1},d(y){y&&(m(e),m(t),m(l)),A(u),A(q),A(G),A(me),A(pe),A(ce),A(ee),A(Ze),A(Ye),A(nt),A(rt),A(it),A(Ue),A(ct),A(ht),A(_t),A(dt),A($t),A(vt),A(Be),A(kt),A(xt),A(Fe),A(qt),A(Nt),A(At),A(Ot)}}}class $s extends Pe{constructor(e){super(),Ie(this,e,null,er,Ne,{})}}function Xl(r,e,n){const t=r.slice();return t[1]=e[n].text,t[2]=e[n].match,t}function tr(r){let e=r[1]+"",n;return{c(){n=H(e)},l(t){n=j(t,e)},m(t,l){z(t,n,l)},p(t,l){l&1&&e!==(e=t[1]+"")&&te(n,e)},d(t){t&&m(n)}}}function nr(r){let e,n=r[1]+"",t;return{c(){e=p("mark"),t=H(n),this.h()},l(l){e=_(l,"MARK",{class:!0});var s=k(e);t=j(s,n),s.forEach(m),this.h()},h(){g(e,"class","bg-yellow-200")},m(l,s){z(l,e,s),o(e,t)},p(l,s){s&1&&n!==(n=l[1]+"")&&te(t,n)},d(l){l&&m(e)}}}function Yl(r){let e;function n(s,a){return s[2]?nr:tr}let t=n(r),l=t(r);return{c(){l.c(),e=ke()},l(s){l.l(s),e=ke()},m(s,a){l.m(s,a),z(s,e,a)},p(s,a){t===(t=n(s))&&l?l.p(s,a):(l.d(1),l=t(s),l&&(l.c(),l.m(e.parentNode,e)))},d(s){s&&m(e),l.d(s)}}}function lr(r){let e,n=Ke(r[0]),t=[];for(let l=0;l<n.length;l+=1)t[l]=Yl(Xl(r,n,l));return{c(){for(let l=0;l<t.length;l+=1)t[l].c();e=ke()},l(l){for(let s=0;s<t.length;s+=1)t[s].l(l);e=ke()},m(l,s){for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(l,s);z(l,e,s)},p(l,[s]){if(s&1){n=Ke(l[0]);let a;for(a=0;a<n.length;a+=1){const f=Xl(l,n,a);t[a]?t[a].p(f,s):(t[a]=Yl(f),t[a].c(),t[a].m(e.parentNode,e))}for(;a<t.length;a+=1)t[a].d(1);t.length=n.length}},i:rn,o:rn,d(l){l&&m(e),kl(t,l)}}}function sr(r,e,n){let{tokens:t}=e;return r.$$set=l=>{"tokens"in l&&n(0,t=l.tokens)},[t]}class wl extends Pe{constructor(e){super(),Ie(this,e,sr,lr,Ne,{tokens:0})}}function rr(r){let e,n;return e=new wl({props:{tokens:r[0].fileName.tokens}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p(t,l){const s={};l&1&&(s.tokens=t[0].fileName.tokens),e.$set(s)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function ar(r){let e,n;return e=new sn({props:{to:r[0].fileUrl,$$slots:{default:[or]},$$scope:{ctx:r}}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p(t,l){const s={};l&1&&(s.to=t[0].fileUrl),l&9&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function or(r){let e,n;return e=new wl({props:{tokens:r[0].fileName.tokens}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p(t,l){const s={};l&1&&(s.tokens=t[0].fileName.tokens),e.$set(s)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function ir(r){let e,n,t=r[0].repository+"",l,s,a,f,i,u,h=r[1].join(" | ")+"",d,c;s=new js({props:{class:"inline",size:16}});const v=[ar,rr],C=[];function U(T,M){return T[0].fileUrl?0:1}return a=U(r),f=C[a]=v[a](r),{c(){e=p("h2"),n=p("span"),l=H(t),N(s.$$.fragment),f.c(),i=$(),u=p("span"),d=H(h),this.h()},l(T){e=_(T,"H2",{class:!0});var M=k(e);n=_(M,"SPAN",{});var q=k(n);l=j(q,t),P(s.$$.fragment,q),f.l(q),q.forEach(m),i=b(M),u=_(M,"SPAN",{class:!0});var F=k(u);d=j(F,h),F.forEach(m),M.forEach(m),this.h()},h(){g(u,"class","ml-auto"),g(e,"class","px-2 py-1 text-sm sticky top-0 flex flex-wrap bg-slate-100 whitespace-pre-wrap [overflow-wrap:anywhere]")},m(T,M){z(T,e,M),o(e,n),o(n,l),I(s,n,null),C[a].m(n,null),o(e,i),o(e,u),o(u,d),c=!0},p(T,[M]){(!c||M&1)&&t!==(t=T[0].repository+"")&&te(l,t);let q=a;a=U(T),a===q?C[a].p(T,M):(zt(),w(C[q],1,1,()=>{C[q]=null}),Rt(),f=C[a],f?f.p(T,M):(f=C[a]=v[a](T),f.c()),x(f,1),f.m(n,null)),(!c||M&2)&&h!==(h=T[1].join(" | ")+"")&&te(d,h)},i(T){c||(x(s.$$.fragment,T),x(f),c=!0)},o(T){w(s.$$.fragment,T),w(f),c=!1},d(T){T&&m(e),A(s),C[a].d()}}}function ur(r,e,n){let t,{file:l}=e,{rank:s}=e;return r.$$set=a=>{"file"in a&&n(0,l=a.file),"rank"in a&&n(2,s=a.rank)},r.$$.update=()=>{r.$$.dirty&5&&n(1,t=[`${l.matchCount} ${l.matchCount===1?"match":"matches"}`,...l.branches.length>1||l.branches[0]!=="HEAD"?[l.branches.join(", ")]:[],l.language,`№${s}`])},[l,t,s]}class fr extends Pe{constructor(e){super(),Ie(this,e,ur,ir,Ne,{file:0,rank:2})}}const cr=(r,e,n)=>{var f,i;const t=[],l=Math.min(e*2,e+10);let s=0;const a=u=>{if(s>=e)return null;if(s+u.matchCount>=l){let h=0;const d=[];for(const c of u.lines)if(d.push(c),h+=c.matchCount,s+h>=l)break;return{lines:d,matchCount:h,startLineNumber:u.startLineNumber}}else return u};if(e>0)for(const u of r){const h=a(u);if(!n&&h===null)break;s+=(h==null?void 0:h.matchCount)??0;const d=n?u:h,{lines:c,startLineNumber:v}=d,C=c.map(({lineTokens:T},M)=>({lineNumber:M+v,lineTokens:T}));if(((i=(f=t.at(-1))==null?void 0:f.at(-1))==null?void 0:i.lineNumber)===v-1?t.at(-1).push(...C):t.push(C),!n&&s>=e)break}return{lineGroups:t,preCutoffMatchCount:s}};function es(r,e,n){const t=r.slice();return t[15]=e[n],t}function ts(r,e,n){const t=r.slice();return t[18]=e[n].lineNumber,t[19]=e[n].lineTokens,t}function ns(r){let e,n,t=Ke(r[5]),l=[];for(let a=0;a<t.length;a+=1)l[a]=ss(es(r,t,a));const s=a=>w(l[a],1,1,()=>{l[a]=null});return{c(){e=p("div");for(let a=0;a<l.length;a+=1)l[a].c();this.h()},l(a){e=_(a,"DIV",{class:!0});var f=k(e);for(let i=0;i<l.length;i+=1)l[i].l(f);f.forEach(m),this.h()},h(){g(e,"class","font-mono text-sm divide-y")},m(a,f){z(a,e,f);for(let i=0;i<l.length;i+=1)l[i]&&l[i].m(e,null);n=!0},p(a,f){if(f&33){t=Ke(a[5]);let i;for(i=0;i<t.length;i+=1){const u=es(a,t,i);l[i]?(l[i].p(u,f),x(l[i],1)):(l[i]=ss(u),l[i].c(),x(l[i],1),l[i].m(e,null))}for(zt(),i=t.length;i<l.length;i+=1)s(i);Rt()}},i(a){if(!n){for(let f=0;f<t.length;f+=1)x(l[f]);n=!0}},o(a){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)w(l[f]);n=!1},d(a){a&&m(e),kl(l,a)}}}function hr(r){let e=r[18]+"",n;return{c(){n=H(e)},l(t){n=j(t,e)},m(t,l){z(t,n,l)},p(t,l){l&32&&e!==(e=t[18]+"")&&te(n,e)},d(t){t&&m(n)}}}function mr(r){let e,n=r[18]+"",t,l;return{c(){e=p("a"),t=H(n),this.h()},l(s){e=_(s,"A",{class:!0,href:!0});var a=k(e);t=j(a,n),a.forEach(m),this.h()},h(){g(e,"class","hover:underline decoration-1"),g(e,"href",l=`${r[0].fileUrl}${r[0].lineNumberTemplate.join(r[18].toString())}`)},m(s,a){z(s,e,a),o(e,t)},p(s,a){a&32&&n!==(n=s[18]+"")&&te(t,n),a&33&&l!==(l=`${s[0].fileUrl}${s[0].lineNumberTemplate.join(s[18].toString())}`)&&g(e,"href",l)},d(s){s&&m(e)}}}function ls(r){let e,n,t,l,s;function a(u,h){return u[0].fileUrl&&u[0].lineNumberTemplate?mr:hr}let f=a(r),i=f(r);return l=new wl({props:{tokens:r[19]}}),{c(){e=p("span"),i.c(),n=$(),t=p("code"),N(l.$$.fragment),this.h()},l(u){e=_(u,"SPAN",{class:!0});var h=k(e);i.l(h),h.forEach(m),n=b(u),t=_(u,"CODE",{});var d=k(t);P(l.$$.fragment,d),d.forEach(m),this.h()},h(){g(e,"class","select-none text-gray-600 text-right pr-1")},m(u,h){z(u,e,h),i.m(e,null),z(u,n,h),z(u,t,h),I(l,t,null),s=!0},p(u,h){f===(f=a(u))&&i?i.p(u,h):(i.d(1),i=f(u),i&&(i.c(),i.m(e,null)));const d={};h&32&&(d.tokens=u[19]),l.$set(d)},i(u){s||(x(l.$$.fragment,u),s=!0)},o(u){w(l.$$.fragment,u),s=!1},d(u){u&&(m(e),m(n),m(t)),i.d(),A(l)}}}function ss(r){let e,n,t,l=Ke(r[15]),s=[];for(let f=0;f<l.length;f+=1)s[f]=ls(ts(r,l,f));const a=f=>w(s[f],1,1,()=>{s[f]=null});return{c(){e=p("div");for(let f=0;f<s.length;f+=1)s[f].c();n=$(),this.h()},l(f){e=_(f,"DIV",{class:!0});var i=k(e);for(let u=0;u<s.length;u+=1)s[u].l(i);n=b(i),i.forEach(m),this.h()},h(){g(e,"class","py-1 grid grid-cols-[minmax(2rem,_min-content)_1fr] gap-x-2 whitespace-pre overflow-x-auto")},m(f,i){z(f,e,i);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(e,null);o(e,n),t=!0},p(f,i){if(i&33){l=Ke(f[15]);let u;for(u=0;u<l.length;u+=1){const h=ts(f,l,u);s[u]?(s[u].p(h,i),x(s[u],1)):(s[u]=ls(h),s[u].c(),x(s[u],1),s[u].m(e,n))}for(zt(),u=l.length;u<s.length;u+=1)a(u);Rt()}},i(f){if(!t){for(let i=0;i<l.length;i+=1)x(s[i]);t=!0}},o(f){s=s.filter(Boolean);for(let i=0;i<s.length;i+=1)w(s[i]);t=!1},d(f){f&&m(e),kl(s,f)}}}function pr(r){let e,n,t,l,s=r[4]===1?"match":"matches",a,f,i;return{c(){e=p("button"),n=H("Hide "),t=H(r[4]),l=$(),a=H(s),this.h()},l(u){e=_(u,"BUTTON",{type:!0,class:!0});var h=k(e);n=j(h,"Hide "),t=j(h,r[4]),l=b(h),a=j(h,s),h.forEach(m),this.h()},h(){g(e,"type","button"),g(e,"class","bg-slate-100 text-sm py-1 sticky bottom-0")},m(u,h){z(u,e,h),o(e,n),o(e,t),o(e,l),o(e,a),f||(i=Kt(e,"click",r[9]),f=!0)},p(u,h){h&16&&te(t,u[4]),h&16&&s!==(s=u[4]===1?"match":"matches")&&te(a,s)},d(u){u&&m(e),f=!1,i()}}}function _r(r){let e,n,t,l,s=r[4]===1?"match":"matches",a,f,i;return{c(){e=p("button"),n=H("Show "),t=H(r[4]),l=H(" more "),a=H(s),this.h()},l(u){e=_(u,"BUTTON",{type:!0,class:!0});var h=k(e);n=j(h,"Show "),t=j(h,r[4]),l=j(h," more "),a=j(h,s),h.forEach(m),this.h()},h(){g(e,"type","button"),g(e,"class","bg-slate-100 text-sm py-1")},m(u,h){z(u,e,h),o(e,n),o(e,t),o(e,l),o(e,a),f||(i=Kt(e,"click",r[8]),f=!0)},p(u,h){h&16&&te(t,u[4]),h&16&&s!==(s=u[4]===1?"match":"matches")&&te(a,s)},d(u){u&&m(e),f=!1,i()}}}function gr(r){let e,n,t,l,s,a,f;l=new fr({props:{file:r[0],rank:r[1]}});let i=r[5].length>0&&ns(r);function u(c,v){if(c[4]>0&&!c[2])return _r;if(c[4]>0&&c[2])return pr}let h=u(r),d=h&&h(r);return{c(){e=p("span"),n=$(),t=p("section"),N(l.$$.fragment),s=$(),i&&i.c(),a=$(),d&&d.c(),this.h()},l(c){e=_(c,"SPAN",{}),k(e).forEach(m),n=b(c),t=_(c,"SECTION",{class:!0});var v=k(t);P(l.$$.fragment,v),s=b(v),i&&i.l(v),a=b(v),d&&d.l(v),v.forEach(m),this.h()},h(){g(t,"class","my-2 p-1 border-2 flex flex-col gap-1")},m(c,v){z(c,e,v),r[14](e),z(c,n,v),z(c,t,v),I(l,t,null),o(t,s),i&&i.m(t,null),o(t,a),d&&d.m(t,null),f=!0},p(c,[v]){const C={};v&1&&(C.file=c[0]),v&2&&(C.rank=c[1]),l.$set(C),c[5].length>0?i?(i.p(c,v),v&32&&x(i,1)):(i=ns(c),i.c(),x(i,1),i.m(t,a)):i&&(zt(),w(i,1,1,()=>{i=null}),Rt()),h===(h=u(c))&&d?d.p(c,v):(d&&d.d(1),d=h&&h(c),d&&(d.c(),d.m(t,null)))},i(c){f||(x(l.$$.fragment,c),x(i),f=!0)},o(c){w(l.$$.fragment,c),w(i),f=!1},d(c){c&&(m(e),m(n),m(t)),r[14](null),A(l),i&&i.d(),d&&d.d()}}}function dr(r,e,n){let t,l,s,a,f,i,{file:u}=e,{rank:h}=e;const d=ds();Je(r,d,q=>n(13,i=q));const c=Ss();Je(r,c,q=>n(12,f=q));let v=!1;const C=()=>{n(2,v=!0)};let U;const T=async()=>{await new Promise(q=>{const F=new IntersectionObserver(ne=>{ne.some(({isIntersecting:Q})=>Q)&&(F.disconnect(),q())});F.observe(U),U.scrollIntoView({block:"nearest",behavior:"smooth"})}),n(2,v=!1)};function M(q){Sn[q?"unshift":"push"](()=>{U=q,n(3,U)})}return r.$$set=q=>{"file"in q&&n(0,u=q.file),"rank"in q&&n(1,h=q.rank)},r.$$.update=()=>{r.$$.dirty&8193&&n(11,t=i==="line-number"?[...u.chunks].sort(({startLineNumber:q},{startLineNumber:F})=>q-F):u.chunks),r.$$.dirty&6148&&n(5,{lineGroups:l,preCutoffMatchCount:s}=cr(t,f,v),l,(n(10,s),n(11,t),n(12,f),n(2,v),n(13,i),n(0,u))),r.$$.dirty&1025&&n(4,a=u.matchCount-s-u.fileName.matchCount)},[u,h,v,U,a,l,d,c,C,T,s,t,f,i,M]}class $r extends Pe{constructor(e){super(),Ie(this,e,dr,gr,Ne,{file:0,rank:1})}}function rs(r,e,n){const t=r.slice();return t[10]=e[n],t[12]=n,t}function as(r){let e,n="(truncated)";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=_(t,"SPAN",{title:!0,class:!0,"data-svelte-h":!0}),D(e)!=="svelte-k2z799"&&(e.textContent=n),this.h()},h(){g(e,"title","The number of matches found in zoekt reached the maximum limits, so the search was aborted and these counts are incomplete"),g(e,"class","text-yellow-700 cursor-help underline decoration-dashed")},m(t,l){z(t,e,l)},d(t){t&&m(e)}}}function os(r,e){let n,t,l;return t=new $r({props:{file:e[10],rank:e[12]+1}}),{key:r,first:null,c(){n=ke(),N(t.$$.fragment),this.h()},l(s){n=ke(),P(t.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){z(s,n,a),I(t,s,a),l=!0},p(s,a){e=s;const f={};a&4&&(f.file=e[10]),a&4&&(f.rank=e[12]+1),t.$set(f)},i(s){l||(x(t.$$.fragment,s),l=!0)},o(s){w(t.$$.fragment,s),l=!1},d(s){s&&m(n),A(t,s)}}}function br(r){let e,n,t,l,s,a=r[3]===1?"file":"files",f,i,u,h,d=r[1]===1?"match":"matches",c,v,C,U=Math.floor(r[6]/1e4)/100+"",T,M,q,F,ne,Q,he=r[2].length+"",re,G,le=r[2].length===1?"file":"files",oe,$e,L,ge,me,se=r[0]===1?"match":"matches",Y,pe,J=[],X=new Map,de,K,B=r[7]>0&&as(),ie=Ke(r[2]);const Me=S=>`${S[10].repository}/${S[10].fileName.tokens.map(vr).join()}@${S[10].branches.join(";")}`;for(let S=0;S<ie.length;S+=1){let E=rs(r,ie,S),R=Me(E);X.set(R,J[S]=os(R,E))}return{c(){e=p("h1"),n=p("span"),t=H("zoekt: "),l=H(r[3]),s=$(),f=H(a),i=H(" / "),u=H(r[1]),h=$(),c=H(d),v=$(),B&&B.c(),C=H(" / "),T=H(U),M=H("ms"),q=$(),F=p("span"),ne=H("neogrok: "),Q=p("span"),re=H(he),G=$(),oe=H(le),$e=H(`
|
|
6
|
+
/
|
|
7
|
+
`),L=p("span"),ge=H(r[0]),me=$(),Y=H(se),pe=$();for(let S=0;S<J.length;S+=1)J[S].c();de=ke(),this.h()},l(S){e=_(S,"H1",{class:!0});var E=k(e);n=_(E,"SPAN",{});var R=k(n);t=j(R,"zoekt: "),l=j(R,r[3]),s=b(R),f=j(R,a),i=j(R," / "),u=j(R,r[1]),h=b(R),c=j(R,d),v=b(R),B&&B.l(R),C=j(R," / "),T=j(R,U),M=j(R,"ms"),R.forEach(m),q=b(E),F=_(E,"SPAN",{class:!0});var ce=k(F);ne=j(ce,"neogrok: "),Q=_(ce,"SPAN",{});var we=k(Q);re=j(we,he),G=b(we),oe=j(we,le),we.forEach(m),$e=j(ce,`
|
|
8
|
+
/
|
|
9
|
+
`),L=_(ce,"SPAN",{});var _e=k(L);ge=j(_e,r[0]),me=b(_e),Y=j(_e,se),_e.forEach(m),ce.forEach(m),E.forEach(m),pe=b(S);for(let W=0;W<J.length;W+=1)J[W].l(S);de=ke(),this.h()},h(){Ln(Q,"text-yellow-700",r[5]),Ln(L,"text-yellow-700",r[4]),g(F,"class","ml-auto"),g(e,"class","text-xs flex flex-wrap pt-2")},m(S,E){z(S,e,E),o(e,n),o(n,t),o(n,l),o(n,s),o(n,f),o(n,i),o(n,u),o(n,h),o(n,c),o(n,v),B&&B.m(n,null),o(n,C),o(n,T),o(n,M),o(e,q),o(e,F),o(F,ne),o(F,Q),o(Q,re),o(Q,G),o(Q,oe),o(F,$e),o(F,L),o(L,ge),o(L,me),o(L,Y),z(S,pe,E);for(let R=0;R<J.length;R+=1)J[R]&&J[R].m(S,E);z(S,de,E),K=!0},p(S,[E]){(!K||E&8)&&te(l,S[3]),(!K||E&8)&&a!==(a=S[3]===1?"file":"files")&&te(f,a),(!K||E&2)&&te(u,S[1]),(!K||E&2)&&d!==(d=S[1]===1?"match":"matches")&&te(c,d),S[7]>0?B||(B=as(),B.c(),B.m(n,C)):B&&(B.d(1),B=null),(!K||E&64)&&U!==(U=Math.floor(S[6]/1e4)/100+"")&&te(T,U),(!K||E&4)&&he!==(he=S[2].length+"")&&te(re,he),(!K||E&4)&&le!==(le=S[2].length===1?"file":"files")&&te(oe,le),(!K||E&32)&&Ln(Q,"text-yellow-700",S[5]),(!K||E&1)&&te(ge,S[0]),(!K||E&1)&&se!==(se=S[0]===1?"match":"matches")&&te(Y,se),(!K||E&16)&&Ln(L,"text-yellow-700",S[4]),E&4&&(ie=Ke(S[2]),zt(),J=Ns(J,E,Me,1,S,ie,X,de.parentNode,Ps,os,de,rs),Rt())},i(S){if(!K){for(let E=0;E<ie.length;E+=1)x(J[E]);K=!0}},o(S){for(let E=0;E<J.length;E+=1)w(J[E]);K=!1},d(S){S&&(m(e),m(pe),m(de)),B&&B.d();for(let E=0;E<J.length;E+=1)J[E].d(S)}}}const vr=({text:r})=>r;function yr(r,e,n){let t,l,s,a,f,i,u,h,d;Je(r,Pn,v=>n(9,d=v));let{results:c}=e;return r.$$set=v=>{"results"in v&&n(8,c=v.results)},r.$$.update=()=>{r.$$.dirty&256&&n(3,{zoektStats:{fileCount:t,matchCount:l,filesSkipped:s,duration:a},files:f}=c,t,(n(1,l),n(8,c)),(n(7,s),n(8,c)),(n(6,a),n(8,c)),(n(2,f),n(8,c))),r.$$.dirty&4&&n(0,i=f.reduce((v,{matchCount:C})=>v+C,0)),r.$$.dirty&524&&n(5,u=t>f.length&&f.length===d.files),r.$$.dirty&515&&n(4,h=l>i&&i===d.matches)},[i,l,f,t,h,u,a,s,c,d]}class bs extends Pe{constructor(e){super(),Ie(this,e,yr,br,Ne,{results:8})}}function kr(r){let e,n;return e=new bs({props:{results:r[0].searchOutcome.results}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p(t,l){const s={};l&1&&(s.results=t[0].searchOutcome.results),e.$set(s)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function xr(r){let e,n,t,l;const s=[Er,Cr],a=[];function f(i,u){return i[1]?0:1}return e=f(r),n=a[e]=s[e](r),{c(){n.c(),t=ke()},l(i){n.l(i),t=ke()},m(i,u){a[e].m(i,u),z(i,t,u),l=!0},p(i,u){let h=e;e=f(i),e===h?a[e].p(i,u):(zt(),w(a[h],1,1,()=>{a[h]=null}),Rt(),n=a[e],n?n.p(i,u):(n=a[e]=s[e](i),n.c()),x(n,1),n.m(t.parentNode,t))},i(i){l||(x(n),l=!0)},o(i){w(n),l=!1},d(i){i&&m(t),a[e].d(i)}}}function wr(r){let e,n;return e=new $s({}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p:rn,i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function Cr(r){let e,n;return e=new $s({}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p:rn,i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function Er(r){let e,n;return e=new bs({props:{results:r[1]}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,l){I(e,t,l),n=!0},p(t,l){const s={};l&2&&(s.results=t[1]),e.$set(s)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function qr(r){let e,n,t,l,s,a,f,i;document.title=e=(r[2].query?`${r[2].query} - `:"")+"neogrok",t=new Ks({props:{queryError:r[0].searchOutcome.kind==="error"?r[0].searchOutcome.error:null}});const u=[wr,xr,kr],h=[];function d(c,v){return c[0].searchOutcome.kind==="none"?0:c[0].searchOutcome.kind==="error"?1:2}return s=d(r),a=h[s]=u[s](r),{c(){n=$(),N(t.$$.fragment),l=$(),a.c(),f=ke()},l(c){qs("svelte-1xqnt78",document.head).forEach(m),n=b(c),P(t.$$.fragment,c),l=b(c),a.l(c),f=ke()},m(c,v){z(c,n,v),I(t,c,v),z(c,l,v),h[s].m(c,v),z(c,f,v),i=!0},p(c,[v]){(!i||v&4)&&e!==(e=(c[2].query?`${c[2].query} - `:"")+"neogrok")&&(document.title=e);const C={};v&1&&(C.queryError=c[0].searchOutcome.kind==="error"?c[0].searchOutcome.error:null),t.$set(C);let U=s;s=d(c),s===U?h[s].p(c,v):(zt(),w(h[U],1,1,()=>{h[U]=null}),Rt(),a=h[s],a?a.p(c,v):(a=h[s]=u[s](c),a.c()),x(a,1),a.m(f.parentNode,f))},i(c){i||(x(t.$$.fragment,c),x(a),i=!0)},o(c){w(t.$$.fragment,c),w(a),i=!1},d(c){c&&(m(n),m(l),m(f)),A(t,c),h[s].d(c)}}}function Lr(r,e,n){let t;Je(r,Pn,a=>n(2,t=a));let{data:l}=e,s=null;return r.$$set=a=>{"data"in a&&n(0,l=a.data)},r.$$.update=()=>{r.$$.dirty&1&&(l.searchOutcome.kind==="success"?n(1,s=l.searchOutcome.results):l.searchOutcome.kind==="none"&&n(1,s=null))},[l,s,t]}class Rr extends Pe{constructor(e){super(),Ie(this,e,Lr,qr,Ne,{data:0})}}export{Rr as component,zr as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{n as V,l as w,e as _,t as l,m as B,d as i,o as G,c as v,a as O,p as F,b as c,f as D,i as y,g as a}from"../chunks/scheduler.80902d3b.js";import{S as K,i as M,c as C,a as R,m as q,t as H,b as J,d as S}from"../chunks/index.d0e6da70.js";import{L as T}from"../chunks/link.70630bff.js";function Q(h){let t;return{c(){t=l("zoekt")},l(e){t=c(e,"zoekt")},m(e,o){y(e,t,o)},d(e){e&&i(t)}}}function X(h){let t;return{c(){t=l("OpenGrok")},l(e){t=c(e,"OpenGrok")},m(e,o){y(e,t,o)},d(e){e&&i(t)}}}function Y(h){let t;return{c(){t=l("GitHub")},l(e){t=c(e,"GitHub")},m(e,o){y(e,t,o)},d(e){e&&i(t)}}}function Z(h){let t,e,o,W="ɴᴇᴏɢʀᴏᴋ",P,f,z,p,L,N,u,U,d,A,E,g,I,m,j,b;return p=new T({props:{to:"https://github.com/sourcegraph/zoekt",$$slots:{default:[Q]},$$scope:{ctx:h}}}),d=new T({props:{to:"https://oracle.github.io/opengrok/",$$slots:{default:[X]},$$scope:{ctx:h}}}),m=new T({props:{to:"https://github.com/isker/neogrok",$$slots:{default:[Y]},$$scope:{ctx:h}}}),{c(){t=w(),e=_("div"),o=_("h1"),o.textContent=W,P=w(),f=_("p"),z=l(`Neogrok is a frontend for
|
|
2
|
+
`),C(p.$$.fragment),L=l(`, a fast and
|
|
3
|
+
scalable code search engine. Neogrok exposes zoekt's search APIs in the form
|
|
4
|
+
of a modern, snappy UI.`),N=w(),u=_("p"),U=l(`As an added bonus, neogrok can serve as a replacement for existing
|
|
5
|
+
deployments of
|
|
6
|
+
`),C(d.$$.fragment),A=l(`, a much older,
|
|
7
|
+
more intricate, slower, and generally jankier code search engine than zoekt.
|
|
8
|
+
Neogrok strives to provide URL compatibility with OpenGrok by redirecting
|
|
9
|
+
OpenGrok URLs to their neogrok equivalents: simply deploy neogrok at the
|
|
10
|
+
same origin previously hosting your OpenGrok instance, and everything will
|
|
11
|
+
Just Work™. (Perfect compatibility is not possible as the feature sets of
|
|
12
|
+
each search engine do not map one-to-one.)`),E=w(),g=_("p"),I=l(`To see the source code and more detailed documentation, check out the
|
|
13
|
+
project on `),C(m.$$.fragment),j=l("."),this.h()},l(n){B("svelte-1liimki",document.head).forEach(i),t=G(n),e=v(n,"DIV",{class:!0});var s=O(e);o=v(s,"H1",{class:!0,"data-svelte-h":!0}),F(o)!=="svelte-1duvex1"&&(o.textContent=W),P=G(s),f=v(s,"P",{});var k=O(f);z=c(k,`Neogrok is a frontend for
|
|
14
|
+
`),R(p.$$.fragment,k),L=c(k,`, a fast and
|
|
15
|
+
scalable code search engine. Neogrok exposes zoekt's search APIs in the form
|
|
16
|
+
of a modern, snappy UI.`),k.forEach(i),N=G(s),u=v(s,"P",{});var $=O(u);U=c($,`As an added bonus, neogrok can serve as a replacement for existing
|
|
17
|
+
deployments of
|
|
18
|
+
`),R(d.$$.fragment,$),A=c($,`, a much older,
|
|
19
|
+
more intricate, slower, and generally jankier code search engine than zoekt.
|
|
20
|
+
Neogrok strives to provide URL compatibility with OpenGrok by redirecting
|
|
21
|
+
OpenGrok URLs to their neogrok equivalents: simply deploy neogrok at the
|
|
22
|
+
same origin previously hosting your OpenGrok instance, and everything will
|
|
23
|
+
Just Work™. (Perfect compatibility is not possible as the feature sets of
|
|
24
|
+
each search engine do not map one-to-one.)`),$.forEach(i),E=G(s),g=v(s,"P",{});var x=O(g);I=c(x,`To see the source code and more detailed documentation, check out the
|
|
25
|
+
project on `),R(m.$$.fragment,x),j=c(x,"."),x.forEach(i),s.forEach(i),this.h()},h(){document.title="About - neogrok",D(o,"class","text-2xl tracking-wide text-center"),D(e,"class","space-y-2 max-w-prose mx-auto")},m(n,r){y(n,t,r),y(n,e,r),a(e,o),a(e,P),a(e,f),a(f,z),q(p,f,null),a(f,L),a(e,N),a(e,u),a(u,U),q(d,u,null),a(u,A),a(e,E),a(e,g),a(g,I),q(m,g,null),a(g,j),b=!0},p(n,[r]){const s={};r&1&&(s.$$scope={dirty:r,ctx:n}),p.$set(s);const k={};r&1&&(k.$$scope={dirty:r,ctx:n}),d.$set(k);const $={};r&1&&($.$$scope={dirty:r,ctx:n}),m.$set($)},i(n){b||(H(p.$$.fragment,n),H(d.$$.fragment,n),H(m.$$.fragment,n),b=!0)},o(n){J(p.$$.fragment,n),J(d.$$.fragment,n),J(m.$$.fragment,n),b=!1},d(n){n&&(i(t),i(e)),S(p),S(d),S(m)}}}class oe extends K{constructor(t){super(),M(this,t,null,Z,V,{})}}export{oe as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{n as We,w as Xe,x as Je,l as v,e as a,t as te,m as Ye,d as s,o as m,c as n,a as c,p as V,b as ae,f as t,y as ue,i as Ke,g as e,q as ne,z as Ze,A as et,j as de}from"../chunks/scheduler.80902d3b.js";import{S as tt,i as at,f as nt,c as lt,a as st,m as rt,t as ot,b as it,d as ct}from"../chunks/index.d0e6da70.js";import{b as ut,c as dt,d as _t,a as ht}from"../chunks/preferences.e389d16d.js";import{I as ft}from"../chunks/integer-input.e86d05ad.js";function pt(l){let G,o,p,x="Preferences",S,g,H="i.e., persistent configuration that lives in cookies",D,u,b,le="Search",K,E,k,se="Search type",Q,w,i,d,_e,he,W,T,_,fe,pe,I,U,Ve="Sort order of matches within a file",ve,X,A,h,me,ge,Y,B,f,be,Ee,Z,N,q,Ge="Initially visible matches per file",ye,L,Ce,xe,P,z,we="OpenGrok compatibility",ke,M,R,Ue="Redirects",Ie,ee,$,F,Le,re,Se,De,Te,qe;function Qe(r){l[13](r)}let ze={id:"file-matches-cutoff",pending:!1};return l[2]!==void 0&&(ze.value=l[2]),L=new ft({props:ze}),Xe.push(()=>nt(L,"value",Qe)),Se=Je(l[9][0]),De=Je(l[9][1]),{c(){G=v(),o=a("div"),p=a("h1"),p.textContent=x,S=v(),g=a("p"),g.textContent=H,D=v(),u=a("section"),b=a("h2"),b.textContent=le,K=v(),E=a("fieldset"),k=a("legend"),k.textContent=se,Q=v(),w=a("div"),i=a("label"),d=a("input"),_e=te(`
|
|
2
|
+
Live as you type`),he=v(),W=a("div"),T=a("label"),_=a("input"),fe=te(`
|
|
3
|
+
Manual (hit enter to search)`),pe=v(),I=a("fieldset"),U=a("legend"),U.textContent=Ve,ve=v(),X=a("div"),A=a("label"),h=a("input"),me=te(`
|
|
4
|
+
By line number`),ge=v(),Y=a("div"),B=a("label"),f=a("input"),be=te(`
|
|
5
|
+
By score according to zoekt`),Ee=v(),Z=a("div"),N=a("label"),q=a("div"),q.textContent=Ge,ye=v(),lt(L.$$.fragment),xe=v(),P=a("section"),z=a("h2"),z.textContent=we,ke=v(),M=a("div"),R=a("span"),R.textContent=Ue,Ie=v(),ee=a("div"),$=a("label"),F=a("input"),Le=te(` Automatically
|
|
6
|
+
redirect from old OpenGrok URLs when possible.`),this.h()},l(r){Ye("svelte-wl3i81",document.head).forEach(s),G=m(r),o=n(r,"DIV",{class:!0});var y=c(o);p=n(y,"H1",{class:!0,"data-svelte-h":!0}),V(p)!=="svelte-1ft1d1o"&&(p.textContent=x),S=m(y),g=n(y,"P",{class:!0,"data-svelte-h":!0}),V(g)!=="svelte-louctf"&&(g.textContent=H),D=m(y),u=n(y,"SECTION",{class:!0});var O=c(u);b=n(O,"H2",{class:!0,"data-svelte-h":!0}),V(b)!=="svelte-b4yp4o"&&(b.textContent=le),K=m(O),E=n(O,"FIELDSET",{});var j=c(E);k=n(j,"LEGEND",{class:!0,"data-svelte-h":!0}),V(k)!=="svelte-ezg37u"&&(k.textContent=se),Q=m(j),w=n(j,"DIV",{});var Me=c(w);i=n(Me,"LABEL",{for:!0,class:!0});var Ae=c(i);d=n(Ae,"INPUT",{id:!0,type:!0,name:!0}),_e=ae(Ae,`
|
|
7
|
+
Live as you type`),Ae.forEach(s),Me.forEach(s),he=m(j),W=n(j,"DIV",{});var Re=c(W);T=n(Re,"LABEL",{for:!0,class:!0});var Be=c(T);_=n(Be,"INPUT",{id:!0,type:!0,name:!0}),fe=ae(Be,`
|
|
8
|
+
Manual (hit enter to search)`),Be.forEach(s),Re.forEach(s),j.forEach(s),pe=m(O),I=n(O,"FIELDSET",{});var J=c(I);U=n(J,"LEGEND",{class:!0,"data-svelte-h":!0}),V(U)!=="svelte-6z6bic"&&(U.textContent=Ve),ve=m(J),X=n(J,"DIV",{});var $e=c(X);A=n($e,"LABEL",{for:!0,class:!0});var Ne=c(A);h=n(Ne,"INPUT",{id:!0,type:!0,name:!0}),me=ae(Ne,`
|
|
9
|
+
By line number`),Ne.forEach(s),$e.forEach(s),ge=m(J),Y=n(J,"DIV",{});var Fe=c(Y);B=n(Fe,"LABEL",{for:!0,class:!0});var Pe=c(B);f=n(Pe,"INPUT",{id:!0,type:!0,name:!0}),be=ae(Pe,`
|
|
10
|
+
By score according to zoekt`),Pe.forEach(s),Fe.forEach(s),J.forEach(s),Ee=m(O),Z=n(O,"DIV",{});var He=c(Z);N=n(He,"LABEL",{for:!0});var oe=c(N);q=n(oe,"DIV",{class:!0,"data-svelte-h":!0}),V(q)!=="svelte-cu9pf9"&&(q.textContent=Ge),ye=m(oe),st(L.$$.fragment,oe),oe.forEach(s),He.forEach(s),O.forEach(s),xe=m(y),P=n(y,"SECTION",{class:!0});var ie=c(P);z=n(ie,"H2",{class:!0,"data-svelte-h":!0}),V(z)!=="svelte-1yi4v93"&&(z.textContent=we),ke=m(ie),M=n(ie,"DIV",{});var ce=c(M);R=n(ce,"SPAN",{class:!0,"data-svelte-h":!0}),V(R)!=="svelte-vizb0l"&&(R.textContent=Ue),Ie=m(ce),ee=n(ce,"DIV",{});var je=c(ee);$=n(je,"LABEL",{class:!0});var Oe=c($);F=n(Oe,"INPUT",{type:!0}),Le=ae(Oe,` Automatically
|
|
11
|
+
redirect from old OpenGrok URLs when possible.`),Oe.forEach(s),je.forEach(s),ce.forEach(s),ie.forEach(s),y.forEach(s),this.h()},h(){document.title="Preferences - neogrok",t(p,"class","text-2xl text-center"),t(g,"class","text-sm text-center"),t(b,"class","text-xl font-medium"),t(k,"class","text-lg"),t(d,"id","live"),t(d,"type","radio"),t(d,"name","search-type"),d.__value="live",ue(d,d.__value),t(i,"for","live"),t(i,"class","cursor-pointer"),t(_,"id","manual"),t(_,"type","radio"),t(_,"name","search-type"),_.__value="manual",ue(_,_.__value),t(T,"for","manual"),t(T,"class","cursor-pointer"),t(U,"class","text-lg"),t(h,"id","line-number"),t(h,"type","radio"),t(h,"name","sort"),h.__value="line-number",ue(h,h.__value),t(A,"for","line-number"),t(A,"class","cursor-pointer"),t(f,"id","score"),t(f,"type","radio"),t(f,"name","sort"),f.__value="score",ue(f,f.__value),t(B,"for","score"),t(B,"class","cursor-pointer"),t(q,"class","text-lg"),t(N,"for","file-matches-cutoff"),t(u,"class","space-y-2"),t(z,"class","text-xl font-medium"),t(R,"class","text-lg"),t(F,"type","checkbox"),t($,"class","text-sm"),t(P,"class","space-y-2"),t(o,"class","space-y-4 max-w-4xl mx-auto"),Se.p(h,f),De.p(d,_)},m(r,C){Ke(r,G,C),Ke(r,o,C),e(o,p),e(o,S),e(o,g),e(o,D),e(o,u),e(u,b),e(u,K),e(u,E),e(E,k),e(E,Q),e(E,w),e(w,i),e(i,d),d.checked=d.__value===l[0],e(i,_e),e(E,he),e(E,W),e(W,T),e(T,_),_.checked=_.__value===l[0],e(T,fe),e(u,pe),e(u,I),e(I,U),e(I,ve),e(I,X),e(X,A),e(A,h),h.checked=h.__value===l[1],e(A,me),e(I,ge),e(I,Y),e(Y,B),e(B,f),f.checked=f.__value===l[1],e(B,be),e(u,Ee),e(u,Z),e(Z,N),e(N,q),e(N,ye),rt(L,N,null),e(o,xe),e(o,P),e(P,z),e(P,ke),e(P,M),e(M,R),e(M,Ie),e(M,ee),e(ee,$),e($,F),F.checked=l[3],e($,Le),re=!0,Te||(qe=[ne(d,"change",l[8]),ne(_,"change",l[10]),ne(h,"change",l[11]),ne(f,"change",l[12]),ne(F,"change",l[14])],Te=!0)},p(r,[C]){C&1&&(d.checked=d.__value===r[0]),C&1&&(_.checked=_.__value===r[0]),C&2&&(h.checked=h.__value===r[1]),C&2&&(f.checked=f.__value===r[1]);const y={};!Ce&&C&4&&(Ce=!0,y.value=r[2],Ze(()=>Ce=!1)),L.$set(y),C&8&&(F.checked=r[3])},i(r){re||(ot(L.$$.fragment,r),re=!0)},o(r){it(L.$$.fragment,r),re=!1},d(r){r&&(s(G),s(o)),ct(L),Se.r(),De.r(),Te=!1,et(qe)}}}function vt(l,G,o){let p,x,S,g;const H=ut();de(l,H,i=>o(2,S=i));const D=dt();de(l,D,i=>o(1,x=i));const u=_t();de(l,u,i=>o(0,p=i));const b=ht();de(l,b,i=>o(3,g=i));const le=[[],[]];function K(){p=this.__value,u.set(p)}function E(){p=this.__value,u.set(p)}function k(){x=this.__value,D.set(x)}function se(){x=this.__value,D.set(x)}function Q(i){S=i,H.set(S)}function w(){g=this.checked,b.set(g)}return[p,x,S,g,H,D,u,b,K,le,E,k,se,Q,w]}class yt extends tt{constructor(G){super(),at(this,G,vt,pt,We,{})}}export{yt as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{$ as me,n as ee,e as L,l as O,J as x,c as P,a as N,o as C,p as Se,d as k,f as T,i as F,g as c,y as he,q as se,a0 as Pe,A as Me,j as X,a1 as Ne,t as I,b as A,s as R,h as _e,H as Ie,m as Ae}from"../chunks/scheduler.80902d3b.js";import{S as te,i as re,c as j,a as J,m as K,t as $,b as Y,d as V,g as oe,e as ne}from"../chunks/index.d0e6da70.js";import{p as ve,n as we}from"../chunks/stores.a4da01c2.js";import{d as Oe}from"../chunks/preferences.e389d16d.js";import{c as de}from"../chunks/input-colors.e7674f0c.js";import{g as Ce,T as Re}from"../chunks/toggle-search-type.f1a3061d.js";import{d as Fe}from"../chunks/index.81a0017d.js";import{e as ge}from"../chunks/each.ece37974.js";import{L as $e}from"../chunks/link.70630bff.js";const De=s=>({query:s.get("q")||void 0}),le=Fe(ve,s=>De(s.url.searchParams));let ye=0;const be=({query:s,searchType:e})=>{var o,n;const r=((n=(o=me(we))==null?void 0:o.to)==null?void 0:n.url)??me(ve).url,t=De(r.searchParams);if((s||void 0)!==t.query){const f=Date.now(),u=new URL(r);s?u.searchParams.set("q",s):u.searchParams.delete("q"),Ce(u,{replaceState:e==="live"&&f-ye<2e3,keepFocus:!0,noScroll:!0}),ye=f}};function ke(s){let e,r;return{c(){e=L("span"),r=I(s[0]),this.h()},l(t){e=P(t,"SPAN",{class:!0});var l=N(e);r=A(l,s[0]),l.forEach(k),this.h()},h(){T(e,"class","text-sm text-red-500")},m(t,l){F(t,e,l),c(e,r)},p(t,l){l&1&&R(r,t[0])},d(t){t&&k(e)}}}function Ue(s){let e,r,t,l,o,n="query",f,u,i,y,m,a,b,S,v,w,U;m=new Re({});let B=s[0]&&ke(s);return{c(){e=L("form"),r=L("input"),t=O(),l=L("label"),o=L("span"),o.textContent=n,f=O(),u=L("span"),i=L("input"),y=O(),j(m.$$.fragment),b=O(),B&&B.c(),S=x(),this.h()},l(h){e=P(h,"FORM",{});var E=N(e);r=P(E,"INPUT",{type:!0,class:!0}),t=C(E),l=P(E,"LABEL",{for:!0,class:!0});var M=N(l);o=P(M,"SPAN",{title:!0,class:!0,"data-svelte-h":!0}),Se(o)!=="svelte-1wbn6nl"&&(o.textContent=n),f=C(M),u=P(M,"SPAN",{class:!0});var _=N(u);i=P(_,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),y=C(_),J(m.$$.fragment,_),_.forEach(k),M.forEach(k),E.forEach(k),b=C(h),B&&B.l(h),S=x(),this.h()},h(){T(r,"type","submit"),T(r,"class","hidden"),T(o,"title","Same query syntax as the main search - use `r:name` to filter repositories by name, otherwise you are filtering them by their content!"),T(o,"class","text-xs px-1 text-gray-500"),T(i,"id","query"),T(i,"type","search"),i.autofocus=!0,T(i,"spellcheck",!1),T(i,"autocorrect","off"),T(i,"autocapitalize","off"),T(i,"autocomplete","off"),T(i,"class","font-mono focus:outline-none flex-auto appearance-none"),T(u,"class",a=`flex flex-auto p-1 border shadow-sm space-x-1 ${de({error:s[0]!==null,pending:s[3]})}`),T(l,"for","query"),T(l,"class","flex-auto flex flex-col space-y-0.5")},m(h,E){F(h,e,E),c(e,r),c(e,t),c(e,l),c(l,o),c(l,f),c(l,u),c(u,i),he(i,s[1]),c(u,y),K(m,u,null),F(h,b,E),B&&B.m(h,E),F(h,S,E),v=!0,i.focus(),w||(U=[se(i,"input",s[9]),se(i,"input",s[10]),se(e,"submit",Pe(s[11]))],w=!0)},p(h,[E]){E&2&&i.value!==h[1]&&he(i,h[1]),(!v||E&9&&a!==(a=`flex flex-auto p-1 border shadow-sm space-x-1 ${de({error:h[0]!==null,pending:h[3]})}`))&&T(u,"class",a),h[0]?B?B.p(h,E):(B=ke(h),B.c(),B.m(S.parentNode,S)):B&&(B.d(1),B=null)},i(h){v||($(m.$$.fragment,h),v=!0)},o(h){Y(m.$$.fragment,h),v=!1},d(h){h&&(k(e),k(b),k(S)),V(m),B&&B.d(h),w=!1,Me(U)}}}function Ye(s,e,r){let t,l,o,n;X(s,le,w=>r(7,l=w)),X(s,we,w=>r(8,o=w));let{queryError:f}=e;const u=Oe();X(s,u,w=>r(2,n=w));let i;const y=le.subscribe(w=>{(o==null?void 0:o.type)!=="goto"&&r(1,{query:i}=w,i)});Ne(y);const m=()=>{be({query:i,searchType:n})};let a;function b(){i=this.value,r(1,i)}const S=()=>{n==="live"&&be({query:i,searchType:n})},v=()=>{n==="manual"&&m()};return s.$$set=w=>{"queryError"in w&&r(0,f=w.queryError)},s.$$.update=()=>{s.$$.dirty&68&&(n==="live"&&a==="manual"&&m(),r(6,a=n)),s.$$.dirty&386&&r(3,t=o===null&&(l.query??"")!==(i??""))},[f,i,n,t,u,m,a,l,o,b,S,v]}class He extends te{constructor(e){super(),re(this,e,Ye,Ue,ee,{queryError:0})}}const Qe=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ze=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ge=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ze=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Te=(s,e,r)=>{let t=s;return typeof e=="string"||Array.isArray(e)?t=s.toLocaleString(e,r):(e===!0||r!==void 0)&&(t=s.toLocaleString(void 0,r)),t};function Z(s,e){if(!Number.isFinite(s))throw new TypeError(`Expected a finite number, got ${typeof s}: ${s}`);e={bits:!1,binary:!1,space:!0,...e};const r=e.bits?e.binary?Ze:Ge:e.binary?ze:Qe,t=e.space?" ":"";if(e.signed&&s===0)return` 0${t}${r[0]}`;const l=s<0,o=l?"-":e.signed?"+":"";l&&(s=-s);let n;if(e.minimumFractionDigits!==void 0&&(n={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(n={maximumFractionDigits:e.maximumFractionDigits,...n}),s<1){const y=Te(s,e.locale,n);return o+y+t+r[0]}const f=Math.min(Math.floor(e.binary?Math.log(s)/Math.log(1024):Math.log10(s)/3),r.length-1);s/=(e.binary?1024:1e3)**f,n||(s=s.toPrecision(3));const u=Te(Number(s),e.locale,n),i=r[f];return o+u+t+i}function je(s){let e;return{c(){e=I(s[7])},l(r){e=A(r,s[7])},m(r,t){F(r,e,t)},p(r,t){t&128&&R(e,r[7])},i:_e,o:_e,d(r){r&&k(e)}}}function Je(s){let e,r;return e=new $e({props:{to:s[6],$$slots:{default:[Ke]},$$scope:{ctx:s}}}),{c(){j(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,l){K(e,t,l),r=!0},p(t,l){const o={};l&64&&(o.to=t[6]),l&640&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){r||($(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){V(e,t)}}}function Ke(s){let e;return{c(){e=I(s[7])},l(r){e=A(r,s[7])},m(r,t){F(r,e,t)},p(r,t){t&128&&R(e,r[7])},d(r){r&&k(e)}}}function Ve(s){let e,r,t,l,o,n,f,u,i,y=s[3].map(Be).join(" ")+"",m,a,b,S=Z(s[0],{space:!1})+"",v,w,U,B=Z(s[1],{space:!1})+"",h,E,M,_,W,p,g,d;const Q=[Je,je],H=[];function z(D,q){return D[6].length>0?0:1}return t=z(s),l=H[t]=Q[t](s),{c(){e=L("tr"),r=L("td"),l.c(),o=O(),n=L("td"),f=I(s[2]),u=O(),i=L("td"),m=I(y),a=O(),b=L("td"),v=I(S),w=O(),U=L("td"),h=I(B),E=O(),M=L("td"),_=I(s[5]),W=O(),p=L("td"),g=I(s[4]),this.h()},l(D){e=P(D,"TR",{class:!0});var q=N(e);r=P(q,"TD",{class:!0});var G=N(r);l.l(G),G.forEach(k),o=C(q),n=P(q,"TD",{class:!0});var ae=N(n);f=A(ae,s[2]),ae.forEach(k),u=C(q),i=P(q,"TD",{class:!0});var ie=N(i);m=A(ie,y),ie.forEach(k),a=C(q),b=P(q,"TD",{class:!0});var ue=N(b);v=A(ue,S),ue.forEach(k),w=C(q),U=P(q,"TD",{class:!0});var ce=N(U);h=A(ce,B),ce.forEach(k),E=C(q),M=P(q,"TD",{class:!0});var fe=N(M);_=A(fe,s[5]),fe.forEach(k),W=C(q),p=P(q,"TD",{class:!0});var pe=N(p);g=A(pe,s[4]),pe.forEach(k),q.forEach(k),this.h()},h(){T(r,"class","p-1"),T(n,"class","p-1"),T(i,"class","p-1"),T(b,"class","p-1"),T(U,"class","p-1"),T(M,"class","p-1"),T(p,"class","p-1"),T(e,"class","border")},m(D,q){F(D,e,q),c(e,r),H[t].m(r,null),c(e,o),c(e,n),c(n,f),c(e,u),c(e,i),c(i,m),c(e,a),c(e,b),c(b,v),c(e,w),c(e,U),c(U,h),c(e,E),c(e,M),c(M,_),c(e,W),c(e,p),c(p,g),d=!0},p(D,[q]){let G=t;t=z(D),t===G?H[t].p(D,q):(oe(),Y(H[G],1,1,()=>{H[G]=null}),ne(),l=H[t],l?l.p(D,q):(l=H[t]=Q[t](D),l.c()),$(l,1),l.m(r,null)),(!d||q&4)&&R(f,D[2]),(!d||q&8)&&y!==(y=D[3].map(Be).join(" ")+"")&&R(m,y),(!d||q&1)&&S!==(S=Z(D[0],{space:!1})+"")&&R(v,S),(!d||q&2)&&B!==(B=Z(D[1],{space:!1})+"")&&R(h,B),(!d||q&32)&&R(_,D[5]),(!d||q&16)&&R(g,D[4])},i(D){d||($(l),d=!0)},o(D){Y(l),d=!1},d(D){D&&k(e),H[t].d()}}}const Be=({name:s,version:e})=>`${s}@${e}`;function We(s,e,r){let t,l,o,n,f,u,i,y,{repository:m}=e;return s.$$set=a=>{"repository"in a&&r(8,m=a.repository)},s.$$.update=()=>{s.$$.dirty&256&&r(7,{name:t,url:l,lastIndexed:o,lastCommit:n,branches:f,stats:{fileCount:u,indexBytes:i,contentBytes:y}}=m,t,(r(6,l),r(8,m)),(r(5,o),r(8,m)),(r(4,n),r(8,m)),(r(3,f),r(8,m)),(r(2,u),r(8,m)),(r(1,i),r(8,m)),(r(0,y),r(8,m)))},[y,i,u,f,n,o,l,t,m]}class Xe extends te{constructor(e){super(),re(this,e,We,Ve,ee,{repository:8})}}function Ee(s,e,r){const t=s.slice();return t[5]=e[r],t}function qe(s){let e,r;return e=new Xe({props:{repository:s[5]}}),{c(){j(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,l){K(e,t,l),r=!0},p(t,l){const o={};l&1&&(o.repository=t[5]),e.$set(o)},i(t){r||($(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){V(e,t)}}}function xe(s){let e,r=s[0].length+"",t,l,o=s[0].length===1?"repository":"repositories",n,f,u,i,y=Z(s[2]+s[1],{space:!1})+"",m,a,b,S,v,w,U='<tr class="border bg-slate-100"><th class="p-1">Repository</th> <th class="p-1">File count</th> <th class="p-1">Branches</th> <th class="p-1">Content size in RAM</th> <th class="p-1">Index size in RAM</th> <th class="p-1">Last indexed</th> <th class="p-1">Last commit</th></tr>',B,h,E,M=ge(s[0]),_=[];for(let p=0;p<M.length;p+=1)_[p]=qe(Ee(s,M,p));const W=p=>Y(_[p],1,1,()=>{_[p]=null});return{c(){e=L("h1"),t=I(r),l=O(),n=I(o),f=I(` containing
|
|
2
|
+
`),u=I(s[3]),i=I(` files consuming
|
|
3
|
+
`),m=I(y),a=I(" of RAM"),b=O(),S=L("div"),v=L("table"),w=L("thead"),w.innerHTML=U,B=O(),h=L("tbody");for(let p=0;p<_.length;p+=1)_[p].c();this.h()},l(p){e=P(p,"H1",{class:!0});var g=N(e);t=A(g,r),l=C(g),n=A(g,o),f=A(g,` containing
|
|
4
|
+
`),u=A(g,s[3]),i=A(g,` files consuming
|
|
5
|
+
`),m=A(g,y),a=A(g," of RAM"),g.forEach(k),b=C(p),S=P(p,"DIV",{class:!0});var d=N(S);v=P(d,"TABLE",{class:!0});var Q=N(v);w=P(Q,"THEAD",{"data-svelte-h":!0}),Se(w)!=="svelte-wc5kr7"&&(w.innerHTML=U),B=C(Q),h=P(Q,"TBODY",{});var H=N(h);for(let z=0;z<_.length;z+=1)_[z].l(H);H.forEach(k),Q.forEach(k),d.forEach(k),this.h()},h(){T(e,"class","text-xs py-1"),T(v,"class","border-collapse text-sm w-full text-center"),T(S,"class","overflow-x-auto")},m(p,g){F(p,e,g),c(e,t),c(e,l),c(e,n),c(e,f),c(e,u),c(e,i),c(e,m),c(e,a),F(p,b,g),F(p,S,g),c(S,v),c(v,w),c(v,B),c(v,h);for(let d=0;d<_.length;d+=1)_[d]&&_[d].m(h,null);E=!0},p(p,[g]){if((!E||g&1)&&r!==(r=p[0].length+"")&&R(t,r),(!E||g&1)&&o!==(o=p[0].length===1?"repository":"repositories")&&R(n,o),(!E||g&8)&&R(u,p[3]),(!E||g&6)&&y!==(y=Z(p[2]+p[1],{space:!1})+"")&&R(m,y),g&1){M=ge(p[0]);let d;for(d=0;d<M.length;d+=1){const Q=Ee(p,M,d);_[d]?(_[d].p(Q,g),$(_[d],1)):(_[d]=qe(Q),_[d].c(),$(_[d],1),_[d].m(h,null))}for(oe(),d=M.length;d<_.length;d+=1)W(d);ne()}},i(p){if(!E){for(let g=0;g<M.length;g+=1)$(_[g]);E=!0}},o(p){_=_.filter(Boolean);for(let g=0;g<_.length;g+=1)Y(_[g]);E=!1},d(p){p&&(k(e),k(b),k(S)),Ie(_,p)}}}function et(s,e,r){let t,l,o,n,{results:f}=e;return s.$$set=u=>{"results"in u&&r(4,f=u.results)},s.$$.update=()=>{s.$$.dirty&16&&r(3,{stats:{fileCount:t,indexBytes:l,contentBytes:o},repositories:n}=f,t,(r(2,l),r(4,f)),(r(1,o),r(4,f)),(r(0,n),r(4,f)))},[n,o,l,t,f]}class Le extends te{constructor(e){super(),re(this,e,et,xe,ee,{results:4})}}function tt(s){let e,r;return e=new Le({props:{results:s[0].listOutcome.results}}),{c(){j(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,l){K(e,t,l),r=!0},p(t,l){const o={};l&1&&(o.results=t[0].listOutcome.results),e.$set(o)},i(t){r||($(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){V(e,t)}}}function rt(s){let e,r;return e=new Le({props:{results:s[1]}}),{c(){j(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,l){K(e,t,l),r=!0},p(t,l){const o={};l&2&&(o.results=t[1]),e.$set(o)},i(t){r||($(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){V(e,t)}}}function st(s){let e,r,t,l,o,n,f,u;document.title=e=(s[2].query?`${s[2].query} - `:"")+"neogrok/repositories",t=new He({props:{queryError:s[0].listOutcome.kind==="error"?s[0].listOutcome.error:null}});const i=[rt,tt],y=[];function m(a,b){return a[0].listOutcome.kind==="error"&&a[1]?0:a[0].listOutcome.kind==="success"?1:-1}return~(o=m(s))&&(n=y[o]=i[o](s)),{c(){r=O(),j(t.$$.fragment),l=O(),n&&n.c(),f=x()},l(a){Ae("svelte-1isq039",document.head).forEach(k),r=C(a),J(t.$$.fragment,a),l=C(a),n&&n.l(a),f=x()},m(a,b){F(a,r,b),K(t,a,b),F(a,l,b),~o&&y[o].m(a,b),F(a,f,b),u=!0},p(a,[b]){(!u||b&4)&&e!==(e=(a[2].query?`${a[2].query} - `:"")+"neogrok/repositories")&&(document.title=e);const S={};b&1&&(S.queryError=a[0].listOutcome.kind==="error"?a[0].listOutcome.error:null),t.$set(S);let v=o;o=m(a),o===v?~o&&y[o].p(a,b):(n&&(oe(),Y(y[v],1,1,()=>{y[v]=null}),ne()),~o?(n=y[o],n?n.p(a,b):(n=y[o]=i[o](a),n.c()),$(n,1),n.m(f.parentNode,f)):n=null)},i(a){u||($(t.$$.fragment,a),$(n),u=!0)},o(a){Y(t.$$.fragment,a),Y(n),u=!1},d(a){a&&(k(r),k(l),k(f)),V(t,a),~o&&y[o].d(a)}}}function lt(s,e,r){let t;X(s,le,n=>r(2,t=n));let{data:l}=e,o=null;return s.$$set=n=>{"data"in n&&r(0,l=n.data)},s.$$.update=()=>{s.$$.dirty&1&&l.listOutcome.kind==="success"&&r(1,o=l.listOutcome.results)},[l,o,t]}class ht extends te{constructor(e){super(),re(this,e,lt,st,ee,{data:0})}}export{ht as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import{n as mo,k as _o,e as o,c as l,a as y,d as i,f as v,i as C,g as t,u as vo,r as bo,v as yo,l as x,t as r,m as Co,o as _,p as b,b as a}from"../chunks/scheduler.80902d3b.js";import{S as go,i as xo,t as u,b as d,c as p,a as h,m,d as g}from"../chunks/index.d0e6da70.js";import{L as nn}from"../chunks/link.70630bff.js";import{E as q,a as H}from"../chunks/example-query.ac8ef50a.js";function wo($){let n,e,f,G;const ae=$[2].default,E=_o(ae,$,$[1],null);return{c(){n=o("h2"),e=o("a"),E&&E.c(),this.h()},l(z){n=l(z,"H2",{id:!0,class:!0});var I=y(n);e=l(I,"A",{href:!0,class:!0});var sn=y(e);E&&E.l(sn),sn.forEach(i),I.forEach(i),this.h()},h(){v(e,"href",f=`#${$[0]}`),v(e,"class","hover:underline"),v(n,"id",$[0]),v(n,"class","text-xl font-semibold")},m(z,I){C(z,n,I),t(n,e),E&&E.m(e,null),G=!0},p(z,[I]){E&&E.p&&(!G||I&2)&&vo(E,ae,z,z[1],G?yo(ae,z[1],I,null):bo(z[1]),null),(!G||I&1&&f!==(f=`#${z[0]}`))&&v(e,"href",f),(!G||I&1)&&v(n,"id",z[0])},i(z){G||(u(E,z),G=!0)},o(z){d(E,z),G=!1},d(z){z&&i(n),E&&E.d(z)}}}function To($,n,e){let{$$slots:f={},$$scope:G}=n,{id:ae}=n;return $.$$set=E=>{"id"in E&&e(0,ae=E.id),"$$scope"in E&&e(1,G=E.$$scope)},[ae,G,f]}class es extends go{constructor(n){super(),xo(this,n,To,wo,mo,{id:0})}}function Eo($){let n;return{c(){n=r("zoekt")},l(e){n=a(e,"zoekt")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function qo($){let n;return{c(){n=r("Everything is regex")},l(e){n=a(e,"Everything is regex")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function ko($){let n;return{c(){n=r("here")},l(e){n=a(e,"here")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Do($){let n;return{c(){n=r("regex flags")},l(e){n=a(e,"regex flags")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Mo($){let n;return{c(){n=r("here,")},l(e){n=a(e,"here,")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Lo($){let n;return{c(){n=r("Queries are composed of one or more space-separated expressions")},l(e){n=a(e,"Queries are composed of one or more space-separated expressions")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Ho($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function zo($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Ro($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Ao($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Oo($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Po($){let n;return{c(){n=r("/foo bar/")},l(e){n=a(e,"/foo bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Io($){let n;return{c(){n=r("/'foo/")},l(e){n=a(e,"/'foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function jo($){let n;return{c(){n=r("/bar'/")},l(e){n=a(e,"/bar'/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function So($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Bo($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Qo($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function No($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Fo($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Go($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Vo($){let n;return{c(){n=r("/baz/")},l(e){n=a(e,"/baz/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Uo($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Wo($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Xo($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Yo($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Jo($){let n;return{c(){n=r("/baz/")},l(e){n=a(e,"/baz/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Ko($){let n;return{c(){n=r("/foo/")},l(e){n=a(e,"/foo/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function Zo($){let n;return{c(){n=r("/bar/")},l(e){n=a(e,"/bar/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function el($){let n;return{c(){n=r("/baz/")},l(e){n=a(e,"/baz/")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function tl($){let n;return{c(){n=r("Certain prefixes have special effects on expressions")},l(e){n=a(e,"Certain prefixes have special effects on expressions")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function nl($){let n;return{c(){n=r("Available prefixes")},l(e){n=a(e,"Available prefixes")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function sl($){let n;return{c(){n=r("linguist")},l(e){n=a(e,"linguist")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function rl($){let n;return{c(){n=r("go-enry")},l(e){n=a(e,"go-enry")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function al($){let n;return{c(){n=r("universal ctags")},l(e){n=a(e,"universal ctags")},m(e,f){C(e,n,f)},d(e){e&&i(n)}}}function ol($){let n,e,f,G="Query syntax",ae,E,z,I,sn,ts,oe,Te,ns,ot,ss,Ee,rs,as,R,os,qe,ls,ke,is,rn,ya="ClassNL",fs,an,Ca="PerlX",$s,on,wa="UnicodeGroups",cs,ln,Ta="[[:space:]]",us,fn,Ea="not",ds,ps,j,De,hs,W,ms,lt,gs,Me,xs,$n,qa="expression",_s,cn,ka="regex",vs,bs,A,ys,it,Cs,Le,ws,un,Da="or",Ts,He,Es,ze,qs,dn,Ma="and",ks,Re,Ds,Ms,S,Ls,Ae,Hs,ft,zs,$t,Rs,ct,As,Oe,Os,Pe,Ps,Is,k,js,pn,La="conjunctive",Ss,hn,Ha="disjunctive",Bs,mn,za="or",Qs,ut,Ns,Ie,Fs,je,Gs,Se,Vs,Be,Us,gn,Ra="or",Ws,dt,Xs,Ys,X,Js,pt,Ks,Qe,Zs,Ne,er,Fe,tr,nr,w,sr,ht,rr,Ge,ar,Ve,or,mt,lr,Ue,ir,We,fr,Xe,$r,gt,cr,Ye,ur,xn,Aa="both",dr,Je,pr,Ke,hr,mr,V,Ze,gr,_n,Oa=`In addition to the default regex expressions you've already seen,
|
|
2
|
+
special kinds of expressions can be created by prefixing them with certain
|
|
3
|
+
flags, which are themselves composed of a few characters ending with a
|
|
4
|
+
colon.`,xr,B,_r,vn,Pa="name",vr,xt,br,bn,Ia="file:",yr,_t,Cr,yn,ja="f:",wr,Cn,Sa="file:",Tr,Er,Y,qr,wn,Ba="file:",kr,Tn,Qa="content:",Dr,En,Na="c:",Mr,vt,Lr,Hr,qn,Fa=`There are a few more kinds of prefix expressions than those two.
|
|
5
|
+
They're all tabulated below.`,Kn,ge,kn,et,zr,Dn,tt,Mn,Ga='<tr class="border bg-slate-100"><th class="p-1">Prefix(es)</th> <th class="p-1">Description</th> <th class="p-1">Examples</th></tr>',Rr,M,le,bt,Va="<code>file:</code>, <code>f:</code>",Ar,yt,Ua=`Regex match file names only, instead of the default file names and
|
|
6
|
+
file contents`,Or,U,Ct,Pr,Ir,jr,wt,Sr,Br,Qr,Tt,Nr,ie,Et,Wa="<code>content:</code>, <code>c:</code>",Fr,qt,Xa=`Regex match file contents only, instead of the default file names
|
|
7
|
+
and file contents`,Gr,Ln,kt,Vr,fe,Dt,Ya="<code>repo:</code>, <code>r:</code>",Ur,Mt,Ja=`Regex match repository names; by default all repositories are
|
|
8
|
+
searched`,Wr,Hn,Lt,Xr,$e,Ht,Ka="<code>branch:</code>, <code>b:</code>",Yr,zt,Za="Regex match branch names; by default all branches are searched",Jr,zn,Rt,Kr,ce,At,eo="<code>lang:</code>",Zr,se,ea,nt,ta,st,na,Rn,to="not",sa,ra,An,Ot,aa,ue,Pt,no="<code>sym:</code>",oa,rt,la,at,ia,fa,On,It,$a,de,jt,so="<code>case:</code>",ca,St,ro=`Unlike most other expressions, does not do anything on its own, but
|
|
9
|
+
rather modifies other expressions in the query.
|
|
10
|
+
<code>case:yes</code> makes other expressions case-sensitive;
|
|
11
|
+
<code>case:no</code> makes them case-insensitive, and
|
|
12
|
+
<code>case:auto</code> (the default behavior) makes them case-sensitive
|
|
13
|
+
if they have any uppercase characters and case-insensitive otherwise`,ua,Pn,Bt,da,pe,Qt,ao="<code>archived:</code>",pa,Nt,oo=`<code>archived:no</code> excludes archived repositories while
|
|
14
|
+
<code>archived:yes</code> excludes non-archived repositories. The default
|
|
15
|
+
is to exclude neither.`,ha,In,Ft,ma,he,Gt,lo="<code>fork:</code>",ga,Vt,io=`<code>fork:no</code> excludes repositories that are forks of another
|
|
16
|
+
while <code>fork:yes</code> excludes repositories that are not forks
|
|
17
|
+
of another. The default is to exclude neither.`,xa,jn,Ut,_a,me,Wt,fo="<code>public:</code>",va,Xt,$o=`<code>public:no</code> excludes public repositories while
|
|
18
|
+
<code>public:yes</code> excludes private repositories. The default is
|
|
19
|
+
to exclude neither.`,ba,Sn,Yt,Zn;return I=new nn({props:{to:"https://github.com/sourcegraph/zoekt",$$slots:{default:[Eo]},$$scope:{ctx:$}}}),Te=new es({props:{id:"regex",$$slots:{default:[qo]},$$scope:{ctx:$}}}),Ee=new nn({props:{to:"https://pkg.go.dev/regexp/syntax#hdr-Syntax",$$slots:{default:[ko]},$$scope:{ctx:$}}}),qe=new nn({props:{to:"https://pkg.go.dev/regexp/syntax#Flags",$$slots:{default:[Do]},$$scope:{ctx:$}}}),ke=new nn({props:{to:"https://github.com/sourcegraph/zoekt/blob/58cf4748830ac0eded1517cc8c2454694c531fbd/query/parse.go#L231",$$slots:{default:[Mo]},$$scope:{ctx:$}}}),De=new es({props:{id:"expressions",$$slots:{default:[Lo]},$$scope:{ctx:$}}}),lt=new q({props:{query:"foo"}}),Me=new H({props:{$$slots:{default:[Ho]},$$scope:{ctx:$}}}),it=new q({props:{query:"foo bar"}}),Le=new H({props:{$$slots:{default:[zo]},$$scope:{ctx:$}}}),He=new H({props:{$$slots:{default:[Ro]},$$scope:{ctx:$}}}),ze=new H({props:{$$slots:{default:[Ao]},$$scope:{ctx:$}}}),Re=new H({props:{$$slots:{default:[Oo]},$$scope:{ctx:$}}}),Ae=new H({props:{$$slots:{default:[Po]},$$scope:{ctx:$}}}),ft=new q({props:{query:'"foo bar"'}}),$t=new q({props:{query:"foo\\ bar"}}),ct=new q({props:{query:"'foo bar'"}}),Oe=new H({props:{$$slots:{default:[Io]},$$scope:{ctx:$}}}),Pe=new H({props:{$$slots:{default:[jo]},$$scope:{ctx:$}}}),ut=new q({props:{query:"foo or bar"}}),Ie=new H({props:{$$slots:{default:[So]},$$scope:{ctx:$}}}),je=new H({props:{$$slots:{default:[Bo]},$$scope:{ctx:$}}}),Se=new H({props:{$$slots:{default:[Qo]},$$scope:{ctx:$}}}),Be=new H({props:{$$slots:{default:[No]},$$scope:{ctx:$}}}),dt=new q({props:{query:'foo "or" bar'}}),pt=new q({props:{query:"foo (bar or baz)"}}),Qe=new H({props:{$$slots:{default:[Fo]},$$scope:{ctx:$}}}),Ne=new H({props:{$$slots:{default:[Go]},$$scope:{ctx:$}}}),Fe=new H({props:{$$slots:{default:[Vo]},$$scope:{ctx:$}}}),ht=new q({props:{query:"foo -bar"}}),Ge=new H({props:{$$slots:{default:[Uo]},$$scope:{ctx:$}}}),Ve=new H({props:{$$slots:{default:[Wo]},$$scope:{ctx:$}}}),mt=new q({props:{query:"foo -(bar or baz)"}}),Ue=new H({props:{$$slots:{default:[Xo]},$$scope:{ctx:$}}}),We=new H({props:{$$slots:{default:[Yo]},$$scope:{ctx:$}}}),Xe=new H({props:{$$slots:{default:[Jo]},$$scope:{ctx:$}}}),gt=new q({props:{query:"foo -(bar baz)"}}),Ye=new H({props:{$$slots:{default:[Ko]},$$scope:{ctx:$}}}),Je=new H({props:{$$slots:{default:[Zo]},$$scope:{ctx:$}}}),Ke=new H({props:{$$slots:{default:[el]},$$scope:{ctx:$}}}),Ze=new es({props:{id:"prefix-expressions",$$slots:{default:[tl]},$$scope:{ctx:$}}}),xt=new q({props:{query:"README"}}),_t=new q({props:{query:"file:README"}}),vt=new q({props:{query:"content:README"}}),et=new es({props:{id:"prefix-table",$$slots:{default:[nl]},$$scope:{ctx:$}}}),Ct=new q({props:{query:"f:README"}}),wt=new q({props:{query:"f:README neogrok"}}),Tt=new q({props:{query:'f:"evil file with spaces"'}}),kt=new q({props:{query:"c:README"}}),Lt=new q({props:{query:"r:linux driver"}}),Rt=new q({props:{query:"b:prerelease foo"}}),nt=new nn({props:{to:"https://github.com/github/linguist/blob/master/lib/linguist/languages.yml",$$slots:{default:[sl]},$$scope:{ctx:$}}}),st=new nn({props:{to:"https://github.com/go-enry/go-enry/",$$slots:{default:[rl]},$$scope:{ctx:$}}}),Ot=new q({props:{query:"lang:typescript type"}}),at=new nn({props:{to:"https://ctags.io/",$$slots:{default:[al]},$$scope:{ctx:$}}}),It=new q({props:{query:"sym:\\bmain\\b"}}),Bt=new q({props:{query:"case:no TEST"}}),Ft=new q({props:{query:"archived:no readme"}}),Ut=new q({props:{query:"fork:no readme"}}),Yt=new q({props:{query:"public:no readme"}}),{c(){n=x(),e=o("div"),f=o("h1"),f.textContent=G,ae=x(),E=o("p"),z=r(`The query syntax of neogrok is controlled by
|
|
20
|
+
`),p(I.$$.fragment),sn=r(`, the code
|
|
21
|
+
search engine for which neogrok is a frontend. Because zoekt does not have
|
|
22
|
+
good documentation covering this syntax, we describe it here.`),ts=x(),oe=o("section"),p(Te.$$.fragment),ns=x(),ot=o("p"),ss=r(`In zoekt, all queries are parsed by Go's regexp package, the syntax
|
|
23
|
+
of which is documented
|
|
24
|
+
`),p(Ee.$$.fragment),rs=r(`. There
|
|
25
|
+
is no way to disable this functionality; queries that want to use regex
|
|
26
|
+
control characters literally must escape them.`),as=x(),R=o("p"),os=r(`Queries cannot control the
|
|
27
|
+
`),p(qe.$$.fragment),ls=r(`
|
|
28
|
+
that zoekt uses; they are hardcoded. As can be seen
|
|
29
|
+
`),p(ke.$$.fragment),is=r(" the flags are "),rn=o("code"),rn.textContent=ya,fs=r(", "),an=o("code"),an.textContent=Ca,$s=r(`, and
|
|
30
|
+
`),on=o("code"),on.textContent=wa,cs=r(`. Together, these flags notably allow multiline
|
|
31
|
+
regex matches using character classes like
|
|
32
|
+
`),ln=o("code"),ln.textContent=Ta,us=r(", but "),fn=o("em"),fn.textContent=Ea,ds=r(" using the dot."),ps=x(),j=o("section"),p(De.$$.fragment),hs=x(),W=o("p"),ms=r(`If your query contains no spaces, its behavior is pretty intuitive.
|
|
33
|
+
`),p(lt.$$.fragment),gs=r(` displays all matches for the regex
|
|
34
|
+
`),p(Me.$$.fragment),xs=r(`. That query contains a single
|
|
35
|
+
`),$n=o("em"),$n.textContent=qa,_s=r(", namely a "),cn=o("em"),cn.textContent=ka,vs=r(` expression. (We'll introduce
|
|
36
|
+
more kinds of expressions below.)`),bs=x(),A=o("p"),ys=r("But what about "),p(it.$$.fragment),Cs=r(`? This query has two
|
|
37
|
+
expressions, which makes its behavior more complicated: it returns all
|
|
38
|
+
matches for the regex `),p(Le.$$.fragment),ws=x(),un=o("em"),un.textContent=Da,Ts=r(" the regex "),p(He.$$.fragment),Es=r(", but only in files that have matches for both "),p(ze.$$.fragment),qs=x(),dn=o("em"),dn.textContent=Ma,ks=x(),p(Re.$$.fragment),Ds=r("."),Ms=x(),S=o("p"),Ls=r(`First of all, if you wanted this query to behave as if it had only one
|
|
39
|
+
expression, literally matching `),p(Ae.$$.fragment),Hs=r(`, you can
|
|
40
|
+
either wrap it in double quotes, like
|
|
41
|
+
`),p(ft.$$.fragment),zs=r(`, or by escaping the space, like
|
|
42
|
+
`),p($t.$$.fragment),Rs=r(`; both of those queries are equivalent.
|
|
43
|
+
(Single quotes have no special meaning in this regard.
|
|
44
|
+
`),p(ct.$$.fragment),As=r(` contains two expressions, the first being
|
|
45
|
+
`),p(Oe.$$.fragment),Os=r(` and the second being
|
|
46
|
+
`),p(Pe.$$.fragment),Ps=r(".)"),Is=x(),k=o("p"),js=r("As described above, expressions are "),pn=o("em"),pn.textContent=La,Ss=r(` by default. A
|
|
47
|
+
file must have at least one match for each expression to be included in
|
|
48
|
+
the query results. Expressions may be made `),hn=o("em"),hn.textContent=Ha,Bs=r(` by joining
|
|
49
|
+
them with the special expression infix operator
|
|
50
|
+
`),mn=o("code"),mn.textContent=za,Qs=r(". "),p(ut.$$.fragment),Ns=r(` returns all matches for
|
|
51
|
+
`),p(Ie.$$.fragment),Fs=r(` or
|
|
52
|
+
`),p(je.$$.fragment),Gs=r(` in all files that have matches for at least
|
|
53
|
+
one of `),p(Se.$$.fragment),Vs=r(` or
|
|
54
|
+
`),p(Be.$$.fragment),Us=r(". (To use "),gn=o("code"),gn.textContent=Ra,Ws=r(` as a literal
|
|
55
|
+
expression and not as an operator, double quote it:
|
|
56
|
+
`),p(dt.$$.fragment),Xs=r(" has three conjunctive expressions.)"),Ys=x(),X=o("p"),Js=r(`Expressions can be logically grouped with parentheses:
|
|
57
|
+
`),p(pt.$$.fragment),Ks=r(` produces results from files with
|
|
58
|
+
matches for both `),p(Qe.$$.fragment),Zs=r(" and at least one of "),p(Ne.$$.fragment),er=r(` or
|
|
59
|
+
`),p(Fe.$$.fragment),tr=r(". These groupings can be nested arbitrarily."),nr=x(),w=o("p"),sr=r(`To complete the boolean logic, expressions can be negated with a leading
|
|
60
|
+
dash. `),p(ht.$$.fragment),rr=r(" returns all matches for "),p(Ge.$$.fragment),ar=r(" in files that do not have matches for "),p(Ve.$$.fragment),or=r(`.
|
|
61
|
+
`),p(mt.$$.fragment),lr=r(` returns all matches for
|
|
62
|
+
`),p(Ue.$$.fragment),ir=r(` in files that do not have matches for either
|
|
63
|
+
`),p(We.$$.fragment),fr=r(` or
|
|
64
|
+
`),p(Xe.$$.fragment),$r=r(`.
|
|
65
|
+
`),p(gt.$$.fragment),cr=r(` returns all matches for
|
|
66
|
+
`),p(Ye.$$.fragment),ur=r(` in files that do not have matches for
|
|
67
|
+
`),xn=o("em"),xn.textContent=Aa,dr=x(),p(Je.$$.fragment),pr=r(` and
|
|
68
|
+
`),p(Ke.$$.fragment),hr=r("."),mr=x(),V=o("section"),p(Ze.$$.fragment),gr=x(),_n=o("p"),_n.textContent=Oa,xr=x(),B=o("p"),_r=r(`Consider that regex expressions can produce matches both in the content of
|
|
69
|
+
a file and in the `),vn=o("em"),vn.textContent=Pa,vr=r(` of the file:
|
|
70
|
+
`),p(xt.$$.fragment),br=r(` matches both file names and file contents (though
|
|
71
|
+
the search engine tends to rank files containing file name matches higher than
|
|
72
|
+
those containing only content matches, so you may have to scroll down or increase
|
|
73
|
+
the number of files displayed to see the content matches for this query). If
|
|
74
|
+
you only want the expression to match file names, use an expression prefixed
|
|
75
|
+
with
|
|
76
|
+
`),bn=o("code"),bn.textContent=Ia,yr=r(", like "),p(_t.$$.fragment),Cr=r(`. (
|
|
77
|
+
`),yn=o("code"),yn.textContent=ja,wr=r(" is an equivalent abbreviation for "),Cn=o("code"),Cn.textContent=Sa,Tr=r(")."),Er=x(),Y=o("p"),qr=r("The inverse of "),wn=o("code"),wn.textContent=Ba,kr=r(`'s specialization of regex
|
|
78
|
+
expressions is `),Tn=o("code"),Tn.textContent=Qa,Dr=r(" or "),En=o("code"),En.textContent=Na,Mr=r(`.
|
|
79
|
+
`),p(vt.$$.fragment),Lr=r(` produces only matches that occur in
|
|
80
|
+
the content of files.`),Hr=x(),qn=o("p"),qn.textContent=Fa,Kn=x(),ge=o("section"),kn=o("div"),p(et.$$.fragment),zr=x(),Dn=o("div"),tt=o("table"),Mn=o("thead"),Mn.innerHTML=Ga,Rr=x(),M=o("tbody"),le=o("tr"),bt=o("td"),bt.innerHTML=Va,Ar=x(),yt=o("td"),yt.textContent=Ua,Or=x(),U=o("td"),p(Ct.$$.fragment),Pr=x(),Ir=o("br"),jr=x(),p(wt.$$.fragment),Sr=x(),Br=o("br"),Qr=x(),p(Tt.$$.fragment),Nr=x(),ie=o("tr"),Et=o("td"),Et.innerHTML=Wa,Fr=x(),qt=o("td"),qt.textContent=Xa,Gr=x(),Ln=o("td"),p(kt.$$.fragment),Vr=x(),fe=o("tr"),Dt=o("td"),Dt.innerHTML=Ya,Ur=x(),Mt=o("td"),Mt.textContent=Ja,Wr=x(),Hn=o("td"),p(Lt.$$.fragment),Xr=x(),$e=o("tr"),Ht=o("td"),Ht.innerHTML=Ka,Yr=x(),zt=o("td"),zt.textContent=Za,Jr=x(),zn=o("td"),p(Rt.$$.fragment),Kr=x(),ce=o("tr"),At=o("td"),At.innerHTML=eo,Zr=x(),se=o("td"),ea=r(`Constrain files to those in the given language (or language alias)
|
|
81
|
+
as defined by
|
|
82
|
+
`),p(nt.$$.fragment),ta=r(`
|
|
83
|
+
and computed probabilistically from file name and contents at index time
|
|
84
|
+
by
|
|
85
|
+
`),p(st.$$.fragment),na=r(`. This
|
|
86
|
+
is
|
|
87
|
+
`),Rn=o("em"),Rn.textContent=to,sa=r(` a regex or a substring, though it is case-insensitive; each
|
|
88
|
+
expression can only contain one language.`),ra=x(),An=o("td"),p(Ot.$$.fragment),aa=x(),ue=o("tr"),Pt=o("td"),Pt.innerHTML=no,oa=x(),rt=o("td"),la=r(`Regex match symbol definitions, as determined by
|
|
89
|
+
`),p(at.$$.fragment),ia=r(` at index time, if
|
|
90
|
+
it was present during indexing`),fa=x(),On=o("td"),p(It.$$.fragment),$a=x(),de=o("tr"),jt=o("td"),jt.innerHTML=so,ca=x(),St=o("td"),St.innerHTML=ro,ua=x(),Pn=o("td"),p(Bt.$$.fragment),da=x(),pe=o("tr"),Qt=o("td"),Qt.innerHTML=ao,pa=x(),Nt=o("td"),Nt.innerHTML=oo,ha=x(),In=o("td"),p(Ft.$$.fragment),ma=x(),he=o("tr"),Gt=o("td"),Gt.innerHTML=lo,ga=x(),Vt=o("td"),Vt.innerHTML=io,xa=x(),jn=o("td"),p(Ut.$$.fragment),_a=x(),me=o("tr"),Wt=o("td"),Wt.innerHTML=fo,va=x(),Xt=o("td"),Xt.innerHTML=$o,ba=x(),Sn=o("td"),p(Yt.$$.fragment),this.h()},l(s){Co("svelte-1dn4zb2",document.head).forEach(i),n=_(s),e=l(s,"DIV",{class:!0});var J=y(e);f=l(J,"H1",{class:!0,"data-svelte-h":!0}),b(f)!=="svelte-drswmx"&&(f.textContent=G),ae=_(J),E=l(J,"P",{});var Jt=y(E);z=a(Jt,`The query syntax of neogrok is controlled by
|
|
91
|
+
`),h(I.$$.fragment,Jt),sn=a(Jt,`, the code
|
|
92
|
+
search engine for which neogrok is a frontend. Because zoekt does not have
|
|
93
|
+
good documentation covering this syntax, we describe it here.`),Jt.forEach(i),ts=_(J),oe=l(J,"SECTION",{class:!0});var xe=y(oe);h(Te.$$.fragment,xe),ns=_(xe),ot=l(xe,"P",{});var Kt=y(ot);ss=a(Kt,`In zoekt, all queries are parsed by Go's regexp package, the syntax
|
|
94
|
+
of which is documented
|
|
95
|
+
`),h(Ee.$$.fragment,Kt),rs=a(Kt,`. There
|
|
96
|
+
is no way to disable this functionality; queries that want to use regex
|
|
97
|
+
control characters literally must escape them.`),Kt.forEach(i),as=_(xe),R=l(xe,"P",{});var O=y(R);os=a(O,`Queries cannot control the
|
|
98
|
+
`),h(qe.$$.fragment,O),ls=a(O,`
|
|
99
|
+
that zoekt uses; they are hardcoded. As can be seen
|
|
100
|
+
`),h(ke.$$.fragment,O),is=a(O," the flags are "),rn=l(O,"CODE",{"data-svelte-h":!0}),b(rn)!=="svelte-1lwb44"&&(rn.textContent=ya),fs=a(O,", "),an=l(O,"CODE",{"data-svelte-h":!0}),b(an)!=="svelte-1k74erf"&&(an.textContent=Ca),$s=a(O,`, and
|
|
101
|
+
`),on=l(O,"CODE",{"data-svelte-h":!0}),b(on)!=="svelte-1gkbf0z"&&(on.textContent=wa),cs=a(O,`. Together, these flags notably allow multiline
|
|
102
|
+
regex matches using character classes like
|
|
103
|
+
`),ln=l(O,"CODE",{"data-svelte-h":!0}),b(ln)!=="svelte-1jnmpig"&&(ln.textContent=Ta),us=a(O,", but "),fn=l(O,"EM",{"data-svelte-h":!0}),b(fn)!=="svelte-r5iszh"&&(fn.textContent=Ea),ds=a(O," using the dot."),O.forEach(i),xe.forEach(i),ps=_(J),j=l(J,"SECTION",{class:!0});var Q=y(j);h(De.$$.fragment,Q),hs=_(Q),W=l(Q,"P",{});var K=y(W);ms=a(K,`If your query contains no spaces, its behavior is pretty intuitive.
|
|
104
|
+
`),h(lt.$$.fragment,K),gs=a(K,` displays all matches for the regex
|
|
105
|
+
`),h(Me.$$.fragment,K),xs=a(K,`. That query contains a single
|
|
106
|
+
`),$n=l(K,"EM",{"data-svelte-h":!0}),b($n)!=="svelte-11lt9to"&&($n.textContent=qa),_s=a(K,", namely a "),cn=l(K,"EM",{"data-svelte-h":!0}),b(cn)!=="svelte-19778sj"&&(cn.textContent=ka),vs=a(K,` expression. (We'll introduce
|
|
107
|
+
more kinds of expressions below.)`),K.forEach(i),bs=_(Q),A=l(Q,"P",{});var P=y(A);ys=a(P,"But what about "),h(it.$$.fragment,P),Cs=a(P,`? This query has two
|
|
108
|
+
expressions, which makes its behavior more complicated: it returns all
|
|
109
|
+
matches for the regex `),h(Le.$$.fragment,P),ws=_(P),un=l(P,"EM",{"data-svelte-h":!0}),b(un)!=="svelte-cgbo3"&&(un.textContent=Da),Ts=a(P," the regex "),h(He.$$.fragment,P),Es=a(P,", but only in files that have matches for both "),h(ze.$$.fragment,P),qs=_(P),dn=l(P,"EM",{"data-svelte-h":!0}),b(dn)!=="svelte-5z4sw5"&&(dn.textContent=Ma),ks=_(P),h(Re.$$.fragment,P),Ds=a(P,"."),P.forEach(i),Ms=_(Q),S=l(Q,"P",{});var N=y(S);Ls=a(N,`First of all, if you wanted this query to behave as if it had only one
|
|
110
|
+
expression, literally matching `),h(Ae.$$.fragment,N),Hs=a(N,`, you can
|
|
111
|
+
either wrap it in double quotes, like
|
|
112
|
+
`),h(ft.$$.fragment,N),zs=a(N,`, or by escaping the space, like
|
|
113
|
+
`),h($t.$$.fragment,N),Rs=a(N,`; both of those queries are equivalent.
|
|
114
|
+
(Single quotes have no special meaning in this regard.
|
|
115
|
+
`),h(ct.$$.fragment,N),As=a(N,` contains two expressions, the first being
|
|
116
|
+
`),h(Oe.$$.fragment,N),Os=a(N,` and the second being
|
|
117
|
+
`),h(Pe.$$.fragment,N),Ps=a(N,".)"),N.forEach(i),Is=_(Q),k=l(Q,"P",{});var D=y(k);js=a(D,"As described above, expressions are "),pn=l(D,"EM",{"data-svelte-h":!0}),b(pn)!=="svelte-7hh9h6"&&(pn.textContent=La),Ss=a(D,` by default. A
|
|
118
|
+
file must have at least one match for each expression to be included in
|
|
119
|
+
the query results. Expressions may be made `),hn=l(D,"EM",{"data-svelte-h":!0}),b(hn)!=="svelte-1ykbpk2"&&(hn.textContent=Ha),Bs=a(D,` by joining
|
|
120
|
+
them with the special expression infix operator
|
|
121
|
+
`),mn=l(D,"CODE",{"data-svelte-h":!0}),b(mn)!=="svelte-137udnx"&&(mn.textContent=za),Qs=a(D,". "),h(ut.$$.fragment,D),Ns=a(D,` returns all matches for
|
|
122
|
+
`),h(Ie.$$.fragment,D),Fs=a(D,` or
|
|
123
|
+
`),h(je.$$.fragment,D),Gs=a(D,` in all files that have matches for at least
|
|
124
|
+
one of `),h(Se.$$.fragment,D),Vs=a(D,` or
|
|
125
|
+
`),h(Be.$$.fragment,D),Us=a(D,". (To use "),gn=l(D,"CODE",{"data-svelte-h":!0}),b(gn)!=="svelte-137udnx"&&(gn.textContent=Ra),Ws=a(D,` as a literal
|
|
126
|
+
expression and not as an operator, double quote it:
|
|
127
|
+
`),h(dt.$$.fragment,D),Xs=a(D," has three conjunctive expressions.)"),D.forEach(i),Ys=_(Q),X=l(Q,"P",{});var Z=y(X);Js=a(Z,`Expressions can be logically grouped with parentheses:
|
|
128
|
+
`),h(pt.$$.fragment,Z),Ks=a(Z,` produces results from files with
|
|
129
|
+
matches for both `),h(Qe.$$.fragment,Z),Zs=a(Z," and at least one of "),h(Ne.$$.fragment,Z),er=a(Z,` or
|
|
130
|
+
`),h(Fe.$$.fragment,Z),tr=a(Z,". These groupings can be nested arbitrarily."),Z.forEach(i),nr=_(Q),w=l(Q,"P",{});var T=y(w);sr=a(T,`To complete the boolean logic, expressions can be negated with a leading
|
|
131
|
+
dash. `),h(ht.$$.fragment,T),rr=a(T," returns all matches for "),h(Ge.$$.fragment,T),ar=a(T," in files that do not have matches for "),h(Ve.$$.fragment,T),or=a(T,`.
|
|
132
|
+
`),h(mt.$$.fragment,T),lr=a(T,` returns all matches for
|
|
133
|
+
`),h(Ue.$$.fragment,T),ir=a(T,` in files that do not have matches for either
|
|
134
|
+
`),h(We.$$.fragment,T),fr=a(T,` or
|
|
135
|
+
`),h(Xe.$$.fragment,T),$r=a(T,`.
|
|
136
|
+
`),h(gt.$$.fragment,T),cr=a(T,` returns all matches for
|
|
137
|
+
`),h(Ye.$$.fragment,T),ur=a(T,` in files that do not have matches for
|
|
138
|
+
`),xn=l(T,"EM",{"data-svelte-h":!0}),b(xn)!=="svelte-816elh"&&(xn.textContent=Aa),dr=_(T),h(Je.$$.fragment,T),pr=a(T,` and
|
|
139
|
+
`),h(Ke.$$.fragment,T),hr=a(T,"."),T.forEach(i),Q.forEach(i),mr=_(J),V=l(J,"SECTION",{class:!0});var ee=y(V);h(Ze.$$.fragment,ee),gr=_(ee),_n=l(ee,"P",{"data-svelte-h":!0}),b(_n)!=="svelte-nefp7c"&&(_n.textContent=Oa),xr=_(ee),B=l(ee,"P",{});var F=y(B);_r=a(F,`Consider that regex expressions can produce matches both in the content of
|
|
140
|
+
a file and in the `),vn=l(F,"EM",{"data-svelte-h":!0}),b(vn)!=="svelte-16mkcgl"&&(vn.textContent=Pa),vr=a(F,` of the file:
|
|
141
|
+
`),h(xt.$$.fragment,F),br=a(F,` matches both file names and file contents (though
|
|
142
|
+
the search engine tends to rank files containing file name matches higher than
|
|
143
|
+
those containing only content matches, so you may have to scroll down or increase
|
|
144
|
+
the number of files displayed to see the content matches for this query). If
|
|
145
|
+
you only want the expression to match file names, use an expression prefixed
|
|
146
|
+
with
|
|
147
|
+
`),bn=l(F,"CODE",{"data-svelte-h":!0}),b(bn)!=="svelte-1grdqgy"&&(bn.textContent=Ia),yr=a(F,", like "),h(_t.$$.fragment,F),Cr=a(F,`. (
|
|
148
|
+
`),yn=l(F,"CODE",{"data-svelte-h":!0}),b(yn)!=="svelte-1paldi8"&&(yn.textContent=ja),wr=a(F," is an equivalent abbreviation for "),Cn=l(F,"CODE",{"data-svelte-h":!0}),b(Cn)!=="svelte-1grdqgy"&&(Cn.textContent=Sa),Tr=a(F,")."),F.forEach(i),Er=_(ee),Y=l(ee,"P",{});var te=y(Y);qr=a(te,"The inverse of "),wn=l(te,"CODE",{"data-svelte-h":!0}),b(wn)!=="svelte-1grdqgy"&&(wn.textContent=Ba),kr=a(te,`'s specialization of regex
|
|
149
|
+
expressions is `),Tn=l(te,"CODE",{"data-svelte-h":!0}),b(Tn)!=="svelte-kle2xl"&&(Tn.textContent=Qa),Dr=a(te," or "),En=l(te,"CODE",{"data-svelte-h":!0}),b(En)!=="svelte-5vxend"&&(En.textContent=Na),Mr=a(te,`.
|
|
150
|
+
`),h(vt.$$.fragment,te),Lr=a(te,` produces only matches that occur in
|
|
151
|
+
the content of files.`),te.forEach(i),Hr=_(ee),qn=l(ee,"P",{"data-svelte-h":!0}),b(qn)!=="svelte-my6cpc"&&(qn.textContent=Fa),ee.forEach(i),J.forEach(i),Kn=_(s),ge=l(s,"SECTION",{class:!0});var Zt=y(ge);kn=l(Zt,"DIV",{class:!0});var Gn=y(kn);h(et.$$.fragment,Gn),Gn.forEach(i),zr=_(Zt),Dn=l(Zt,"DIV",{class:!0});var Vn=y(Dn);tt=l(Vn,"TABLE",{class:!0});var en=y(tt);Mn=l(en,"THEAD",{"data-svelte-h":!0}),b(Mn)!=="svelte-tbw4fn"&&(Mn.innerHTML=Ga),Rr=_(en),M=l(en,"TBODY",{});var L=y(M);le=l(L,"TR",{class:!0});var _e=y(le);bt=l(_e,"TD",{class:!0,"data-svelte-h":!0}),b(bt)!=="svelte-m0os7n"&&(bt.innerHTML=Va),Ar=_(_e),yt=l(_e,"TD",{class:!0,"data-svelte-h":!0}),b(yt)!=="svelte-1swnj8j"&&(yt.textContent=Ua),Or=_(_e),U=l(_e,"TD",{class:!0});var ne=y(U);h(Ct.$$.fragment,ne),Pr=_(ne),Ir=l(ne,"BR",{}),jr=_(ne),h(wt.$$.fragment,ne),Sr=_(ne),Br=l(ne,"BR",{}),Qr=_(ne),h(Tt.$$.fragment,ne),ne.forEach(i),_e.forEach(i),Nr=_(L),ie=l(L,"TR",{class:!0});var ve=y(ie);Et=l(ve,"TD",{class:!0,"data-svelte-h":!0}),b(Et)!=="svelte-13vggdv"&&(Et.innerHTML=Wa),Fr=_(ve),qt=l(ve,"TD",{class:!0,"data-svelte-h":!0}),b(qt)!=="svelte-1q3hmed"&&(qt.textContent=Xa),Gr=_(ve),Ln=l(ve,"TD",{class:!0});var Un=y(Ln);h(kt.$$.fragment,Un),Un.forEach(i),ve.forEach(i),Vr=_(L),fe=l(L,"TR",{class:!0});var be=y(fe);Dt=l(be,"TD",{class:!0,"data-svelte-h":!0}),b(Dt)!=="svelte-bhjl8d"&&(Dt.innerHTML=Ya),Ur=_(be),Mt=l(be,"TD",{class:!0,"data-svelte-h":!0}),b(Mt)!=="svelte-1ga71j2"&&(Mt.textContent=Ja),Wr=_(be),Hn=l(be,"TD",{class:!0});var Wn=y(Hn);h(Lt.$$.fragment,Wn),Wn.forEach(i),be.forEach(i),Xr=_(L),$e=l(L,"TR",{class:!0});var ye=y($e);Ht=l(ye,"TD",{class:!0,"data-svelte-h":!0}),b(Ht)!=="svelte-1d9l9k5"&&(Ht.innerHTML=Ka),Yr=_(ye),zt=l(ye,"TD",{class:!0,"data-svelte-h":!0}),b(zt)!=="svelte-15vr8ks"&&(zt.textContent=Za),Jr=_(ye),zn=l(ye,"TD",{class:!0});var Xn=y(zn);h(Rt.$$.fragment,Xn),Xn.forEach(i),ye.forEach(i),Kr=_(L),ce=l(L,"TR",{class:!0});var Ce=y(ce);At=l(Ce,"TD",{class:!0,"data-svelte-h":!0}),b(At)!=="svelte-1n4ndjc"&&(At.innerHTML=eo),Zr=_(Ce),se=l(Ce,"TD",{class:!0});var re=y(se);ea=a(re,`Constrain files to those in the given language (or language alias)
|
|
152
|
+
as defined by
|
|
153
|
+
`),h(nt.$$.fragment,re),ta=a(re,`
|
|
154
|
+
and computed probabilistically from file name and contents at index time
|
|
155
|
+
by
|
|
156
|
+
`),h(st.$$.fragment,re),na=a(re,`. This
|
|
157
|
+
is
|
|
158
|
+
`),Rn=l(re,"EM",{"data-svelte-h":!0}),b(Rn)!=="svelte-r5iszh"&&(Rn.textContent=to),sa=a(re,` a regex or a substring, though it is case-insensitive; each
|
|
159
|
+
expression can only contain one language.`),re.forEach(i),ra=_(Ce),An=l(Ce,"TD",{class:!0});var Yn=y(An);h(Ot.$$.fragment,Yn),Yn.forEach(i),Ce.forEach(i),aa=_(L),ue=l(L,"TR",{class:!0});var we=y(ue);Pt=l(we,"TD",{class:!0,"data-svelte-h":!0}),b(Pt)!=="svelte-1lzxtk7"&&(Pt.innerHTML=no),oa=_(we),rt=l(we,"TD",{class:!0});var tn=y(rt);la=a(tn,`Regex match symbol definitions, as determined by
|
|
160
|
+
`),h(at.$$.fragment,tn),ia=a(tn,` at index time, if
|
|
161
|
+
it was present during indexing`),tn.forEach(i),fa=_(we),On=l(we,"TD",{class:!0});var Jn=y(On);h(It.$$.fragment,Jn),Jn.forEach(i),we.forEach(i),$a=_(L),de=l(L,"TR",{class:!0});var Bn=y(de);jt=l(Bn,"TD",{class:!0,"data-svelte-h":!0}),b(jt)!=="svelte-v1g9so"&&(jt.innerHTML=so),ca=_(Bn),St=l(Bn,"TD",{class:!0,"data-svelte-h":!0}),b(St)!=="svelte-zn2pi8"&&(St.innerHTML=ro),ua=_(Bn),Pn=l(Bn,"TD",{class:!0});var co=y(Pn);h(Bt.$$.fragment,co),co.forEach(i),Bn.forEach(i),da=_(L),pe=l(L,"TR",{class:!0});var Qn=y(pe);Qt=l(Qn,"TD",{class:!0,"data-svelte-h":!0}),b(Qt)!=="svelte-i02osy"&&(Qt.innerHTML=ao),pa=_(Qn),Nt=l(Qn,"TD",{class:!0,"data-svelte-h":!0}),b(Nt)!=="svelte-1uxhuw6"&&(Nt.innerHTML=oo),ha=_(Qn),In=l(Qn,"TD",{class:!0});var uo=y(In);h(Ft.$$.fragment,uo),uo.forEach(i),Qn.forEach(i),ma=_(L),he=l(L,"TR",{class:!0});var Nn=y(he);Gt=l(Nn,"TD",{class:!0,"data-svelte-h":!0}),b(Gt)!=="svelte-14zlty0"&&(Gt.innerHTML=lo),ga=_(Nn),Vt=l(Nn,"TD",{class:!0,"data-svelte-h":!0}),b(Vt)!=="svelte-1b78zyt"&&(Vt.innerHTML=io),xa=_(Nn),jn=l(Nn,"TD",{class:!0});var po=y(jn);h(Ut.$$.fragment,po),po.forEach(i),Nn.forEach(i),_a=_(L),me=l(L,"TR",{class:!0});var Fn=y(me);Wt=l(Fn,"TD",{class:!0,"data-svelte-h":!0}),b(Wt)!=="svelte-19ndwnz"&&(Wt.innerHTML=fo),va=_(Fn),Xt=l(Fn,"TD",{class:!0,"data-svelte-h":!0}),b(Xt)!=="svelte-16r5x06"&&(Xt.innerHTML=$o),ba=_(Fn),Sn=l(Fn,"TD",{class:!0});var ho=y(Sn);h(Yt.$$.fragment,ho),ho.forEach(i),Fn.forEach(i),L.forEach(i),en.forEach(i),Vn.forEach(i),Zt.forEach(i),this.h()},h(){document.title="Query syntax - neogrok",v(f,"class","text-2xl text-center"),v(oe,"class","space-y-2"),v(j,"class","space-y-2"),v(V,"class","space-y-2"),v(e,"class","space-y-2 max-w-prose mx-auto"),v(kn,"class","text-center"),v(bt,"class","p-1"),v(yt,"class","p-1"),v(U,"class","p-1"),v(le,"class","border"),v(Et,"class","p-1"),v(qt,"class","p-1"),v(Ln,"class","p-1"),v(ie,"class","border"),v(Dt,"class","p-1"),v(Mt,"class","p-1"),v(Hn,"class","p-1"),v(fe,"class","border"),v(Ht,"class","p-1"),v(zt,"class","p-1"),v(zn,"class","p-1"),v($e,"class","border"),v(At,"class","p-1"),v(se,"class","p-1"),v(An,"class","p-1"),v(ce,"class","border"),v(Pt,"class","p-1"),v(rt,"class","p-1"),v(On,"class","p-1"),v(ue,"class","border"),v(jt,"class","p-1"),v(St,"class","p-1"),v(Pn,"class","p-1"),v(de,"class","border"),v(Qt,"class","p-1"),v(Nt,"class","p-1"),v(In,"class","p-1"),v(pe,"class","border"),v(Gt,"class","p-1"),v(Vt,"class","p-1"),v(jn,"class","p-1"),v(he,"class","border"),v(Wt,"class","p-1"),v(Xt,"class","p-1"),v(Sn,"class","p-1"),v(me,"class","border"),v(tt,"class","border border-collapse text-sm text-center"),v(Dn,"class","overflow-x-auto"),v(ge,"class","max-w-4xl mx-auto pt-2 space-y-2")},m(s,c){C(s,n,c),C(s,e,c),t(e,f),t(e,ae),t(e,E),t(E,z),m(I,E,null),t(E,sn),t(e,ts),t(e,oe),m(Te,oe,null),t(oe,ns),t(oe,ot),t(ot,ss),m(Ee,ot,null),t(ot,rs),t(oe,as),t(oe,R),t(R,os),m(qe,R,null),t(R,ls),m(ke,R,null),t(R,is),t(R,rn),t(R,fs),t(R,an),t(R,$s),t(R,on),t(R,cs),t(R,ln),t(R,us),t(R,fn),t(R,ds),t(e,ps),t(e,j),m(De,j,null),t(j,hs),t(j,W),t(W,ms),m(lt,W,null),t(W,gs),m(Me,W,null),t(W,xs),t(W,$n),t(W,_s),t(W,cn),t(W,vs),t(j,bs),t(j,A),t(A,ys),m(it,A,null),t(A,Cs),m(Le,A,null),t(A,ws),t(A,un),t(A,Ts),m(He,A,null),t(A,Es),m(ze,A,null),t(A,qs),t(A,dn),t(A,ks),m(Re,A,null),t(A,Ds),t(j,Ms),t(j,S),t(S,Ls),m(Ae,S,null),t(S,Hs),m(ft,S,null),t(S,zs),m($t,S,null),t(S,Rs),m(ct,S,null),t(S,As),m(Oe,S,null),t(S,Os),m(Pe,S,null),t(S,Ps),t(j,Is),t(j,k),t(k,js),t(k,pn),t(k,Ss),t(k,hn),t(k,Bs),t(k,mn),t(k,Qs),m(ut,k,null),t(k,Ns),m(Ie,k,null),t(k,Fs),m(je,k,null),t(k,Gs),m(Se,k,null),t(k,Vs),m(Be,k,null),t(k,Us),t(k,gn),t(k,Ws),m(dt,k,null),t(k,Xs),t(j,Ys),t(j,X),t(X,Js),m(pt,X,null),t(X,Ks),m(Qe,X,null),t(X,Zs),m(Ne,X,null),t(X,er),m(Fe,X,null),t(X,tr),t(j,nr),t(j,w),t(w,sr),m(ht,w,null),t(w,rr),m(Ge,w,null),t(w,ar),m(Ve,w,null),t(w,or),m(mt,w,null),t(w,lr),m(Ue,w,null),t(w,ir),m(We,w,null),t(w,fr),m(Xe,w,null),t(w,$r),m(gt,w,null),t(w,cr),m(Ye,w,null),t(w,ur),t(w,xn),t(w,dr),m(Je,w,null),t(w,pr),m(Ke,w,null),t(w,hr),t(e,mr),t(e,V),m(Ze,V,null),t(V,gr),t(V,_n),t(V,xr),t(V,B),t(B,_r),t(B,vn),t(B,vr),m(xt,B,null),t(B,br),t(B,bn),t(B,yr),m(_t,B,null),t(B,Cr),t(B,yn),t(B,wr),t(B,Cn),t(B,Tr),t(V,Er),t(V,Y),t(Y,qr),t(Y,wn),t(Y,kr),t(Y,Tn),t(Y,Dr),t(Y,En),t(Y,Mr),m(vt,Y,null),t(Y,Lr),t(V,Hr),t(V,qn),C(s,Kn,c),C(s,ge,c),t(ge,kn),m(et,kn,null),t(ge,zr),t(ge,Dn),t(Dn,tt),t(tt,Mn),t(tt,Rr),t(tt,M),t(M,le),t(le,bt),t(le,Ar),t(le,yt),t(le,Or),t(le,U),m(Ct,U,null),t(U,Pr),t(U,Ir),t(U,jr),m(wt,U,null),t(U,Sr),t(U,Br),t(U,Qr),m(Tt,U,null),t(M,Nr),t(M,ie),t(ie,Et),t(ie,Fr),t(ie,qt),t(ie,Gr),t(ie,Ln),m(kt,Ln,null),t(M,Vr),t(M,fe),t(fe,Dt),t(fe,Ur),t(fe,Mt),t(fe,Wr),t(fe,Hn),m(Lt,Hn,null),t(M,Xr),t(M,$e),t($e,Ht),t($e,Yr),t($e,zt),t($e,Jr),t($e,zn),m(Rt,zn,null),t(M,Kr),t(M,ce),t(ce,At),t(ce,Zr),t(ce,se),t(se,ea),m(nt,se,null),t(se,ta),m(st,se,null),t(se,na),t(se,Rn),t(se,sa),t(ce,ra),t(ce,An),m(Ot,An,null),t(M,aa),t(M,ue),t(ue,Pt),t(ue,oa),t(ue,rt),t(rt,la),m(at,rt,null),t(rt,ia),t(ue,fa),t(ue,On),m(It,On,null),t(M,$a),t(M,de),t(de,jt),t(de,ca),t(de,St),t(de,ua),t(de,Pn),m(Bt,Pn,null),t(M,da),t(M,pe),t(pe,Qt),t(pe,pa),t(pe,Nt),t(pe,ha),t(pe,In),m(Ft,In,null),t(M,ma),t(M,he),t(he,Gt),t(he,ga),t(he,Vt),t(he,xa),t(he,jn),m(Ut,jn,null),t(M,_a),t(M,me),t(me,Wt),t(me,va),t(me,Xt),t(me,ba),t(me,Sn),m(Yt,Sn,null),Zn=!0},p(s,[c]){const J={};c&1&&(J.$$scope={dirty:c,ctx:s}),I.$set(J);const Jt={};c&1&&(Jt.$$scope={dirty:c,ctx:s}),Te.$set(Jt);const xe={};c&1&&(xe.$$scope={dirty:c,ctx:s}),Ee.$set(xe);const Kt={};c&1&&(Kt.$$scope={dirty:c,ctx:s}),qe.$set(Kt);const O={};c&1&&(O.$$scope={dirty:c,ctx:s}),ke.$set(O);const Q={};c&1&&(Q.$$scope={dirty:c,ctx:s}),De.$set(Q);const K={};c&1&&(K.$$scope={dirty:c,ctx:s}),Me.$set(K);const P={};c&1&&(P.$$scope={dirty:c,ctx:s}),Le.$set(P);const N={};c&1&&(N.$$scope={dirty:c,ctx:s}),He.$set(N);const D={};c&1&&(D.$$scope={dirty:c,ctx:s}),ze.$set(D);const Z={};c&1&&(Z.$$scope={dirty:c,ctx:s}),Re.$set(Z);const T={};c&1&&(T.$$scope={dirty:c,ctx:s}),Ae.$set(T);const ee={};c&1&&(ee.$$scope={dirty:c,ctx:s}),Oe.$set(ee);const F={};c&1&&(F.$$scope={dirty:c,ctx:s}),Pe.$set(F);const te={};c&1&&(te.$$scope={dirty:c,ctx:s}),Ie.$set(te);const Zt={};c&1&&(Zt.$$scope={dirty:c,ctx:s}),je.$set(Zt);const Gn={};c&1&&(Gn.$$scope={dirty:c,ctx:s}),Se.$set(Gn);const Vn={};c&1&&(Vn.$$scope={dirty:c,ctx:s}),Be.$set(Vn);const en={};c&1&&(en.$$scope={dirty:c,ctx:s}),Qe.$set(en);const L={};c&1&&(L.$$scope={dirty:c,ctx:s}),Ne.$set(L);const _e={};c&1&&(_e.$$scope={dirty:c,ctx:s}),Fe.$set(_e);const ne={};c&1&&(ne.$$scope={dirty:c,ctx:s}),Ge.$set(ne);const ve={};c&1&&(ve.$$scope={dirty:c,ctx:s}),Ve.$set(ve);const Un={};c&1&&(Un.$$scope={dirty:c,ctx:s}),Ue.$set(Un);const be={};c&1&&(be.$$scope={dirty:c,ctx:s}),We.$set(be);const Wn={};c&1&&(Wn.$$scope={dirty:c,ctx:s}),Xe.$set(Wn);const ye={};c&1&&(ye.$$scope={dirty:c,ctx:s}),Ye.$set(ye);const Xn={};c&1&&(Xn.$$scope={dirty:c,ctx:s}),Je.$set(Xn);const Ce={};c&1&&(Ce.$$scope={dirty:c,ctx:s}),Ke.$set(Ce);const re={};c&1&&(re.$$scope={dirty:c,ctx:s}),Ze.$set(re);const Yn={};c&1&&(Yn.$$scope={dirty:c,ctx:s}),et.$set(Yn);const we={};c&1&&(we.$$scope={dirty:c,ctx:s}),nt.$set(we);const tn={};c&1&&(tn.$$scope={dirty:c,ctx:s}),st.$set(tn);const Jn={};c&1&&(Jn.$$scope={dirty:c,ctx:s}),at.$set(Jn)},i(s){Zn||(u(I.$$.fragment,s),u(Te.$$.fragment,s),u(Ee.$$.fragment,s),u(qe.$$.fragment,s),u(ke.$$.fragment,s),u(De.$$.fragment,s),u(lt.$$.fragment,s),u(Me.$$.fragment,s),u(it.$$.fragment,s),u(Le.$$.fragment,s),u(He.$$.fragment,s),u(ze.$$.fragment,s),u(Re.$$.fragment,s),u(Ae.$$.fragment,s),u(ft.$$.fragment,s),u($t.$$.fragment,s),u(ct.$$.fragment,s),u(Oe.$$.fragment,s),u(Pe.$$.fragment,s),u(ut.$$.fragment,s),u(Ie.$$.fragment,s),u(je.$$.fragment,s),u(Se.$$.fragment,s),u(Be.$$.fragment,s),u(dt.$$.fragment,s),u(pt.$$.fragment,s),u(Qe.$$.fragment,s),u(Ne.$$.fragment,s),u(Fe.$$.fragment,s),u(ht.$$.fragment,s),u(Ge.$$.fragment,s),u(Ve.$$.fragment,s),u(mt.$$.fragment,s),u(Ue.$$.fragment,s),u(We.$$.fragment,s),u(Xe.$$.fragment,s),u(gt.$$.fragment,s),u(Ye.$$.fragment,s),u(Je.$$.fragment,s),u(Ke.$$.fragment,s),u(Ze.$$.fragment,s),u(xt.$$.fragment,s),u(_t.$$.fragment,s),u(vt.$$.fragment,s),u(et.$$.fragment,s),u(Ct.$$.fragment,s),u(wt.$$.fragment,s),u(Tt.$$.fragment,s),u(kt.$$.fragment,s),u(Lt.$$.fragment,s),u(Rt.$$.fragment,s),u(nt.$$.fragment,s),u(st.$$.fragment,s),u(Ot.$$.fragment,s),u(at.$$.fragment,s),u(It.$$.fragment,s),u(Bt.$$.fragment,s),u(Ft.$$.fragment,s),u(Ut.$$.fragment,s),u(Yt.$$.fragment,s),Zn=!0)},o(s){d(I.$$.fragment,s),d(Te.$$.fragment,s),d(Ee.$$.fragment,s),d(qe.$$.fragment,s),d(ke.$$.fragment,s),d(De.$$.fragment,s),d(lt.$$.fragment,s),d(Me.$$.fragment,s),d(it.$$.fragment,s),d(Le.$$.fragment,s),d(He.$$.fragment,s),d(ze.$$.fragment,s),d(Re.$$.fragment,s),d(Ae.$$.fragment,s),d(ft.$$.fragment,s),d($t.$$.fragment,s),d(ct.$$.fragment,s),d(Oe.$$.fragment,s),d(Pe.$$.fragment,s),d(ut.$$.fragment,s),d(Ie.$$.fragment,s),d(je.$$.fragment,s),d(Se.$$.fragment,s),d(Be.$$.fragment,s),d(dt.$$.fragment,s),d(pt.$$.fragment,s),d(Qe.$$.fragment,s),d(Ne.$$.fragment,s),d(Fe.$$.fragment,s),d(ht.$$.fragment,s),d(Ge.$$.fragment,s),d(Ve.$$.fragment,s),d(mt.$$.fragment,s),d(Ue.$$.fragment,s),d(We.$$.fragment,s),d(Xe.$$.fragment,s),d(gt.$$.fragment,s),d(Ye.$$.fragment,s),d(Je.$$.fragment,s),d(Ke.$$.fragment,s),d(Ze.$$.fragment,s),d(xt.$$.fragment,s),d(_t.$$.fragment,s),d(vt.$$.fragment,s),d(et.$$.fragment,s),d(Ct.$$.fragment,s),d(wt.$$.fragment,s),d(Tt.$$.fragment,s),d(kt.$$.fragment,s),d(Lt.$$.fragment,s),d(Rt.$$.fragment,s),d(nt.$$.fragment,s),d(st.$$.fragment,s),d(Ot.$$.fragment,s),d(at.$$.fragment,s),d(It.$$.fragment,s),d(Bt.$$.fragment,s),d(Ft.$$.fragment,s),d(Ut.$$.fragment,s),d(Yt.$$.fragment,s),Zn=!1},d(s){s&&(i(n),i(e),i(Kn),i(ge)),g(I),g(Te),g(Ee),g(qe),g(ke),g(De),g(lt),g(Me),g(it),g(Le),g(He),g(ze),g(Re),g(Ae),g(ft),g($t),g(ct),g(Oe),g(Pe),g(ut),g(Ie),g(je),g(Se),g(Be),g(dt),g(pt),g(Qe),g(Ne),g(Fe),g(ht),g(Ge),g(Ve),g(mt),g(Ue),g(We),g(Xe),g(gt),g(Ye),g(Je),g(Ke),g(Ze),g(xt),g(_t),g(vt),g(et),g(Ct),g(wt),g(Tt),g(kt),g(Lt),g(Rt),g(nt),g(st),g(Ot),g(at),g(It),g(Bt),g(Ft),g(Ut),g(Yt)}}}class cl extends go{constructor(n){super(),xo(this,n,null,ol,mo,{})}}export{cl as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{n as te,k as se,l as I,e as k,t as v,m as ne,d as i,o as R,c as b,a as z,p as ee,b as w,f as L,i as q,g as a,q as ae,u as oe,r as re,v as le,j as ce}from"../chunks/scheduler.80902d3b.js";import{S as ie,i as ue,c as W,a as F,m as J,t as H,b as N,d as K}from"../chunks/index.d0e6da70.js";import{L as Q}from"../chunks/link.70630bff.js";import{a as fe}from"../chunks/preferences.e389d16d.js";function pe(o){let s;return{c(){s=v("neogrok")},l(e){s=w(e,"neogrok")},m(e,n){q(e,s,n)},d(e){e&&i(s)}}}function he(o){let s;return{c(){s=v("zoekt")},l(e){s=w(e,"zoekt")},m(e,n){q(e,s,n)},d(e){e&&i(s)}}}function de(o){let s;return{c(){s=v("preferences page")},l(e){s=w(e,"preferences page")},m(e,n){q(e,s,n)},d(e){e&&i(s)}}}function me(o){let s,e,n,u,T="<s>OpenGrok</s> ɴᴇᴏɢʀᴏᴋ!",x,c,d,m,U,_,j,M,P,$,y,X="Want to get instantly redirected next time?",Y,f,E,A,g,B,O,D,Z;m=new Q({props:{to:"/about",$$slots:{default:[pe]},$$scope:{ctx:o}}}),_=new Q({props:{to:"https://github.com/sourcegraph/zoekt",$$slots:{default:[he]},$$scope:{ctx:o}}});const V=o[2].default,r=se(V,o,o[4],null);return g=new Q({props:{to:"/preferences",$$slots:{default:[de]},$$scope:{ctx:o}}}),{c(){s=I(),e=k("div"),n=k("section"),u=k("h1"),u.innerHTML=T,x=I(),c=k("p"),d=v(`The OpenGrok instance that previously existed at this domain has been
|
|
2
|
+
replaced with `),W(m.$$.fragment),U=v(", which is a frontend for "),W(_.$$.fragment),j=v(`, a fast code search engine with a sane query syntax. Together, neogrok
|
|
3
|
+
and zoekt ought to be much faster and easier to use.`),M=I(),r&&r.c(),P=I(),$=k("section"),y=k("h2"),y.textContent=X,Y=I(),f=k("label"),E=k("input"),A=v(` Redirect
|
|
4
|
+
me from old OpenGrok URLs automatically when possible. (You can undo this
|
|
5
|
+
on the `),W(g.$$.fragment),B=v(".)"),this.h()},l(t){ne("svelte-uesx9c",document.head).forEach(i),s=R(t),e=b(t,"DIV",{class:!0});var p=z(e);n=b(p,"SECTION",{class:!0});var G=z(n);u=b(G,"H1",{class:!0,"data-svelte-h":!0}),ee(u)!=="svelte-2fzl6j"&&(u.innerHTML=T),x=R(G),c=b(G,"P",{});var h=z(c);d=w(h,`The OpenGrok instance that previously existed at this domain has been
|
|
6
|
+
replaced with `),F(m.$$.fragment,h),U=w(h,", which is a frontend for "),F(_.$$.fragment,h),j=w(h,`, a fast code search engine with a sane query syntax. Together, neogrok
|
|
7
|
+
and zoekt ought to be much faster and easier to use.`),h.forEach(i),G.forEach(i),M=R(p),r&&r.l(p),P=R(p),$=b(p,"SECTION",{class:!0});var S=z($);y=b(S,"H2",{class:!0,"data-svelte-h":!0}),ee(y)!=="svelte-ohek81"&&(y.textContent=X),Y=R(S),f=b(S,"LABEL",{class:!0});var C=z(f);E=b(C,"INPUT",{type:!0}),A=w(C,` Redirect
|
|
8
|
+
me from old OpenGrok URLs automatically when possible. (You can undo this
|
|
9
|
+
on the `),F(g.$$.fragment,C),B=w(C,".)"),C.forEach(i),S.forEach(i),p.forEach(i),this.h()},h(){document.title="OpenGrok -> ɴᴇᴏɢʀᴏᴋ!",L(u,"class","text-center text-2xl"),L(n,"class","space-y-2 max-w-prose mx-auto"),L(y,"class","text-lg"),L(E,"type","checkbox"),L(f,"class","text-sm"),L($,"class","space-y-2 max-w-prose mx-auto"),L(e,"class","space-y-2")},m(t,l){q(t,s,l),q(t,e,l),a(e,n),a(n,u),a(n,x),a(n,c),a(c,d),J(m,c,null),a(c,U),J(_,c,null),a(c,j),a(e,M),r&&r.m(e,null),a(e,P),a(e,$),a($,y),a($,Y),a($,f),a(f,E),E.checked=o[0],a(f,A),J(g,f,null),a(f,B),O=!0,D||(Z=ae(E,"change",o[3]),D=!0)},p(t,[l]){const p={};l&16&&(p.$$scope={dirty:l,ctx:t}),m.$set(p);const G={};l&16&&(G.$$scope={dirty:l,ctx:t}),_.$set(G),r&&r.p&&(!O||l&16)&&oe(r,V,t,t[4],O?le(V,t[4],l,null):re(t[4]),null),l&1&&(E.checked=t[0]);const h={};l&16&&(h.$$scope={dirty:l,ctx:t}),g.$set(h)},i(t){O||(H(m.$$.fragment,t),H(_.$$.fragment,t),H(r,t),H(g.$$.fragment,t),O=!0)},o(t){N(m.$$.fragment,t),N(_.$$.fragment,t),N(r,t),N(g.$$.fragment,t),O=!1},d(t){t&&(i(s),i(e)),K(m),K(_),r&&r.d(t),K(g),D=!1,Z()}}}function _e(o,s,e){let n,{$$slots:u={},$$scope:T}=s;const x=fe();ce(o,x,d=>e(0,n=d));function c(){n=this.checked,x.set(n)}return o.$$set=d=>{"$$scope"in d&&e(4,T=d.$$scope)},[n,x,u,c,T]}class ve extends ie{constructor(s){super(),ue(this,s,_e,me,te,{})}}export{ve as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{n as Y,e as d,l as q,c as h,a as k,p as C,o as L,d as _,f as R,i as x,g as m,t as $,b as v,s as j}from"../chunks/scheduler.80902d3b.js";import{S as D,i as G,b,e as I,t as w,g as N,c as H,a as S,m as T,d as O}from"../chunks/index.d0e6da70.js";import{E as z}from"../chunks/example-query.ac8ef50a.js";import{L as A}from"../chunks/link.70630bff.js";import{e as P}from"../chunks/regexp.50bc0e87.js";function B(c){let e,a,t,l,s;return t=new z({props:{query:`file:^${P(c[0].file)}$`}}),{c(){e=d("p"),a=$(`Even more unfortunately, we've not been able to produce a URL to view the
|
|
2
|
+
file somewhere else. You can try searching for it and going from there:
|
|
3
|
+
`),H(t.$$.fragment),l=$(".")},l(n){e=h(n,"P",{});var o=k(e);a=v(o,`Even more unfortunately, we've not been able to produce a URL to view the
|
|
4
|
+
file somewhere else. You can try searching for it and going from there:
|
|
5
|
+
`),S(t.$$.fragment,o),l=v(o,"."),o.forEach(_)},m(n,o){x(n,e,o),m(e,a),T(t,e,null),m(e,l),s=!0},p(n,o){const r={};o&1&&(r.query=`file:^${P(n[0].file)}$`),t.$set(r)},i(n){s||(w(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&_(e),O(t)}}}function F(c){let e,a,t,l,s;return t=new A({props:{to:c[0].fileUrl,$$slots:{default:[J]},$$scope:{ctx:c}}}),{c(){e=d("p"),a=$(`That being said, we've been able to produce a URL to view the file on its
|
|
6
|
+
home site. Head on over: `),H(t.$$.fragment),l=$(".")},l(n){e=h(n,"P",{});var o=k(e);a=v(o,`That being said, we've been able to produce a URL to view the file on its
|
|
7
|
+
home site. Head on over: `),S(t.$$.fragment,o),l=v(o,"."),o.forEach(_)},m(n,o){x(n,e,o),m(e,a),T(t,e,null),m(e,l),s=!0},p(n,o){const r={};o&1&&(r.to=n[0].fileUrl),o&3&&(r.$$scope={dirty:o,ctx:n}),t.$set(r)},i(n){s||(w(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&_(e),O(t)}}}function J(c){let e=c[0].fileUrl+"",a;return{c(){a=$(e)},l(t){a=v(t,e)},m(t,l){x(t,a,l)},p(t,l){l&1&&e!==(e=t[0].fileUrl+"")&&j(a,e)},d(t){t&&_(a)}}}function K(c){let e,a,t="Diff viewer",l,s,n=`OpenGrok's diff viewer that was previously available at this URL is
|
|
8
|
+
unfortunately not supported in neogrok.`,o,r,f,g;const U=[F,B],p=[];function E(i,u){return i[0].fileUrl?0:1}return r=E(c),f=p[r]=U[r](c),{c(){e=d("section"),a=d("h2"),a.textContent=t,l=q(),s=d("p"),s.textContent=n,o=q(),f.c(),this.h()},l(i){e=h(i,"SECTION",{class:!0});var u=k(e);a=h(u,"H2",{class:!0,"data-svelte-h":!0}),C(a)!=="svelte-oq0ebb"&&(a.textContent=t),l=L(u),s=h(u,"P",{"data-svelte-h":!0}),C(s)!=="svelte-179o7jq"&&(s.textContent=n),o=L(u),f.l(u),u.forEach(_),this.h()},h(){R(a,"class","text-2xl text-center"),R(e,"class","space-y-2 pt-2 max-w-prose mx-auto")},m(i,u){x(i,e,u),m(e,a),m(e,l),m(e,s),m(e,o),p[r].m(e,null),g=!0},p(i,[u]){let y=r;r=E(i),r===y?p[r].p(i,u):(N(),b(p[y],1,1,()=>{p[y]=null}),I(),f=p[r],f?f.p(i,u):(f=p[r]=U[r](i),f.c()),w(f,1),f.m(e,null))},i(i){g||(w(f),g=!0)},o(i){b(f),g=!1},d(i){i&&_(e),p[r].d()}}}function M(c,e,a){let{data:t}=e;return c.$$set=l=>{"data"in l&&a(0,t=l.data)},[t]}class ee extends D{constructor(e){super(),G(this,e,M,K,Y,{data:0})}}export{ee as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{n as Y,e as _,l as C,c as h,a as k,p as L,o as q,d,f as R,i as x,g as m,t as $,b as g,s as F}from"../chunks/scheduler.80902d3b.js";import{S as G,i as I,b,e as N,t as w,g as j,c as H,a as S,m as T,d as O}from"../chunks/index.d0e6da70.js";import{E as z}from"../chunks/example-query.ac8ef50a.js";import{L as A}from"../chunks/link.70630bff.js";import{e as P}from"../chunks/regexp.50bc0e87.js";function B(c){let e,a,t,l,s;return t=new z({props:{query:`file:^${P(c[0].file)}$`}}),{c(){e=_("p"),a=$(`Even more unfortunately, we've not been able to produce a URL to view the
|
|
2
|
+
file somewhere else. You can try searching for it and going from there:
|
|
3
|
+
`),H(t.$$.fragment),l=$(".")},l(n){e=h(n,"P",{});var o=k(e);a=g(o,`Even more unfortunately, we've not been able to produce a URL to view the
|
|
4
|
+
file somewhere else. You can try searching for it and going from there:
|
|
5
|
+
`),S(t.$$.fragment,o),l=g(o,"."),o.forEach(d)},m(n,o){x(n,e,o),m(e,a),T(t,e,null),m(e,l),s=!0},p(n,o){const r={};o&1&&(r.query=`file:^${P(n[0].file)}$`),t.$set(r)},i(n){s||(w(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&d(e),O(t)}}}function D(c){let e,a,t,l,s;return t=new A({props:{to:c[0].fileUrl,$$slots:{default:[J]},$$scope:{ctx:c}}}),{c(){e=_("p"),a=$(`That being said, we've been able to produce a URL to view the file on its
|
|
6
|
+
home site. Head on over: `),H(t.$$.fragment),l=$(".")},l(n){e=h(n,"P",{});var o=k(e);a=g(o,`That being said, we've been able to produce a URL to view the file on its
|
|
7
|
+
home site. Head on over: `),S(t.$$.fragment,o),l=g(o,"."),o.forEach(d)},m(n,o){x(n,e,o),m(e,a),T(t,e,null),m(e,l),s=!0},p(n,o){const r={};o&1&&(r.to=n[0].fileUrl),o&3&&(r.$$scope={dirty:o,ctx:n}),t.$set(r)},i(n){s||(w(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&d(e),O(t)}}}function J(c){let e=c[0].fileUrl+"",a;return{c(){a=$(e)},l(t){a=g(t,e)},m(t,l){x(t,a,l)},p(t,l){l&1&&e!==(e=t[0].fileUrl+"")&&F(a,e)},d(t){t&&d(a)}}}function K(c){let e,a,t="File download",l,s,n=`OpenGrok's file download endpoint view that was previously available at this
|
|
8
|
+
URL is unfortunately not supported in neogrok.`,o,r,f,v;const U=[D,B],p=[];function E(i,u){return i[0].fileUrl?0:1}return r=E(c),f=p[r]=U[r](c),{c(){e=_("section"),a=_("h2"),a.textContent=t,l=C(),s=_("p"),s.textContent=n,o=C(),f.c(),this.h()},l(i){e=h(i,"SECTION",{class:!0});var u=k(e);a=h(u,"H2",{class:!0,"data-svelte-h":!0}),L(a)!=="svelte-14d0i4u"&&(a.textContent=t),l=q(u),s=h(u,"P",{"data-svelte-h":!0}),L(s)!=="svelte-1r6tih1"&&(s.textContent=n),o=q(u),f.l(u),u.forEach(d),this.h()},h(){R(a,"class","text-2xl text-center"),R(e,"class","space-y-2 pt-2 max-w-prose mx-auto")},m(i,u){x(i,e,u),m(e,a),m(e,l),m(e,s),m(e,o),p[r].m(e,null),v=!0},p(i,[u]){let y=r;r=E(i),r===y?p[r].p(i,u):(j(),b(p[y],1,1,()=>{p[y]=null}),N(),f=p[r],f?f.p(i,u):(f=p[r]=U[r](i),f.c()),w(f,1),f.m(e,null))},i(i){v||(w(f),v=!0)},o(i){b(f),v=!1},d(i){i&&d(e),p[r].d()}}}function M(c,e,a){let{data:t}=e;return c.$$set=l=>{"data"in l&&a(0,t=l.data)},[t]}class ee extends G{constructor(e){super(),I(this,e,M,K,Y,{data:0})}}export{ee as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{n as Y,e as g,l as q,c as $,a as k,p as H,o as P,d as m,f as T,i as v,g as p,t as h,b as _,s as G}from"../chunks/scheduler.80902d3b.js";import{S as I,i as N,b as y,e as j,t as b,g as z,c as E,a as U,m as C,d as L}from"../chunks/index.d0e6da70.js";import{E as A}from"../chunks/example-query.ac8ef50a.js";import{L as V}from"../chunks/link.70630bff.js";import{e as O}from"../chunks/regexp.50bc0e87.js";function B(i){let e,n,t,a,s;return t=new V({props:{to:"/",$$slots:{default:[J]},$$scope:{ctx:i}}}),{c(){e=g("p"),n=h(`Even more unfortunately, we've not been able to produce a URL to view the
|
|
2
|
+
file/directory somewhere else. Sorry! Head on over to `),E(t.$$.fragment),a=h(" to get started with neogrok.")},l(o){e=$(o,"P",{});var r=k(e);n=_(r,`Even more unfortunately, we've not been able to produce a URL to view the
|
|
3
|
+
file/directory somewhere else. Sorry! Head on over to `),U(t.$$.fragment,r),a=_(r," to get started with neogrok."),r.forEach(m)},m(o,r){v(o,e,r),p(e,n),C(t,e,null),p(e,a),s=!0},p(o,r){const l={};r&2&&(l.$$scope={dirty:r,ctx:o}),t.$set(l)},i(o){s||(b(t.$$.fragment,o),s=!0)},o(o){y(t.$$.fragment,o),s=!1},d(o){o&&m(e),L(t)}}}function D(i){let e,n,t,a,s;return t=new A({props:{query:`file:^${O(i[0].file)}$`}}),{c(){e=g("p"),n=h(`Even more unfortunately, we've not been able to produce a URL to view the
|
|
4
|
+
file/directory somewhere else. You can try searching for it and going from
|
|
5
|
+
there:
|
|
6
|
+
`),E(t.$$.fragment),a=h(".")},l(o){e=$(o,"P",{});var r=k(e);n=_(r,`Even more unfortunately, we've not been able to produce a URL to view the
|
|
7
|
+
file/directory somewhere else. You can try searching for it and going from
|
|
8
|
+
there:
|
|
9
|
+
`),U(t.$$.fragment,r),a=_(r,"."),r.forEach(m)},m(o,r){v(o,e,r),p(e,n),C(t,e,null),p(e,a),s=!0},p(o,r){const l={};r&1&&(l.query=`file:^${O(o[0].file)}$`),t.$set(l)},i(o){s||(b(t.$$.fragment,o),s=!0)},o(o){y(t.$$.fragment,o),s=!1},d(o){o&&m(e),L(t)}}}function F(i){let e,n,t,a,s;return t=new V({props:{to:i[0].destinationUrl,$$slots:{default:[K]},$$scope:{ctx:i}}}),{c(){e=g("p"),n=h(`That being said, we've been able to produce a URL to view the
|
|
10
|
+
file/directory on its home site, where you can hopefully get a history
|
|
11
|
+
log. Head on over: `),E(t.$$.fragment),a=h(".")},l(o){e=$(o,"P",{});var r=k(e);n=_(r,`That being said, we've been able to produce a URL to view the
|
|
12
|
+
file/directory on its home site, where you can hopefully get a history
|
|
13
|
+
log. Head on over: `),U(t.$$.fragment,r),a=_(r,"."),r.forEach(m)},m(o,r){v(o,e,r),p(e,n),C(t,e,null),p(e,a),s=!0},p(o,r){const l={};r&1&&(l.to=o[0].destinationUrl),r&3&&(l.$$scope={dirty:r,ctx:o}),t.$set(l)},i(o){s||(b(t.$$.fragment,o),s=!0)},o(o){y(t.$$.fragment,o),s=!1},d(o){o&&m(e),L(t)}}}function J(i){let e;return{c(){e=h("the neogrok search page")},l(n){e=_(n,"the neogrok search page")},m(n,t){v(n,e,t)},d(n){n&&m(e)}}}function K(i){let e=i[0].destinationUrl+"",n;return{c(){n=h(e)},l(t){n=_(t,e)},m(t,a){v(t,n,a)},p(t,a){a&1&&e!==(e=t[0].destinationUrl+"")&&G(n,e)},d(t){t&&m(n)}}}function M(i){let e,n,t="VCS history log",a,s,o=`OpenGrok's VCS history log that was previously available at this URL is
|
|
14
|
+
unfortunately not supported in neogrok.`,r,l,u,w;const R=[F,D,B],d=[];function S(c,f){return c[0].destinationUrl?0:c[0].file?1:2}return l=S(i),u=d[l]=R[l](i),{c(){e=g("section"),n=g("h2"),n.textContent=t,a=q(),s=g("p"),s.textContent=o,r=q(),u.c(),this.h()},l(c){e=$(c,"SECTION",{class:!0});var f=k(e);n=$(f,"H2",{class:!0,"data-svelte-h":!0}),H(n)!=="svelte-3b2h7u"&&(n.textContent=t),a=P(f),s=$(f,"P",{"data-svelte-h":!0}),H(s)!=="svelte-1tl8m9f"&&(s.textContent=o),r=P(f),u.l(f),f.forEach(m),this.h()},h(){T(n,"class","text-2xl text-center"),T(e,"class","space-y-2 pt-2 max-w-prose mx-auto")},m(c,f){v(c,e,f),p(e,n),p(e,a),p(e,s),p(e,r),d[l].m(e,null),w=!0},p(c,[f]){let x=l;l=S(c),l===x?d[l].p(c,f):(z(),y(d[x],1,1,()=>{d[x]=null}),j(),u=d[l],u?u.p(c,f):(u=d[l]=R[l](c),u.c()),b(u,1),u.m(e,null))},i(c){w||(b(u),w=!0)},o(c){y(u),w=!1},d(c){c&&m(e),d[l].d()}}}function Q(i,e,n){let{data:t}=e;return i.$$set=a=>{"data"in a&&n(0,t=a.data)},[t]}class oe extends I{constructor(e){super(),N(this,e,Q,M,Y,{data:0})}}export{oe as component};
|
|
Binary file
|
|
Binary file
|