everything cleaned up from groups/apps
commite40a064b2ebe1e1c40b5c18a5b25376acb69c47c
authorHunter Miller <hunter@hmiller.dev>
dateWed 20 Jul 2022, 18:34 (4 years ago)
parent629e56a
desk/desk.docket-0+2−2
@@ -2,9 +2,9 @@
22 info+'An app for answering all your riddles'
33 color+0xb2.5068
44 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]
66 base+'sphinx'
7− version+[0 1 1]
7+ version+[0 1 4]
88 website+'https://github.com'
99 license+'MIT'
1010==
desk/lib/metaphone.hoon+1
@@ -3,6 +3,7 @@
33 |= corpus=@t
44 ^- @t
55 =/ norm (cuss (trip corpus))
6+ ?: =(norm '') ''
67 ~(phone core [norm *tape 0])
78++ core
89 |_ [text=tape chars=tape index=@ud]
desk/lib/sift.hoon+5
@@ -2,16 +2,19 @@
22++ sift
33 |= corpus=@t
44 ^- (list @t)
5+ ?: =(corpus '') ~
56 %+ skip
67 (split corpus)
78 |= word=@t
89 (~(has in words) word)
910++ norm
1011 |= corpus=@t
12+ ?: =(corpus '') ''
1113 (crip (cass (trimall (crip (expunge corpus)))))
1214++ split
1315 |= corpus=@t
1416 ^- (list @t)
17+ ?: =(corpus '') ~
1518 %+ rash (norm corpus)
1619 (more ace (cook crip (plus ;~(pose aln hep))))
1720++ allowed ;~(pose aln hep ace)
@@ -19,6 +22,7 @@
1922++ expunge
2023 |= corpus=@t
2124 ^- (list @t)
25+ ?: =(corpus '') ~
2226 %- zing
2327 %+ rash corpus
2428 %- plus
@@ -30,6 +34,7 @@
3034++ trimall
3135 |= corpus=@t
3236 |^ ^- tape
37+ ?: =(corpus '') ~
3338 %+ rash corpus
3439 %+ ifix [(star ws) (star ws)]
3540 %- star
desk/lib/validate-url.hoon+7−4
@@ -4,10 +4,13 @@
44 ^- @t
55 %+ rash url
66 %+ cold url
7− ;~ plug
8− ;~ plug
9− ;~(plug alf (star ;~(pose aln lus dot hep)) col fas fas)
10− ;~(pose thor:de-purl:html ;~(pfix sig fed:ag))
7+ ;~ plug
8+ ;~ pose
9+ ;~ plug
10+ ;~(plug alf (star ;~(pose aln lus dot hep)) col fas fas)
11+ ;~(pose thor:de-purl:html ;~(pfix sig fed:ag))
12+ ==
13+ (easy ~)
1114 ==
1215 ;~ plug
1316 ;~(pose apat:de-purl:html (easy *pork:eyre))
ui/src/pages/Search.tsx+1−1
@@ -84,7 +84,7 @@ export const Search = () => {
8484 return null;
8585 }
8686
87− return `/${lookup}/${size}/${page || 1}`
87+ return `/search/${lookup}/${size}/${page || 1}`
8888 }, [lookup, size]);
8989
9090 return (