sheodox

joined 2 years ago
MODERATOR OF
[–] sheodox 1 points 2 days ago (1 children)

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 4 points 2 days ago

Good to know!

I can see how many unique users view the site in 1, 7, or 30 days, and I think after a year of no updates the 7 day average is pretty close to what it was still. Nice to see so many people liking my site!

[–] sheodox 2 points 2 days ago* (last edited 2 days ago)

Thanks!! Yeah, though I'm not sure how I want to do that yet (since I like programming every bit myself if I can). I'll keep thinking about it.

 

cross-posted from: https://lemmy.world/post/25135715

alexandrite.app - [email protected] - Github

Hey, got some new updates for ya!

I added instance blocking, and completely redesigned the page for managing blocks. For all three categories you're able to search, so you don't have to go to someone's profile or find a post by them to find a block button to click. Honestly this page looked awful before, the sizing was weird, if you blocked something with a long name the 'unblock' buttons would be huge. I mostly copied the features available on lemmy-ui (like the searching, and the fact that instance blocks are a thing now).

screenshot of the blocks page

Tooltips in a couple places got some big upgrades!

User tooltips now show the full 'address' of the user (which it did before, but it wasn't super obvious what you were looking at), and you can now see when they made their account.

screenshot of the tooltip shown when hovering over a link to a user

Community tooltips got the same address/origin date.

screenshot of a tooltip shown when hovering over a link to a community

When you hover over a crosspost link it additionally shows the crosspost's title, who posted, when, the score, and comment counts. This should make it a lot easier to see where other discussion is actually happening.

screenshot of a crosspost tooltip showing a different post title

The card layout has a new feature, a nice frosted glass background. This looks similar to how Photon renders its link previews. If you're not familiar with it, this is what I'm talking about.. The effect is fairly subtle because it stretches over the entire card and it could be distracting, I wanted to make sure a fully white image wouldn't make the text too hard to read.

It's on by default, but you can turn it off with the "Frosted glass background" checkbox in Alexandrite settings when your Feed Post Layout is set to Cards if you'd like. If you're curious how it's done, it loads a low resolution thumbnail, places it with a low opacity behind the card, and blurs it so it's less distracting and hides how pixelated it is. It works because all the gray background colors on the site (like all the gray backgrounds on cards) are transparent so when stacked on other gray backgrounds there's always a contrast in color without any extra work. If you don't want to load extra images just for this, or if the blur makes the site lag on a low spec device (didn't notice any impact on my pc), then you might want to turn this setting off.

Screenshot of a card showing a photo of a bunny in some very green grass, the colors from the image are visible

Besides that, I bumped the node version the docker image uses, and I think that's about it.

Let me know if there's any features Alexandrite is missing that you'd really like! Especially interested in features you want that the default Lemmy UI has that I haven't added yet (like instance blocks until now, community creation/editing, emojis, user/community search when typing a @ or ! in the markdown editor, etc).

 

alexandrite.app - [email protected] - Github

Hey, got some new updates for ya!

I added instance blocking, and completely redesigned the page for managing blocks. For all three categories you're able to search, so you don't have to go to someone's profile or find a post by them to find a block button to click. Honestly this page looked awful before, the sizing was weird, if you blocked something with a long name the 'unblock' buttons would be huge. I mostly copied the features available on lemmy-ui (like the searching, and the fact that instance blocks are a thing now).

screenshot of the blocks page

Tooltips in a couple places got some big upgrades!

User tooltips now show the full 'address' of the user (which it did before, but it wasn't super obvious what you were looking at), and you can now see when they made their account.

screenshot of the tooltip shown when hovering over a link to a user

Community tooltips got the same address/origin date.

screenshot of a tooltip shown when hovering over a link to a community

When you hover over a crosspost link it additionally shows the crosspost's title, who posted, when, the score, and comment counts. This should make it a lot easier to see where other discussion is actually happening.

screenshot of a crosspost tooltip showing a different post title

The card layout has a new feature, a nice frosted glass background. This looks similar to how Photon renders its link previews. If you're not familiar with it, this is what I'm talking about.. The effect is fairly subtle because it stretches over the entire card and it could be distracting, I wanted to make sure a fully white image wouldn't make the text too hard to read.

It's on by default, but you can turn it off with the "Frosted glass background" checkbox in Alexandrite settings when your Feed Post Layout is set to Cards if you'd like. If you're curious how it's done, it loads a low resolution thumbnail, places it with a low opacity behind the card, and blurs it so it's less distracting and hides how pixelated it is. It works because all the gray background colors on the site (like all the gray backgrounds on cards) are transparent so when stacked on other gray backgrounds there's always a contrast in color without any extra work. If you don't want to load extra images just for this, or if the blur makes the site lag on a low spec device (didn't notice any impact on my pc), then you might want to turn this setting off.

Screenshot of a card showing a photo of a bunny in some very green grass, the colors from the image are visible

Besides that, I bumped the node version the docker image uses, and I think that's about it.

Let me know if there's any features Alexandrite is missing that you'd really like! Especially interested in features you want that the default Lemmy UI has that I haven't added yet (like instance blocks until now, community creation/editing, emojis, user/community search when typing a @ or ! in the markdown editor, etc).

[–] sheodox 2 points 4 days ago (1 children)

Ooo I love it! What lens did you use? I bought a cheap old Pentax lens that has some cool looking chromatic aberration like on the branches in your photo and I love it.

[–] sheodox 8 points 4 days 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.

[–] sheodox 4 points 6 days ago

Not yet but I'll add that eventually.

 

cross-posted from: https://lemmy.world/post/24943349

alexandrite.app - [email protected] - Github

This time it's mostly UI changes I really wanted to make, and some things people have asked for.

