Skip to content

Commit

Permalink
add design note
Browse files Browse the repository at this point in the history
  • Loading branch information
qnkhuat committed Sep 3, 2022
1 parent 3f12d58 commit fb3f0b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions DESIGN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Some note on design
- when users select text, automatically display a popup to whether highlight or add note
- Note display
- It's best to display the note on the right of the whole text paragraph
- but I guess since our app needs to be universal, then maybe only display note when user click on the highlight?
- starts with simple: add/delete no edit for now
- I think the hard stuff is how to have a component to wrap text that can trigger events? like the hyper-annotation from memex
6 changes: 3 additions & 3 deletions dev/src/scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
http POST localhost:8000/api/session [email protected] password=Ubinote@123

### Call with session
export SESSION={the_session}
http localhost:8000/api/page Cookie:ubinote.SESSION=${SESSION}
export SESSION='ubinote.SESSION={the_id}'
http localhost:8000/api/page Cookie:${SESSION}

### Create page
http POST localhost:8000/api/page Cookie:ubinote.SESSION=${SESSION} url=http://www.paulgraham.com/own.html
http POST localhost:8000/api/page Cookie:${SESSION} url=http://www.paulgraham.com/own.html
1 change: 0 additions & 1 deletion src/ubinote/api/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[ubinote.api.common :as api]
[ubinote.models.user :refer [User]]
[ubinote.models.common.schemas :as schemas]
[cemerick.friend.credentials :as creds]
[schema.core :as s]
[toucan.db :as db]))

Expand Down

0 comments on commit fb3f0b6

Please sign in to comment.