Skip to content

Releases: BBaoVanC/bobashare

v0.2.11

22 Sep 06:11
v0.2.11
42019ee
Compare
Choose a tag to compare

v0.2.11 - 2024-09-22

Bugfixes

  • Fix uncaught error if network connection drops in failed upload
    • This was also causing the popup error dialog not to be shown

API (minor, non-breaking) Changes

  • Use plaintext response to invalid routes on /api
    • Instead of default HTML template response, send a plaintext error message
      which is easier to deal with or read, i.e. when using curl directly.
    • This message is not considered part of the stable API! Please do not match
      it directly in API clients; read the error code (404) in the response
      instead.

Visual Tweaks

  • Add extra info bar to display page to show upload ID and view raw button
    (fixes #4)
    • Browsers do not display the URL in an unambiguous font, so it can be hard to
      read the upload id by eye. Add a second bar so the id is displayed in a
      monospace font in the page body. Also make the filename monospace font so it
      is easy to read too. Two bars gives more space, so add a "View raw" button
      which is good for copy-pasting the entire file.
  • Make current navbar selection white instead of blue and add margin below top
    bar on main upload page
    • This makes it easier to distinguish the "Upload" navbar item from the file
      upload form, so users are less likely to accidentally click it when trying
      to upload the current selected file.
  • Fix filename not being vertically aligned on display page
  • Set color-scheme: dark to make native elements use dark mode (partial fix for
    #7)
    • This fixes the arrows looking light on the number input for expiry, but not
      the weird-looking pseudo-skeumorphic dropdown select box for the expiry unit
      on Safari.

Internal Changes

  • Destructure State directly in URL handler function parameters to clean up
    state.0 usage
  • Remove redundant struct construction in From<Arc<AppState> for TemplateState
    • Exactly identical code was used in both the From<Arc<AppState>> and
      From<&AppState> impl's to construct TemplateState; instead, just call
      the From<&AppState> impl from the From<Arc<AppState>> to remove the
      redundancy.
  • Remove obsolete leftover TemplateState::icon method
  • Remove unnecessary allow(unused_variables) in views::display::string_is_true
    • Replace it with an underscore expression

Testing

  • Add cargo-public-api test that fails if public API changes

Full Changelog: v0.2.10...v0.2.11

v0.2.10

08 Aug 04:16
v0.2.10
d9b4868
Compare
Choose a tag to compare
  • Upgrade dependencies
  • Replace duration_str with simple regex implementation
    • This means that you can no longer use sums of durations (ie. 1d 5h 20m).
      However, this feature may return in the future.

Documentation

  • Fix indentation in bobashare_web::Cli list
  • Fix headline for static_routes module

Full Changelog: v0.2.9...v0.2.10

v0.2.9

10 Mar 06:18
1d210a2
Compare
Choose a tag to compare
  • Add rustdoc via GitHub Pages
  • Add basic documentation
  • Upgrade dependencies

Full Changelog: v0.2.8...v0.2.9

v0.2.8

18 Sep 21:46
388161d
Compare
Choose a tag to compare
  • Fix Docker image by upgrading Debian

Full Changelog: v0.2.7...v0.2.8

v0.2.7

18 Sep 21:35
600ed78
Compare
Choose a tag to compare
  • Upgrade dependencies

v0.2.6

18 Sep 21:17
bc1a846
Compare
Choose a tag to compare
  • Upgrade dependencies

v0.2.5

11 Apr 21:46
1f39767
Compare
Choose a tag to compare
  • Update dependencies
    • axum fixed a performance regression in v0.6.13

v0.2.3

06 Mar 22:31
705fcf0
Compare
Choose a tag to compare

Fixed

  • Return 404 instead of 500 on /raw/:id when upload can't be found (85fc176, d7ce776)

Misc

v0.2.2

01 Feb 02:00
v0.2.2
4447c75
Compare
Choose a tag to compare

Added

  • Display version of bobashare (from Cargo.toml) on footer (9d646d1)
  • Hover tooltip for limits in footer (file size in bytes, max expiry in seconds) (24af218)

Fixed

  • Better keyboard support on JS-powered links (delete/cancel upload buttons) (cfc2818)
    • rather than make the keypress event trigger the click event, just set an href and click magically works
  • Properly pluralize human durations (if 1 of the unit) (113e257)
  • Return an error when cleaning up an upload with unknown metadata version instead of deleting it (f29996c)

v0.2.1

21 Jan 22:46
v0.2.1
623c29f
Compare
Choose a tag to compare

Added

  • Log a message when ErrorResponse is return from a view (24424bd)

Changed

  • Override Content-Type header if the file is valid UTF-8 (plaintext) (5f382f6 and 900fae6)
  • Replace chrono-humanize dependency with simple logic for English durations (04b90eb and 4d6f3dc)
    • See bobashare_web::views::filters::humanduration

Fixed

  • Change upload page text from "Click or drop files here" to "Click to select files" because you cannot actually drop files currently. (7cc7197)

Commits: v0.2.0...v0.2.1