Xylight

joined 1 year ago
MODERATOR OF
[–] [email protected] 2 points 18 hours ago (1 children)

I need to add language settings to communities and profiles. I really dislike how lemmy handles this though.

If you change it in lemmy-ui, it will propagate to Photon because it's an account wide setting.

[–] [email protected] 2 points 1 month ago (1 children)

Photon seems to have a semantic layout that firefox detects as settable into reader mode.

[–] [email protected] 1 points 1 month ago

Photon technically has it but you need to use your own libretranslate instance since I'm not paying for that.

[–] [email protected] 25 points 1 month ago

Hey how did you get my world 😡😡

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (1 children)

Can confirm. AAAAAAAAAAAAA (peaked 39c today)

[–] [email protected] 18 points 2 months ago* (last edited 2 months ago) (2 children)

Snapchat AI only responds in this format:

Compliment! Description of what you just did. *relevant emoji

[–] [email protected] 22 points 2 months ago
[–] [email protected] 2 points 2 months ago

Same happens for me on gboard.

[–] [email protected] 2 points 2 months ago (1 children)

Photon has complete moderator capabilities, what's missing?

[–] [email protected] 3 points 2 months ago (1 children)

Photon is available for any instance at https://phtn.app.

Alexandrite is available for any instance at https://alexandrite.app.

I don't like when instances will host photon for anything other than the default interface, as then it's just a more limited, outdated version of photon and another point of failure.

[–] [email protected] 2 points 2 months ago (1 children)

I was asking about the dev console. I pushed an update that fixes this.

[–] [email protected] 1 points 2 months ago (3 children)

What error do you get?

 

There was like 8 prereleases for this because i kept changing stuff. This is actually going to be from v1.31.1 and v1.31.2.

Biggest changes

Command palette

  • Press / or ctrl + p and start typing to instantly go to a page, switch themes, switch accounts, etc.

Theming changes

  • You can now have multiple presets for themes, and there are 5 default presets. (Default, Classic, AMOLED, Catppuccin, Lightly)
  • Admins can set their own default theme for photon with PUBLIC_THEME.

New markdown renderer

  • Photon now uses svelte-markdown for markdown rendering, which lets me use custom components for markdown.
  • Instead of only style changes, I can run actual code, meaning images can be made expandable and codeblocks can be copyable.

Lots of languages

  • There are a ton of languages thanks to the community.
  • English
  • Hebrew
  • Bulgarian
  • Chinese
  • Dutch
  • Estonian
  • Finnish
  • French
  • German
  • Japanese
  • Polish
  • Portuguese

Minor features

  • New "link actions" menu
    • This will have options for archive sites to bypass paywalls, etc.
    • Media bias action was moved next to here, or in here depending on your selected post style.
  • Allow uploading multiple images at a time
  • Select menus use my own components now, making them more powerful
  • Add infinite scroll to communities too
  • Add uploaded media/voted posts in your profile page
  • Using my own service worker now, so caches should work properly

Other stuff

  • Use sharper icons for readability
 

This is applicable to almost any piece of software with text in it. When starting your new app, you should make sure you are using a separate language file for the strings in your app. This makes text reusable, and you can change it all in one place.

Once your app gains a community, if you did this, you can also get translators!

With Photon i made the massive mistake of hardcoding everything up until the app became massive, and my PR for un-hardcoding all the strings looks like this:

The amount of lines modified in the GitHub PR. 2,067 lines added, 1,082 removed.

It was worth it though! Because the community has translated it into 11 languages!

 

This update is currently available on phtn.app, with a tagged release coming soon. Post navigation is down by 65% and returning from posts is instant.

What's Changed

  • feat: add infinite scroll

    • You can now scroll down infinitely without clicking next!
    • As a bonus, returning from a post page is now instant.
    • Of course, you can turn it off in settings.
    • A virtual list is also used so that infinite posts can be loaded with no performance impact.
  • feat: parse tags from title

    • Tesseract dev and I had the same idea, [tags in brackets] in posts will automatically be converted to a badge/flair. You can click it to search for all posts with that tag in a community.
    • I added options which let you choose flairs to blur posts of or hide.
  • tweak link design

  • improve smaller screen support

  • codebase: move $profile to a derived, immutable store to improve consistency

  • i18n: add new languages/update languages

    • Chinese
    • English
    • Estonian
    • French
    • Finnish
    • German
    • Hebrew
    • Portuguese
  • Update p.darrennathanael.com photon region by @DarrenOfficial in https://github.com/Xyphyn/photon/pull/350

  • Remove empty space left by hideTitle by @sevonj in https://github.com/Xyphyn/photon/pull/352

  • docs: Post component comments by @sevonj in https://github.com/Xyphyn/photon/pull/354

Full Changelog: https://github.com/Xyphyn/photon/compare/v1.30.4...v1.31.0-rc.1

view more: next ›