import "bootstrap/dist/css/bootstrap.css"; import "./GalleryViewer.less"; import { initializeIcons } from "office-ui-fabric-react/lib/Icons"; import { Text, Link } from "office-ui-fabric-react"; import * as React from "react"; import * as ReactDOM from "react-dom"; import { configContext, initializeConfiguration } from "../ConfigContext"; import { GalleryHeaderComponent } from "../Explorer/Controls/Header/GalleryHeaderComponent"; import { GalleryAndNotebookViewerComponent, GalleryAndNotebookViewerComponentProps, } from "../Explorer/Controls/NotebookGallery/GalleryAndNotebookViewerComponent"; import { GalleryTab, SortBy } from "../Explorer/Controls/NotebookGallery/GalleryViewerComponent"; import { JunoClient } from "../Juno/JunoClient"; import * as GalleryUtils from "../Utils/GalleryUtils"; const enableNotebooksUrl = "https://aka.ms/cosmos-enable-notebooks"; const createAccountUrl = "https://aka.ms/cosmos-create-account-portal"; const onInit = async () => { const dataExplorerUrl = new URL("./", window.location.href).href; initializeIcons(); await initializeConfiguration(); const galleryViewerProps = GalleryUtils.getGalleryViewerProps(window.location.search); const props: GalleryAndNotebookViewerComponentProps = { junoClient: new JunoClient(), selectedTab: galleryViewerProps.selectedTab || GalleryTab.OfficialSamples, sortBy: galleryViewerProps.sortBy || SortBy.MostViewed, searchText: galleryViewerProps.searchText, }; const element = (