diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2c84975bd..ec652466c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -85,6 +85,8 @@ jobs:
path: .cache
key: ${{ runner.os }}-build-cache
- run: npm run pack:prod
+ env:
+ NODE_OPTIONS: '--max-old-space-size=4096'
- run: cp -r ./Contracts ./dist/contracts
- run: cp -r ./configs ./dist/configs
- uses: actions/upload-artifact@v2
diff --git a/less/Common/Constants.less b/less/Common/Constants.less
index 58cedfdda..6f034c018 100644
--- a/less/Common/Constants.less
+++ b/less/Common/Constants.less
@@ -10,6 +10,7 @@
@DataExplorerFont: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;
@SemiboldFont: "Segoe UI Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;
@GrayScale: "grayscale()";
+@NoColor: "brightness(0) saturate(100%)";
@xSmallFontSize: 4px;
@smallFontSize: 8px;
@@ -147,14 +148,41 @@
// CommandBar
@CommandBarButtonHeight: 40px;
+/**********************************************************************************
+ Portal Consts
+/**********************************************************************************/
+
+@PortalAccentMediumHigh: #0058ad;
+@PortalAccentMedium: #004e87;
+@PortalAccentLight: #eef7ff;
+@PortalAccentAccentExtra: #ddf0ff;
+
+/**********************************************************************************
+ Fabric Consts
+/**********************************************************************************/
+
+@FabricFont: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
+
+@FabricBoxBorderRadius: 8px;
+@FabricBoxBorderShadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.14);
+@FabricBoxMargin: 4px 3px 4px 3px;
+
+@FabricAccentMediumHigh: #0c695a;
+@FabricAccentMedium: #117865;
+@FabricAccentLight: #f5f5f5;
+@FabricAccentExtra: #ebebeb;
+
+@FabricButtonBorderRadius: 4px;
+
+
/**********************************************************************************
Common Flex Property
/**********************************************************************************/
.flex-display(@display: flex) {
- display: ~"-webkit-@{display}";
- display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox
- display: ~"-ms-@{display}"; // IE11
+ display:~"-webkit-@{display}";
+ display:~"-ms-@{display}box"; // IE10 uses -ms-flexbox
+ display:~"-ms-@{display}"; // IE11
display: @display;
}
@@ -168,13 +196,15 @@
High contrast mode active
**************************************************************************************/
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
+@media all and (-ms-high-contrast: none),
+(-ms-high-contrast: active) {
+
.selectedRadio,
.selectedRadio:hover,
.selectedRadio:active,
.selectedRadio.dirty,
- .tab [type="radio"]:checked ~ label,
- .tab [type="radio"]:checked ~ label:hover {
+ .tab [type="radio"]:checked~label,
+ .tab [type="radio"]:checked~label:hover {
-ms-high-contrast-adjust: none;
-webkit-text-fill-color: HighlightText;
color: HighlightText;
@@ -183,6 +213,7 @@
}
.queryMetricsSummaryTuple {
+
th,
td {
&:nth-child(2) {
@@ -302,4 +333,4 @@
width: 0;
height: 0;
border-color: @InfoPointerColor transparent;
-}
+}
\ No newline at end of file
diff --git a/less/documentDB.less b/less/documentDB.less
index 1395c9482..976bd03fd 100644
--- a/less/documentDB.less
+++ b/less/documentDB.less
@@ -2646,6 +2646,11 @@ a:link {
width: @ActiveTabWidth;
}
+.nav-tabs > li.active > .tabNavContentContainer > .tab_Content > .tabNavText {
+ font-weight: bolder;
+ border-bottom: 2px solid rgba(0,120,212,1);
+}
+
.nav-tabs > li.active:focus > .tabNavContentContainer {
.focus();
}
diff --git a/less/documentDBFabric.less b/less/documentDBFabric.less
new file mode 100644
index 000000000..df099585b
--- /dev/null
+++ b/less/documentDBFabric.less
@@ -0,0 +1,207 @@
+@import "./Common/Constants";
+
+html {
+ font-family: @FabricFont;
+}
+
+body {
+ font-family: @FabricFont;
+ background-color: #f5f5f5;
+}
+
+a {
+ color: @FabricAccentMedium;
+ text-decoration: none;
+}
+
+a:hover,
+a:focus {
+ color: @FabricAccentMediumHigh;
+ text-decoration: underline;
+}
+
+#divExplorer {
+ background-color: #f5f5f5;
+}
+
+.resourceTreeAndTabs {
+ border-radius: @FabricBoxBorderRadius;
+ box-shadow: @FabricBoxBorderShadow;
+ margin: @FabricBoxMargin;
+ margin-top: 4px;
+ background-color: #ffffff;
+}
+
+.tabsManagerContainer {
+ background-color: #fafafa
+}
+
+.nav-tabs-margin {
+ padding-top: 8px;
+ background-color: #fafafa
+}
+
+.commandBarContainer {
+ background-color: #ffffff;
+ border-bottom: none;
+ border-radius: @FabricBoxBorderRadius;
+ box-shadow: @FabricBoxBorderShadow;
+ margin: @FabricBoxMargin;
+ padding-top: 2px;
+}
+
+.dividerContainer {
+ padding: @SmallSpace 0px @SmallSpace 0px;
+ .flex-display();
+
+ span {
+ border-left: @ButtonBorderWidth solid @BaseMedium;
+ margin: 0 10px 0 10px;
+ }
+}
+
+
+.nav-tabs>li>.tabNavContentContainer>.tab_Content:hover {
+ border-bottom: 2px solid #e0e0e0;
+}
+
+.nav-tabs>li.active>.tabNavContentContainer>.tab_Content,
+.nav-tabs>li.active>.tabNavContentContainer>.tab_Content:hover {
+ border-bottom: 2px solid @FabricAccentMedium;
+}
+
+.tabNavContentContainer {
+ padding: @SmallSpace 0px @SmallSpace 0px;
+
+ &:hover {
+ background-color: transparent;
+ border-color: transparent;
+ }
+
+ .tab_Content {
+ border-right: 0px none transparent;
+ margin: 0px @SmallSpace 0px @SmallSpace;
+ width: calc(@TabsWidth - (@SmallSpace * 2));
+ padding-bottom: @SmallSpace;
+
+ .statusIconContainer {
+ margin-left: 0px;
+ }
+
+ .tabIconSection {
+ .cancelButton {
+ padding: 0px 0px 0px @SmallSpace;
+
+ &:hover {
+ background-color: transparent;
+ }
+
+ &:focus {
+ background-color: transparent;
+ }
+
+ &:active {
+ background-color: transparent;
+ }
+ }
+ }
+ }
+}
+
+
+.resourceTree {
+ padding: 12px;
+}
+
+.accordion {
+ .accordionItemContainer {
+ .accordionItemHeader {
+ border-radius: 4px;
+ }
+ }
+}
+
+.treeComponent {
+ .nodeItem {
+ &:focus {
+ outline: 2px @FabricAccentMedium;
+ }
+
+ .treeNodeHeader {
+ padding: 5px 5px;
+ border-radius: 4px;
+
+ &:hover {
+ background-color: @FabricAccentLight;
+
+ .treeMenuEllipsis {
+ opacity: 1;
+ }
+ }
+
+ &.showingMenu {
+ background-color: #eee;
+ }
+ }
+
+ .selected {
+ &>.treeNodeHeader {
+ background-color: @FabricAccentExtra;
+ }
+ }
+ }
+}
+
+
+.dataExplorerErrorConsoleContainer {
+ border-radius: @FabricBoxBorderRadius;
+ box-shadow: @FabricBoxBorderShadow;
+ margin: @FabricBoxMargin;
+ width: auto;
+ align-self: auto;
+}
+
+
+
+.filterbtnstyle {
+ background: #fff;
+ color: #000;
+ border: solid 1px #d1d1d1;
+ border-radius: 4px;
+}
+
+.filterbtnstyle:hover {
+ background: @FabricAccentLight;
+ color: #000;
+ border: solid 1px #d1d1d1;
+}
+
+.filterbtnstyle:active {
+ background: @FabricAccentLight;
+ color: #000;
+ border: solid 1px #d1d1d1;
+}
+
+.filterbtnstyle:focus {
+ background: #fff;
+ color: #000;
+ border: solid 1px #d1d1d1;
+}
+
+
+.gridRowSelected .tabdocumentsGridElement:hover {
+ background-color: @FabricAccentLight !important;
+}
+
+
+.refreshcol {
+ filter: brightness(0) saturate(100%);
+}
+
+.refreshcol1 {
+ filter: brightness(0) saturate(100%);
+}
+
+.fileImportImg img {
+ filter: brightness(0) saturate(100%);
+}
\ No newline at end of file
diff --git a/src/Common/Constants.ts b/src/Common/Constants.ts
index 51df6e94f..80d665e62 100644
--- a/src/Common/Constants.ts
+++ b/src/Common/Constants.ts
@@ -365,9 +365,6 @@ export const EmulatorMasterKey =
//[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Well known public masterKey for emulator")]
"C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==";
-// A variable @MyVariable defined in Constants.less is accessible as StyleConstants.MyVariable
-export const StyleConstants = require("less-vars-loader!../../less/Common/Constants.less");
-
export class Notebook {
public static readonly defaultBasePath = "./notebooks";
public static readonly heartbeatDelayMs = 60000;
diff --git a/src/Common/ResourceTreeContainer.tsx b/src/Common/ResourceTreeContainer.tsx
index 3781af8de..e3968c112 100644
--- a/src/Common/ResourceTreeContainer.tsx
+++ b/src/Common/ResourceTreeContainer.tsx
@@ -5,8 +5,10 @@ import refreshImg from "../../images/refresh-cosmos.svg";
import { AuthType } from "../AuthType";
import Explorer from "../Explorer/Explorer";
import { ResourceTokenTree } from "../Explorer/Tree/ResourceTokenTree";
+import { ResourceTree2 } from "../Explorer/Tree2/ResourceTree";
import { userContext } from "../UserContext";
import { getApiShortDisplayName } from "../Utils/APITypeUtils";
+import { Platform, configContext } from "./../ConfigContext";
import { NormalizedEventKey } from "./Constants";
export interface ResourceTreeContainerProps {
@@ -76,10 +78,10 @@ export const ResourceTreeContainer: FunctionComponent