Commit graph

61 commits

Author SHA1 Message Date
353cb5dfde removed attempt at rewriting in other template system, it's not that important for now 2023-03-04 00:28:57 +01:00
1f2589976d templating rewrite start 2023-03-03 23:52:16 +01:00
1ebbe5d922 added embedded images at pasta view 2023-02-27 00:47:40 +01:00
51751e3ee2 added customizability for /pasta/, /url/ and /raw/ endpoints 2023-02-27 00:18:00 +01:00
56332c61f3 small changes to info thing 2023-02-19 00:46:26 +01:00
7abb3c5d11 added support for use of a custom names file 2023-02-17 23:27:39 +01:00
7d5c70ddd6 Some documentation and cleanup of old, commented out code.
Signed-off-by: Jade <obsidianical@gmail.com>
2023-02-17 22:32:21 +01:00
528a7b6899 cleanup of various clippy lints, bad practices and simplificaiton of some code
Signed-off-by: Jade <obsidianical@gmail.com>
2023-02-17 22:14:43 +01:00
fa67edc8c5 Documented microbin args
Signed-off-by: Jade <obsidianical@gmail.com>
2023-02-17 22:14:08 +01:00
57fd472eda changes like
- xss vuln
- docker shit
+ nix shit
2023-02-17 11:28:09 +01:00
Daniel Szabo
84136f1106 Merge branch 'master' of https://github.com/szabodanika/microbin 2022-11-14 21:43:14 +02:00
figsoda
089bb95c4f cargo fmt 2022-11-09 10:45:53 -05:00
albocc
4fcd4e9e19 Added expiration option for 3 days 2022-11-09 11:57:49 +01:00
figsoda
958466818b apply clippy suggestions 2022-11-08 16:30:16 -05:00
Daniel Szabo
d7f0f9637d Update build date - v1.2.0 is ready 2022-11-07 20:33:33 +02:00
Daniel Szabo
c6e2b026e6 Improved QR code view
- added backlink to pasta page
- added link on QR SVG to its destination
- 404 if incorrect id
- QR code of URL pasta will now redirect to /url endpoint
2022-11-07 20:28:45 +02:00
Daniel Szabo
5854572e87 Reduced QR code size to fit phone screens 2022-11-07 20:26:44 +02:00
Daniel Szabo
5e1fcff979 Fixed a bug that caused url pastas to become plain text pastas 2022-11-07 20:25:42 +02:00
Daniel Szabo
5e2513eb1f Fix empty pasta content showing code field
content has to be "No Text Content" to hide the code field on the pasta view
2022-11-07 00:27:25 +02:00
Daniel Szabo
7522d41919 Fix #88
Apparently if a multipart field contains multiple dashes, it will be read in multiple chunks and these chunks should be concatenated in order to read the entire field correctly.
2022-11-06 23:47:56 +02:00
Daniel Szabo
c6e5c6f018 Merge branch 'master' into szabodanika 2022-11-06 23:21:45 +02:00
Daniel Szabo
2198cbdff9 Getting ready for 1.2 & new site release
- improved support for serving static resources from the binary, now supporting images
- added new logo
- changed save button
- fixed footer attribution text, it is not true anymore that MicroBin is made by myself
- replaced footer GitHub link with microbin.eu link
2022-11-01 20:56:07 +02:00
Heng-Yi Wu
b5da40fbdc
feat: hashids 2022-11-01 21:19:54 +08:00
Daniel Szabo
44b55ae08e Getting ready for 1.2.0 release: many smaller requests implemented
- Implements #7
- Implements #42 and therefore #64
- Improved #53
- Implements #59
- Implements #61
- Implements #63
- Implements #80
- Implements #84
- Added Info page
- Removed Help page
- Bumped version number to 1.2.0
- Fixed a bug where wide mode was still 720px wide
- Created FUNDING.yml
- Reorganised arguments in README.MD and documented new options
- Updated SECURITY.MD
- Added display of last read time and read count
- Increased default width to 800px to make UI less cluttered
- Reorganised index page
- New, better attach file button

I want to spend some time testing these changes and let everyone have a look at them before tagging and releasing new artifacts.
2022-10-29 14:11:55 +03:00
Daniel Szabo
e258bcc2bd
added missing bracket in args.rs 2022-10-25 12:51:59 +03:00
HeapUnderflow
43061699f5
Merge branch 'master' into public-path 2022-10-24 12:57:21 +02:00
Dániel Szabó
3e58ba325a
Merge pull request #70 from hay-kot/feat/implement-copy-button
feat: add copy button to viewer
2022-10-22 21:42:51 +03:00
Dániel Szabó
ec4d764f5a
Merge pull request #71 from hay-kot/feat/add-site-favicon
feat: add site favicon
2022-10-22 21:15:06 +03:00
HeapUnderflow
cfd494f80d
Do not append a second slash when no public path is set 2022-10-12 17:42:42 +02:00
HeapUnderflow
a404f9a997
Allow setting a public url for all paths 2022-10-12 17:13:21 +02:00
Hayden
c39b778234 properly escape content 2022-10-01 20:50:05 -08:00
Hayden
fc3998243b ignore file processing if no_file_upload is true 2022-09-30 22:11:03 -08:00
Hayden
e17b26994f add cli args to disable file upload 2022-09-30 22:10:43 -08:00
Hayden
ef5d07392b add in template and as static resource 2022-09-30 21:52:08 -08:00
Daniel Szabo
05941f0d6f Isolate pasta uploads from database.json by moving them into pasta_data/public/ 2022-07-31 21:49:36 +01:00
Daniel Szabo
7b4cd7c26e Implement upload filename sanitisation 2022-07-31 21:31:35 +01:00
Daniel Szabo
435c07d75e Implement manual deletion behaviour and fix #35 2022-07-31 19:18:07 +01:00
Dániel Szabó
d4d94b61da
Merge pull request #34 from uniqueNullptr2/uniquenullptr2-add-config-from-env
add configuration from env to all clap options
2022-07-25 14:04:26 +01:00
Dániel Szabó
9053211904
Merge pull request #31 from dvdsk/file-size
Adds file size to pasta with an attachment
2022-07-25 13:39:00 +01:00
uniqueNullptr2
35a512680c fix mistype of syntax highlight option 2022-07-20 09:13:31 +02:00
uniqueNullptr2
bcd620ed43 add configuration from env to all clap options 2022-07-20 08:50:23 +02:00
Dániel Szabó
a5d326b679
Merge pull request #30 from dvdsk/master
Fixes #29 and displays pasta list in local timezone
2022-07-15 22:51:26 +01:00
dvdsk
39233e9447
fixes #6 adding the size of the attached file 2022-07-14 01:08:13 +02:00
dvdsk
738e036cb5
pasta times are in systems local timezone 2022-07-13 23:55:28 +02:00
dvdsk
de2cc48f88
fixes #29 (time formating) 2022-07-13 23:54:48 +02:00
FixFromDarkness
fec933c5ec * Revert default address to 0.0.0.0 due to docker usage & compatibility
* Add --bind option to readme & change some examples
2022-07-07 20:08:29 +03:00
FixFromDarkness
cc2dd1e1fe * Add --bind option
* Changed default bind address to localhost
* Fix wrong log text about binding address
2022-07-07 19:45:31 +03:00
Daniel Szabo
ff921dc103 Additional changes to prev. commit 2022-06-04 22:21:22 +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
Daniel Szabo
35d4df2cb8 Fixed a bug where opening private pastas would crash MicroBin 2022-06-03 18:11:14 +01:00