Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Make configs better #129

Merged
merged 8 commits into from
Apr 9, 2024
Merged

Conversation

kuylar
Copy link
Member

@kuylar kuylar commented Feb 20, 2024

Details

Make the configurations easier to use. And some other life changing stuff

Changes proposed

  • Configuration is initialized in startup, loading everything
  • /api/info now puts all the public config data inside a config object
  • The "Message of the Day" can now be more than one messages of the day, showing a random one each time
  • Added LIGHTTUBE_ALERT. When set, it will show a persistent notification at the top of the page (below the search bar). Can be dismissed by the user. Use it for stuff like "going offline @ 3 am tomorrow for maintenance and other excuses"

Notes

NOTHING IS TESTED. I DIDNT EVEN BUILD. MESSAGE FOR FUTURE ME: TEST THIS BRANCH. PLEASE.

@kuylar kuylar added the enhancement New feature or request label Feb 20, 2024
@kuylar kuylar added this to the v3 Rewrite/Update release milestone Feb 20, 2024
@kuylar
Copy link
Member Author

kuylar commented Apr 9, 2024

future me here. tested this branch. 👍

@kuylar kuylar changed the base branch from master to v3dev April 9, 2024 11:10
@kuylar kuylar deleted the branch lighttube-org:v3dev April 9, 2024 14:25
@kuylar kuylar closed this Apr 9, 2024
@kuylar kuylar reopened this Apr 9, 2024
@kuylar kuylar force-pushed the feat/config_and_motd_update branch from d1bab3b to d423237 Compare April 9, 2024 14:47
@kuylar kuylar merged commit a2db9c4 into lighttube-org:v3dev Apr 9, 2024
kuylar added a commit to kuylar/LightTube that referenced this pull request Apr 12, 2024
* Update /api/info to be more extensible
* Parse configs at startup
* Make the error page respect user's theme
* Delete obsolete code
* Bump API version
* Formatting, and change how LIGHTTUBE_MOTD works
* Implement the alert in the page layout
github-merge-queue bot pushed a commit that referenced this pull request Aug 11, 2024
* Make configs better (#129)

* Update /api/info to be more extensible
* Parse configs at startup
* Make the error page respect user's theme
* Delete obsolete code
* Bump API version
* Formatting, and change how LIGHTTUBE_MOTD works
* Implement the alert in the page layout

* CSS updates (#130)

* Fut fixes scroll-to-refresh in mobile
* Update channel pages
* Change how the player sizes itself
* Fix channel header not being centered
* Make YTShorts thumbnails not stretch

* Update the project to .NET 8 (#139)

* .NET 8, part 2 (#141)

* :catresort:
* add primary constructors
* fix ASP0015
* collection init can be simplified fixed
* new expression can be simplified, yes
* wtf is this lmao
* more collections
* death
* more changes that im lazy to describe!

* my child will not create merge conflicts! (#146)

* Localization (#143)

* Localization support
* Add a file for the default localizations
* Make everything use translation keys
* Default to the interface language for LightTube
* Make InnerTube use the language's setting by default
* Add a language switcher setting
* Use the correct version of humanizer to support all languages

* InnerTube v2 update (#153)

* Update InnerTube

* Fix errors and warnings in Utils and Database classes

* Add a GetLocals method since the new InnerTube doesn't have it

* Fix errors in API endpoints

* fix this error i caused

* Fix the errors in the contexts

* Implement recommendations endpoint

* Fix empty ctor excuses

* Reimplement autocomplete

* Fix some API stuff

* Fix contexts

* Fix all controllers except YoutubeController.cs

* Update YoutubeController.cs

* Fix all views

* Disable authorization

* Implement some renderers for the search view

* Move renderer cshtml files to their own directory

* Move ContainerRenderer to its own file

as its mostly the same in multiple places, this should reduce the amount of repeated code

* forgot to update these two

* small css fixes

* Implement the renderers for the watch page

* kuylar vs. her own code, round 2

* New badges!

* Playlist first video IDs

* Shelf titles

* changed like 2 stuff

* Fix playlists

* Round 3

* Round... 4?

* Channel avatars

* idrk why that exploded

* Fix the player box aspect ratio

* Update null renderers

* posts in search

* Implement search chips

* hate css

* Round 5!

* Fix authentication

* Fix namespaces

* Add parserLanguage to where its needed

* Fix the like counter

* Fix ToKMB

* Implement ResolveUrl where needed

* Update the channel header

* Round 6

* Implement the featured tab of the channel

* Implement the shorts tab in channel

* Implement the community tab

* Finish all channel tabs

* fix Utils.cs

* Update LTPlayer

* Fix the custom CSS

* Fix the player returning the wrong video URLs

* Fix the issues in the player

* Fix the wrongly called subscribe button

* Fix search chips

* fix the ugly filters button

* fix the player overflowing sideways on mobile

* Clamp player aspect ratios

* Add a message if only format 18 is available

* Fix the non-JS player overflowing to the side

* Fix nullref in mixes

* Make the mobile comment panel scrollable

* Make the comments not overscroll to the recommendations

* Fix mobile guide z-index

* Add a redirect for /{videoId}

* Fix trailers

* Round- wait we skipped 7? whatever Round 8

* Add UI for trailers

* Fix the HLS manifest url validity checker

* Fix chips

* Fix broken if statements (two of them)

* Fix community posts

* hey look - a place to get a nullreferenceexception!

* Add a small thing

* Remove unused file

* Add the about tab to channels

* Fix the max-lines property

* Make the tagline always max out at a single line. Also make it a normal text instead of a hyperlink to /about

* Fix community posts in search results

* Fix localization in channel posts

* Implement search sidebars

* Final round, if no other bugs come up

* Implement exception renderers

* Make the subscription feed API use renderercontainers

* Add a null check to the playlist panel

* Fix nullrefs in video caching

* Fix nullable ints in the database exploding the playlists

* Fix video player obstructing other elements

* Fix broken html tags in video titles

* Add localization to the premiere trailer text

* Add a &page param to search endpoints

* Make stats in channel about page wider

* Fix playlists

* Fix wrong hyperlinks

* Add editable to PlaylistVideoRendererData

* Fix the avatar in the video player

* Fix titles turning into 6px line of dots and dashes

Even though LTv3 has localization, it won't support morse code

* Remove underline from channel tagline

* RecognitionShelfRenderer

* Update InnerTube for bug fixes

* but we stay silly

* Add movieRenderer

* API: Serialize enums to strings

* API: Make the UserData folllow the rest of the naming scheme

* That breaks the entire program and wipes the database clean. Use JsonProperty instead

* API: Add editable field to playlists

* API: Fix all the nullrefs in the playlist endpoint

* API: Add exact publish date to the subscription feed videos

* Make sure the search page doesnt explode when the sidebar throws an exception

* Fix the trailer screen eating all the mouse events

* Make it so videos without valid HLS manifests has UseHls = false

* Fix the comment headers

* Make the version have the major version in it

* Fix wrong renderer name

* Fix nullref in /api/playlist with LT playlists

* Add video player error messages to the channel page

* Fix messagerenderer in playlist sidebar

* Implement all sidebars

* Add query corrector

* guess whos stupid

* Fix playlist APIs

* Fix channel continuation API

* Bump InnerTube

* Fix MPD manifests

* Fix the whole video page crashing if there are no storyboards

* yea

* Delete the nojs quality switcher as YouTube now only provides itag 18

* Add the new shelf renderer

* Fix the promoted video player

* Fix the age restriction button

* [V3] Final Frontend Fixes (#160)

* Fix wrong translation value in /settings/account

* Fix the search chip color

* implement adblock

* Update README (#159)

* Update screenshots

* Update README.md

* Replace the instance list with notes to move to the new list

* jesus christ how old is this file i should remove this

* Outdated comments

* Linking to the old repository

* While I'm at it, close this PR

* README update again

---------

Co-authored-by: InF <inftord@inftord.tech>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant