schollz / cowyo Goto Github PK
View Code? Open in Web Editor NEWA feature-rich wiki webserver for minimalists :cow: :speech_balloon:
Home Page: https://cowyo.com/
License: MIT License
A feature-rich wiki webserver for minimalists :cow: :speech_balloon:
Home Page: https://cowyo.com/
License: MIT License
Page refreshes before I can save, encrypt, or use any options
Issue happens to me in IE and CHROME.
E.g. after a dump
Error after running the program, the page is automatically refreshed
Something similar to this: http://notepad.pw/privacy
Log option
Report option
Exporting?
Twitter?
List Title (with link), number of current characters, number of changes, last updated, and the total size on disk (changes + currentText)
Also use /viewall or something
Use Markdown
| Title | Content size | Changes | Total Size |
| --------- |-------------| -----| ------------- |
| col 3 is | right-aligned | $1600 | 0 |
I guess this could be done by storing diffs, or by storing a git internally or something...
Features in v1.0:
For locking... Note password is stored on server.
For encryption.... Note passwords are not stored on server and original text cannot be recovered if password is lost. Also version history will also be destroyed.
For erasing. All versions will be removed and cannot be recovered.
Use boltdb to store key username
and value password
in the bucket users
.
Notes:
Its a PUT request. Will need to apply virus protection. Its easy to do in Gin.
see similar:
https://github.com/dutchcoders/transfer.sh/blob/master/transfersh-server/main.go#L118, https://github.com/dutchcoders/transfer.sh/blob/master/transfersh-server/handlers.go#L293-L369
I think password protection could be done like this:
In an editable page a user can leave a special line, like
<user=zack password=123 public=true>
which has the advantage of not being rendered because its not valid HTML (all invalid HTML is removed on server rendering).
When this is saved into the server, the server will no longer allow anyone to enter the edit page or /list page. Instead it will always redirect to the /view page. If public=false
is set, then the /view page can redirect to a password form for login. If public=true
is set, then the /view page will display normally. In both cases, once the /view page is rendered, the "Edit" button should change to "Edit (with password)", which on click, asks for a password so that the user can go back to edit their page.
Basically I think need to keep track of the connections, as in conn, err := wsupgrader.Upgrade(w, r, nil)
in websockets.go
...
Need to store cookies
Since this icon will only be visible if the socket breaks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.