All toolbar toggles and dropdowns are now these nicer looking dropdowns. They look a lot more consistently sized, everything has a label I also added "Moderator View" into that new dropdown.

screenshot of top level feed dropdowns

The search page looks way nicer now, here's the before:

old search page toolbar

And now:

new search page toolbar

Added an option that lets you toggle between relative and absolute dates

absolute date screenshot relative date screenshot

Added an option for completely white/black backgrounds

pure light/dark theme setting

 

alexandrite.app - [email protected] - Github

This time it's mostly UI changes I really wanted to make, and some things people have asked for.

All toolbar toggles and dropdowns are now these nicer looking dropdowns. They look a lot more consistently sized, everything has a label I also added "Moderator View" into that new dropdown.

screenshot of top level feed dropdowns

The search page looks way nicer now, here's the before:

old search page toolbar

And now:

new search page toolbar

Added an option that lets you toggle between relative and absolute dates

absolute date screenshot relative date screenshot

Added an option for completely white/black backgrounds

pure light/dark theme setting

[–] sheodox 4 points 1 week ago

Ah right, totally forgot about that. It'll be in the next release!

 

cross-posted from: https://lemmy.world/post/24823273

Smaller release, mostly focused on some styling changes and easy features.

In the settings you can now set a default comment sort, also added "Controversial"

screenshot showing the default comment sort setting

Now in the community/user sidebar and community search results you will see the full 'address' of a community/user. Clicking the text or the button on the right side copies it to your clipboard. In search results this makes it a lot easier to see what exactly the community is, not just what the display name says it is.

screenshot of a community sidebar

screenshot of a community search for 'games'

When viewing the inbox, the "No More Messages" message has a "View Read" button, so if you wanted to view an already read notification you've got a nice big button to get there.

screenshot of an empty inbox

Buttons in the community header aren't transparent anymore so they're easier to see if the banner's image is busy.

screenshot of the header of a community

 

Smaller release, mostly focused on some styling changes and easy features.

In the settings you can now set a default comment sort, also added "Controversial"

screenshot showing the default comment sort setting

Now in the community/user sidebar and community search results you will see the full 'address' of a community/user. Clicking the text or the button on the right side copies it to your clipboard. In search results this makes it a lot easier to see what exactly the community is, not just what the display name says it is.

screenshot of a community sidebar

screenshot of a community search for 'games'

When viewing the inbox, the "No More Messages" message has a "View Read" button, so if you wanted to view an already read notification you've got a nice big button to get there.

screenshot of an empty inbox

Buttons in the community header aren't transparent anymore so they're easier to see if the banner's image is busy.

screenshot of the header of a community

[–] sheodox 2 points 1 week ago

Thank you! Glad you like it!

[–] sheodox 6 points 1 week ago

This was the most glaring missing basic feature for so long, glad it's finally in, I don't have to go back to the default ui just to write my announcement posts anymore. It wasn't possible to upload images from third party websites last time I was actively working on Alexandrite, and I think it's been possible for quite a long time by now and I'm finally getting to it.

 

cross-posted from: https://lemmy.world/post/24730515

alexandrite.app - [email protected] - Github

Finally added image uploading, so this is going to be my first update post with images I'll be able to write all on Alexandrite :D

As mentioned in the post you can now attach images to things, this means both on the post via the file selector like on lemmy-ui:

screenshot of a post creation form with an image attached, filling the url field

Or you can attach images by pasting or using the upload button to insert an image in the markdown editor (post text, comments, etc).

screenshot showing the Manage Uploads dialog on a post's text

You can also set your avatar and banner on the Lemmy tab of Settings

settings page showing a couple of file inputs

Banners on communities and users now show in the feed header instead of a smaller image at the top of the sidebar.

screenshot of the front page of c/amtrak

The sorting of communities when selecting one to make a new post (both the alphabetization of your subscribed communities and the popularity sorting of the search results) is better.

Fixed a 400 error that was happening when viewing modlog actions on a user.

This was the biggest change in quite a while, so please let me know if you have any issues with the update! Thanks for all the support, love hearing people like the stuff I'm making :)

 

alexandrite.app - [email protected] - Github

Finally added image uploading, so this is going to be my first update post with images I'll be able to write all on Alexandrite :D

As mentioned in the post you can now attach images to things, this means both on the post via the file selector like on lemmy-ui:

screenshot of a post creation form with an image attached, filling the url field

Or you can attach images by pasting or using the upload button to insert an image in the markdown editor (post text, comments, etc).

screenshot showing the Manage Uploads dialog on a post's text

You can also set your avatar and banner on the Lemmy tab of Settings

settings page showing a couple of file inputs

Banners on communities and users now show in the feed header instead of a smaller image at the top of the sidebar.

screenshot of the front page of c/amtrak

The sorting of communities when selecting one to make a new post (both the alphabetization of your subscribed communities and the popularity sorting of the search results) is better.

Fixed a 400 error that was happening when viewing modlog actions on a user.

This was the biggest change in quite a while, so please let me know if you have any issues with the update! Thanks for all the support, love hearing people like the stuff I'm making :)

[–] sheodox 1 points 1 week ago (1 children)
 

and here's the wide one

2
alexandrite post (lemmy.world)
submitted 1 week ago by sheodox to c/sheodox_test
 
0
another try (lemmy.world)
submitted 1 week ago by sheodox to c/sheodox_test
 
-1
another test (lemmy.world)
submitted 1 week ago by sheodox to c/sheodox_test
 
[–] sheodox 3 points 2 weeks ago

Glad there are people still here enjoying it! :)

Next update will include image uploading, here's a preview:

screenshot of a comment with an image upload, a "manage uploads" dialog is open

view more: next ›