Compare commits

...

2 Commits

Author SHA1 Message Date
yung calibri
478b99b1aa v0.6.0 2023-08-30 10:39:46 -04:00
yung calibri
486bb62f72 move everything to desk subfolder 2023-08-26 10:49:23 -04:00
98 changed files with 56 additions and 5 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tgt*

41
README.md Normal file
View File

@ -0,0 +1,41 @@
# Prism
A URL shortener for your Urbit.
-----
## Usage
Boot it up, open the web UI at /apps/prism. Interactions are all documented
there.
Use `direct` to create a redirect.
```
dojo> :prism|direct ~.dev 'https://developers.urbit.org/'
```
Use `defect` to disable an existing redirect.
```
dojo> :prism|defect ~.dev
```
Use `renege` to re-enable a previously disabled redirect.
```
dojo> :prism|renege ~.dev
```
Use `delete` to delete a redirect.
```
dojo> :prism|delete ~.dev
```
-----
## Development
This is very much a work in progress. I don't have any special insight
into who's using the app, what they're using it for, or what could be
improved to make it better for users. So if you have a suggestion,
please do create an issue for it.
I'm working on a way to provide feedback directly from within the web
UI, but that's still a little ways off.

View File

@ -309,7 +309,8 @@
=type "text"
=pattern "[a-zA-Z-._~]+"
=required ""
=placeholder "vienna";
=placeholder "vienna"
=style "color: #f95";
==
;label
; To:
@ -351,9 +352,8 @@
}
code {
font-family: 'Cousine', monospace;
padding-inline: 0.25ch;
padding: 0.25ch;
margin-inline: 0.25ch;
padding-block: 0.25ch;
margin-block: calc(-1 * 0.25ch);
border-radius: 0.25ch;
background-color: #335;
@ -375,6 +375,7 @@
padding-block: 0.25rem;
color: inherit;
filter: brightness(110%);
cursor: pointer;
}
button.danger {
background-color: #a32;
@ -386,6 +387,14 @@
border-style: solid;
filter: brightness(90%) contrast(120%);
}
input {
background-color: #335;
color: inherit;
font-size: inherit;
font-family: 'Cousine', monospace;
padding: 0.25ch;
border-color: #4e3d54;
}
#usage {
font-family: 'Anybody', sans-serif;
font-size: 11pt;
@ -450,8 +459,8 @@
background-color: inherit;
border-color: darkgray;
}
.shortlink.new {
margin-block-start: var(--s4);
.shortlink.new input[name=toward]{
inline-size: 35ch;
}
.shortlink.new h3 {
margin-top: 0;