@quicktvui/ai 1.0.9 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/USAGE.md +22 -7
- package/package.json +1 -1
- package/rules/.clinerules +1 -0
- package/rules/.cursorrules +1 -0
- package/rules/.docs/zh-CN/guide/ai/ai-assistant.md +16 -6
- package/rules/.github/copilot-instructions.md +1 -0
- package/rules/.source/hellotv/PROJECT-README.md +52 -0
- package/rules/.source/hellotv/app.d.ts +11 -0
- package/rules/.source/hellotv/package.json +146 -0
- package/rules/.source/hellotv/scripts/build-apk.ts +12 -0
- package/rules/.source/hellotv/scripts/build.ts +35 -0
- package/rules/.source/hellotv/scripts/dev.ts +12 -0
- package/rules/.source/hellotv/scripts/pack.ts +24 -0
- package/rules/.source/hellotv/scripts/process.ts +37 -0
- package/rules/.source/hellotv/scripts/quicktvui-webpack.android.ts +187 -0
- package/rules/.source/hellotv/scripts/quicktvui-webpack.dev.ts +147 -0
- package/rules/.source/hellotv/scripts/webpack-watch.ts +24 -0
- package/rules/.source/hellotv/src/App.vue +192 -0
- package/rules/.source/hellotv/src/api/my/index.ts +198 -0
- package/rules/.source/hellotv/src/api/user/impl-user.ts +52 -0
- package/rules/.source/hellotv/src/api/user/qr-code-mock.ts +2 -0
- package/rules/.source/hellotv/src/api/user/request-url.ts +11 -0
- package/rules/.source/hellotv/src/api/user/user-manager.ts +258 -0
- package/rules/.source/hellotv/src/app.scss +8 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_pause.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_play.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_collect_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_collect_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_full_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_full_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_info_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_info_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_introduction_bg.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_pause.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_placeholder.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_play.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_vip_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_vip_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/skeleton.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_empty.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/history/ic_delete.png +0 -0
- package/rules/.source/hellotv/src/assets/history/ic_empty.png +0 -0
- package/rules/.source/hellotv/src/assets/home/bg_history_item.png +0 -0
- package/rules/.source/hellotv/src/assets/home/bg_shadow.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_logo.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_play_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_subtitle_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_arrow_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_arrow_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_exit_corner.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_exit_header.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_play.png +0 -0
- package/rules/.source/hellotv/src/assets/live/bg-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/bg-play-info.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-arrow-left.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-arrow-right.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-back.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-change.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-corner-vip-tips.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-corner-vip.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-key.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-loading-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu-ext-arrow.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu-ext.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-mine.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-network-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-ok.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing2.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing3.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-service.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic_live_broadcast.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic_live_broadcast_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_collect_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_collect_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_order_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_order_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_record_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_record_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_user.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_vip_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_back.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_back_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear_dark.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_search.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_logo.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_search_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_search_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_user_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_user_normal.png +0 -0
- package/rules/.source/hellotv/src/components/bg-animation.scss +14 -0
- package/rules/.source/hellotv/src/components/bg-animation.vue +176 -0
- package/rules/.source/hellotv/src/components/btn-pack-view.vue +172 -0
- package/rules/.source/hellotv/src/components/btn-pack.scss +53 -0
- package/rules/.source/hellotv/src/components/grid-item-horizontal.vue +203 -0
- package/rules/.source/hellotv/src/components/grid-item-vertical.vue +201 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-config.ts +4 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-control-adapter.ts +378 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-imp.ts +44 -0
- package/rules/.source/hellotv/src/components/media/view/media-loading-component.vue +50 -0
- package/rules/.source/hellotv/src/components/media/view/media-loading-view.vue +154 -0
- package/rules/.source/hellotv/src/components/media/view/media-manager-view.vue +931 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-detail-item.vue +42 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-detail-view.vue +109 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-icon-item.vue +43 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-text-item.vue +27 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-view.vue +88 -0
- package/rules/.source/hellotv/src/components/media/view/media-player-view.vue +408 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-loading.scss +51 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-manager.scss +79 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-menu.scss +114 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-player.scss +6 -0
- package/rules/.source/hellotv/src/components/qt-tabs-component.ts +268 -0
- package/rules/.source/hellotv/src/components/qt-ul-component.ts +792 -0
- package/rules/.source/hellotv/src/components/top-view.scss +38 -0
- package/rules/.source/hellotv/src/components/top-view.vue +114 -0
- package/rules/.source/hellotv/src/config/README.md +22 -0
- package/rules/.source/hellotv/src/config/build-config.ts +22 -0
- package/rules/.source/hellotv/src/config/private-theme-config.ts +21 -0
- package/rules/.source/hellotv/src/config/public-config.scss +16 -0
- package/rules/.source/hellotv/src/config/test.scss +45 -0
- package/rules/.source/hellotv/src/config/theme-config.ts +51 -0
- package/rules/.source/hellotv/src/main.ts +45 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/config.ts +37 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/index.ts +849 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/interface.ts +173 -0
- package/rules/.source/hellotv/src/pages/activity/api/index.ts +36 -0
- package/rules/.source/hellotv/src/pages/activity/api/interface.ts +11 -0
- package/rules/.source/hellotv/src/pages/activity/api/request-url.ts +10 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/focus-change-img-item.vue +40 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/inner-out-title-item.vue +59 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/no-title-item.vue +45 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/placeholder-item.vue +25 -0
- package/rules/.source/hellotv/src/pages/activity/index.vue +219 -0
- package/rules/.source/hellotv/src/pages/activity/scss/index.scss +46 -0
- package/rules/.source/hellotv/src/pages/activity/scss/item.scss +69 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/index.ts +317 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/interface.ts +150 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/media-player.ts +378 -0
- package/rules/.source/hellotv/src/pages/detail/api/index.ts +77 -0
- package/rules/.source/hellotv/src/pages/detail/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-definition.vue +192 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-list-item.vue +108 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-media-series.vue +349 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-order.vue +194 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-speed.vue +192 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/index.vue +404 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-small-view.vue +382 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-view.vue +1099 -0
- package/rules/.source/hellotv/src/pages/detail/components/recommend-item.vue +167 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/basic-section.vue +218 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/config.ts +6 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/header-section.vue +15 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/button-menu.vue +259 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/media-introduction.vue +238 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/media-series.vue +308 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/player-placeholder.vue +88 -0
- package/rules/.source/hellotv/src/pages/detail/index.vue +571 -0
- package/rules/.source/hellotv/src/pages/detail/scss/index.scss +22 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-loading.vue +78 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-menu-view.vue +803 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-view.vue +219 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/index.vue +101 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/scss/full-player-view.scss +6 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/index.ts +0 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/interface.ts +133 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/api/index.ts +77 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-info.vue +263 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-player.vue +42 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-series-section.vue +26 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/recommend-item.vue +167 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/index.vue +163 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/scss/index.scss +41 -0
- package/rules/.source/hellotv/src/pages/device-info/index.vue +106 -0
- package/rules/.source/hellotv/src/pages/device-info/scss/device-info.scss +49 -0
- package/rules/.source/hellotv/src/pages/filter/README.md +66 -0
- package/rules/.source/hellotv/src/pages/filter/adapter/index.ts +180 -0
- package/rules/.source/hellotv/src/pages/filter/adapter/interface.ts +111 -0
- package/rules/.source/hellotv/src/pages/filter/api/index.ts +38 -0
- package/rules/.source/hellotv/src/pages/filter/api/interface.ts +44 -0
- package/rules/.source/hellotv/src/pages/filter/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/index.vue +469 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/list-item-record.vue +16 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/list-item.vue +78 -0
- package/rules/.source/hellotv/src/pages/filter/components/expand/index.vue +83 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/index.vue +81 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter-title.vue +78 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter.vue +68 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-line.vue +11 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-text.vue +43 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-title.vue +14 -0
- package/rules/.source/hellotv/src/pages/filter/config.ts +10 -0
- package/rules/.source/hellotv/src/pages/filter/expand-sidebar-contents.vue +203 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-content-list-item.scss +42 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-content.scss +60 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-expand.scss +30 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-sidebar.scss +45 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter.scss +21 -0
- package/rules/.source/hellotv/src/pages/filter/sidebar-contents.vue +145 -0
- package/rules/.source/hellotv/src/pages/filter/single-contents.vue +61 -0
- package/rules/.source/hellotv/src/pages/history/adapter/index.ts +51 -0
- package/rules/.source/hellotv/src/pages/history/adapter/interface.ts +22 -0
- package/rules/.source/hellotv/src/pages/history/api/index.ts +54 -0
- package/rules/.source/hellotv/src/pages/history/api/interface.ts +41 -0
- package/rules/.source/hellotv/src/pages/history/api/request-url.ts +10 -0
- package/rules/.source/hellotv/src/pages/history/components/confirm-dialog.vue +155 -0
- package/rules/.source/hellotv/src/pages/history/config.ts +8 -0
- package/rules/.source/hellotv/src/pages/history/index-raw.vue +540 -0
- package/rules/.source/hellotv/src/pages/history/index.vue +431 -0
- package/rules/.source/hellotv/src/pages/history/mock.ts +32 -0
- package/rules/.source/hellotv/src/pages/history/scss/history-raw.scss +181 -0
- package/rules/.source/hellotv/src/pages/history/scss/history.scss +148 -0
- package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-adapter.ts +20 -0
- package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-imp.ts +13 -0
- package/rules/.source/hellotv/src/pages/home/adapter/media/create-home-player-interceptor.ts +50 -0
- package/rules/.source/hellotv/src/pages/home/adapter/media/home-media-imp.ts +74 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-adapter.ts +151 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-config.ts +17 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-imp.ts +53 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-item-type.ts +6 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-adapter.ts +1304 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-config.ts +30 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-imp.ts +173 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-item-type.ts +17 -0
- package/rules/.source/hellotv/src/pages/home/api/index.ts +157 -0
- package/rules/.source/hellotv/src/pages/home/api/interface.ts +56 -0
- package/rules/.source/hellotv/src/pages/home/api/request-url.ts +22 -0
- package/rules/.source/hellotv/src/pages/home/components/exit-dialog.vue +148 -0
- package/rules/.source/hellotv/src/pages/home/components/media/bg-player.vue +440 -0
- package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-img-item.vue +39 -0
- package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-text-item.vue +100 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-img.vue +54 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-text.vue +67 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-list-player-item.vue +74 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-player-item.vue +40 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/focus-change-img-item.vue +41 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/history-item.vue +362 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/inner-out-title-item.vue +60 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/no-title-item.vue +46 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/placeholder-item.vue +25 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section-item.vue +80 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section.vue +70 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/small-4k/small-four-section.vue +76 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section-item.vue +90 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section.vue +57 -0
- package/rules/.source/hellotv/src/pages/home/components/waterfall-tabs.vue +1307 -0
- package/rules/.source/hellotv/src/pages/home/index.vue +117 -0
- package/rules/.source/hellotv/src/pages/home/scss/bar-img-item.scss +11 -0
- package/rules/.source/hellotv/src/pages/home/scss/bar-text-item.scss +80 -0
- package/rules/.source/hellotv/src/pages/home/scss/base.scss +8 -0
- package/rules/.source/hellotv/src/pages/home/scss/bg-player-cell-list-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/bg-player.scss +50 -0
- package/rules/.source/hellotv/src/pages/home/scss/cell-player-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/exit-dialog.scss +89 -0
- package/rules/.source/hellotv/src/pages/home/scss/focus-change-img-item.scss +12 -0
- package/rules/.source/hellotv/src/pages/home/scss/home.scss +32 -0
- package/rules/.source/hellotv/src/pages/home/scss/inner-out-title-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/no-title-item.scss +15 -0
- package/rules/.source/hellotv/src/pages/home/scss/placeholder-item.scss +14 -0
- package/rules/.source/hellotv/src/pages/home/scss/short-video-section.scss +59 -0
- package/rules/.source/hellotv/src/pages/home/scss/small-four-section.scss +14 -0
- package/rules/.source/hellotv/src/pages/home/scss/waterfall-tabs.scss +50 -0
- package/rules/.source/hellotv/src/pages/home/scss/world-four-section.scss +106 -0
- package/rules/.source/hellotv/src/pages/introduction/index.vue +227 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-icon-text.vue +35 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-img.vue +16 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-text.vue +16 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/index.vue +266 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/second-list-item.vue +80 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/third-list-item.vue +68 -0
- package/rules/.source/hellotv/src/pages/live/components/player/index.vue +168 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-error.vue +48 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-loading.vue +50 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-tips.vue +125 -0
- package/rules/.source/hellotv/src/pages/live/components/player/tips-icon-text.vue +27 -0
- package/rules/.source/hellotv/src/pages/live/css/menu.css +109 -0
- package/rules/.source/hellotv/src/pages/live/css/player.css +56 -0
- package/rules/.source/hellotv/src/pages/live/index.vue +128 -0
- package/rules/.source/hellotv/src/pages/live/mock/index.ts +263 -0
- package/rules/.source/hellotv/src/pages/live/types/index.ts +42 -0
- package/rules/.source/hellotv/src/pages/login/index.vue +116 -0
- package/rules/.source/hellotv/src/pages/login/scss/login.scss +61 -0
- package/rules/.source/hellotv/src/pages/m-test.vue +84 -0
- package/rules/.source/hellotv/src/pages/my/README.md +87 -0
- package/rules/.source/hellotv/src/pages/my/index.vue +177 -0
- package/rules/.source/hellotv/src/pages/my/my-data-manager.ts +606 -0
- package/rules/.source/hellotv/src/pages/my/my-templates.vue +24 -0
- package/rules/.source/hellotv/src/pages/my/poster/index.vue +98 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-card2.vue +90 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-col.vue +72 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-row.vue +72 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-info.vue +50 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-user.vue +126 -0
- package/rules/.source/hellotv/src/pages/play-test.vue +95 -0
- package/rules/.source/hellotv/src/pages/search/README.md +57 -0
- package/rules/.source/hellotv/src/pages/search/adapter/index.ts +285 -0
- package/rules/.source/hellotv/src/pages/search/adapter/interface.ts +60 -0
- package/rules/.source/hellotv/src/pages/search/api/index.ts +100 -0
- package/rules/.source/hellotv/src/pages/search/api/interface.ts +64 -0
- package/rules/.source/hellotv/src/pages/search/api/request-url.ts +20 -0
- package/rules/.source/hellotv/src/pages/search/components/search-content-tabs.vue +153 -0
- package/rules/.source/hellotv/src/pages/search/components/search-content.vue +282 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyboard.vue +252 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyword-grid.vue +85 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyword.vue +346 -0
- package/rules/.source/hellotv/src/pages/search/config.ts +10 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-content.scss +130 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyboard.scss +91 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyword-grid.scss +30 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyword.scss +104 -0
- package/rules/.source/hellotv/src/pages/search/scss/search.scss +18 -0
- package/rules/.source/hellotv/src/pages/search/three-columns.vue +164 -0
- package/rules/.source/hellotv/src/pages/search/two-columns.vue +128 -0
- package/rules/.source/hellotv/src/pages/tabs-test.vue +339 -0
- package/rules/.source/hellotv/src/pages/webview/load-web-view.vue +44 -0
- package/rules/.source/hellotv/src/routes.ts +142 -0
- package/rules/.source/hellotv/src/tools/common.ts +18 -0
- package/rules/.source/hellotv/src/tools/format-date.ts +16 -0
- package/rules/.source/hellotv/src/tools/index.ts +58 -0
- package/rules/.source/hellotv/src/tools/launch.ts +339 -0
- package/rules/.source/hellotv/src/tools/request/index.ts +206 -0
- package/rules/.source/hellotv/src/tools/request/interface.ts +64 -0
- package/rules/.source/hellotv/src/typings/shims-vue.d.ts +6 -0
- package/rules/.source/hellotv/src/vue.config.js +3 -0
- package/rules/.source/hellotv/tsconfig.json +34 -0
- package/rules/.windsurfrules +1 -0
- package/rules/AGENTS.md +1 -0
- package/rules/CLAUDE.md +1 -0
- package/rules/GEMINI.md +1 -0
package/README.md
CHANGED
|
@@ -37,6 +37,37 @@ yarn add @quicktvui/ai --dev
|
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
+
## 🌐 可选:全局 Skills 安装(Skill Runtime)
|
|
41
|
+
|
|
42
|
+
如果你使用支持 `~/.agents/skills/` 的 Agent(如部分本地 Agent 工具链),可以额外安装全局 skills:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install -g @quicktvui/ai-cli @quicktvui/ai-skills
|
|
46
|
+
quicktvui-ai init
|
|
47
|
+
quicktvui-ai doctor
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
默认会安装到:
|
|
51
|
+
|
|
52
|
+
- `~/.agents/skills/quicktvui`
|
|
53
|
+
|
|
54
|
+
并自动维护 Gemini 全局桥接配置:
|
|
55
|
+
|
|
56
|
+
- `~/.gemini/GEMINI.md`(加入 QuickTVUI skill `@...` 引入块)
|
|
57
|
+
- `~/.gemini/settings.json`(补齐 `context.fileName`)
|
|
58
|
+
|
|
59
|
+
常用命令:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
quicktvui-ai validate
|
|
63
|
+
quicktvui-ai update
|
|
64
|
+
quicktvui-ai prompt --lang zh
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
> 注意:全局 skills 不是对所有 AI 都自动生效。对仅读取项目文件的工具,仍需使用 `npm install @quicktvui/ai --save-dev` 注入项目内规则。
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
40
71
|
## 🤖 支持的 AI 工具与配置
|
|
41
72
|
|
|
42
73
|
本包一次性适配了市面上主流的 AI 编程助手,安装后会自动在项目根目录生成对应的配置文件:
|
package/USAGE.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## 1. 快速上手
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### 模式 A:项目内规则(兼容 Cursor/Copilot/Cline)
|
|
8
8
|
|
|
9
9
|
在你的 QuickTVUI 项目(建议使用 `quicktvui-template` 创建)中安装:
|
|
10
10
|
|
|
@@ -12,16 +12,31 @@
|
|
|
12
12
|
npm install @quicktvui/ai --save-dev
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAUDE.md` 等文件中的指令。
|
|
16
|
+
|
|
17
|
+
### 模式 B:全局 Skills(兼容支持 `~/.agents/skills` 的 Agent)
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g @quicktvui/ai-cli @quicktvui/ai-skills
|
|
21
|
+
quicktvui-ai init
|
|
22
|
+
quicktvui-ai doctor
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
默认安装目录:
|
|
26
|
+
|
|
27
|
+
- `~/.agents/skills/quicktvui`
|
|
28
|
+
|
|
29
|
+
安装后请重启或 reload AI Agent,让其重新扫描本地 skills。
|
|
30
|
+
`quicktvui-ai init` 同时会自动维护 Gemini 全局桥接配置(`~/.gemini/GEMINI.md` 与 `~/.gemini/settings.json`)。
|
|
31
|
+
|
|
32
|
+
### 推荐模型
|
|
16
33
|
|
|
17
34
|
为了达到最佳辅助效果,请在你的 AI 工具中优先选择以下模型:
|
|
18
35
|
|
|
19
|
-
- **Claude
|
|
36
|
+
- **Claude**
|
|
20
37
|
- **Codex**
|
|
21
38
|
- **Gemini**
|
|
22
39
|
|
|
23
|
-
AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAUDE.md` 等文件中的指令。
|
|
24
|
-
|
|
25
40
|
## 2. 常见场景 AI 辅助示例
|
|
26
41
|
|
|
27
42
|
### 场景 A:创建新页面
|
|
@@ -32,7 +47,7 @@ AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAU
|
|
|
32
47
|
### 场景 B:API 查询
|
|
33
48
|
|
|
34
49
|
**输入:** “qt-image 支持哪些属性?”
|
|
35
|
-
**AI 将检索:** 它会查阅 `node_modules/@quicktvui/ai/rules/.docs/component/image.md` 并返回:`src`, `enableFade`,
|
|
50
|
+
**AI 将检索:** 它会查阅 `node_modules/@quicktvui/ai/rules/.docs/zh-CN/component/image.md` 并返回:`src`, `enableFade`,
|
|
36
51
|
`resizeMode` 等原生支持的属性。
|
|
37
52
|
|
|
38
53
|
### 场景 C:样式纠错
|
|
@@ -71,4 +86,4 @@ AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAU
|
|
|
71
86
|
|
|
72
87
|
1. **重新引用规则**:告诉它:“请参考项目根目录下的 `.cursorrules` (或 `GEMINI.md`) 重新检查规范。”
|
|
73
88
|
2. **强制读取文档**:告诉它:“请读取 `node_modules/@quicktvui/ai/rules/.docs/` 下的相关组件文档后再回答。”
|
|
74
|
-
|
|
89
|
+
3. **检查全局技能安装**:运行 `quicktvui-ai doctor --strict`,确认 `~/.agents/skills/quicktvui` 目录和必需文件完整。
|
package/package.json
CHANGED
package/rules/.clinerules
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* `quicktvui/`: Core Vue 3 UI component library implementation.
|
|
14
14
|
* `hippy/`: Android Native implementation (ViewController, UIManager).
|
|
15
15
|
* `sdk/`: ES SDK core implementation, containing Java definitions and implementations for `IEsModule` (plugins) and `IEsComponent` (components).
|
|
16
|
+
* `hellotv/`: Complete best-practice application example, demonstrating routing, state management, and complex UI implementation.
|
|
16
17
|
* `ESPlayer*/ESVideoPlayer`: Media playback engines (Video, Audio, ADs).
|
|
17
18
|
* `ESPlayerManager`: High-level player window and playlist management.
|
|
18
19
|
* `ESRouter`: TV-optimized routing and navigation system.
|
package/rules/.cursorrules
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* `quicktvui/`: Core Vue 3 UI component library implementation.
|
|
14
14
|
* `hippy/`: Android Native implementation (ViewController, UIManager).
|
|
15
15
|
* `sdk/`: ES SDK core implementation, containing Java definitions and implementations for `IEsModule` (plugins) and `IEsComponent` (components).
|
|
16
|
+
* `hellotv/`: Complete best-practice application example, demonstrating routing, state management, and complex UI implementation.
|
|
16
17
|
* `ESPlayer*/ESVideoPlayer`: Media playback engines (Video, Audio, ADs).
|
|
17
18
|
* `ESPlayerManager`: High-level player window and playlist management.
|
|
18
19
|
* `ESRouter`: TV-optimized routing and navigation system.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## 1. 快速上手
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### 方式 A:安装项目规范包(推荐,通用)
|
|
8
8
|
|
|
9
9
|
在你的 QuickTVUI 项目(建议使用 `quicktvui-template` 创建)中安装:
|
|
10
10
|
|
|
@@ -12,7 +12,19 @@
|
|
|
12
12
|
npm install @quicktvui/ai --save-dev
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAUDE.md` 等文件中的指令。
|
|
16
|
+
|
|
17
|
+
### 方式 B:安装全局 Skills(可选)
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g @quicktvui/ai-cli @quicktvui/ai-skills
|
|
21
|
+
quicktvui-ai init
|
|
22
|
+
quicktvui-ai doctor
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
默认安装目录为 `~/.agents/skills/quicktvui`。
|
|
26
|
+
|
|
27
|
+
### 推荐模型
|
|
16
28
|
|
|
17
29
|
为了达到最佳辅助效果,请在你的 AI 工具中优先选择以下模型:
|
|
18
30
|
|
|
@@ -20,8 +32,6 @@ npm install @quicktvui/ai --save-dev
|
|
|
20
32
|
- **Codex**
|
|
21
33
|
- **Gemini**
|
|
22
34
|
|
|
23
|
-
AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAUDE.md` 等文件中的指令。
|
|
24
|
-
|
|
25
35
|
## 2. 常见场景 AI 辅助示例
|
|
26
36
|
|
|
27
37
|
### 场景 A:创建新页面
|
|
@@ -32,7 +42,7 @@ AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAU
|
|
|
32
42
|
### 场景 B:API 查询
|
|
33
43
|
|
|
34
44
|
**输入:** “qt-image 支持哪些属性?”
|
|
35
|
-
**AI 将检索:** 它会查阅 `node_modules/@quicktvui/ai/rules/.docs/component/image.md` 并返回:`src`, `enableFade`,
|
|
45
|
+
**AI 将检索:** 它会查阅 `node_modules/@quicktvui/ai/rules/.docs/zh-CN/component/image.md` 并返回:`src`, `enableFade`,
|
|
36
46
|
`resizeMode` 等原生支持的属性。
|
|
37
47
|
|
|
38
48
|
### 场景 C:样式纠错
|
|
@@ -71,4 +81,4 @@ AI 助手将自动读取项目根目录下的 `.cursorrules`, `GEMINI.md`, `CLAU
|
|
|
71
81
|
|
|
72
82
|
1. **重新引用规则**:告诉它:“请参考项目根目录下的 `.cursorrules` (或 `GEMINI.md`) 重新检查规范。”
|
|
73
83
|
2. **强制读取文档**:告诉它:“请读取 `node_modules/@quicktvui/ai/rules/.docs/` 下的相关组件文档后再回答。”
|
|
74
|
-
|
|
84
|
+
3. **全局技能体检**:如已使用全局 skills,执行 `quicktvui-ai doctor --strict` 检查安装状态。
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* `quicktvui/`: Core Vue 3 UI component library implementation.
|
|
14
14
|
* `hippy/`: Android Native implementation (ViewController, UIManager).
|
|
15
15
|
* `sdk/`: ES SDK core implementation, containing Java definitions and implementations for `IEsModule` (plugins) and `IEsComponent` (components).
|
|
16
|
+
* `hellotv/`: Complete best-practice application example, demonstrating routing, state management, and complex UI implementation.
|
|
16
17
|
* `ESPlayer*/ESVideoPlayer`: Media playback engines (Video, Audio, ADs).
|
|
17
18
|
* `ESPlayerManager`: High-level player window and playlist management.
|
|
18
19
|
* `ESRouter`: TV-optimized routing and navigation system.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
## 网络数据接入准备工作
|
|
2
|
+
1. 在[build-config.ts](./src/config/build-config.ts) 中设置useMockData 为 false 使用网络数据,设置true 使用mock数据
|
|
3
|
+
2. 在[build-config.ts](./src/config/build-config.ts) 中设置数据请求域名requestBaseUrl
|
|
4
|
+
3. 在[RequestUrl.ts](./src/api/RequestUrl.ts) 中设置请求地址
|
|
5
|
+
4. 在[request-manager.ts](./src/api/request/request-manager.ts) 中的init中初始化公共请求体,post/get方法中解析封装原始数据
|
|
6
|
+
|
|
7
|
+
## Project整体目录结构
|
|
8
|
+
```bash
|
|
9
|
+
src
|
|
10
|
+
├─App.vue 视图入口
|
|
11
|
+
├─main.ts 程序入口
|
|
12
|
+
├─routes.ts 路由
|
|
13
|
+
├─vue.config.js 配置文件
|
|
14
|
+
├─typings
|
|
15
|
+
| └shims-vue.d.ts ts识别vue配置
|
|
16
|
+
├─tools 工具类
|
|
17
|
+
| ├─formatDate.ts
|
|
18
|
+
| ├─user
|
|
19
|
+
| ├─launch
|
|
20
|
+
├─pages 视图
|
|
21
|
+
| ├─web
|
|
22
|
+
| ├─settings
|
|
23
|
+
| ├─search
|
|
24
|
+
| ├─introduction
|
|
25
|
+
| ├─live
|
|
26
|
+
| ├─home
|
|
27
|
+
| ├─filter
|
|
28
|
+
| ├─detail
|
|
29
|
+
├─components 公共组件
|
|
30
|
+
| ├─Header.vue
|
|
31
|
+
| ├─LoadingError.vue
|
|
32
|
+
| ├─NetworkError.vue
|
|
33
|
+
| ├─bg-player.vue
|
|
34
|
+
| ├─img-text-btn-view.vue
|
|
35
|
+
| ├─qt-img-transition.vue
|
|
36
|
+
| └top-btns-view.vue
|
|
37
|
+
├─config 全局配置
|
|
38
|
+
| └build-config.ts
|
|
39
|
+
├─assets 资源文件
|
|
40
|
+
├─api 全局api
|
|
41
|
+
| ├─GlobalApiImpl.ts 全局接口实现入口
|
|
42
|
+
| ├─IBaseApi.ts
|
|
43
|
+
| ├─IGlobalApi.ts 接口继承类
|
|
44
|
+
| ├─RequestUrl.ts 请求地址
|
|
45
|
+
| ├─UseApi.ts
|
|
46
|
+
| ├─search 搜索api目录
|
|
47
|
+
| ├─request
|
|
48
|
+
| ├─media
|
|
49
|
+
| ├─home 首页api目录
|
|
50
|
+
| ├─filter 筛选 api目录
|
|
51
|
+
```
|
|
52
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare module "*.jpg";
|
|
2
|
+
declare module "*.png";
|
|
3
|
+
declare module "*.scss";
|
|
4
|
+
declare module "*.vue" {
|
|
5
|
+
import { defineComponent } from "vue";
|
|
6
|
+
const Component: ReturnType<typeof defineComponent>;
|
|
7
|
+
export default Component;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type NeedToTyped = any;
|
|
11
|
+
declare const __DEV__: boolean;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quicktvui/hellotv",
|
|
3
|
+
"appName": "hellotv",
|
|
4
|
+
"version": "1.0.5",
|
|
5
|
+
"main": "./src/main.ts",
|
|
6
|
+
"icon": "./src/assets/logo.png",
|
|
7
|
+
"private": true,
|
|
8
|
+
"scripts": {
|
|
9
|
+
"lint": "eslint -c eslint.config.mjs",
|
|
10
|
+
"dev": "tsx ./scripts/dev.ts",
|
|
11
|
+
"pack": "tsx ./scripts/pack.ts",
|
|
12
|
+
"build": "tsx ./scripts/build.ts",
|
|
13
|
+
"theme": "tsx ./build/build-flavor.ts",
|
|
14
|
+
"build-apk-debug": "tsx ./scripts/build-apk.ts Debug",
|
|
15
|
+
"build-apk-release": "tsx ./scripts/build-apk.ts Release"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@extscreen/es3-ad-player": "1.0.9",
|
|
19
|
+
"@extscreen/es3-component": "1.0.37-beta.2",
|
|
20
|
+
"@extscreen/es3-core": "1.2.6",
|
|
21
|
+
"@extscreen/es3-player": "1.0.26",
|
|
22
|
+
"@extscreen/es3-player-manager": "1.0.46",
|
|
23
|
+
"@extscreen/es3-router": "1.2.3",
|
|
24
|
+
"@extscreen/es3-video-player": "1.0.42",
|
|
25
|
+
"@extscreen/es3-vue": "2.0.14",
|
|
26
|
+
"@extscreen/es3-vue-style-parser": "2.0.1",
|
|
27
|
+
"@quicktvui/quicktvui3": "1.2.0-beta.64",
|
|
28
|
+
"@vue/runtime-core": "^3.2.21",
|
|
29
|
+
"core-js": "^3.8.3",
|
|
30
|
+
"crypto-js": "^4.2.0",
|
|
31
|
+
"lodash": "^4.17.21",
|
|
32
|
+
"shelljs": "^0.10.0",
|
|
33
|
+
"treer": "^1.0.4",
|
|
34
|
+
"typescript": "5.6.3",
|
|
35
|
+
"vue": "^3.4.21",
|
|
36
|
+
"vue-tsc": "^2.0.11"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@babel/core": "^7.12.16",
|
|
40
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
41
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
42
|
+
"@babel/plugin-proposal-decorators": "^7.10.5",
|
|
43
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
|
|
44
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
|
|
45
|
+
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
|
|
46
|
+
"@babel/plugin-transform-async-to-generator": "^7.5.0",
|
|
47
|
+
"@babel/plugin-transform-runtime": "^7.11.0",
|
|
48
|
+
"@babel/polyfill": "^7.12.0",
|
|
49
|
+
"@babel/preset-env": "^7.12.0",
|
|
50
|
+
"@babel/runtime": "^7.16.0",
|
|
51
|
+
"@eslint/js": "^9.18.0",
|
|
52
|
+
"@extscreen/es3-debug-server": "0.0.6",
|
|
53
|
+
"@extscreen/es3-dynamic-import-plugin": "^0.0.5",
|
|
54
|
+
"@extscreen/es3-vue-css-loader": "^2.0.2",
|
|
55
|
+
"@hippy/hippy-hmr-plugin": "^0.1.0",
|
|
56
|
+
"@hippy/rejection-tracking-polyfill": "^1.0.0",
|
|
57
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
58
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
59
|
+
"@rollup/plugin-buble": "^0.21.3",
|
|
60
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
61
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
62
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
63
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
64
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
65
|
+
"@types/cross-spawn": "^6.0.3",
|
|
66
|
+
"@types/minimist": "^1.2.2",
|
|
67
|
+
"@types/node": "^22.13.14",
|
|
68
|
+
"@types/prompts": "^2.4.4",
|
|
69
|
+
"@vitejs/plugin-vue": "^1.9.4",
|
|
70
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
71
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
72
|
+
"@vue/compiler-sfc": "^3.2.21",
|
|
73
|
+
"@vue/eslint-config-airbnb": "^4.0.0",
|
|
74
|
+
"@vue/tsconfig": "^0.5.1",
|
|
75
|
+
"autoprefixer": "^10.4.7",
|
|
76
|
+
"babel-eslint": "^10.0.3",
|
|
77
|
+
"babel-loader": "^8.1.0",
|
|
78
|
+
"case-sensitive-paths-webpack-plugin": "^2.2.0",
|
|
79
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
80
|
+
"cliui": "^6.0.0",
|
|
81
|
+
"compressing": "^1.10.0",
|
|
82
|
+
"core-js": "^3.4.3",
|
|
83
|
+
"cross-env-os": "^7.1.1",
|
|
84
|
+
"cross-spawn": "^7.0.3",
|
|
85
|
+
"css-loader": "^7.1.2",
|
|
86
|
+
"esbuild": "^0.13.14",
|
|
87
|
+
"esbuild-loader": "^2.18.0",
|
|
88
|
+
"eslint": "9.14.0",
|
|
89
|
+
"eslint-plugin-check-file": "^2.8.0",
|
|
90
|
+
"eslint-plugin-vue": "9.31.0",
|
|
91
|
+
"eslint-webpack-plugin": "4.2.0",
|
|
92
|
+
"file-loader": "^4.3.0",
|
|
93
|
+
"globals": "^15.14.0",
|
|
94
|
+
"husky": "^9.1.7",
|
|
95
|
+
"javascript-obfuscator": "^4.1.1",
|
|
96
|
+
"kolorist": "^1.8.0",
|
|
97
|
+
"less": "^4.1.2",
|
|
98
|
+
"less-loader": "^7.1.0",
|
|
99
|
+
"lint-staged": "^16.1.2",
|
|
100
|
+
"minimist": "^1.2.8",
|
|
101
|
+
"path-to-regexp": "^1.8.0",
|
|
102
|
+
"postcss": "^8.5.4",
|
|
103
|
+
"postcss-js": "^4.0.1",
|
|
104
|
+
"postcss-loader": "^8.1.1",
|
|
105
|
+
"postcss-safe-parser": "^7.0.1",
|
|
106
|
+
"prettier": "^3.6.2",
|
|
107
|
+
"prompts": "^2.4.2",
|
|
108
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
109
|
+
"rollup-plugin-buble": "^0.19.8",
|
|
110
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
111
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
112
|
+
"rollup-plugin-flow-no-whitespace": "^1.0.0",
|
|
113
|
+
"rollup-plugin-image": "^1.0.2",
|
|
114
|
+
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
115
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
116
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
117
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
118
|
+
"rollup-plugin-terser": "^7.0.0",
|
|
119
|
+
"rollup-plugin-typescript": "1.0.1",
|
|
120
|
+
"rollup-plugin-typescript2": "^0.35.0",
|
|
121
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
122
|
+
"rollup-plugin-vue2": "^0.8.1",
|
|
123
|
+
"sass": "^1.22.10",
|
|
124
|
+
"sass-loader": "^16.0.3",
|
|
125
|
+
"scope-loader": "^1.0.3",
|
|
126
|
+
"signale": "^1.4.0",
|
|
127
|
+
"style-loader": "^4.0.0",
|
|
128
|
+
"tapable": "^2.2.1",
|
|
129
|
+
"terser": "^4.8.0",
|
|
130
|
+
"terser-webpack-plugin": "^5.3.9",
|
|
131
|
+
"ts-loader": "^9.4.4",
|
|
132
|
+
"ts-node": "^10.8.1",
|
|
133
|
+
"tsx": "^4.7.1",
|
|
134
|
+
"typescript-eslint": "^8.20.0",
|
|
135
|
+
"unicode-loader": "^1.0.7",
|
|
136
|
+
"url-loader": "^4.0.0",
|
|
137
|
+
"vue-loader": "^17.0.0",
|
|
138
|
+
"vue-template-compiler": "^2.6.10",
|
|
139
|
+
"webpack": "^5.88.2",
|
|
140
|
+
"webpack-asset-check-plugin": "^1.0.2",
|
|
141
|
+
"webpack-cli": "^4.7.2",
|
|
142
|
+
"webpack-node-externals": "^3.0.0",
|
|
143
|
+
"webpack-obfuscator": "^3.5.1",
|
|
144
|
+
"zx": "^8.0.1"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env zx
|
|
2
|
+
const { exec } = require("shelljs");
|
|
3
|
+
const buildType = process.argv.slice(2).join(" ");
|
|
4
|
+
const cmd = process.platform.startsWith("win") ? "gradlew.bat" : "./gradlew";
|
|
5
|
+
|
|
6
|
+
async function build() {
|
|
7
|
+
exec(`cd android && ${cmd} clean assemble${buildType}`, "");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
build().catch((e) => {
|
|
11
|
+
console.error(e);
|
|
12
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env zx
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const run = require("./process");
|
|
5
|
+
const { execSync } = require("child_process");
|
|
6
|
+
|
|
7
|
+
async function build() {
|
|
8
|
+
// 删除 dist/android 目录
|
|
9
|
+
const androidDir = path.resolve("./dist/android/");
|
|
10
|
+
if (fs.existsSync(androidDir)) {
|
|
11
|
+
await run(`rm -rf ${androidDir}`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// 创建 dist/android 目录
|
|
15
|
+
fs.mkdirSync(androidDir, { recursive: true });
|
|
16
|
+
|
|
17
|
+
// 删除 dist/android.zip 文件
|
|
18
|
+
const androidZipFile = path.resolve("./dist/android.zip");
|
|
19
|
+
if (fs.existsSync(androidZipFile)) {
|
|
20
|
+
await run(`rm -rf ${androidZipFile}`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 构建 flavor
|
|
24
|
+
await run(`tsx ./build/build-flavor.ts`);
|
|
25
|
+
|
|
26
|
+
// 打包 Android 资源
|
|
27
|
+
await run(`webpack --config ./scripts/quicktvui-webpack.android.ts`);
|
|
28
|
+
|
|
29
|
+
// 生成 Android.zip
|
|
30
|
+
execSync(`cd ${androidDir} && zip -q -r ../android.zip .`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
build().catch((e) => {
|
|
34
|
+
console.error(e);
|
|
35
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env zx
|
|
2
|
+
const run = require("./process");
|
|
3
|
+
|
|
4
|
+
async function dev() {
|
|
5
|
+
await run(`tsx ./build/build-flavor.ts`, "");
|
|
6
|
+
// await run(`eslint -c eslint.config.mjs`, '')
|
|
7
|
+
await run(`hippy-dev -c ./scripts/quicktvui-webpack.dev.ts`, "");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
dev().catch((e) => {
|
|
11
|
+
console.error(e);
|
|
12
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env zx
|
|
2
|
+
const compressing = require("compressing");
|
|
3
|
+
const fs = require("node:fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const run = require("./process");
|
|
6
|
+
|
|
7
|
+
async function pack() {
|
|
8
|
+
await run(`tsx ./build/build-flavor.ts`, "");
|
|
9
|
+
await run(`webpack --config ./scripts/quicktvui-webpack.android.ts`, "");
|
|
10
|
+
const cwd = process.cwd();
|
|
11
|
+
const dist = path.join(cwd, "./dist");
|
|
12
|
+
const android = path.join(cwd, "./dist/android");
|
|
13
|
+
const pkgFile = path.join(cwd, "./package.json");
|
|
14
|
+
const packages = JSON.parse(fs.readFileSync(pkgFile, "utf8"));
|
|
15
|
+
const rpkPath = path.resolve(
|
|
16
|
+
dist,
|
|
17
|
+
encodeURIComponent(packages.name) + ".rpk",
|
|
18
|
+
);
|
|
19
|
+
await compressing.zip.compressDir(android, rpkPath);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
pack().catch((e) => {
|
|
23
|
+
console.error(e);
|
|
24
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const { spawn } = require("child_process");
|
|
2
|
+
|
|
3
|
+
const run = (command, cwd) => {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
const [cmd, ...args] = command.split(" ");
|
|
6
|
+
console.log("-----Command------>>>>>", `${cmd} args ${args}`);
|
|
7
|
+
const app = spawn(cmd, args, {
|
|
8
|
+
cwd,
|
|
9
|
+
stdio: ["inherit", "inherit", "pipe"], // Capture stderr separately
|
|
10
|
+
shell: process.platform === "win32",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
let errorOutput = "";
|
|
14
|
+
|
|
15
|
+
app.stderr.on("data", (data) => {
|
|
16
|
+
errorOutput += data.toString();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const onProcessExit = () => app.kill("SIGHUP");
|
|
20
|
+
|
|
21
|
+
app.on("close", (code) => {
|
|
22
|
+
process.removeListener("exit", onProcessExit);
|
|
23
|
+
if (code === 0) {
|
|
24
|
+
resolve({});
|
|
25
|
+
} else {
|
|
26
|
+
reject(
|
|
27
|
+
new Error(
|
|
28
|
+
`Command failed. \n Command: ${command} \n Code: ${code} \n Error output: ${errorOutput}`,
|
|
29
|
+
),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
process.on("exit", onProcessExit);
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
module.exports = run;
|