on master help sign in
renaming
commit763d727b8168cd7ff8a9ae9f825c1de7ae0e9628 authorHunter Miller <hunter@hmiller.dev> dateThu 14 Jul 2022, 21:47 (4 years ago) parenta3adca5
28 files changed+43−43
README.md+5−5 desk/app/seek.hoon → desk/app/sphinx.hoon+2−2 desk/desk.bill+1−1 desk/desk.docket-0+2−2 desk/gen/publish-all.hoon+2−2 desk/gen/publish.hoon+2−2 desk/lib/seek-json.hoon → desk/lib/sphinx-json.hoon+1−1 desk/lib/seek.hoon → desk/lib/sphinx.hoon+1−1 desk/mar/declarations.hoon+2−2 desk/mar/declare.hoon+2−2 desk/mar/directory-listing.hoon+2−2 desk/mar/directory.hoon+2−2 desk/mar/search.hoon+2−2 desk/mar/seek-action.hoon desk/sur/seek.hoon → desk/sur/sphinx.hoon desk/ted/publish-all.hoon+2−2 ui/index.html+1−1 ui/package-lock.json+2−2 ui/package.json+1−1 ui/src/app.tsx+1−1 ui/src/assets/manifest.json+2−2 ui/src/components/Filter.tsx+1−1 ui/src/components/Meta.tsx+1−1 ui/src/components/SearchList.tsx+1−1 ui/src/pages/Post.tsx+2−2 ui/src/pages/Search.tsx+2−2 ui/src/types/seek.ts → ui/src/types/sphinx.ts ui/vite.config.ts+1−1
README.md+5−5
@@ -1,4 +1,4 @@
1−# seek
1+# sphinx
22
33## Desk
44
@@ -8,11 +8,11 @@ TODO: Add further documentation on beginning Hoon development
88
99## UI
1010
11−seek is built primarily using [React], [Typescript], and [Tailwind CSS]. [Vite] ensures that all code and assets are loaded appropriately, bundles the application for distribution and provides a functional dev environment.
11+sphinx is built primarily using [React], [Typescript], and [Tailwind CSS]. [Vite] ensures that all code and assets are loaded appropriately, bundles the application for distribution and provides a functional dev environment.
1212
1313### Getting Started
1414
15−To get started using seek first you need to run `npm install` inside the `ui` directory.
15+To get started using sphinx first you need to run `npm install` inside the `ui` directory.
1616
1717To develop you'll need a running ship to point to. To do so you first need to add a `.env.local` file to the `ui` directory. This file will not be committed. Adding `VITE_SHIP_URL={URL}` where **{URL}** is the URL of the ship you would like to point to, will allow you to run `npm run dev`. This will proxy all requests to the ship except for those powering the interface, allowing you to see live data.
1818
@@ -25,10 +25,10 @@ To deploy, run `npm run build` in the `ui` directory which will bundle all the c
25251. Create or launch an urbit using the -F flag
26262. On that urbit, if you don't already have a desk to run from, run `|merge %work our %base` to create a new desk and mount it with `|mount %work`.
27273. Now the `%work` desk is accessible through the host OS's filesystem as a directory of that urbit's pier ie `~/zod/work`.
28−4. From the `ui` directory you can run `rsync -avL --delete dist/ ~/zod/work/seek` where `~/zod` is your fake urbit's pier.
28+4. From the `ui` directory you can run `rsync -avL --delete dist/ ~/zod/work/sphinx` where `~/zod` is your fake urbit's pier.
29295. Once completed you can then run `|commit %work` on your urbit and you should see your files logged back out from the dojo.
30306. Now run `=dir /=garden` to switch to the garden desk directory
31−7. You can now run `-make-glob %work /seek` which will take the folder where you just added files and create a glob which can be thought of as a sort of bundle. It will be output to `~/zod/.urb/put`.
31+7. You can now run `-make-glob %work /sphinx` which will take the folder where you just added files and create a glob which can be thought of as a sort of bundle. It will be output to `~/zod/.urb/put`.
32328. If you navigate to `~/zod/.urb/put` you should see a file that looks like this `glob-0v5.fdf99.nph65.qecq3.ncpjn.q13mb.glob`. The characters between `glob-` and `.glob` are a hash of the glob's contents.
33339. Now that we have the glob it can be uploaded to any publicly available HTTP endpoint that can serve files. This allows the glob to distributed over HTTP.
343410. Once you've uploaded the glob, you should then update the corresponding entry in the docket file at `desk/desk.docket-0`. Both the full URL and the hash should be updated to match the glob we just created, on the line that looks like this:
desk/app/seek.hoon → desk/app/sphinx.hoonrenamed+2−2
@@ -1,6 +1,6 @@
1−/- s=seek
1+/- s=sphinx
22/+ gossip, default-agent, verb, dbug
3−/+ *seek
3+/+ *sphinx
44/+ sift
55/+ m=metaphone
66/$ grab-listing %noun %directory-listing
desk/desk.bill+1−1
@@ -1,2 +1,2 @@
1−:~ %seek
1+:~ %sphinx
22==
desk/desk.docket-0+2−2
@@ -1,8 +1,8 @@
1−:~ title+'seek'
1+:~ title+'sphinx'
22 info+'An Urbit app that does great things'
33 color+0x2e.4347
44 glob-http+['https://bootstrap.urbit.org/glob-0v5.hurm4.ejod5.ngg9h.iub9i.n1j7o.glob' 0v5.hurm4.ejod5.ngg9h.iub9i.n1j7o]
5− base+'seek'
5+ base+'sphinx'
66 version+[0 0 1]
77 website+'https://github.com'
88 license+'MIT'
desk/gen/publish-all.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ *seek
1+/- s=sphinx
2+/+ *sphinx
33:- %say
44|= $: [now=@da eny=@uv =beak]
55 [ ~]
desk/gen/publish.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ *seek
1+/- s=sphinx
2+/+ *sphinx
33:- %say
44|= $: [now=@da eny=@uv =beak]
55 [[=post:s ~] ~]
desk/lib/seek-json.hoon → desk/lib/sphinx-json.hoonrenamed+1−1
@@ -1,4 +1,4 @@
1−/- s=seek
1+/- s=sphinx
22|%
33++ enjs
44 =, enjs:format
desk/lib/seek.hoon → desk/lib/sphinx.hoonrenamed+1−1
@@ -1,4 +1,4 @@
1−/- *seek
1+/- *sphinx
22|%
33++ iching
44 |= word=@t
desk/mar/declarations.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ j=seek-json
1+/- s=sphinx
2+/+ j=sphinx-json
33|_ d=(list declare:s)
44++ grad %noun
55++ grow
desk/mar/declare.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ j=seek-json
1+/- s=sphinx
2+/+ j=sphinx-json
33|_ =declare:s
44++ grad %noun
55++ grow
desk/mar/directory-listing.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ j=seek-json
1+/- s=sphinx
2+/+ j=sphinx-json
33|_ =listing:s
44++ grad %noun
55++ grow
desk/mar/directory.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ j=seek-json
1+/- s=sphinx
2+/+ j=sphinx-json
33|_ =directory:s
44++ grad %noun
55++ grow
desk/mar/search.hoon+2−2
@@ -1,5 +1,5 @@
1−/- s=seek
2−/+ j=seek-json
1+/- s=sphinx
2+/+ j=sphinx-json
33|_ =search:s
44++ grad %noun
55++ grow
desk/mar/seek-action.hoondeleted

