mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-22 17:44:58 +01:00
* Implement fabric native path * Fix default values to work with current fabric clients * Fix Fabric native mode * Fix unit test * export Fabric context * Dynamically close Home tab for Mirrored databases in Fabric rather than conditional init (which doesn't work for Native) * For Fabric native, don't show "Delete Database" in context menu and reading databases should return the database from the context. * Update to V3 messaging * For data plane operations, skip ARM for Fabric native. Refine the tests for fabric to make the distinction between mirrored key, mirrored AAD and native. Fix FabricUtil to strict compile. * Add support for refreshing access tokens * Buf fix: don't wait for refresh is async * Fix format * Fix strict compile issue --------- Co-authored-by: Laurent Nguyen <languye@microsoft.com>
19 lines
870 B
TypeScript
19 lines
870 B
TypeScript
import { isFabric } from "Platform/Fabric/FabricUtil";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
export const StyleConstants = require("less-vars-loader!../../less/Common/Constants.less");
|
|
|
|
export function updateStyles(): void {
|
|
if (isFabric()) {
|
|
StyleConstants.AccentMediumHigh = StyleConstants.FabricAccentMediumHigh;
|
|
StyleConstants.AccentMedium = StyleConstants.FabricAccentMedium;
|
|
StyleConstants.AccentLight = StyleConstants.FabricAccentLight;
|
|
StyleConstants.AccentAccentExtra = StyleConstants.FabricAccentMediumHigh;
|
|
} else {
|
|
StyleConstants.AccentMediumHigh = StyleConstants.PortalAccentMediumHigh;
|
|
StyleConstants.AccentMedium = StyleConstants.PortalAccentMedium;
|
|
StyleConstants.AccentLight = StyleConstants.PortalAccentLight;
|
|
StyleConstants.AccentAccentExtra = StyleConstants.PortalAccentMediumHigh;
|
|
}
|
|
}
|