I’m the developer of a desktop-first Lemmy client called Alexandrite.

  • 43 Posts
  • 87 Comments
Joined 2 years ago
cake
Cake day: July 5th, 2023

help-circle


  • It might not help because it’s in svelte and it doesn’t look like you’re using lemmy-js-client, but this is an example of how I do it in Alexandrite using lemmy-js-client. The onPaste function handles the paste event on the markdown editor textarea when someone pastes with an image in their clipboard, and the onFileInputChange is the change event for an <input type="file" /> element so when someone selects a file it uploads and the input’s label can be styled like a button. Here is the client’s fetch function which handles the authorization header and whatnot. You can upload client-side without a proxy server for any instance running a newer version of Lemmy than like… 0.19.0? I didn’t want to be responsible for proxying image uploads so I waited to add image uploading in Alexandrite until I could do the uploads directly client side.






  • sheodox@lemmy.worldtoPhoton@lemdro.idFuture of Photon in 2025
    link
    fedilink
    English
    arrow-up
    10
    ·
    11 months ago

    I recently got back into working on Alexandrite after a little more than a year of no activity/updates, and I’ve been checking out Photon. I’m extremely impressed with what you’ve managed to accomplish while I’ve been gone! I’ve already taken inspiration from your work with some of my recent changes, and will likely copy more of your homework. Like others are saying, don’t sell yourself short! You’ve built one of the best Lemmy frontends out there and I’ve got a lot of catching up to do.

































  • Hey, just wanted to let you know this should be fixed now!

    There are a few moving parts here: instances have a list of all languages it knows about, admins can restrict what can be used on the site (“discussion languages”), and communities can further restrict what languages they allow (if no mods speak Swedish, no use allowing it because you can’t moderate it), and on top of that you can select which languages you use in Lemmy’s settings. Alexandrite now respects all these settings/restrictions.

    Some communities only allow posting in “Undetermined”, and Alexandrite defaults to selecting “English”, so if it was in one of those communities that’s why you were having issues. Should be good now though.