-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ now will scroll to corresponding thread or reply item after route c…
…hanged by invoking `setComponentCustomScrollBehaviour()` from `router/index.ts` + add attr `data-post-id` on dom of thread and reply item to help `<NavSidebar>.scrollStop()` to search dom by t/pid * tweak dom structure and classes to reduce total elements count by a little * fix `luxon.fromSeconds()` will check against parameter type in runtime - remove class `.thread-item`, `.reply-banner` and `.reply-body` since their styles can be replaced by bootstrap helper classes @ ViewList.vue + drop uses of jquery @ scrollStop() which moved from `views/Post.vue` and make it regress to working situation * scroll menu to the link to the reply in <ViewList>, which is nearest to top border of viewport, according to state.firstPostInView @ watchEffect() * rename class `.nav-sidebar-thread-item` to `.posts-nav-thread-item`, also add bootstrap helper classes on it * remove global styles on `.nav-sidebar-thread-item hr` and `.nav-sidebar-thread-item .ant-menu-title-content` * correct types for method navigate() and selectThread() * merge two unrelated watch() into one watchEffect() @ NavSidebar.vue @ components/Posts - remove two legacy watch(), `window.$sharedData` and postsQueryVue previously copied from `postMulti.blade.php` * move scrollStop(Debounce)() and `window.$sharedData.firstPostInView` to <NavSidebar> * move updateTitle() into its only usage fetchPosts() as a scoped block * rename class `.post-render-list-wrapper-placeholder` to shorter `.post-render-list-right-padding` @ views/Post.vue + move logic about scroll to `#page` in scrollBehavior() to views/User.vue, by invoking newly exported `setComponentCustomScrollBehaviour` * cast containersDom to array since `.forEach()` doesn't exist on type HTMLCollection even with `lib.dom.iterable` enabled in tsconfig.json @ router/index.ts @ fe
- Loading branch information
Showing
5 changed files
with
185 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.