mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
Move "Open Full Screen" to React Panel (#449)
This commit is contained in:
68
src/Main.tsx
68
src/Main.tsx
@@ -58,7 +58,6 @@ import { initializeIcons } from "office-ui-fabric-react/lib/Icons";
|
||||
import { ExplorerParams } from "./Explorer/Explorer";
|
||||
import React, { useState } from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import copyImage from "../images/Copy.svg";
|
||||
import hdeConnectImage from "../images/HdeConnectCosmosDB.svg";
|
||||
import refreshImg from "../images/refresh-cosmos.svg";
|
||||
import arrowLeftImg from "../images/imgarrowlefticon.svg";
|
||||
@@ -117,74 +116,7 @@ const App: React.FunctionComponent = () => {
|
||||
className="flexContainer hideOverflows"
|
||||
style={{ display: "none" }}
|
||||
>
|
||||
{/* Main Command Bar - Start */}
|
||||
<div data-bind="react: commandBarComponentAdapter" />
|
||||
{/* Main Command Bar - End */}
|
||||
{/* Share url flyout - Start */}
|
||||
<div
|
||||
id="shareDataAccessFlyout"
|
||||
className="shareDataAccessFlyout"
|
||||
data-bind="visible: shouldShowShareDialogContents"
|
||||
>
|
||||
<div className="shareDataAccessFlyoutContent">
|
||||
<div className="urlContainer">
|
||||
<span className="urlContentText">
|
||||
Open this database account in a new browser tab with Cosmos DB Explorer. Or copy the read-write or read
|
||||
only access urls below to share with others. For security purposes, the URLs grant time-bound access to
|
||||
the account. When access expires, you can reconnect, using a valid connection string for the account.
|
||||
</span>
|
||||
<br />
|
||||
<div
|
||||
className="toggles"
|
||||
data-bind="event: { keydown: onToggleKeyDown }, visible: shareAccessData().readWriteUrl != null"
|
||||
tabIndex={0}
|
||||
aria-label="Read-Write and Read toggle"
|
||||
>
|
||||
<div className="tab">
|
||||
<input type="radio" className="radio" defaultValue="readwrite" />
|
||||
<span
|
||||
className="toggleSwitch"
|
||||
role="presentation"
|
||||
data-bind="click: toggleReadWrite, css:{ selectedToggle: isReadWriteToggled(), unselectedToggle: !isReadWriteToggled() }"
|
||||
>
|
||||
Read-Write
|
||||
</span>
|
||||
</div>
|
||||
<div className="tab">
|
||||
<input type="radio" className="radio" defaultValue="read" />
|
||||
<span
|
||||
className="toggleSwitch"
|
||||
role="presentation"
|
||||
data-bind="click: toggleRead, css:{ selectedToggle: isReadToggled(), unselectedToggle: !isReadToggled() }"
|
||||
>
|
||||
Read
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="urlSpace">
|
||||
<input
|
||||
id="shareUrlLink"
|
||||
aria-label="Share url link"
|
||||
className="shareLink"
|
||||
type="text"
|
||||
read-only={true}
|
||||
data-bind="value: shareAccessUrl"
|
||||
/>
|
||||
<span
|
||||
className="urlTokenCopyInfoTooltip"
|
||||
data-bind="click: copyUrlLink, event: { keypress: onCopyUrlLinkKeyPress }"
|
||||
aria-label="Copy url link"
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
>
|
||||
<img src={copyImage} alt="Copy link" />
|
||||
<span className="urlTokenCopyTooltiptext" data-bind="text: shareUrlCopyHelperText" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/* Share url flyout - End */}
|
||||
{/* Collections Tree and Tabs - Begin */}
|
||||
<div className="resourceTreeAndTabs">
|
||||
{/* Collections Tree - Start */}
|
||||
|
||||
Reference in New Issue
Block a user