No changes to the content.

desk/sur/seek.hoon → desk/sur/sphinx.hoonrenamed

The content is the same.

desk/ted/publish-all.hoon+2−2
@@ -1,5 +1,5 @@
11/- spider
2−/- s=seek
2+/- s=sphinx
33/+ *strandio
44=, strand=strand:spider
55=/ posts
@@ -36,5 +36,5 @@
3636 %+ turn
3737 posts
3838 |= =declare:s
39− [%pass /poke %agent [our %seek] %poke [%declare !>(declare)]]
39+ [%pass /poke %agent [our %sphinx] %poke [%declare !>(declare)]]
4040(pure:m !>(~))
ui/index.html+1−1
@@ -3,7 +3,7 @@
33 <head>
44 <meta charset="UTF-8" />
55 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6− <title>seek</title>
6+ <title>sphinx</title>
77 <meta name="theme-color" content="#ffffff" />
88 <link rel="icon" href="/src/assets/favicon.svg" sizes="any" type="image/svg+xml" />
99 <link rel="mask-icon" href="/src/assets/safari-pinned-tab.svg" color="#000000" />
ui/package-lock.json+2−2
@@ -1,11 +1,11 @@
11{
2− "name": "seek",
2+ "name": "sphinx",
33 "version": "0.0.0",
44 "lockfileVersion": 2,
55 "requires": true,
66 "packages": {
77 "": {
8− "name": "seek",
8+ "name": "sphinx",
99 "version": "0.0.0",
1010 "dependencies": {
1111 "@heroicons/react": "^1.0.6",
ui/package.json+1−1
@@ -1,5 +1,5 @@
11{
2− "name": "seek",
2+ "name": "sphinx",
33 "version": "0.0.0",
44 "private": true,
55 "scripts": {
ui/src/app.tsx+1−1
@@ -23,7 +23,7 @@ function Main() {
2323export function App() {
2424 return (
2525 <QueryClientProvider client={queryClient}>
26− <BrowserRouter basename='/apps/seek'>
26+ <BrowserRouter basename='/apps/sphinx'>
2727 <Main />
2828 </BrowserRouter>
2929 </QueryClientProvider>
ui/src/assets/manifest.json+2−2
@@ -1,6 +1,6 @@
11{
2− "name": "seek",
3− "short_name": "seek",
2+ "name": "sphinx",
3+ "short_name": "sphinx",
44 "icons": [
55 {
66 "src": "/apps/grid/android-chrome-512x512.png",
ui/src/components/Filter.tsx+1−1
@@ -1,6 +1,6 @@
11import React from 'react';
22import * as Select from '@radix-ui/react-select';
3−import { PostFilter, PostType } from '../types/seek';
3+import { PostFilter, PostType } from '../types/sphinx';
44
55interface FilterItemProps {
66 title: PostFilter;
ui/src/components/Meta.tsx+1−1
@@ -15,7 +15,7 @@ export const Meta = ({ className }: MetaProps) => {
1515 useEffect(() => {
1616 if (!version) {
1717 api.scry<ChargeUpdateInitial>(scryCharges).then(charges => {
18− const version = charges.initial.seek?.version;
18+ const version = charges.initial.sphinx?.version;
1919
2020 if (version) {
2121 setVersion(version);
ui/src/components/SearchList.tsx+1−1
@@ -1,6 +1,6 @@
11import cn from 'classnames';
22import React from 'react';
3−import { Listing } from '../types/seek';
3+import { Listing } from '../types/sphinx';
44
55interface SearchListProps {
66 listings: Listing[];
ui/src/pages/Post.tsx+2−2
@@ -6,7 +6,7 @@ import { MultiValue } from 'react-select';
66import api from '../api';
77import { Filter } from '../components/Filter';
88import { Option, TagField } from '../components/TagField';
9−import { Declare, Post as PostForm } from '../types/seek';
9+import { Declare, Post as PostForm } from '../types/sphinx';
1010
1111export const Post = () => {
1212 const navigate = useNavigate();
@@ -28,7 +28,7 @@ export const Post = () => {
2828
2929 const onSubmit = useCallback((values: Omit<PostForm, 'tags'>) => {
3030 api.poke<Declare>({
31− app: 'seek',
31+ app: 'sphinx',
3232 mark: 'declare',
3333 json: {
3434 reach: 'friends',
ui/src/pages/Search.tsx+2−2
@@ -4,7 +4,7 @@ import debounce from 'lodash.debounce';
44import { SearchInput } from '../components/SearchInput';
55import { SearchList } from '../components/SearchList';
66import { useQuery } from 'react-query';
7−import { PostFilter, PostType, Search as SearchType } from '../types/seek';
7+import { PostFilter, PostType, Search as SearchType } from '../types/sphinx';
88import api from '../api';
99import { Link, useNavigate, useParams } from 'react-router-dom';
1010import { Paginator } from '../components/Paginator';
@@ -40,7 +40,7 @@ export const Search = () => {
4040 const pageInt = parseInt(page || '1', 10) - 1;
4141 const start = pageInt * size;
4242 const { data } = useQuery<unknown, unknown, SearchType>(`lookup-${selected}-${lookup}-${size}-${start}`, () => api.scry<SearchType>({
43− app: 'seek',
43+ app: 'sphinx',
4444 path: `/lookup/${selected}/${encodeLookup(lookup)}/${start}/${size}`
4545 }), {
4646 enabled: !!lookup,
ui/src/types/seek.ts → ui/src/types/sphinx.tsrenamed

The content is the same.

ui/vite.config.ts+1−1
@@ -9,6 +9,6 @@ export default ({ mode }) => {
99 console.log(SHIP_URL);
1010
1111 return defineConfig({
12− plugins: [urbitPlugin({ base: 'seek', target: SHIP_URL, secure: false }), reactRefresh()]
12+ plugins: [urbitPlugin({ base: 'sphinx', target: SHIP_URL, secure: false }), reactRefresh()]
1313 });
1414};