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.
Files changed (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +88 -0
  3. package/build/client/_app/immutable/assets/0.5df5b886.css +1 -0
  4. package/build/client/_app/immutable/assets/0.5df5b886.css.br +0 -0
  5. package/build/client/_app/immutable/assets/0.5df5b886.css.gz +0 -0
  6. package/build/client/_app/immutable/assets/_layout.bb9a93e0.css +1 -0
  7. package/build/client/_app/immutable/assets/_layout.bb9a93e0.css.br +0 -0
  8. package/build/client/_app/immutable/assets/_layout.bb9a93e0.css.gz +0 -0
  9. package/build/client/_app/immutable/chunks/5.4ed993c7.js +1 -0
  10. package/build/client/_app/immutable/chunks/5.4ed993c7.js.br +0 -0
  11. package/build/client/_app/immutable/chunks/5.4ed993c7.js.gz +0 -0
  12. package/build/client/_app/immutable/chunks/each.ece37974.js +1 -0
  13. package/build/client/_app/immutable/chunks/each.ece37974.js.br +0 -0
  14. package/build/client/_app/immutable/chunks/each.ece37974.js.gz +0 -0
  15. package/build/client/_app/immutable/chunks/example-query.ac8ef50a.js +1 -0
  16. package/build/client/_app/immutable/chunks/example-query.ac8ef50a.js.br +0 -0
  17. package/build/client/_app/immutable/chunks/example-query.ac8ef50a.js.gz +0 -0
  18. package/build/client/_app/immutable/chunks/index.81a0017d.js +1 -0
  19. package/build/client/_app/immutable/chunks/index.81a0017d.js.br +0 -0
  20. package/build/client/_app/immutable/chunks/index.81a0017d.js.gz +0 -0
  21. package/build/client/_app/immutable/chunks/index.d0e6da70.js +1 -0
  22. package/build/client/_app/immutable/chunks/index.d0e6da70.js.br +0 -0
  23. package/build/client/_app/immutable/chunks/index.d0e6da70.js.gz +0 -0
  24. package/build/client/_app/immutable/chunks/input-colors.e7674f0c.js +1 -0
  25. package/build/client/_app/immutable/chunks/input-colors.e7674f0c.js.br +0 -0
  26. package/build/client/_app/immutable/chunks/input-colors.e7674f0c.js.gz +0 -0
  27. package/build/client/_app/immutable/chunks/integer-input.e86d05ad.js +1 -0
  28. package/build/client/_app/immutable/chunks/integer-input.e86d05ad.js.br +0 -0
  29. package/build/client/_app/immutable/chunks/integer-input.e86d05ad.js.gz +0 -0
  30. package/build/client/_app/immutable/chunks/link.70630bff.js +1 -0
  31. package/build/client/_app/immutable/chunks/link.70630bff.js.br +0 -0
  32. package/build/client/_app/immutable/chunks/link.70630bff.js.gz +0 -0
  33. package/build/client/_app/immutable/chunks/preferences.e389d16d.js +1 -0
  34. package/build/client/_app/immutable/chunks/preferences.e389d16d.js.br +0 -0
  35. package/build/client/_app/immutable/chunks/preferences.e389d16d.js.gz +0 -0
  36. package/build/client/_app/immutable/chunks/regexp.50bc0e87.js +1 -0
  37. package/build/client/_app/immutable/chunks/regexp.50bc0e87.js.br +2 -0
  38. package/build/client/_app/immutable/chunks/regexp.50bc0e87.js.gz +0 -0
  39. package/build/client/_app/immutable/chunks/scheduler.80902d3b.js +1 -0
  40. package/build/client/_app/immutable/chunks/scheduler.80902d3b.js.br +0 -0
  41. package/build/client/_app/immutable/chunks/scheduler.80902d3b.js.gz +0 -0
  42. package/build/client/_app/immutable/chunks/singletons.a17b5cab.js +1 -0
  43. package/build/client/_app/immutable/chunks/singletons.a17b5cab.js.br +0 -0
  44. package/build/client/_app/immutable/chunks/singletons.a17b5cab.js.gz +0 -0
  45. package/build/client/_app/immutable/chunks/stores.a4da01c2.js +1 -0
  46. package/build/client/_app/immutable/chunks/stores.a4da01c2.js.br +0 -0
  47. package/build/client/_app/immutable/chunks/stores.a4da01c2.js.gz +0 -0
  48. package/build/client/_app/immutable/chunks/toggle-search-type.f1a3061d.js +1 -0
  49. package/build/client/_app/immutable/chunks/toggle-search-type.f1a3061d.js.br +0 -0
  50. package/build/client/_app/immutable/chunks/toggle-search-type.f1a3061d.js.gz +0 -0
  51. package/build/client/_app/immutable/entry/app.4673b9f2.js +1 -0
  52. package/build/client/_app/immutable/entry/app.4673b9f2.js.br +0 -0
  53. package/build/client/_app/immutable/entry/app.4673b9f2.js.gz +0 -0
  54. package/build/client/_app/immutable/entry/start.6bed40d3.js +3 -0
  55. package/build/client/_app/immutable/entry/start.6bed40d3.js.br +0 -0
  56. package/build/client/_app/immutable/entry/start.6bed40d3.js.gz +0 -0
  57. package/build/client/_app/immutable/nodes/0.529467ca.js +1 -0
  58. package/build/client/_app/immutable/nodes/0.529467ca.js.br +0 -0
  59. package/build/client/_app/immutable/nodes/0.529467ca.js.gz +0 -0
  60. package/build/client/_app/immutable/nodes/1.abd8d795.js +1 -0
  61. package/build/client/_app/immutable/nodes/1.abd8d795.js.br +5 -0
  62. package/build/client/_app/immutable/nodes/1.abd8d795.js.gz +0 -0
  63. package/build/client/_app/immutable/nodes/10.28836ccc.js +9 -0
  64. package/build/client/_app/immutable/nodes/10.28836ccc.js.br +0 -0
  65. package/build/client/_app/immutable/nodes/10.28836ccc.js.gz +0 -0
  66. package/build/client/_app/immutable/nodes/11.93ac6006.js +25 -0
  67. package/build/client/_app/immutable/nodes/11.93ac6006.js.br +0 -0
  68. package/build/client/_app/immutable/nodes/11.93ac6006.js.gz +0 -0
  69. package/build/client/_app/immutable/nodes/12.67089c6b.js +11 -0
  70. package/build/client/_app/immutable/nodes/12.67089c6b.js.br +0 -0
  71. package/build/client/_app/immutable/nodes/12.67089c6b.js.gz +0 -0
  72. package/build/client/_app/immutable/nodes/13.418c6178.js +5 -0
  73. package/build/client/_app/immutable/nodes/13.418c6178.js.br +0 -0
  74. package/build/client/_app/immutable/nodes/13.418c6178.js.gz +0 -0
  75. package/build/client/_app/immutable/nodes/14.40bc0592.js +161 -0
  76. package/build/client/_app/immutable/nodes/14.40bc0592.js.br +0 -0
  77. package/build/client/_app/immutable/nodes/14.40bc0592.js.gz +0 -0
  78. package/build/client/_app/immutable/nodes/2.08d89d34.js +9 -0
  79. package/build/client/_app/immutable/nodes/2.08d89d34.js.br +0 -0
  80. package/build/client/_app/immutable/nodes/2.08d89d34.js.gz +0 -0
  81. package/build/client/_app/immutable/nodes/3.a382d3d5.js +8 -0
  82. package/build/client/_app/immutable/nodes/3.a382d3d5.js.br +0 -0
  83. package/build/client/_app/immutable/nodes/3.a382d3d5.js.gz +0 -0
  84. package/build/client/_app/immutable/nodes/4.37e53904.js +8 -0
  85. package/build/client/_app/immutable/nodes/4.37e53904.js.br +0 -0
  86. package/build/client/_app/immutable/nodes/4.37e53904.js.gz +0 -0
  87. package/build/client/_app/immutable/nodes/6.6cd1e711.js +14 -0
  88. package/build/client/_app/immutable/nodes/6.6cd1e711.js.br +0 -0
  89. package/build/client/_app/immutable/nodes/6.6cd1e711.js.gz +0 -0
  90. package/build/client/_app/immutable/nodes/7.b6576b19.js +8 -0
  91. package/build/client/_app/immutable/nodes/7.b6576b19.js.br +0 -0
  92. package/build/client/_app/immutable/nodes/7.b6576b19.js.gz +0 -0
  93. package/build/client/_app/immutable/nodes/8.b18d1c14.js +7 -0
  94. package/build/client/_app/immutable/nodes/8.b18d1c14.js.br +0 -0
  95. package/build/client/_app/immutable/nodes/8.b18d1c14.js.gz +0 -0
  96. package/build/client/_app/immutable/nodes/9.b3dcb728.js +12 -0
  97. package/build/client/_app/immutable/nodes/9.b3dcb728.js.br +0 -0
  98. package/build/client/_app/immutable/nodes/9.b3dcb728.js.gz +0 -0
  99. package/build/client/_app/version.json +1 -0
  100. package/build/client/_app/version.json.br +0 -0
  101. package/build/client/_app/version.json.gz +0 -0
  102. package/build/client/android-chrome-192x192.png +0 -0
  103. package/build/client/android-chrome-512x512.png +0 -0
  104. package/build/client/apple-touch-icon.png +0 -0
  105. package/build/client/favicon-16x16.png +0 -0
  106. package/build/client/favicon-32x32.png +0 -0
  107. package/build/client/favicon.ico +0 -0
  108. package/build/client/site.webmanifest +19 -0
  109. package/build/env.js +37 -0
  110. package/build/handler.js +1307 -0
  111. package/build/index.js +225 -0
  112. package/build/server/chunks/0-040b7d6d.js +27 -0
  113. package/build/server/chunks/0-040b7d6d.js.map +1 -0
  114. package/build/server/chunks/1-5c251174.js +9 -0
  115. package/build/server/chunks/1-5c251174.js.map +1 -0
  116. package/build/server/chunks/10-f6f67083.js +133 -0
  117. package/build/server/chunks/10-f6f67083.js.map +1 -0
  118. package/build/server/chunks/11-1055c6c2.js +9 -0
  119. package/build/server/chunks/11-1055c6c2.js.map +1 -0
  120. package/build/server/chunks/12-fb53c717.js +9 -0
  121. package/build/server/chunks/12-fb53c717.js.map +1 -0
  122. package/build/server/chunks/13-7237c6c6.js +85 -0
  123. package/build/server/chunks/13-7237c6c6.js.map +1 -0
  124. package/build/server/chunks/14-6241604d.js +9 -0
  125. package/build/server/chunks/14-6241604d.js.map +1 -0
  126. package/build/server/chunks/2-bd870b05.js +9 -0
  127. package/build/server/chunks/2-bd870b05.js.map +1 -0
  128. package/build/server/chunks/3-255408ab.js +57 -0
  129. package/build/server/chunks/3-255408ab.js.map +1 -0
  130. package/build/server/chunks/4-99742ef4.js +57 -0
  131. package/build/server/chunks/4-99742ef4.js.map +1 -0
  132. package/build/server/chunks/5-369c06ab.js +19 -0
  133. package/build/server/chunks/5-369c06ab.js.map +1 -0
  134. package/build/server/chunks/6-fc810a9f.js +57 -0
  135. package/build/server/chunks/6-fc810a9f.js.map +1 -0
  136. package/build/server/chunks/7-992dd8b0.js +57 -0
  137. package/build/server/chunks/7-992dd8b0.js.map +1 -0
  138. package/build/server/chunks/8-a92e2ef7.js +454 -0
  139. package/build/server/chunks/8-a92e2ef7.js.map +1 -0
  140. package/build/server/chunks/9-55cb67b6.js +59 -0
  141. package/build/server/chunks/9-55cb67b6.js.map +1 -0
  142. package/build/server/chunks/_error.svelte-dd890063.js +13 -0
  143. package/build/server/chunks/_error.svelte-dd890063.js.map +1 -0
  144. package/build/server/chunks/_layout.svelte-9a1c428f.js +37 -0
  145. package/build/server/chunks/_layout.svelte-9a1c428f.js.map +1 -0
  146. package/build/server/chunks/_layout.svelte-bed2b2d4.js +39 -0
  147. package/build/server/chunks/_layout.svelte-bed2b2d4.js.map +1 -0
  148. package/build/server/chunks/_page.svelte-2f290f09.js +30 -0
  149. package/build/server/chunks/_page.svelte-2f290f09.js.map +1 -0
  150. package/build/server/chunks/_page.svelte-33789d2d.js +36 -0
  151. package/build/server/chunks/_page.svelte-33789d2d.js.map +1 -0
  152. package/build/server/chunks/_page.svelte-5bb56058.js +41 -0
  153. package/build/server/chunks/_page.svelte-5bb56058.js.map +1 -0
  154. package/build/server/chunks/_page.svelte-701b9558.js +284 -0
  155. package/build/server/chunks/_page.svelte-701b9558.js.map +1 -0
  156. package/build/server/chunks/_page.svelte-7848979a.js +396 -0
  157. package/build/server/chunks/_page.svelte-7848979a.js.map +1 -0
  158. package/build/server/chunks/_page.svelte-7a8514c3.js +37 -0
  159. package/build/server/chunks/_page.svelte-7a8514c3.js.map +1 -0
  160. package/build/server/chunks/_page.svelte-9ea0ef4c.js +120 -0
  161. package/build/server/chunks/_page.svelte-9ea0ef4c.js.map +1 -0
  162. package/build/server/chunks/_page.svelte-a1e80515.js +30 -0
  163. package/build/server/chunks/_page.svelte-a1e80515.js.map +1 -0
  164. package/build/server/chunks/_page.svelte-cf45c2db.js +124 -0
  165. package/build/server/chunks/_page.svelte-cf45c2db.js.map +1 -0
  166. package/build/server/chunks/_page.svelte-dcbbe643.js +56 -0
  167. package/build/server/chunks/_page.svelte-dcbbe643.js.map +1 -0
  168. package/build/server/chunks/_page.svelte-f4064b9c.js +30 -0
  169. package/build/server/chunks/_page.svelte-f4064b9c.js.map +1 -0
  170. package/build/server/chunks/_server.ts-93a1fbab.js +354 -0
  171. package/build/server/chunks/_server.ts-93a1fbab.js.map +1 -0
  172. package/build/server/chunks/_server.ts-dec04c7b.js +12 -0
  173. package/build/server/chunks/_server.ts-dec04c7b.js.map +1 -0
  174. package/build/server/chunks/configuration-d033c4d1.js +48 -0
  175. package/build/server/chunks/configuration-d033c4d1.js.map +1 -0
  176. package/build/server/chunks/example-query-99034259.js +39 -0
  177. package/build/server/chunks/example-query-99034259.js.map +1 -0
  178. package/build/server/chunks/hooks.server-cb019385.js +32 -0
  179. package/build/server/chunks/hooks.server-cb019385.js.map +1 -0
  180. package/build/server/chunks/index-64aa7a5e.js +84 -0
  181. package/build/server/chunks/index-64aa7a5e.js.map +1 -0
  182. package/build/server/chunks/index2-7c17b4da.js +100 -0
  183. package/build/server/chunks/index2-7c17b4da.js.map +1 -0
  184. package/build/server/chunks/input-colors-c9063ebd.js +15 -0
  185. package/build/server/chunks/input-colors-c9063ebd.js.map +1 -0
  186. package/build/server/chunks/integer-input-9f57bf61.js +40 -0
  187. package/build/server/chunks/integer-input-9f57bf61.js.map +1 -0
  188. package/build/server/chunks/lifecycle-cbdd95e4.js +84 -0
  189. package/build/server/chunks/lifecycle-cbdd95e4.js.map +1 -0
  190. package/build/server/chunks/link-fded4b17.js +11 -0
  191. package/build/server/chunks/link-fded4b17.js.map +1 -0
  192. package/build/server/chunks/metrics-a6a74309.js +43 -0
  193. package/build/server/chunks/metrics-a6a74309.js.map +1 -0
  194. package/build/server/chunks/navigation-a410b94d.js +22 -0
  195. package/build/server/chunks/navigation-a410b94d.js.map +1 -0
  196. package/build/server/chunks/preferences-304b2e02.js +84 -0
  197. package/build/server/chunks/preferences-304b2e02.js.map +1 -0
  198. package/build/server/chunks/regexp-5017d573.js +4 -0
  199. package/build/server/chunks/regexp-5017d573.js.map +1 -0
  200. package/build/server/chunks/ssr-0f259a0f.js +195 -0
  201. package/build/server/chunks/ssr-0f259a0f.js.map +1 -0
  202. package/build/server/chunks/stores-2f0685cf.js +32 -0
  203. package/build/server/chunks/stores-2f0685cf.js.map +1 -0
  204. package/build/server/chunks/toggle-search-type-6ced5306.js +106 -0
  205. package/build/server/chunks/toggle-search-type-6ced5306.js.map +1 -0
  206. package/build/server/chunks/zoekt-client-dec73ec9.js +26 -0
  207. package/build/server/chunks/zoekt-client-dec73ec9.js.map +1 -0
  208. package/build/server/chunks/zoekt-list-repositories-773bcddb.js +100 -0
  209. package/build/server/chunks/zoekt-list-repositories-773bcddb.js.map +1 -0
  210. package/build/server/index.js +4070 -0
  211. package/build/server/index.js.map +1 -0
  212. package/build/server/manifest.js +142 -0
  213. package/build/server/manifest.js.map +1 -0
  214. package/build/shims.js +0 -0
  215. package/main.js +91 -0
  216. package/package.json +64 -0
@@ -0,0 +1,8 @@
1
+ import{n as Y,e as d,l as C,c as h,a as k,p as L,o as R,d as _,f as q,i as x,g as m,t as $,b as v,s as z}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 A}from"../chunks/example-query.ac8ef50a.js";import{L as B}from"../chunks/link.70630bff.js";import{e as P}from"../chunks/regexp.50bc0e87.js";function D(c){let e,a,t,l,s;return t=new A({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 B({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+"")&&z(a,e)},d(t){t&&_(a)}}}function K(c){let e,a,t="Raw file view",l,s,n=`OpenGrok's raw file view that was previously available at this URL is
8
+ unfortunately not supported in neogrok.`,o,r,f,g;const U=[F,D],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=C(),s=d("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-1pa1fh9"&&(a.textContent=t),l=R(u),s=h(u,"P",{"data-svelte-h":!0}),L(s)!=="svelte-x54z08"&&(s.textContent=n),o=R(u),f.l(u),u.forEach(_),this.h()},h(){q(a,"class","text-2xl text-center"),q(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):(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){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 G{constructor(e){super(),I(this,e,M,K,Y,{data:0})}}export{ee as component};
@@ -0,0 +1,7 @@
1
+ import{n as xe,e as g,l as z,t as G,c as k,a as y,p as K,o as Q,b as O,d as f,f as v,I as N,i as P,g as u,s as ae,H as Ne,q as Ce,A as Ie,h as F,J as se}from"../chunks/scheduler.80902d3b.js";import{S as ze,i as Qe,c as X,a as Y,m as Z,g as qe,b as H,e as Ee,t as I,d as ee}from"../chunks/index.d0e6da70.js";import{e as le}from"../chunks/each.ece37974.js";import{a as Ue,E as Re}from"../chunks/example-query.ac8ef50a.js";import{L as He}from"../chunks/link.70630bff.js";const je=o=>{const e="location"in o?o.location:void 0;return{message:De(o),location:e}},De=o=>{switch(o.code){case"LuceneParseError":return`Error parsing the OpenGrok Lucene query: ${o.message}`;case"HistoryNotSupported":return"OpenGrok VCS history search (`hist`) is not supported in neogrok";case"PaginationNotSupported":return"Pagination (`start`) is not supported in neogrok; this parameter has been ignored";case"ReferencesNotSupported":return"OpenGrok references search (`refs`) is not supported in neogrok; doing a normal search instead";case"PathCannotContainSlashes":return"OpenGrok path searches (`path`) including slashes can't be automatically converted by neogrok; you can manually convert the query using zoekt `file:` search instead";case"UnsupportedField":return`Given OpenGrok Lucene field is not recognized: ${o.field}`;case"BoostNotSupported":return"Lucene term 'boost' modifiers are not supported in neogrok; the term has been converted without boosting";case"SimilarityNotSupported":return"Lucene term 'similarity' searches are not supported in neogrok";case"ProximityNotSupported":return"Lucene phrase 'proximity' searches are not supported in neogrok";case"RangeTermNotSupported":return"Lucene 'range' terms are not supported in neogrok";case"SortOrderNotSupported":return`The given OpenGrok sort order ${o.sortOrder} is not supported in neogrok; neogrok `;case"ConvertedProjects":return`The following OpenGrok projects have been renamed to neogrok repositories: ${Object.entries(o.conversions).map(([e,n])=>`${e} -> ${n}`).join(", ")}`;case"UnknownRepos":return`The following neogrok repositories do not exist in the backing zoekt instance and have been discarded from the query: ${o.repos.join(", ")}`;case"UnsupportedLanguage":return`The given OpenGrok file type could not be converted to a neogrok language (\`lang:\`): ${o.language}`;default:{const e=o;throw new Error(`Unreachable ${e}`)}}};function Se(o,e,n){const t=o.slice();return t[9]=e[n].message,t[10]=e[n].location,t}function Le(o,e,n){const t=o.slice();return t[13]=e[n],t}function Te(o){let e;return{c(){e=G("neogrok's zoekt syntax")},l(n){e=O(n,"neogrok's zoekt syntax")},m(n,t){P(n,e,t)},d(n){n&&f(e)}}}function Ve(o){let e,n;return e=new Ue({props:{wrap:!0,$$slots:{default:[Be]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),n=!0},p(t,r){const s={};r&65552&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){ee(e,t)}}}function Ae(o){let e;return{c(){e=G("URL parameters contain no query inputs")},l(n){e=O(n,"URL parameters contain no query inputs")},m(n,t){P(n,e,t)},p:F,i:F,o:F,d(n){n&&f(e)}}}function We(o){let e=o[13].content+"",n;return{c(){n=G(e)},l(t){n=O(t,e)},m(t,r){P(t,n,r)},p(t,r){r&16&&e!==(e=t[13].content+"")&&ae(n,e)},d(t){t&&f(n)}}}function Je(o){let e,n=o[13].content+"",t;return{c(){e=g("span"),t=G(n),this.h()},l(r){e=k(r,"SPAN",{class:!0});var s=y(e);t=O(s,n),s.forEach(f),this.h()},h(){v(e,"class","bg-orange-200")},m(r,s){P(r,e,s),u(e,t)},p(r,s){s&16&&n!==(n=r[13].content+"")&&ae(t,n)},d(r){r&&f(e)}}}function Ge(o){let e;function n(s,l){return s[13].kind==="highlighted"?Je:We}let t=n(o),r=t(o);return{c(){r.c(),e=se()},l(s){r.l(s),e=se()},m(s,l){r.m(s,l),P(s,e,l)},p(s,l){t===(t=n(s))&&r?r.p(s,l):(r.d(1),r=t(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){s&&f(e),r.d(s)}}}function Be(o){let e,n=le(o[4]),t=[];for(let r=0;r<n.length;r+=1)t[r]=Ge(Le(o,n,r));return{c(){for(let r=0;r<t.length;r+=1)t[r].c();e=se()},l(r){for(let s=0;s<t.length;s+=1)t[s].l(r);e=se()},m(r,s){for(let l=0;l<t.length;l+=1)t[l]&&t[l].m(r,s);P(r,e,s)},p(r,s){if(s&16){n=le(r[4]);let l;for(l=0;l<n.length;l+=1){const i=Le(r,n,l);t[l]?t[l].p(i,s):(t[l]=Ge(i),t[l].c(),t[l].m(e.parentNode,e))}for(;l<t.length;l+=1)t[l].d(1);t.length=n.length}},d(r){r&&f(e),Ne(t,r)}}}function Fe(o){let e,n;return e=new Re({props:{wrap:!0,query:o[1]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),n=!0},p(t,r){const s={};r&2&&(s.query=t[1]),e.$set(s)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){ee(e,t)}}}function Me(o){let e;return{c(){e=G("Conversion failed!")},l(n){e=O(n,"Conversion failed!")},m(n,t){P(n,e,t)},p:F,i:F,o:F,d(n){n&&f(e)}}}function Ke(o){let e,n,t,r,s;return t=new He({props:{to:"/",$$slots:{default:[Xe]},$$scope:{ctx:o}}}),{c(){e=g("p"),n=G("No Lucene query, nothing to do. Head on over to the neogrok "),X(t.$$.fragment),r=G(" to get started.")},l(l){e=k(l,"P",{});var i=y(e);n=O(i,"No Lucene query, nothing to do. Head on over to the neogrok "),Y(t.$$.fragment,i),r=O(i," to get started."),i.forEach(f)},m(l,i){P(l,e,i),u(e,n),Z(t,e,null),u(e,r),s=!0},p(l,i){const a={};i&65536&&(a.$$scope={dirty:i,ctx:l}),t.$set(a)},i(l){s||(I(t.$$.fragment,l),s=!0)},o(l){H(t.$$.fragment,l),s=!1},d(l){l&&f(e),ee(t)}}}function Xe(o){let e;return{c(){e=G("search page")},l(n){e=O(n,"search page")},m(n,t){P(n,e,t)},d(n){n&&f(e)}}}function Oe(o){let e,n,t="Conversion warnings",r,s,l=le(o[5]),i=[];for(let a=0;a<l.length;a+=1)i[a]=Pe(Se(o,l,a));return{c(){e=g("span"),n=g("h3"),n.textContent=t,r=z(),s=g("ul");for(let a=0;a<i.length;a+=1)i[a].c();this.h()},l(a){e=k(a,"SPAN",{class:!0});var d=y(e);n=k(d,"H3",{class:!0,"data-svelte-h":!0}),K(n)!=="svelte-8dzbko"&&(n.textContent=t),r=Q(d),s=k(d,"UL",{class:!0});var p=y(s);for(let h=0;h<i.length;h+=1)i[h].l(p);p.forEach(f),d.forEach(f),this.h()},h(){v(n,"class","text-center font-semibold"),v(s,"class","list-disc pl-2"),v(e,"class","flex-auto space-y-2 border border-orange-300 rounded-md p-3 max-w-md")},m(a,d){P(a,e,d),u(e,n),u(e,r),u(e,s);for(let p=0;p<i.length;p+=1)i[p]&&i[p].m(s,null)},p(a,d){if(d&40){l=le(a[5]);let p;for(p=0;p<l.length;p+=1){const h=Se(a,l,p);i[p]?i[p].p(h,d):(i[p]=Pe(h),i[p].c(),i[p].m(s,null))}for(;p<i.length;p+=1)i[p].d(1);i.length=l.length}},d(a){a&&f(e),Ne(i,a)}}}function Pe(o){let e,n=o[9]+"",t,r,s,l;function i(){return o[7](o[10])}return{c(){e=g("li"),t=G(n),r=z(),this.h()},l(a){e=k(a,"LI",{class:!0});var d=y(e);t=O(d,n),r=Q(d),d.forEach(f),this.h()},h(){v(e,"class","text-sm")},m(a,d){P(a,e,d),u(e,t),u(e,r),s||(l=[Ce(e,"mouseenter",i),Ce(e,"mouseleave",o[8])],s=!0)},p(a,d){o=a,d&32&&n!==(n=o[9]+"")&&ae(t,n)},d(a){a&&f(e),s=!1,Ie(l)}}}function Ye(o){let e,n,t,r="Search query conversion",s,l,i,a,d,p,h,_,D,he="Detected OpenGrok URL parameters",ie,W,M=JSON.stringify(o[0],null,2)+"",te,ce,w,T,me="Input OpenGrok Lucene query",ue,J,C,q,fe,$,V,_e="Output zoekt query",de,B,E,S,pe,x;a=new He({props:{to:"/syntax",$$slots:{default:[Te]},$$scope:{ctx:o}}});const ge=[Ae,Ve],U=[];function ke(c,m){return c[4]===null?0:1}C=ke(o),q=U[C]=ge[C](o);const be=[Ke,Me,Fe],R=[];function ve(c,m){return c[4]===null?0:c[1]===null?1:2}E=ve(o),S=R[E]=be[E](o);let b=o[2].length>0&&Oe(o);return{c(){e=g("section"),n=g("div"),t=g("h2"),t.textContent=r,s=z(),l=g("p"),i=G(`While zoekt and OpenGrok have substantially different search input
2
+ semantics, we've made a best-effort conversion of the search query that
3
+ brought you to this page from OpenGrok's Lucene syntax to
4
+ `),X(a.$$.fragment),d=G("."),p=z(),h=g("div"),_=g("div"),D=g("h3"),D.textContent=he,ie=z(),W=g("pre"),te=G(M),ce=z(),w=g("span"),T=g("h3"),T.textContent=me,ue=z(),J=g("div"),q.c(),fe=z(),$=g("span"),V=g("h3"),V.textContent=_e,de=z(),B=g("div"),S.c(),pe=z(),b&&b.c(),this.h()},l(c){e=k(c,"SECTION",{class:!0});var m=y(e);n=k(m,"DIV",{class:!0});var A=y(n);t=k(A,"H2",{class:!0,"data-svelte-h":!0}),K(t)!=="svelte-1tuqkym"&&(t.textContent=r),s=Q(A),l=k(A,"P",{});var j=y(l);i=O(j,`While zoekt and OpenGrok have substantially different search input
5
+ semantics, we've made a best-effort conversion of the search query that
6
+ brought you to this page from OpenGrok's Lucene syntax to
7
+ `),Y(a.$$.fragment,j),d=O(j,"."),j.forEach(f),A.forEach(f),p=Q(m),h=k(m,"DIV",{class:!0});var L=y(h);_=k(L,"DIV",{class:!0});var ne=y(_);D=k(ne,"H3",{class:!0,"data-svelte-h":!0}),K(D)!=="svelte-1ukwkbd"&&(D.textContent=he),ie=Q(ne),W=k(ne,"PRE",{class:!0});var ye=y(W);te=O(ye,M),ye.forEach(f),ne.forEach(f),ce=Q(L),w=k(L,"SPAN",{class:!0});var re=y(w);T=k(re,"H3",{class:!0,"data-svelte-h":!0}),K(T)!=="svelte-1otg7md"&&(T.textContent=me),ue=Q(re),J=k(re,"DIV",{});var $e=y(J);q.l($e),$e.forEach(f),re.forEach(f),fe=Q(L),$=k(L,"SPAN",{class:!0});var oe=y($);V=k(oe,"H3",{class:!0,"data-svelte-h":!0}),K(V)!=="svelte-avhkp2"&&(V.textContent=_e),de=Q(oe),B=k(oe,"DIV",{});var we=y(B);S.l(we),we.forEach(f),oe.forEach(f),pe=Q(L),b&&b.l(L),L.forEach(f),m.forEach(f),this.h()},h(){v(t,"class","text-xl pt-2 text-center font-medium"),v(n,"class","max-w-prose mx-auto"),v(D,"class","text-center font-semibold"),v(W,"class","bg-gray-100 p-2 text-sm whitespace-normal"),v(_,"class","flex-auto space-y-2 border border-slate-300 rounded-md p-3 max-w-md"),v(T,"class","font-semibold"),v(w,"class","flex-auto space-y-2 text-center border rounded-md p-3 max-w-sm"),N(w,"border-slate-300",o[4]!==null),N(w,"border-orange-300",o[4]===null),v(V,"class","font-semibold"),v($,"class","flex-auto space-y-2 text-center border rounded-md p-3 max-w-sm"),N($,"border-slate-300",o[4]===null),N($,"border-red-300",o[4]!==null&&o[1]===null),N($,"border-sky-500",o[1]!==null),v(h,"class","flex flex-wrap gap-4 justify-center"),v(e,"class","space-y-2")},m(c,m){P(c,e,m),u(e,n),u(n,t),u(n,s),u(n,l),u(l,i),Z(a,l,null),u(l,d),u(e,p),u(e,h),u(h,_),u(_,D),u(_,ie),u(_,W),u(W,te),u(h,ce),u(h,w),u(w,T),u(w,ue),u(w,J),U[C].m(J,null),u(h,fe),u(h,$),u($,V),u($,de),u($,B),R[E].m(B,null),u(h,pe),b&&b.m(h,null),x=!0},p(c,[m]){const A={};m&65536&&(A.$$scope={dirty:m,ctx:c}),a.$set(A),(!x||m&1)&&M!==(M=JSON.stringify(c[0],null,2)+"")&&ae(te,M);let j=C;C=ke(c),C===j?U[C].p(c,m):(qe(),H(U[j],1,1,()=>{U[j]=null}),Ee(),q=U[C],q?q.p(c,m):(q=U[C]=ge[C](c),q.c()),I(q,1),q.m(J,null)),(!x||m&16)&&N(w,"border-slate-300",c[4]!==null),(!x||m&16)&&N(w,"border-orange-300",c[4]===null);let L=E;E=ve(c),E===L?R[E].p(c,m):(qe(),H(R[L],1,1,()=>{R[L]=null}),Ee(),S=R[E],S?S.p(c,m):(S=R[E]=be[E](c),S.c()),I(S,1),S.m(B,null)),(!x||m&16)&&N($,"border-slate-300",c[4]===null),(!x||m&18)&&N($,"border-red-300",c[4]!==null&&c[1]===null),(!x||m&2)&&N($,"border-sky-500",c[1]!==null),c[2].length>0?b?b.p(c,m):(b=Oe(c),b.c(),b.m(h,null)):b&&(b.d(1),b=null)},i(c){x||(I(a.$$.fragment,c),I(q),I(S),x=!0)},o(c){H(a.$$.fragment,c),H(q),H(S),x=!1},d(c){c&&f(e),ee(a),U[C].d(),R[E].d(),b&&b.d()}}}function Ze(o,e,n){let t,{openGrokParams:r}=e,{luceneQuery:s}=e,{zoektQuery:l}=e,{warnings:i}=e,a=null,d;const p=_=>{_&&n(3,a=_)},h=()=>{n(3,a=null)};return o.$$set=_=>{"openGrokParams"in _&&n(0,r=_.openGrokParams),"luceneQuery"in _&&n(6,s=_.luceneQuery),"zoektQuery"in _&&n(1,l=_.zoektQuery),"warnings"in _&&n(2,i=_.warnings)},o.$$.update=()=>{o.$$.dirty&4&&n(5,t=i.map(je)),o.$$.dirty&72&&(a&&s?n(4,d=[{kind:"normal",content:s.slice(0,a.start)},{kind:"highlighted",content:s.slice(a.start,a.end)},{kind:"normal",content:s.slice(a.end)}]):s?n(4,d=[{kind:"normal",content:s}]):n(4,d=null))},[r,l,i,a,d,t,s,p,h]}class et extends ze{constructor(e){super(),Qe(this,e,Ze,Ye,xe,{openGrokParams:0,luceneQuery:6,zoektQuery:1,warnings:2})}}function tt(o){let e,n;return e=new et({props:{openGrokParams:o[0].params,luceneQuery:o[0].luceneQuery,zoektQuery:o[0].zoektQuery,warnings:o[0].warnings}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),n=!0},p(t,[r]){const s={};r&1&&(s.openGrokParams=t[0].params),r&1&&(s.luceneQuery=t[0].luceneQuery),r&1&&(s.zoektQuery=t[0].zoektQuery),r&1&&(s.warnings=t[0].warnings),e.$set(s)},i(t){n||(I(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){ee(e,t)}}}function nt(o,e,n){let{data:t}=e;return o.$$set=r=>{"data"in r&&n(0,t=r.data)},[t]}class it extends ze{constructor(e){super(),Qe(this,e,nt,tt,xe,{data:0})}}export{it as component};
@@ -0,0 +1,12 @@
1
+ import{n as j,e as $,l as H,c as g,a as k,p as P,o as S,d,f as T,i as v,g as p,t as _,b as h,s as F}from"../chunks/scheduler.80902d3b.js";import{S as G,i as I,b,e as N,t as y,g as z,c as E,a as U,m as L,d as C}from"../chunks/index.d0e6da70.js";import{E as A}from"../chunks/example-query.ac8ef50a.js";import{L as Y}from"../chunks/link.70630bff.js";import{e as O}from"../chunks/regexp.50bc0e87.js";function B(i){let e,o,t,a,s;return t=new Y({props:{to:"/",$$slots:{default:[K]},$$scope:{ctx:i}}}),{c(){e=$("p"),o=_(`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=_(" to get started with neogrok.")},l(n){e=g(n,"P",{});var r=k(e);o=h(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=h(r," to get started with neogrok."),r.forEach(d)},m(n,r){v(n,e,r),p(e,o),L(t,e,null),p(e,a),s=!0},p(n,r){const l={};r&2&&(l.$$scope={dirty:r,ctx:n}),t.$set(l)},i(n){s||(y(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&d(e),C(t)}}}function D(i){let e,o,t,a,s;return t=new A({props:{query:`file:^${O(i[0].file)}$`}}),{c(){e=$("p"),o=_(`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=_(".")},l(n){e=g(n,"P",{});var r=k(e);o=h(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=h(r,"."),r.forEach(d)},m(n,r){v(n,e,r),p(e,o),L(t,e,null),p(e,a),s=!0},p(n,r){const l={};r&1&&(l.query=`file:^${O(n[0].file)}$`),t.$set(l)},i(n){s||(y(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&d(e),C(t)}}}function J(i){let e,o,t,a,s;return t=new Y({props:{to:i[0].destinationUrl,$$slots:{default:[M]},$$scope:{ctx:i}}}),{c(){e=$("p"),o=_(`That being said, we've been able to produce a URL to view the
10
+ file/directory on its home site. Head on over: `),E(t.$$.fragment),a=_(".")},l(n){e=g(n,"P",{});var r=k(e);o=h(r,`That being said, we've been able to produce a URL to view the
11
+ file/directory on its home site. Head on over: `),U(t.$$.fragment,r),a=h(r,"."),r.forEach(d)},m(n,r){v(n,e,r),p(e,o),L(t,e,null),p(e,a),s=!0},p(n,r){const l={};r&1&&(l.to=n[0].destinationUrl),r&3&&(l.$$scope={dirty:r,ctx:n}),t.$set(l)},i(n){s||(y(t.$$.fragment,n),s=!0)},o(n){b(t.$$.fragment,n),s=!1},d(n){n&&d(e),C(t)}}}function K(i){let e;return{c(){e=_("the neogrok search page")},l(o){e=h(o,"the neogrok search page")},m(o,t){v(o,e,t)},d(o){o&&d(e)}}}function M(i){let e=i[0].destinationUrl+"",o;return{c(){o=_(e)},l(t){o=h(t,e)},m(t,a){v(t,o,a)},p(t,a){a&1&&e!==(e=t[0].destinationUrl+"")&&F(o,e)},d(t){t&&d(o)}}}function Q(i){let e,o,t="File/directory browser",a,s,n=`OpenGrok's file/directory browser that was previously available at this URL
12
+ is unfortunately not supported in neogrok.`,r,l,f,w;const R=[J,D,B],m=[];function q(c,u){return c[0].destinationUrl?0:c[0].file?1:2}return l=q(i),f=m[l]=R[l](i),{c(){e=$("section"),o=$("h2"),o.textContent=t,a=H(),s=$("p"),s.textContent=n,r=H(),f.c(),this.h()},l(c){e=g(c,"SECTION",{class:!0});var u=k(e);o=g(u,"H2",{class:!0,"data-svelte-h":!0}),P(o)!=="svelte-e5h2fu"&&(o.textContent=t),a=S(u),s=g(u,"P",{"data-svelte-h":!0}),P(s)!=="svelte-14q8djn"&&(s.textContent=n),r=S(u),f.l(u),u.forEach(d),this.h()},h(){T(o,"class","text-2xl text-center"),T(e,"class","space-y-2 pt-2 max-w-prose mx-auto")},m(c,u){v(c,e,u),p(e,o),p(e,a),p(e,s),p(e,r),m[l].m(e,null),w=!0},p(c,[u]){let x=l;l=q(c),l===x?m[l].p(c,u):(z(),b(m[x],1,1,()=>{m[x]=null}),N(),f=m[l],f?f.p(c,u):(f=m[l]=R[l](c),f.c()),y(f,1),f.m(e,null))},i(c){w||(y(f),w=!0)},o(c){b(f),w=!1},d(c){c&&d(e),m[l].d()}}}function V(i,e,o){let{data:t}=e;return i.$$set=a=>{"data"in a&&o(0,t=a.data)},[t]}class ne extends G{constructor(e){super(),I(this,e,V,Q,j,{data:0})}}export{ne as component};
@@ -0,0 +1 @@
1
+ {"version":"1697395981971"}
Binary file
Binary file
Binary file
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "",
3
+ "short_name": "",
4
+ "icons": [
5
+ {
6
+ "src": "/android-chrome-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png"
9
+ },
10
+ {
11
+ "src": "/android-chrome-512x512.png",
12
+ "sizes": "512x512",
13
+ "type": "image/png"
14
+ }
15
+ ],
16
+ "theme_color": "#ffffff",
17
+ "background_color": "#ffffff",
18
+ "display": "standalone"
19
+ }
package/build/env.js ADDED
@@ -0,0 +1,37 @@
1
+ /* global "" */
2
+
3
+ const expected = new Set([
4
+ 'SOCKET_PATH',
5
+ 'HOST',
6
+ 'PORT',
7
+ 'ORIGIN',
8
+ 'XFF_DEPTH',
9
+ 'ADDRESS_HEADER',
10
+ 'PROTOCOL_HEADER',
11
+ 'HOST_HEADER',
12
+ 'BODY_SIZE_LIMIT'
13
+ ]);
14
+
15
+ if ("") {
16
+ for (const name in process.env) {
17
+ if (name.startsWith("")) {
18
+ const unprefixed = name.slice("".length);
19
+ if (!expected.has(unprefixed)) {
20
+ throw new Error(
21
+ `You should change envPrefix (${""}) to avoid conflicts with existing environment variables — unexpectedly saw ${name}`
22
+ );
23
+ }
24
+ }
25
+ }
26
+ }
27
+
28
+ /**
29
+ * @param {string} name
30
+ * @param {any} fallback
31
+ */
32
+ function env(name, fallback) {
33
+ const prefixed = "" + name;
34
+ return prefixed in process.env ? process.env[prefixed] : fallback;
35
+ }
36
+
37
+ export { env };