Xylight

joined 1 year ago
[–] Xylight@lemm.ee 2 points 1 week 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.

[–] Xylight@lemm.ee 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.

[–] Xylight@lemm.ee 2 points 2 months ago (1 children)

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

[–] Xylight@lemm.ee 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
[–] Xylight@lemm.ee 4 points 2 months ago* (last edited 2 months ago) (1 children)

Wow, the new FCC law made comcast raise my generous 10Mbps upload to 25Mbps! It's $80/mo for this shit.

[–] Xylight@lemm.ee 4 points 3 months ago

Extrapolation takes quite a while, and there are other benefits to having a language file, like reusability.

 

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!

[–] Xylight@lemm.ee 3 points 3 months ago

i played valorant then tried cs2 and preferred that, and as a benefit it runs on linux

[–] Xylight@lemm.ee 3 points 3 months ago* (last edited 3 months ago) (3 children)

How could I fight with the truth? Gonna need a different argument.

[–] Xylight@lemm.ee 5 points 3 months ago (5 children)

i'm tempted to make a stupid feature where it turns into an ace attorney fight after about 15 comments of depth.

[–] Xylight@lemm.ee 1 points 3 months ago

Other instances have updated just fine, the most common issue being nginx header buffers being too low.

[–] Xylight@lemm.ee 3 points 3 months ago (1 children)

I contacted them about it.

[–] Xylight@lemm.ee 4 points 3 months ago

hello fellow client dev

 

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 ›