mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 10:51:24 +00:00
No description
e48590b9d6
* Enable @babel/plugin-proposal-decorators Dependency already exists * Use tippy.js delegate addon, cleanup tippy instances from a mixin. The delegate addon creates tippy instances from mouse and touch events with a matching `event.target`. This is initially significantly cheaper than creating all instances at once. The addon keeps all created tippy instances alive until it is destroyed itself. `tippyMixin` destroys the addon instance after every render, as long as all instances are hidden. This drops some tippy instances that may have to be recreated later (e.g when the mouse moves over the trigger again), but is otherwise fairly cheap (creates one tippy instance). * Restore scroll positions when resource loading settles. The history module generates a random string (`location.key`) for every browser history entry. The names for saved positions include this key. The position is saved before a route component unmounts or before the `location.key` changes. The `scrollMixin` tires to restore the scroll position after every change of `location.key`. It only does so after the first render for which the route components `loadingSettled()` returns true. Things like `scrollToComments` should only scroll when `history.action` is not "POP". * Drop individual scrollTo calls * Scroll to comments without reloading post --------- Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> |
||
---|---|---|
.github | ||
.husky | ||
lemmy-translations@b0dab329ce | ||
src | ||
.babelrc | ||
.dockerignore | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitmodules | ||
.prettierignore | ||
.prettierrc.json | ||
.woodpecker.yml | ||
accessibility_tests.sh | ||
cliff.toml | ||
CONTRIBUTING.md | ||
deploy.sh | ||
dev.dockerfile | ||
Dockerfile | ||
generate_translations.js | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
test_deploy.sh | ||
tsconfig.json | ||
update_translations.sh | ||
webpack.config.js |
Lemmy-UI
The official web app for Lemmy, written in inferno.
Based off of MrFoxPro's inferno-isomorphic-template.
Configuration
The following environment variables can be used to configure lemmy-ui:
ENV_VAR |
type | default | description |
---|---|---|---|
LEMMY_UI_HOST |
string |
0.0.0.0:1234 |
The IP / port that the lemmy-ui isomorphic node server is hosted at. |
LEMMY_UI_LEMMY_INTERNAL_HOST |
string |
0.0.0.0:8536 |
The internal IP / port that lemmy is hosted at. Often lemmy:8536 if using docker. |
LEMMY_UI_LEMMY_EXTERNAL_HOST |
string |
0.0.0.0:8536 |
The external IP / port that lemmy is hosted at. Often DOMAIN.TLD . |
LEMMY_UI_HTTPS |
bool |
false |
Whether to use https. |
LEMMY_UI_EXTRA_THEMES_FOLDER |
string |
./extra_themes |
A location for additional lemmy css themes. |
LEMMY_UI_DEBUG |
bool |
false |
Loads the Eruda debugging utility. |
LEMMY_UI_DISABLE_CSP |
bool |
false |
Disables CSP security headers |
LEMMY_UI_CUSTOM_HTML_HEADER |
string |
Injects a custom script into <head> . |