mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-09-07 23:22:18 +00:00
![matc-pub](/assets/img/avatar_default.png)
* 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>
34 lines
826 B
JSON
34 lines
826 B
JSON
{
|
|
"compilerOptions": {
|
|
"pretty": true,
|
|
"target": "esnext",
|
|
"module": "esnext",
|
|
"allowSyntheticDefaultImports": true,
|
|
"preserveConstEnums": true,
|
|
"sourceMap": true,
|
|
"moduleResolution": "node",
|
|
"lib": ["es2017", "dom"],
|
|
"types": ["inferno"],
|
|
"jsx": "preserve",
|
|
"noUnusedLocals": true,
|
|
"baseUrl": "./src",
|
|
"noEmit": true,
|
|
"skipLibCheck": true,
|
|
"noUnusedParameters": true,
|
|
"noImplicitReturns": true,
|
|
"experimentalDecorators": true, // false for non-legacy decorators
|
|
"strictNullChecks": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"paths": {
|
|
"@/*": ["/*"],
|
|
"@utils/*": ["shared/utils/*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/shared/build-config.d.ts",
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"node_modules/inferno/dist/index.d.ts"
|
|
]
|
|
}
|