on master help sign in
everything cleaned up from groups/apps
e40a064Hunter Miller
desk/desk.docket-0+2−2
@@ -2,9 +2,9 @@
2 info+'An app for answering all your riddles'
2 info+'An app for answering all your riddles'
3 color+0xb2.5068
3 color+0xb2.5068
4 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
4 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
5− glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v3.ge0e1.l2p87.un7r5.hjpbv.tl9ve.glob' 0v3.ge0e1.l2p87.un7r5.hjpbv.tl9ve]
5+ glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v4.hh3jv.4to3r.epjc7.gjvnk.5cu1c.glob' 0v4.hh3jv.4to3r.epjc7.gjvnk.5cu1c]
6 base+'sphinx'
6 base+'sphinx'
7− version+[0 1 1]
7+ version+[0 1 4]
8 website+'https://github.com'
8 website+'https://github.com'
9 license+'MIT'
9 license+'MIT'
10==
10==
desk/lib/metaphone.hoon+1
@@ -3,6 +3,7 @@
3 |= corpus=@t
3 |= corpus=@t
4 ^- @t
4 ^- @t
5 =/ norm (cuss (trip corpus))
5 =/ norm (cuss (trip corpus))
6+ ?: =(norm '') ''
6 ~(phone core [norm *tape 0])
7 ~(phone core [norm *tape 0])
7++ core
8++ core
8 |_ [text=tape chars=tape index=@ud]
9 |_ [text=tape chars=tape index=@ud]
desk/lib/sift.hoon+5
@@ -2,16 +2,19 @@
2++ sift
2++ sift
3 |= corpus=@t
3 |= corpus=@t
4 ^- (list @t)
4 ^- (list @t)
5+ ?: =(corpus '') ~
5 %+ skip
6 %+ skip
6 (split corpus)
7 (split corpus)
7 |= word=@t
8 |= word=@t
8 (~(has in words) word)
9 (~(has in words) word)
9++ norm
10++ norm
10 |= corpus=@t
11 |= corpus=@t
12+ ?: =(corpus '') ''
11 (crip (cass (trimall (crip (expunge corpus)))))
13 (crip (cass (trimall (crip (expunge corpus)))))
12++ split
14++ split
13 |= corpus=@t
15 |= corpus=@t
14 ^- (list @t)
16 ^- (list @t)
17+ ?: =(corpus '') ~
15 %+ rash (norm corpus)
18 %+ rash (norm corpus)
16 (more ace (cook crip (plus ;~(pose aln hep))))
19 (more ace (cook crip (plus ;~(pose aln hep))))
17++ allowed ;~(pose aln hep ace)
20++ allowed ;~(pose aln hep ace)
@@ -19,6 +22,7 @@
19++ expunge
22++ expunge
20 |= corpus=@t
23 |= corpus=@t
21 ^- (list @t)
24 ^- (list @t)
25+ ?: =(corpus '') ~
22 %- zing
26 %- zing
23 %+ rash corpus
27 %+ rash corpus
24 %- plus
28 %- plus
@@ -30,6 +34,7 @@
30++ trimall
34++ trimall
31 |= corpus=@t
35 |= corpus=@t
32 |^ ^- tape
36 |^ ^- tape
37+ ?: =(corpus '') ~
33 %+ rash corpus
38 %+ rash corpus
34 %+ ifix [(star ws) (star ws)]
39 %+ ifix [(star ws) (star ws)]
35 %- star
40 %- star
desk/lib/validate-url.hoon+7−4
@@ -4,10 +4,13 @@
4 ^- @t
4 ^- @t
5 %+ rash url
5 %+ rash url
6 %+ cold url
6 %+ cold url
7− ;~ plug
7+ ;~ plug
8+ ;~ pose
8− ;~ plug
9+ ;~ plug
9− ;~(plug alf (star ;~(pose aln lus dot hep)) col fas fas)
10+ ;~(plug alf (star ;~(pose aln lus dot hep)) col fas fas)
10− ;~(pose thor:de-purl:html ;~(pfix sig fed:ag))
11+ ;~(pose thor:de-purl:html ;~(pfix sig fed:ag))
12+ ==
13+ (easy ~)
11 ==
14 ==
12 ;~ plug
15 ;~ plug
13 ;~(pose apat:de-purl:html (easy *pork:eyre))
16 ;~(pose apat:de-purl:html (easy *pork:eyre))
ui/src/pages/Search.tsx+1−1
@@ -84,7 +84,7 @@ export const Search = () => {
84 return null;
84 return null;
85 }
85 }
86
86
87− return `/${lookup}/${size}/${page || 1}`
87+ return `/search/${lookup}/${size}/${page || 1}`
88 }, [lookup, size]);
88 }, [lookup, size]);
89
89
90 return (
90 return (