Controller:Api
Add:
- controller
- routes
- stats handler
Config: include info URLs
- privacy policy
- source code
cvcv.sh: usage: explain RANDID
README.md: install cvcv utility
Home: show total pastes and walls count
Search: add bar and search.html
First experimental search. Using SQL LIKE on a BYTEA. Case sensitive.
It's very bad.)
cvcv.sh: support fetching pastes
paste.controller.go: 400 on bad RandID length
view.html: paste stats
- number of bytes
- number of linefeeds))
view_wall.html: show pastes count
Use goview for template rendering
Gin multitemplate was giving me an headache.
Goview makes it easy to reuse "partials".
Now the RandID length is selected with a select input.
Little restyling.
Lower the min RandId length to 4
Charset of 30 elements gives 810000 IDs.
paste.controller.go: handle .txt extention
Now the plain text page is returned either when the query string param
`raw` has value `y` or when the RandId has extention `.txt`.
The "raw" button now links to the txt URL.
Template: textarea: font-monospace
README.md: list communities
Templates: format dates as RFC3339
Show only first 8 chars of RandIDs
Also style with font-monospace.