Commit graph

35 commits

Author SHA1 Message Date
Daniel Szabo
ff921dc103 Additional changes to prev. commit 2022-06-04 22:21:22 +01:00
Daniel Szabo
fe013d9d85 Merge branch 'master' of https://github.com/szabodanika/microbin 2022-06-04 21:52:27 +01:00
Daniel Szabo
be3ac27920 Quick patch:
- Changed 302 responses to 200 where needed
- Fixed a bug where expiring pastas cause MicroBin to crahs
- Fixed a bug where water.css didn't have the correct MIME type
- Fixed a bug where missing doctype declaration caused styling issues in Firefox
2022-06-04 21:50:34 +01:00
Dániel Szabó
2f13a0e8e7
Create FUNDING.yml 2022-06-04 17:03:14 +01:00
Daniel Szabo
35d4df2cb8 Fixed a bug where opening private pastas would crash MicroBin 2022-06-03 18:11:14 +01:00
Daniel Szabo
4cc737731a Multiple enhancements and bugfixes
!Breaking change! - The updated version will not be able to read your old database file

Major improvements:
- Added editable pastas
- Added private pastas
- Added line numbers
- Added support for wide mode (1080p instead of 720p)
- Added syntax highlighting support
- Added read-only mode
- Added built-in help page
- Added option to remove logo, change title and footer text

Minor improvements:
- Improved looks in pure html mode
- Removed link to GitHub repo from navbar
- Broke up 7km long main.rs file into smaller modules
- Moved water.css into a template instead of serving it as an external resource
- Made Save button a bit bigger
- Updated README.MD

Bugfixes:
- Fixed a bug where an incorrect animal ID in a request would cause a crash
- Fixed a bug where an empty or corrupt JSON database would cause a crash
2022-06-03 17:24:34 +01:00
Daniel Szabo
1c873d23b5 Merge remote-tracking branch 'origin/master' 2022-05-09 22:36:18 +01:00
Daniel Szabo
cd2eea30ce Bugfix - #11
Also changed expiration date to show "Never" instead of unix epoch in the pasta list, and renamed a few variables in animalnumbers.rs to make the function more readable.
2022-05-09 22:36:13 +01:00
Dániel Szabó
25b1b649d8
Merge pull request #12 from szabodanika/add-docker
Docker support
2022-05-09 22:27:02 +01:00
Daniel Szabo
2983a01bc6 Docker support
Added Dockerfile and changed address bind from 127.0.0.1 to 0.0.0.0
2022-05-09 22:23:51 +01:00
Dániel Szabó
9e4940eb44
Update README.MD 2022-05-08 19:02:04 +01:00
Daniel Szabo
c9cf87e02b Updated README and index.png 2022-05-08 17:10:19 +01:00
Daniel Szabo
1e6bc916b8 missing dependencies from previous commit 2022-05-08 16:37:54 +01:00
Daniel Szabo
fe926086c2 CLI Args extension and file management fix
- added cli param to change threads used by server
- added cli param hide html header and/or footer
- added cli param to remove css styling
- added cli param to set http basic auth username and optionally password for the server
- file pastas now delete the files from the disk as well when they expire
2022-05-07 22:30:57 +01:00
Dániel Szabó
fc63b7aa1a
Update README.MD 2022-05-02 18:23:29 +01:00
Dániel Szabó
757f73ec5b
Merge pull request #5 from szabodanika/file-upload
File upload and persistence extension
2022-05-02 16:58:35 +01:00
Daniel Szabo
36fa6598a8 File upload and persistence extension
- index.html extended with form input
- pasta.html and pastalist.html show link to /file/{pasta.id}/{filename} path
- files are saved in pasta_data folder
- all data is now stored in pasta_data/database.json
- changed pastalist.html date format to exclude year
- added custom 404 error handler
2022-05-02 16:53:10 +01:00
Dániel Szabó
354cd1832a
Merge pull request #1 from szabodanika/add-license-1
Create LICENSE
2022-04-27 16:08:04 +01:00
Dániel Szabó
7da95d2d11
Create LICENSE 2022-04-27 16:00:53 +01:00
Dániel Szabó
c98aad7256
Create rust.yml 2022-04-25 23:27:58 +01:00
Dániel Szabó
1ffed2b9bf
Create rust-clippy.yml 2022-04-25 23:27:14 +01:00
Dániel Szabó
ca6ba88fe4 Merge remote-tracking branch 'origin/master' 2022-04-23 17:06:52 +01:00
Dániel Szabó
3d047eeed5 - added water.css 2022-04-23 17:06:48 +01:00
Dániel Szabó
6e6a9bfe9e
Removed old regex import 2022-04-23 17:05:29 +01:00
Dániel Szabó
dd9648cd2e
Update README.MD 2022-04-23 16:57:45 +01:00
Dániel Szabó
1c7b4f4b3a
Update README.MD 2022-04-23 16:50:45 +01:00
Dániel Szabó
460ac55cb3 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	README.MD
2022-04-23 16:49:06 +01:00
Dániel Szabó
f56ffa98e4 - added new pasta type URL and automatic redirection endpoint
- added water.css styling
- added CL argument to set port
- added raw URL to pasta list
2022-04-23 16:47:36 +01:00
Dániel Szabó
a3915fed76
Updated README.MD with cURL instructions 2022-04-11 19:31:56 +01:00
Dániel Szabó
4ee064b834
Update README.MD 2022-04-11 19:14:00 +01:00
Dániel Szabó
e8b0e3a482 Updated README.MD with instructions 2022-04-11 14:48:11 +01:00
Dániel Szabó
22b61fc793 Added auto removal of expired pastas 2022-04-11 14:41:28 +01:00
Dániel Szabó
5bae4310a3 Added README.MD 2022-04-11 14:40:21 +01:00
Dániel Szabó
0754998d22 Added README.MD 2022-04-11 14:38:49 +01:00
Dániel Szabó
d42a361e95 Initial commit 2022-04-10 23:21:45 +01:00