Commit Graph

253 Commits

Author SHA1 Message Date
timongh
bcbac0853e Fix some type errors in lib/components/style/custom-navbar 2023-02-09 20:16:16 +08:00
timongh
4789110236 Fix type errors when lodash.debounce used in vue component definition 2023-02-09 19:52:02 +08:00
timongh
1ca7edb29e Remove Component's generic parameters 2023-02-09 17:55:20 +08:00
timongh
6a33d760d3 Replace () => import(./TheComponent.vue) to defineAsyncComponent 2023-02-09 17:41:14 +08:00
timongh
8f4f393c87 Use type Component as vue component in src/components/types.ts 2023-02-09 16:55:10 +08:00
timongh
cd1410f9bb Use type Component as vue component in FreshLayoutItem 2023-02-09 13:38:47 +08:00
timongh
cd61a1b85c Use type Component as vue component in TabMappings 2023-02-09 13:28:23 +08:00
timongh
7ed9ced13d Use type Component as vue component in custom-navbar-item.ts 2023-02-09 13:28:22 +08:00
timongh
d24fbdd89a Removed all use of $refs. Instead, use ref() to define component references. 2023-02-09 03:10:06 +08:00
timongh
046957478d Remove mixins in registry/lib/components/style/home-redesign/mixin.ts 2023-02-08 16:26:31 +08:00
timongh
d49d7b8909 Replace nextPageMixin to vue composition style 2023-02-08 03:19:44 +08:00
timongh
366a623008 Replace popupMixin to vue setup 2023-02-07 15:32:00 +08:00
timongh
eb2eba2868 Fix the type of debounceSearchAllList in NavbarFavorites.vue 2023-02-07 14:56:41 +08:00
timongh
f3f7e34a41 Change beforeDestroy to beforeUnmount 2023-02-07 12:07:51 +08:00
timongh
125a0c6595 Removes all uses of the variable Vue in vue2 2023-02-07 11:56:38 +08:00
timongh
88263c9fe4 Add deep: true for array handler in vue watch option 2023-02-07 02:07:48 +08:00
timongh
481ec887ae Replace class name for vue <Transition> component 2023-02-07 01:49:52 +08:00
timongh
6b7caafa95 Replace filters to methods in vue files 2023-02-07 01:14:21 +08:00
timongh
7a91728e29 Remove $listeners and the redundant v-bind="$attrs" 2023-02-07 00:51:23 +08:00
timongh
ab9e5aacaf Update v-model definition to vue3 style 2023-02-05 04:39:29 +08:00
timongh
c07abaaa05 Document all vue events with the emits option. 2023-02-05 02:18:43 +08:00
timongh
6cf93d9175 Fix the issue where prop was being modified in the code. 2023-02-05 01:45:50 +08:00
timongh
cf1af64c06 remove vue-fragment 2023-02-04 18:02:52 +08:00
timongh
d2bfb2a6e1 Change the way Vue instances are created. 2023-02-04 17:45:03 +08:00
timongh
fa6001eb7a All Vue components are defined using defineComponent instead 2023-02-04 01:15:38 +08:00
timongh
185770030d Merge branch 'extend-vue-tsconfig' into update-to-vue3-compat
# Conflicts:
#	registry/lib/components/style/custom-navbar/favorites/FavoritesFolderSelect.vue
#	registry/lib/components/style/custom-navbar/feeds/tabs/next-page.ts
#	registry/lib/components/style/home-redesign/fresh/VideoList.vue
#	registry/lib/components/style/home-redesign/fresh/layouts/blackboard/Blackboard.vue
#	registry/lib/components/style/home-redesign/fresh/layouts/categories/Categories.vue
#	registry/lib/components/style/home-redesign/fresh/layouts/categories/categories.ts
#	registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Default.vue
#	registry/lib/components/style/home-redesign/fresh/layouts/categories/content/RankList.vue
#	registry/lib/components/style/home-redesign/mixin.ts
#	registry/lib/components/utils/black-list/BlackListSettings.vue
#	registry/lib/components/utils/dev-client/Action.vue
#	registry/lib/components/utils/keymap/settings/KeymapSettingsRow.vue
#	registry/lib/components/video/download/inputs/EpisodesPicker.vue
#	registry/lib/components/video/download/inputs/episode-item.ts
#	src/components/SwitchOptions.vue
#	src/components/feeds/VideoCard.vue
#	src/components/settings-panel/ComponentDetail.vue
#	src/components/settings-panel/ComponentOption.vue
#	src/components/settings-panel/ComponentSettings.vue
#	src/components/settings-panel/sub-pages/manage-panel/ManagePanel.vue
#	src/components/settings-panel/sub-pages/online-registry/RegistryItem.vue
#	src/core/toast/ToastCard.vue
#	src/ui/ImagePicker.vue
#	src/ui/TabControl.vue
2023-02-03 22:20:15 +08:00
timongh
06b3f74262 Fix a problem with the this loop definition in NavbarHistory.vue 2023-02-03 14:50:38 +08:00
timongh
6e8f80973a Mark the type of this for search in NavbarHistory.vue
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
2023-02-03 13:48:22 +08:00
timongh
f349c0e9cc Marking types for partially complex mixin
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
2023-02-03 13:43:30 +08:00
timongh
4bb70030b8 Mark more specific types for Object, Array and Function in the props option
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
2023-02-03 13:11:26 +08:00
timongh
accae5d047 Mark [] and {} in the data option with a more specific type
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
2023-02-03 00:05:35 +08:00
timongh
f0d24bd652 Annotate return type of methods in computed option
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
2023-02-02 22:51:08 +08:00
timongh
c2c0b7764b Annotate this type when use lodash.debounce
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
2023-02-02 22:01:39 +08:00
timongh
fadc39fc5c add ts config: noImplicitThis 2023-01-29 18:06:00 +08:00
timongh
1c9e0d0aac
Merge branch 'preview-features' into consistent-type-imports 2023-01-29 01:32:02 +08:00
timongh
7a248529bb Add ts config: importsNotUsedAsValues with corresponding eslint rule 2023-01-29 00:49:17 +08:00
the1812
d5b40b04bc Fix comment styles 2023-01-26 19:48:59 +08:00
the1812
579eab05a3 Fix comment styles 2023-01-26 11:25:43 +08:00
the1812
e0b7d96066 Fix style for gift panel (fix #3243) 2023-01-23 21:40:45 +08:00
the1812
fd7ac36c96 Merge branch 'preview-fixes' into preview-features 2023-01-04 09:03:53 +08:00
Colerar
b9dfeedd74
fix: home rank thirdItem data
(cherry picked from commit f85d90cfac75f009cc1733a88613a063174fb315)
2023-01-04 01:11:55 +08:00
the1812
af72350172 Improve margin 2023-01-03 23:21:41 +08:00
the1812
51ff19f20c Fix comment style with images (fix #3872) 2023-01-03 23:19:27 +08:00
the1812
941bfa8d58 Remove IncompleteSwitchComponentMetadata
* Conflict with InjectMetadata
2022-12-31 15:34:26 +08:00
the1812
79a411b815 Format code 2022-12-30 12:29:31 +08:00
the1812
307d26caa1 Merge branch 'preview-features' into component-option-types 2022-12-30 12:26:54 +08:00
the1812
4ce69b640b Merge branch 'preview-fixes' into preview-features 2022-12-29 23:21:59 +08:00
the1812
469bb6dd04 Update special danmaku styles (fix #3886) 2022-12-29 22:34:33 +08:00
the1812
e4ff5b2ed3 Fix pbp color for old player (fix #3830) 2022-12-29 22:08:23 +08:00
the1812
0ff3140e77 Fix comment styles (fix #3872) 2022-12-14 22:37:45 +08:00