mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
Add explore view empty state and info popover
This commit is contained in:
1 parent
a1a4d0bf6b
commit
304d4ea374
2 files changed
+122
-8
No files matched your search
+2
-8
@@ -1,6 +1,7 @@
|
||||
// js/viewManager.js
|
||||
import { initChannelProfileView } from "./channelProfile.js";
|
||||
import { initForYouView } from "./forYouView.js";
|
||||
import { initExploreView } from "./exploreView.js";
|
||||
import { subscriptions } from "./subscriptions.js";
|
||||
import { getApplication } from "./applicationContext.js";
|
||||
import { ASSET_VERSION } from "../config/asset-version.js";
|
||||
@@ -118,7 +119,7 @@ export const viewInitRegistry = {
|
||||
}
|
||||
},
|
||||
explore: () => {
|
||||
devLogger.log("Explore view loaded.");
|
||||
initExploreView();
|
||||
const app = getApplication();
|
||||
if (app && typeof app.loadExploreVideos === "function") {
|
||||
if (typeof app.mountVideoListView === "function") {
|
||||
@@ -130,13 +131,6 @@ export const viewInitRegistry = {
|
||||
if (refreshApp && typeof refreshApp.forceRefreshAllProfiles === "function") {
|
||||
refreshApp.forceRefreshAllProfiles();
|
||||
}
|
||||
const infoTrigger = document.getElementById("exploreInfoTrigger");
|
||||
if (infoTrigger) {
|
||||
attachFeedInfoPopover(
|
||||
infoTrigger,
|
||||
"Discovery feed blended for freshness, novelty, and diversity."
|
||||
);
|
||||
}
|
||||
},
|
||||
history: async () => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user