Commit graph

74 commits

Author SHA1 Message Date
Daniel Szabo
fedea8b8ab Fix #235
By sending the upload URL back to the browser with a custom header name rather than the standard Location, the browser doesn't get "redirected twice", hence only one GET request made and fixing #235
2024-11-02 12:38:30 +02:00
Dániel Szabó
84e8f5ac5e
Merge pull request #203 from fastfailure/patch-1
Update broken documentation link
2024-10-24 13:55:45 +09:00
Dániel Szabó
92d2ac9c19
Merge pull request #211 from luk1337/luk/fixup
Minor fixups
2024-10-24 13:55:16 +09:00
Dániel Szabó
d6c06c0550
Merge pull request #267 from luochen1990/fix-privacy
Fix privacyDropdown is null issue
2024-10-24 13:48:04 +09:00
LuoChen
5b4ce44743 Fix privacyDropdown is null issue 2024-07-09 19:57:25 +08:00
Timshel
3a256305e7 Upgrade deps 2024-03-13 21:23:24 +01:00
LuK1337
3b0c025e9b Hide "Privacy" if only public is supported 2023-08-11 00:32:29 +02:00
LuK1337
0223ead312 Fix #auth-form background color 2023-08-10 23:15:25 +02:00
LuK1337
c574282601 Unbreak password protected pastes when file upload is disabled 2023-08-10 22:43:14 +02:00
Lan Quil
b65fe28cec
Update broken documentation link
Replace documentation link (https://microbin.eu/documentation) with new one:
https://microbin.eu/docs/intro
2023-07-25 17:45:46 +02:00
Daniel Szabo
7fdc89a48d Disabled ediiting for secrets
Realistically this privacy level should not allow modifying the data, but even if we did support that, the UX would be very annoying - it is better to make a new upload
2023-07-11 21:21:41 +03:00
Daniel Szabo
4a7360b90e Replaced "pasta" on all user-facing places with "upload"
- We understand what a pasta is, but let's avoid the situation when you send a link to your mom that ends with microbin.eu/pasta/dog-bat-cat and they misunderstand it.
- Also replaced /pastalist with just /list
- Internally kept "pasta" instead of "upload" to confuse everyone adopting MicroBin after v2
2023-07-11 20:58:34 +03:00
Daniel Szabo
a46312bf62 Fix upload list on mobile devices
Fixed bug that caused the table on /pastalist to break on narrow screens
2023-07-11 20:33:21 +03:00
Daniel Szabo
c7c54e35b4 Implemented uploader password
Minimal implementation of an auth mode that is read-only unless a password is provided. Enable MICROBIN_READONLY and set MICROBIN_UPLOADER_PASSWORD to try it out.

Fixes #106
2023-07-11 20:04:52 +03:00
Daniel Szabo
638f1bf510 Enabled HTML for footer text
Fixes #110
2023-07-11 19:16:47 +03:00
Daniel Szabo
05126fee68 Improved password protection
- Implemented password protection for removals
- Added success message on password-protected upload creation and editing for clarity
- Made auth page focus password field when it's left empty
2023-07-10 14:19:11 +03:00
Daniel Szabo
6322d6cbb0 Added simple update checker
By parsing some json served by the MicroBin website, MicroBin can now check whether there is a newer version out there, and display the update information on the admin screen.
2023-07-09 14:00:29 +03:00
Daniel Szabo
2e87b41d37 Added file upload progress reporting
The "Save" button will now show file upload progress as a percentage if submission is taking more than 1000 milliseconds
2023-07-08 22:53:21 +03:00
Daniel Szabo
664c4495e0 Fixed pasta creation bug
Fixed a bug that caused new uploads not to save their text content if the server had the encryption features turned off
2023-07-08 21:54:13 +03:00
Daniel Szabo
b051ceff62 Fixed 2 bugs on index.html
- Fixes extra letter "a" before Never Expire option
- Fixes #180
2023-07-08 19:17:19 +03:00
Daniel Szabo
dcc3f37f8c enabled video embedding 2023-07-08 19:16:16 +03:00
Daniel Szabo
6253ede41c Improved client-side file encryption reliability
Still not perfect, but works better with non-text files as well finally. Worked on presenting the proper UI elements as well, as sometimes the wrong download button was showing or the password field was misisng.
2023-07-08 15:47:11 +03:00
Daniel Szabo
5d2007fe32 Added missing Incorrect Password status
Added missing Incorrect Password status to pasta_auth screen when opening client-side encrypted upload
2023-07-08 15:45:00 +03:00
Daniel Szabo
4983ac867d Fix text-only private pastas crashing server
- Fixed a bug that caused encrypted uploads with no file to crash the server, as we tried to decrypt a non-existent file
- Changed wording on pasta auth page
- Removed unused import
2023-07-04 21:56:15 +03:00
Daniel Szabo
352d75f2f6 Update reference to new fabvicon 2023-07-04 19:23:04 +03:00
Daniel Szabo
9cd8f455aa New favicon 2023-07-02 18:26:54 +03:00
Daniel Szabo
2d66c1abf8 Changed MICROBIN_NO_ETERNAL_PASTA to MICROBIN_ETERNAL_PASTA 2023-07-02 13:04:45 +03:00
Daniel Szabo
e05596726b Update guide.html 2023-07-01 21:06:06 +03:00
Daniel Szabo
4ad9d51aaa Removed link to non-existent /about 2023-07-01 20:51:47 +03:00
Daniel Szabo
3a1fc7072a Renamed "How to use" page to Guide page 2023-07-01 20:50:22 +03:00
Daniel Szabo
bc188e3d34 Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.

Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.

Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.

As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.

Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4

Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 19:12:06 +03:00
Egor Tensin
833454b343 Use monospace font in textarea's
This commit makes the textareas (notably, when adding a pasta) use
monospace font (which is in line with other pastebin services and
arguably what the user wants/expects).
2023-05-02 22:38:54 +02:00
Joe Maples
25d199721b Add short_path arg, use it for copy urls 2023-04-12 11:15:19 -04:00
Dániel Szabó
b27ac0831f
Merge pull request #141 from DhruvaSambrani/master
Update header.html to fix extra space
2023-03-26 22:27:14 +03:00
Dániel Szabó
86f18f34d2
Merge pull request #128 from Tyfui90/defect/issue-127-default-expiry-option-never-unselected
default expiry of never selected in dropdown when passed as env var
2023-03-26 22:14:05 +03:00
Daniel Szabo
1c3493202f revert option grouping 2023-03-26 22:13:10 +03:00
Zac
6907bb4f13 bugfix: stored XSS
bugfix: Copy Text is not working when the button Copy Url does not exist.
2023-02-21 09:52:00 +08:00
Dhruva Sambrani
d8d05637db
Update header.html 2023-02-06 13:25:57 +05:30
tyfui90
5773c36699 default expiry of never selected in dropdown when passed as env var 2022-12-05 16:33:33 -08:00
albocc
4fcd4e9e19 Added expiration option for 3 days 2022-11-09 11:57:49 +01:00
Daniel Szabo
edd46eae58 Improved /pasta and /pastalist UX
- adjusted table column widths so buttons dont wrap into next row
- added Open button to url pastas so clicking on their keys redirect to their /pasta view, consistent with the rest of the pastas
- added copy redirect button to /pasta view of url pastas to make it easier to get the /url endpoint url
2022-11-07 20:30: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
b9a6717ba0 Add drag-and-drop to new file attachment button 2022-11-07 00:30:17 +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
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
769901c895 Added copy button for URL redirects
Fixes #80
2022-10-27 17:23:39 +03:00
Dániel Szabó
d2e7234d96 small ui improvements
- fix width for pure html mode
- improve copy button look and placement
- make input field heights more consistent on pasta creation page
2022-10-27 14:12:11 +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
Hayden
b1ccb43855 remove hash 2022-10-22 10:37:43 -08:00