mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-17 20:09:00 +01:00
Localizations batch 5 and import update (#2422)
* Locations import update * Fix formatting * Fix import paths
This commit is contained in:
2
src/@types/i18next.d.ts
vendored
2
src/@types/i18next.d.ts
vendored
@@ -1,5 +1,5 @@
|
|||||||
import "i18next";
|
import "i18next";
|
||||||
import Resources from "../Localization/en/Resources.json";
|
import Resources from "Localization/en/Resources.json";
|
||||||
|
|
||||||
declare module "i18next" {
|
declare module "i18next" {
|
||||||
interface CustomTypeOptions {
|
interface CustomTypeOptions {
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ import {
|
|||||||
AddGlobalSecondaryIndexPanelProps,
|
AddGlobalSecondaryIndexPanelProps,
|
||||||
} from "Explorer/Panes/AddGlobalSecondaryIndexPanel/AddGlobalSecondaryIndexPanel";
|
} from "Explorer/Panes/AddGlobalSecondaryIndexPanel/AddGlobalSecondaryIndexPanel";
|
||||||
import { useDatabases } from "Explorer/useDatabases";
|
import { useDatabases } from "Explorer/useDatabases";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { isFabric, isFabricNative, openRestoreContainerDialog } from "Platform/Fabric/FabricUtil";
|
import { isFabric, isFabricNative, openRestoreContainerDialog } from "Platform/Fabric/FabricUtil";
|
||||||
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
||||||
import { traceOpen } from "Shared/Telemetry/TelemetryProcessor";
|
import { traceOpen } from "Shared/Telemetry/TelemetryProcessor";
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ import {
|
|||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
import React, { FC, useEffect } from "react";
|
import React, { FC, useEffect } from "react";
|
||||||
import create, { UseStore } from "zustand";
|
import create, { UseStore } from "zustand";
|
||||||
import { Keys } from "../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../Localization/t";
|
|
||||||
|
|
||||||
export interface DialogState {
|
export interface DialogState {
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ import { useCommandBar } from "../../Menus/CommandBar/CommandBarComponentAdapter
|
|||||||
import { SettingsTabV2 } from "../../Tabs/SettingsTabV2";
|
import { SettingsTabV2 } from "../../Tabs/SettingsTabV2";
|
||||||
import "./SettingsComponent.less";
|
import "./SettingsComponent.less";
|
||||||
import { mongoIndexingPolicyAADError } from "./SettingsRenderUtils";
|
import { mongoIndexingPolicyAADError } from "./SettingsRenderUtils";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import {
|
import {
|
||||||
ConflictResolutionComponent,
|
ConflictResolutionComponent,
|
||||||
ConflictResolutionComponentProps,
|
ConflictResolutionComponentProps,
|
||||||
|
|||||||
@@ -22,11 +22,10 @@ import {
|
|||||||
Stack,
|
Stack,
|
||||||
Text,
|
Text,
|
||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
|
import { Keys, t } from "Localization";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Urls } from "../../../Common/Constants";
|
import { Urls } from "../../../Common/Constants";
|
||||||
import { StyleConstants } from "../../../Common/StyleConstants";
|
import { StyleConstants } from "../../../Common/StyleConstants";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { hoursInAMonth } from "../../../Shared/Constants";
|
import { hoursInAMonth } from "../../../Shared/Constants";
|
||||||
import {
|
import {
|
||||||
computeRUUsagePriceHourly,
|
computeRUUsagePriceHourly,
|
||||||
@@ -371,7 +370,7 @@ export const getEstimatedSpendingElement = (
|
|||||||
export const manualToAutoscaleDisclaimerElement: JSX.Element = (
|
export const manualToAutoscaleDisclaimerElement: JSX.Element = (
|
||||||
<Text styles={infoAndToolTipTextStyle} id="manualToAutoscaleDisclaimerElement">
|
<Text styles={infoAndToolTipTextStyle} id="manualToAutoscaleDisclaimerElement">
|
||||||
{t(Keys.controls.settings.throughput.manualToAutoscaleDisclaimer)}{" "}
|
{t(Keys.controls.settings.throughput.manualToAutoscaleDisclaimer)}{" "}
|
||||||
<Link href={Urls.autoscaleMigration}>Learn more</Link>
|
<Link href={Urls.autoscaleMigration}>{t(Keys.common.learnMore)}</Link>
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ import { titleAndInputStackProps, unsavedEditorWarningMessage } from "Explorer/C
|
|||||||
import { isDirty } from "Explorer/Controls/Settings/SettingsUtils";
|
import { isDirty } from "Explorer/Controls/Settings/SettingsUtils";
|
||||||
import { loadMonaco } from "Explorer/LazyMonaco";
|
import { loadMonaco } from "Explorer/LazyMonaco";
|
||||||
import { monacoTheme, useThemeStore } from "hooks/useTheme";
|
import { monacoTheme, useThemeStore } from "hooks/useTheme";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
export interface ComputedPropertiesComponentProps {
|
export interface ComputedPropertiesComponentProps {
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ import { ChoiceGroup, IChoiceGroupOption, ITextFieldProps, Stack, TextField } fr
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as DataModels from "../../../../Contracts/DataModels";
|
import * as DataModels from "../../../../Contracts/DataModels";
|
||||||
import * as ViewModels from "../../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import {
|
import {
|
||||||
conflictResolutionCustomToolTip,
|
conflictResolutionCustomToolTip,
|
||||||
conflictResolutionLwwTooltip,
|
conflictResolutionLwwTooltip,
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ import {
|
|||||||
import { titleAndInputStackProps } from "Explorer/Controls/Settings/SettingsRenderUtils";
|
import { titleAndInputStackProps } from "Explorer/Controls/Settings/SettingsRenderUtils";
|
||||||
import { ContainerPolicyTabTypes, isDirty } from "Explorer/Controls/Settings/SettingsUtils";
|
import { ContainerPolicyTabTypes, isDirty } from "Explorer/Controls/Settings/SettingsUtils";
|
||||||
import { VectorEmbeddingPoliciesComponent } from "Explorer/Controls/VectorSearch/VectorEmbeddingPoliciesComponent";
|
import { VectorEmbeddingPoliciesComponent } from "Explorer/Controls/VectorSearch/VectorEmbeddingPoliciesComponent";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export interface ContainerPolicyComponentProps {
|
export interface ContainerPolicyComponentProps {
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ import { MessageBar, MessageBarType, Stack } from "@fluentui/react";
|
|||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as DataModels from "../../../../Contracts/DataModels";
|
import * as DataModels from "../../../../Contracts/DataModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import { loadMonaco } from "../../../LazyMonaco";
|
import { loadMonaco } from "../../../LazyMonaco";
|
||||||
import { titleAndInputStackProps, unsavedEditorWarningMessage } from "../SettingsRenderUtils";
|
import { titleAndInputStackProps, unsavedEditorWarningMessage } from "../SettingsRenderUtils";
|
||||||
import { isDirty as isContentDirty, isDataMaskingEnabled } from "../SettingsUtils";
|
import { isDirty as isContentDirty, isDataMaskingEnabled } from "../SettingsUtils";
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ import { FontIcon, Link, Stack, Text } from "@fluentui/react";
|
|||||||
import Explorer from "Explorer/Explorer";
|
import Explorer from "Explorer/Explorer";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import * as ViewModels from "../../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import { GlobalSecondaryIndexSourceComponent } from "./GlobalSecondaryIndexSourceComponent";
|
import { GlobalSecondaryIndexSourceComponent } from "./GlobalSecondaryIndexSourceComponent";
|
||||||
import { GlobalSecondaryIndexTargetComponent } from "./GlobalSecondaryIndexTargetComponent";
|
import { GlobalSecondaryIndexTargetComponent } from "./GlobalSecondaryIndexTargetComponent";
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ import { useSidePanel } from "hooks/useSidePanel";
|
|||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
import React, { useEffect, useRef } from "react";
|
import React, { useEffect, useRef } from "react";
|
||||||
import * as ViewModels from "../../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
|
|
||||||
export interface GlobalSecondaryIndexSourceComponentProps {
|
export interface GlobalSecondaryIndexSourceComponentProps {
|
||||||
collection: ViewModels.Collection;
|
collection: ViewModels.Collection;
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { Stack, Text } from "@fluentui/react";
|
import { Stack, Text } from "@fluentui/react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as ViewModels from "../../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
|
|
||||||
export interface GlobalSecondaryIndexTargetComponentProps {
|
export interface GlobalSecondaryIndexTargetComponentProps {
|
||||||
collection: ViewModels.Collection;
|
collection: ViewModels.Collection;
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import { monacoTheme, useThemeStore } from "hooks/useTheme";
|
|||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as DataModels from "../../../../Contracts/DataModels";
|
import * as DataModels from "../../../../Contracts/DataModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import { loadMonaco } from "../../../LazyMonaco";
|
import { loadMonaco } from "../../../LazyMonaco";
|
||||||
import { titleAndInputStackProps, unsavedEditorWarningMessage } from "../SettingsRenderUtils";
|
import { titleAndInputStackProps, unsavedEditorWarningMessage } from "../SettingsRenderUtils";
|
||||||
import { isDirty, isIndexTransforming } from "../SettingsUtils";
|
import { isDirty, isIndexTransforming } from "../SettingsUtils";
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { MessageBar, MessageBarType } from "@fluentui/react";
|
import { MessageBar, MessageBarType } from "@fluentui/react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { handleError } from "../../../../../Common/ErrorHandlingUtils";
|
import { handleError } from "../../../../../Common/ErrorHandlingUtils";
|
||||||
import { Keys } from "../../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../../Localization/t";
|
|
||||||
import {
|
import {
|
||||||
mongoIndexTransformationRefreshingMessage,
|
mongoIndexTransformationRefreshingMessage,
|
||||||
renderMongoIndexTransformationRefreshMessage,
|
renderMongoIndexTransformationRefreshMessage,
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ import {
|
|||||||
IDropdownOption,
|
IDropdownOption,
|
||||||
ITextField,
|
ITextField,
|
||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
import { Keys } from "../../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../../Localization/t";
|
|
||||||
import {
|
import {
|
||||||
addMongoIndexSubElementsTokens,
|
addMongoIndexSubElementsTokens,
|
||||||
mongoErrorMessageStyles,
|
mongoErrorMessageStyles,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ import {
|
|||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { MongoIndex } from "../../../../../Utils/arm/generatedClients/cosmos/types";
|
import { MongoIndex } from "../../../../../Utils/arm/generatedClients/cosmos/types";
|
||||||
import { Keys } from "../../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../../Localization/t";
|
|
||||||
import { CollapsibleSectionComponent } from "../../../CollapsiblePanel/CollapsibleSectionComponent";
|
import { CollapsibleSectionComponent } from "../../../CollapsiblePanel/CollapsibleSectionComponent";
|
||||||
import {
|
import {
|
||||||
addMongoIndexStackProps,
|
addMongoIndexStackProps,
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ import { cancelDataTransferJob, pollDataTransferJob } from "Common/dataAccess/da
|
|||||||
import { Platform, configContext } from "ConfigContext";
|
import { Platform, configContext } from "ConfigContext";
|
||||||
import Explorer from "Explorer/Explorer";
|
import Explorer from "Explorer/Explorer";
|
||||||
import { ChangePartitionKeyPane } from "Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane";
|
import { ChangePartitionKeyPane } from "Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import {
|
import {
|
||||||
CosmosSqlDataTransferDataSourceSink,
|
CosmosSqlDataTransferDataSourceSink,
|
||||||
DataTransferJobGetResults,
|
DataTransferJobGetResults,
|
||||||
@@ -161,17 +160,17 @@ export const PartitionKeyComponent: React.FC<PartitionKeyComponentProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const startPartitionkeyChangeWorkflow = () => {
|
const startPartitionkeyChangeWorkflow = () => {
|
||||||
useSidePanel
|
useSidePanel.getState().openSidePanel(
|
||||||
.getState()
|
t(Keys.controls.settings.partitionKeyEditor.changePartitionKey, {
|
||||||
.openSidePanel(
|
partitionKeyName: t(Keys.controls.settings.partitionKey.partitionKey).toLowerCase(),
|
||||||
"Change partition key",
|
}),
|
||||||
<ChangePartitionKeyPane
|
<ChangePartitionKeyPane
|
||||||
sourceDatabase={database}
|
sourceDatabase={database}
|
||||||
sourceCollection={collection}
|
sourceCollection={collection}
|
||||||
explorer={explorer}
|
explorer={explorer}
|
||||||
onClose={refreshDataTransferOperations}
|
onClose={refreshDataTransferOperations}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPercentageComplete = () => {
|
const getPercentageComplete = () => {
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import { Link, MessageBar, MessageBarType, Stack, Text, TextField } from "@fluentui/react";
|
import { Link, MessageBar, MessageBarType, Stack, Text, TextField } from "@fluentui/react";
|
||||||
|
import { Keys, t } from "Localization";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as Constants from "../../../../Common/Constants";
|
import * as Constants from "../../../../Common/Constants";
|
||||||
import { Platform, configContext } from "../../../../ConfigContext";
|
import { Platform, configContext } from "../../../../ConfigContext";
|
||||||
import * as DataModels from "../../../../Contracts/DataModels";
|
import * as DataModels from "../../../../Contracts/DataModels";
|
||||||
import * as ViewModels from "../../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import * as SharedConstants from "../../../../Shared/Constants";
|
import * as SharedConstants from "../../../../Shared/Constants";
|
||||||
import { userContext } from "../../../../UserContext";
|
import { userContext } from "../../../../UserContext";
|
||||||
import * as AutoPilotUtils from "../../../../Utils/AutoPilotUtils";
|
import * as AutoPilotUtils from "../../../../Utils/AutoPilotUtils";
|
||||||
@@ -94,8 +93,10 @@ export class ScaleComponent extends React.Component<ScaleComponentProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const minThroughput: string = this.getMinRUs().toLocaleString();
|
const minThroughput: string = this.getMinRUs().toLocaleString();
|
||||||
const maxThroughput: string = !this.props.isFixedContainer ? "unlimited" : this.getMaxRUs().toLocaleString();
|
const maxThroughput: string = !this.props.isFixedContainer
|
||||||
return `Throughput (${minThroughput} - ${maxThroughput} RU/s)`;
|
? t(Keys.controls.settings.scale.unlimited)
|
||||||
|
: this.getMaxRUs().toLocaleString();
|
||||||
|
return t(Keys.controls.settings.scale.throughputRangeLabel, { min: minThroughput, max: maxThroughput });
|
||||||
};
|
};
|
||||||
|
|
||||||
public canThroughputExceedMaximumValue = (): boolean => {
|
public canThroughputExceedMaximumValue = (): boolean => {
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ import {
|
|||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as ViewModels from "../../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../Localization/t";
|
|
||||||
import { userContext } from "../../../../UserContext";
|
import { userContext } from "../../../../UserContext";
|
||||||
import { Int32 } from "../../../Panes/Tables/Validators/EntityPropertyValidationCommon";
|
import { Int32 } from "../../../Panes/Tables/Validators/EntityPropertyValidationCommon";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Label, Slider, Stack, TextField, Toggle } from "@fluentui/react";
|
import { Label, Slider, Stack, TextField, Toggle } from "@fluentui/react";
|
||||||
import { ThroughputBucket } from "Contracts/DataModels";
|
import { ThroughputBucket } from "Contracts/DataModels";
|
||||||
import { Keys } from "../../../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../../../Localization/t";
|
|
||||||
import React, { FC, useEffect, useState } from "react";
|
import React, { FC, useEffect, useState } from "react";
|
||||||
import { isDirty } from "../../SettingsUtils";
|
import { isDirty } from "../../SettingsUtils";
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,9 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
TextField,
|
TextField,
|
||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
|
import { Keys, t } from "Localization";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import * as DataModels from "../../../../../Contracts/DataModels";
|
import * as DataModels from "../../../../../Contracts/DataModels";
|
||||||
import { Keys } from "../../../../../Localization/Keys.generated";
|
|
||||||
import { t } from "../../../../../Localization/t";
|
|
||||||
import * as SharedConstants from "../../../../../Shared/Constants";
|
import * as SharedConstants from "../../../../../Shared/Constants";
|
||||||
import { Action, ActionModifiers } from "../../../../../Shared/Telemetry/TelemetryConstants";
|
import { Action, ActionModifiers } from "../../../../../Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "../../../../../Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "../../../../../Shared/Telemetry/TelemetryProcessor";
|
||||||
@@ -336,13 +335,16 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
|
|||||||
</Text>
|
</Text>
|
||||||
<Stack horizontal style={{ marginTop: 5, marginBottom: 10 }}>
|
<Stack horizontal style={{ marginTop: 5, marginBottom: 10 }}>
|
||||||
<Text style={this.settingsAndScaleStyle.root}>
|
<Text style={this.settingsAndScaleStyle.root}>
|
||||||
{newPrices.currencySign} {calculateEstimateNumber(newPrices.hourlyPrice)}/hr
|
{newPrices.currencySign} {calculateEstimateNumber(newPrices.hourlyPrice)}
|
||||||
|
{t(Keys.controls.settings.costEstimate.perHour)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={this.settingsAndScaleStyle.root}>
|
<Text style={this.settingsAndScaleStyle.root}>
|
||||||
{newPrices.currencySign} {calculateEstimateNumber(newPrices.dailyPrice)}/day
|
{newPrices.currencySign} {calculateEstimateNumber(newPrices.dailyPrice)}
|
||||||
|
{t(Keys.controls.settings.costEstimate.perDay)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={this.settingsAndScaleStyle.root}>
|
<Text style={this.settingsAndScaleStyle.root}>
|
||||||
{newPrices.currencySign} {calculateEstimateNumber(newPrices.monthlyPrice)}/mo
|
{newPrices.currencySign} {calculateEstimateNumber(newPrices.monthlyPrice)}
|
||||||
|
{t(Keys.controls.settings.costEstimate.perMonth)}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</div>
|
</div>
|
||||||
@@ -359,13 +361,16 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
|
|||||||
</Text>
|
</Text>
|
||||||
<Stack horizontal style={{ marginTop: 5 }}>
|
<Stack horizontal style={{ marginTop: 5 }}>
|
||||||
<Text style={this.settingsAndScaleStyle.root}>
|
<Text style={this.settingsAndScaleStyle.root}>
|
||||||
{prices.currencySign} {calculateEstimateNumber(prices.hourlyPrice)}/hr
|
{prices.currencySign} {calculateEstimateNumber(prices.hourlyPrice)}
|
||||||
|
{t(Keys.controls.settings.costEstimate.perHour)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={this.settingsAndScaleStyle.root}>
|
<Text style={this.settingsAndScaleStyle.root}>
|
||||||
{prices.currencySign} {calculateEstimateNumber(prices.dailyPrice)}/day
|
{prices.currencySign} {calculateEstimateNumber(prices.dailyPrice)}
|
||||||
|
{t(Keys.controls.settings.costEstimate.perDay)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={this.settingsAndScaleStyle.root}>
|
<Text style={this.settingsAndScaleStyle.root}>
|
||||||
{prices.currencySign} {calculateEstimateNumber(prices.monthlyPrice)}/mo
|
{prices.currencySign} {calculateEstimateNumber(prices.monthlyPrice)}
|
||||||
|
{t(Keys.controls.settings.costEstimate.perMonth)}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import * as Constants from "../../../Common/Constants";
|
import * as Constants from "../../../Common/Constants";
|
||||||
import * as DataModels from "../../../Contracts/DataModels";
|
import * as DataModels from "../../../Contracts/DataModels";
|
||||||
import * as ViewModels from "../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { isFabricNative } from "../../../Platform/Fabric/FabricUtil";
|
import { isFabricNative } from "../../../Platform/Fabric/FabricUtil";
|
||||||
import { userContext } from "../../../UserContext";
|
import { userContext } from "../../../UserContext";
|
||||||
import { isCapabilityEnabled } from "../../../Utils/CapabilityUtils";
|
import { isCapabilityEnabled } from "../../../Utils/CapabilityUtils";
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ import {
|
|||||||
} from "Explorer/Panes/AddCollectionPanel/AddCollectionPanelUtility";
|
} from "Explorer/Panes/AddCollectionPanel/AddCollectionPanelUtility";
|
||||||
import { useSidePanel } from "hooks/useSidePanel";
|
import { useSidePanel } from "hooks/useSidePanel";
|
||||||
import { useTeachingBubble } from "hooks/useTeachingBubble";
|
import { useTeachingBubble } from "hooks/useTeachingBubble";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { DEFAULT_FABRIC_NATIVE_CONTAINER_THROUGHPUT, isFabricNative } from "Platform/Fabric/FabricUtil";
|
import { DEFAULT_FABRIC_NATIVE_CONTAINER_THROUGHPUT, isFabricNative } from "Platform/Fabric/FabricUtil";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { CollectionCreation } from "Shared/Constants";
|
import { CollectionCreation } from "Shared/Constants";
|
||||||
@@ -185,25 +184,25 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
|
|
||||||
{this.state.teachingBubbleStep === 1 && (
|
{this.state.teachingBubbleStep === 1 && (
|
||||||
<TeachingBubble
|
<TeachingBubble
|
||||||
headline="Create sample database"
|
headline={t(Keys.panes.addCollection.teachingBubble.step1Headline)}
|
||||||
target={"#newDatabaseId"}
|
target={"#newDatabaseId"}
|
||||||
calloutProps={{ gapSpace: 16 }}
|
calloutProps={{ gapSpace: 16 }}
|
||||||
primaryButtonProps={{ text: "Next", onClick: () => this.setState({ teachingBubbleStep: 2 }) }}
|
primaryButtonProps={{ text: t(Keys.common.next), onClick: () => this.setState({ teachingBubbleStep: 2 }) }}
|
||||||
secondaryButtonProps={{ text: "Cancel", onClick: () => this.setState({ teachingBubbleStep: 0 }) }}
|
secondaryButtonProps={{
|
||||||
|
text: t(Keys.common.cancel),
|
||||||
|
onClick: () => this.setState({ teachingBubbleStep: 0 }),
|
||||||
|
}}
|
||||||
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
||||||
footerContent="Step 1 of 4"
|
footerContent={t(Keys.panes.addCollection.teachingBubble.stepOfTotal, { current: "1", total: "4" })}
|
||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text style={{ color: "white" }}>
|
<Text style={{ color: "white" }}>{t(Keys.panes.addCollection.teachingBubble.step1Body)}</Text>
|
||||||
Database is the parent of a container. You can create a new database or use an existing one. In this
|
|
||||||
tutorial we are creating a new database named SampleDB.
|
|
||||||
</Text>
|
|
||||||
<Link
|
<Link
|
||||||
style={{ color: "white", fontWeight: 600 }}
|
style={{ color: "white", fontWeight: 600 }}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="https://aka.ms/TeachingbubbleResources"
|
href="https://aka.ms/TeachingbubbleResources"
|
||||||
>
|
>
|
||||||
Learn more about resources.
|
{t(Keys.panes.addCollection.teachingBubble.step1LearnMore)}
|
||||||
</Link>
|
</Link>
|
||||||
</Stack>
|
</Stack>
|
||||||
</TeachingBubble>
|
</TeachingBubble>
|
||||||
@@ -211,21 +210,21 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
|
|
||||||
{this.state.teachingBubbleStep === 2 && (
|
{this.state.teachingBubbleStep === 2 && (
|
||||||
<TeachingBubble
|
<TeachingBubble
|
||||||
headline="Setting throughput"
|
headline={t(Keys.panes.addCollection.teachingBubble.step2Headline)}
|
||||||
target={"#autoscaleRUValueField"}
|
target={"#autoscaleRUValueField"}
|
||||||
calloutProps={{ gapSpace: 16 }}
|
calloutProps={{ gapSpace: 16 }}
|
||||||
primaryButtonProps={{ text: "Next", onClick: () => this.setState({ teachingBubbleStep: 3 }) }}
|
primaryButtonProps={{ text: t(Keys.common.next), onClick: () => this.setState({ teachingBubbleStep: 3 }) }}
|
||||||
secondaryButtonProps={{ text: "Previous", onClick: () => this.setState({ teachingBubbleStep: 1 }) }}
|
secondaryButtonProps={{
|
||||||
|
text: t(Keys.common.previous),
|
||||||
|
onClick: () => this.setState({ teachingBubbleStep: 1 }),
|
||||||
|
}}
|
||||||
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
||||||
footerContent="Step 2 of 4"
|
footerContent={t(Keys.panes.addCollection.teachingBubble.stepOfTotal, { current: "2", total: "4" })}
|
||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text style={{ color: "white" }}>
|
<Text style={{ color: "white" }}>{t(Keys.panes.addCollection.teachingBubble.step2Body)}</Text>
|
||||||
Cosmos DB recommends sharing throughput across database. Autoscale will give you a flexible amount of
|
|
||||||
throughput based on the max RU/s set (Request Units).
|
|
||||||
</Text>
|
|
||||||
<Link style={{ color: "white", fontWeight: 600 }} target="_blank" href="https://aka.ms/teachingbubbleRU">
|
<Link style={{ color: "white", fontWeight: 600 }} target="_blank" href="https://aka.ms/teachingbubbleRU">
|
||||||
Learn more about RU/s.
|
{t(Keys.panes.addCollection.teachingBubble.step2LearnMore)}
|
||||||
</Link>
|
</Link>
|
||||||
</Stack>
|
</Stack>
|
||||||
</TeachingBubble>
|
</TeachingBubble>
|
||||||
@@ -233,36 +232,41 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
|
|
||||||
{this.state.teachingBubbleStep === 3 && (
|
{this.state.teachingBubbleStep === 3 && (
|
||||||
<TeachingBubble
|
<TeachingBubble
|
||||||
headline="Naming container"
|
headline={t(Keys.panes.addCollection.teachingBubble.step3Headline)}
|
||||||
target={"#collectionId"}
|
target={"#collectionId"}
|
||||||
calloutProps={{ gapSpace: 16 }}
|
calloutProps={{ gapSpace: 16 }}
|
||||||
primaryButtonProps={{ text: "Next", onClick: () => this.setState({ teachingBubbleStep: 4 }) }}
|
primaryButtonProps={{ text: t(Keys.common.next), onClick: () => this.setState({ teachingBubbleStep: 4 }) }}
|
||||||
secondaryButtonProps={{ text: "Previous", onClick: () => this.setState({ teachingBubbleStep: 2 }) }}
|
secondaryButtonProps={{
|
||||||
|
text: t(Keys.common.previous),
|
||||||
|
onClick: () => this.setState({ teachingBubbleStep: 2 }),
|
||||||
|
}}
|
||||||
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
||||||
footerContent="Step 3 of 4"
|
footerContent={t(Keys.panes.addCollection.teachingBubble.stepOfTotal, { current: "3", total: "4" })}
|
||||||
>
|
>
|
||||||
Name your container
|
{t(Keys.panes.addCollection.teachingBubble.step3Body)}
|
||||||
</TeachingBubble>
|
</TeachingBubble>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{this.state.teachingBubbleStep === 4 && (
|
{this.state.teachingBubbleStep === 4 && (
|
||||||
<TeachingBubble
|
<TeachingBubble
|
||||||
headline="Setting partition key"
|
headline={t(Keys.panes.addCollection.teachingBubble.step4Headline)}
|
||||||
target={"#addCollection-partitionKeyValue"}
|
target={"#addCollection-partitionKeyValue"}
|
||||||
calloutProps={{ gapSpace: 16 }}
|
calloutProps={{ gapSpace: 16 }}
|
||||||
primaryButtonProps={{
|
primaryButtonProps={{
|
||||||
text: "Create container",
|
text: t(Keys.panes.addCollection.teachingBubble.step4CreateContainer),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
this.setState({ teachingBubbleStep: 5 });
|
this.setState({ teachingBubbleStep: 5 });
|
||||||
this.submit();
|
this.submit();
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
secondaryButtonProps={{ text: "Previous", onClick: () => this.setState({ teachingBubbleStep: 2 }) }}
|
secondaryButtonProps={{
|
||||||
|
text: t(Keys.common.previous),
|
||||||
|
onClick: () => this.setState({ teachingBubbleStep: 2 }),
|
||||||
|
}}
|
||||||
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
||||||
footerContent="Step 4 of 4"
|
footerContent={t(Keys.panes.addCollection.teachingBubble.stepOfTotal, { current: "4", total: "4" })}
|
||||||
>
|
>
|
||||||
Last step - you will need to define a partition key for your collection. /address was chosen for this
|
{t(Keys.panes.addCollection.teachingBubble.step4Body)}
|
||||||
particular example. A good partition key should have a wide range of possible value
|
|
||||||
</TeachingBubble>
|
</TeachingBubble>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -272,7 +276,9 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
<Stack horizontal>
|
<Stack horizontal>
|
||||||
<span className="mandatoryStar">* </span>
|
<span className="mandatoryStar">* </span>
|
||||||
<Text className="panelTextBold" variant="small">
|
<Text className="panelTextBold" variant="small">
|
||||||
Database {userContext.apiType === "Mongo" ? "name" : "id"}
|
{userContext.apiType === "Mongo"
|
||||||
|
? t(Keys.panes.addCollection.databaseFieldLabelName)
|
||||||
|
: t(Keys.panes.addCollection.databaseFieldLabelId)}
|
||||||
</Text>
|
</Text>
|
||||||
<TooltipHost
|
<TooltipHost
|
||||||
directionalHint={DirectionalHint.bottomLeftEdge}
|
directionalHint={DirectionalHint.bottomLeftEdge}
|
||||||
@@ -297,7 +303,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
<input
|
<input
|
||||||
className="panelRadioBtn"
|
className="panelRadioBtn"
|
||||||
checked={this.state.createNewDatabase}
|
checked={this.state.createNewDatabase}
|
||||||
aria-label="Create new database"
|
aria-label={t(Keys.panes.addCollection.createNewDatabaseAriaLabel)}
|
||||||
aria-checked={this.state.createNewDatabase}
|
aria-checked={this.state.createNewDatabase}
|
||||||
name="databaseType"
|
name="databaseType"
|
||||||
type="radio"
|
type="radio"
|
||||||
@@ -311,7 +317,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
<input
|
<input
|
||||||
className="panelRadioBtn"
|
className="panelRadioBtn"
|
||||||
checked={!this.state.createNewDatabase}
|
checked={!this.state.createNewDatabase}
|
||||||
aria-label="Use existing database"
|
aria-label={t(Keys.panes.addCollection.useExistingDatabaseAriaLabel)}
|
||||||
aria-checked={!this.state.createNewDatabase}
|
aria-checked={!this.state.createNewDatabase}
|
||||||
name="databaseType"
|
name="databaseType"
|
||||||
type="radio"
|
type="radio"
|
||||||
@@ -335,10 +341,10 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
pattern={ValidCosmosDbIdInputPattern.source}
|
pattern={ValidCosmosDbIdInputPattern.source}
|
||||||
title={ValidCosmosDbIdDescription}
|
title={ValidCosmosDbIdDescription}
|
||||||
placeholder="Type a new database id"
|
placeholder={t(Keys.panes.addCollection.newDatabaseIdPlaceholder)}
|
||||||
size={40}
|
size={40}
|
||||||
className="panelTextField"
|
className="panelTextField"
|
||||||
aria-label="New database id, Type a new database id"
|
aria-label={t(Keys.panes.addCollection.newDatabaseIdAriaLabel)}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
value={this.state.newDatabaseId}
|
value={this.state.newDatabaseId}
|
||||||
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
|
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
|
||||||
@@ -404,10 +410,10 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
)}
|
)}
|
||||||
{!this.state.createNewDatabase && (
|
{!this.state.createNewDatabase && (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
ariaLabel="Choose an existing database"
|
ariaLabel={t(Keys.panes.addCollection.chooseExistingDatabase)}
|
||||||
styles={{ title: { height: 27, lineHeight: 27 }, dropdownItem: { fontSize: 12 } }}
|
styles={{ title: { height: 27, lineHeight: 27 }, dropdownItem: { fontSize: 12 } }}
|
||||||
style={{ width: 300, fontSize: 12 }}
|
style={{ width: 300, fontSize: 12 }}
|
||||||
placeholder="Choose an existing database"
|
placeholder={t(Keys.panes.addCollection.chooseExistingDatabase)}
|
||||||
options={this.getDatabaseOptions()}
|
options={this.getDatabaseOptions()}
|
||||||
onChange={(event: React.FormEvent<HTMLDivElement>, database: IDropdownOption) =>
|
onChange={(event: React.FormEvent<HTMLDivElement>, database: IDropdownOption) =>
|
||||||
this.setState({ selectedDatabaseId: database.key as string })
|
this.setState({ selectedDatabaseId: database.key as string })
|
||||||
@@ -1027,16 +1033,15 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
<PanelLoadingScreen />
|
<PanelLoadingScreen />
|
||||||
{this.state.teachingBubbleStep === 5 && (
|
{this.state.teachingBubbleStep === 5 && (
|
||||||
<TeachingBubble
|
<TeachingBubble
|
||||||
headline="Creating sample container"
|
headline={t(Keys.panes.addCollection.teachingBubble.step5Headline)}
|
||||||
target={"#loadingScreen"}
|
target={"#loadingScreen"}
|
||||||
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
onDismiss={() => this.setState({ teachingBubbleStep: 0 })}
|
||||||
styles={{ footer: { width: "100%" } }}
|
styles={{ footer: { width: "100%" } }}
|
||||||
>
|
>
|
||||||
A sample container is now being created and we are adding sample data for you. It should take about 1
|
{t(Keys.panes.addCollection.teachingBubble.step5Body)}
|
||||||
minute.
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
Once the sample container is created, review your sample dataset and follow next steps
|
{t(Keys.panes.addCollection.teachingBubble.step5BodyFollowUp)}
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<ProgressIndicator
|
<ProgressIndicator
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import * as Constants from "Common/Constants";
|
|||||||
import { configContext, Platform } from "ConfigContext";
|
import { configContext, Platform } from "ConfigContext";
|
||||||
import * as DataModels from "Contracts/DataModels";
|
import * as DataModels from "Contracts/DataModels";
|
||||||
import { getFullTextLanguageOptions } from "Explorer/Controls/FullTextSeach/FullTextPoliciesComponent";
|
import { getFullTextLanguageOptions } from "Explorer/Controls/FullTextSeach/FullTextPoliciesComponent";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { isFabricNative } from "Platform/Fabric/FabricUtil";
|
import { isFabricNative } from "Platform/Fabric/FabricUtil";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { userContext } from "UserContext";
|
import { userContext } from "UserContext";
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = `
|
|||||||
className="panelTextBold"
|
className="panelTextBold"
|
||||||
variant="small"
|
variant="small"
|
||||||
>
|
>
|
||||||
Database
|
Database id
|
||||||
id
|
|
||||||
</Text>
|
</Text>
|
||||||
<StyledTooltipHostBase
|
<StyledTooltipHostBase
|
||||||
content="A database is analogous to a namespace. It is the unit of management for a set of containers."
|
content="A database is analogous to a namespace. It is the unit of management for a set of containers."
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Checkbox, Stack, Text, TextField } from "@fluentui/react";
|
import { Checkbox, Stack, Text, TextField } from "@fluentui/react";
|
||||||
import { getNewDatabaseSharedThroughputDefault } from "Common/DatabaseUtility";
|
import { getNewDatabaseSharedThroughputDefault } from "Common/DatabaseUtility";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
||||||
import React, { FunctionComponent, useEffect, useState } from "react";
|
import React, { FunctionComponent, useEffect, useState } from "react";
|
||||||
import * as Constants from "../../../Common/Constants";
|
import * as Constants from "../../../Common/Constants";
|
||||||
@@ -156,7 +155,9 @@ export const AddDatabasePanel: FunctionComponent<AddDatabasePaneProps> = ({
|
|||||||
|
|
||||||
if (throughput > SharedConstants.CollectionCreation.DefaultCollectionRUs100K && !isCostAcknowledged) {
|
if (throughput > SharedConstants.CollectionCreation.DefaultCollectionRUs100K && !isCostAcknowledged) {
|
||||||
setFormErrors(
|
setFormErrors(
|
||||||
t(Keys.panes.addDatabase.acknowledgeSpendError, { period: isAutoscaleSelected ? "monthly" : "daily" }),
|
isAutoscaleSelected
|
||||||
|
? t(Keys.panes.addDatabase.acknowledgeSpendErrorMonthly)
|
||||||
|
: t(Keys.panes.addDatabase.acknowledgeSpendErrorDaily),
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -227,7 +228,7 @@ export const AddDatabasePanel: FunctionComponent<AddDatabasePaneProps> = ({
|
|||||||
{!isServerlessAccount() && (
|
{!isServerlessAccount() && (
|
||||||
<Stack horizontal>
|
<Stack horizontal>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
title="Provision shared throughput"
|
title={t(Keys.panes.addDatabase.provisionSharedThroughputTitle)}
|
||||||
styles={{
|
styles={{
|
||||||
text: { fontSize: 12, color: "var(--colorNeutralForeground1)" },
|
text: { fontSize: 12, color: "var(--colorNeutralForeground1)" },
|
||||||
checkbox: { width: 12, height: 12 },
|
checkbox: { width: 12, height: 12 },
|
||||||
@@ -238,7 +239,7 @@ export const AddDatabasePanel: FunctionComponent<AddDatabasePaneProps> = ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
label="Provision throughput"
|
label={t(Keys.panes.addDatabase.provisionThroughputLabel)}
|
||||||
checked={databaseCreateNewShared}
|
checked={databaseCreateNewShared}
|
||||||
onChange={() => setDatabaseCreateNewShared(!databaseCreateNewShared)}
|
onChange={() => setDatabaseCreateNewShared(!databaseCreateNewShared)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ import { PanelInfoErrorComponent } from "Explorer/Panes/PanelInfoErrorComponent"
|
|||||||
import { PanelLoadingScreen } from "Explorer/Panes/PanelLoadingScreen";
|
import { PanelLoadingScreen } from "Explorer/Panes/PanelLoadingScreen";
|
||||||
import { useDatabases } from "Explorer/useDatabases";
|
import { useDatabases } from "Explorer/useDatabases";
|
||||||
import { useSidePanel } from "hooks/useSidePanel";
|
import { useSidePanel } from "hooks/useSidePanel";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
||||||
import { CollectionCreation } from "Shared/Constants";
|
import { CollectionCreation } from "Shared/Constants";
|
||||||
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import * as Constants from "Common/Constants";
|
|||||||
import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils";
|
import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils";
|
||||||
import { InfoTooltip } from "Common/Tooltip/InfoTooltip";
|
import { InfoTooltip } from "Common/Tooltip/InfoTooltip";
|
||||||
import { useSidePanel } from "hooks/useSidePanel";
|
import { useSidePanel } from "hooks/useSidePanel";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import React, { FunctionComponent, useState } from "react";
|
import React, { FunctionComponent, useState } from "react";
|
||||||
import * as SharedConstants from "Shared/Constants";
|
import * as SharedConstants from "Shared/Constants";
|
||||||
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
||||||
|
|||||||
@@ -26,8 +26,7 @@ import {
|
|||||||
import Explorer from "Explorer/Explorer";
|
import Explorer from "Explorer/Explorer";
|
||||||
import { RightPaneForm } from "Explorer/Panes/RightPaneForm/RightPaneForm";
|
import { RightPaneForm } from "Explorer/Panes/RightPaneForm/RightPaneForm";
|
||||||
import { useDatabases } from "Explorer/useDatabases";
|
import { useDatabases } from "Explorer/useDatabases";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { userContext } from "UserContext";
|
import { userContext } from "UserContext";
|
||||||
import { getCollectionName } from "Utils/APITypeUtils";
|
import { getCollectionName } from "Utils/APITypeUtils";
|
||||||
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ import { HttpStatusCodes, PoolIdType } from "../../../Common/Constants";
|
|||||||
import { getErrorMessage, handleError } from "../../../Common/ErrorHandlingUtils";
|
import { getErrorMessage, handleError } from "../../../Common/ErrorHandlingUtils";
|
||||||
import { GitHubOAuthService } from "../../../GitHub/GitHubOAuthService";
|
import { GitHubOAuthService } from "../../../GitHub/GitHubOAuthService";
|
||||||
import { IPinnedRepo, JunoClient } from "../../../Juno/JunoClient";
|
import { IPinnedRepo, JunoClient } from "../../../Juno/JunoClient";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import * as GitHubUtils from "../../../Utils/GitHubUtils";
|
import * as GitHubUtils from "../../../Utils/GitHubUtils";
|
||||||
import * as NotificationConsoleUtils from "../../../Utils/NotificationConsoleUtils";
|
import * as NotificationConsoleUtils from "../../../Utils/NotificationConsoleUtils";
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ import {
|
|||||||
import { GitHubReposTitle } from "Explorer/Tree/ResourceTree";
|
import { GitHubReposTitle } from "Explorer/Tree/ResourceTree";
|
||||||
import React, { FormEvent, FunctionComponent } from "react";
|
import React, { FormEvent, FunctionComponent } from "react";
|
||||||
import { IPinnedRepo } from "../../../Juno/JunoClient";
|
import { IPinnedRepo } from "../../../Juno/JunoClient";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import * as GitHubUtils from "../../../Utils/GitHubUtils";
|
import * as GitHubUtils from "../../../Utils/GitHubUtils";
|
||||||
import { useNotebook } from "../../Notebook/useNotebook";
|
import { useNotebook } from "../../Notebook/useNotebook";
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ import DeleteFeedback from "Common/DeleteFeedback";
|
|||||||
import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils";
|
import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils";
|
||||||
import { deleteCollection } from "Common/dataAccess/deleteCollection";
|
import { deleteCollection } from "Common/dataAccess/deleteCollection";
|
||||||
import { Collection } from "Contracts/ViewModels";
|
import { Collection } from "Contracts/ViewModels";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { DefaultExperienceUtility } from "Shared/DefaultExperienceUtility";
|
import { DefaultExperienceUtility } from "Shared/DefaultExperienceUtility";
|
||||||
import { Action, ActionModifiers } from "Shared/Telemetry/TelemetryConstants";
|
import { Action, ActionModifiers } from "Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "Shared/Telemetry/TelemetryProcessor";
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ import DeleteFeedback from "Common/DeleteFeedback";
|
|||||||
import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils";
|
import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils";
|
||||||
import { deleteDatabase } from "Common/dataAccess/deleteDatabase";
|
import { deleteDatabase } from "Common/dataAccess/deleteDatabase";
|
||||||
import { Collection, Database } from "Contracts/ViewModels";
|
import { Collection, Database } from "Contracts/ViewModels";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { DefaultExperienceUtility } from "Shared/DefaultExperienceUtility";
|
import { DefaultExperienceUtility } from "Shared/DefaultExperienceUtility";
|
||||||
import { Action, ActionModifiers } from "Shared/Telemetry/TelemetryConstants";
|
import { Action, ActionModifiers } from "Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "Shared/Telemetry/TelemetryProcessor";
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import { useBoolean } from "@fluentui/react-hooks";
|
|||||||
import React, { FunctionComponent, useRef, useState } from "react";
|
import React, { FunctionComponent, useRef, useState } from "react";
|
||||||
import AddPropertyIcon from "../../../../images/Add-property.svg";
|
import AddPropertyIcon from "../../../../images/Add-property.svg";
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { logConsoleError } from "../../../Utils/NotificationConsoleUtils";
|
import { logConsoleError } from "../../../Utils/NotificationConsoleUtils";
|
||||||
import StoredProcedure from "../../Tree/StoredProcedure";
|
import StoredProcedure from "../../Tree/StoredProcedure";
|
||||||
import { RightPaneForm, RightPaneFormProps } from "../RightPaneForm/RightPaneForm";
|
import { RightPaneForm, RightPaneFormProps } from "../RightPaneForm/RightPaneForm";
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ import {
|
|||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
import AddPropertyIcon from "../../../../images/Add-property.svg";
|
import AddPropertyIcon from "../../../../images/Add-property.svg";
|
||||||
import EntityCancelIcon from "../../../../images/Entity_cancel.svg";
|
import EntityCancelIcon from "../../../../images/Entity_cancel.svg";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
|
|
||||||
const dropdownStyles: Partial<IDropdownStyles> = { dropdown: { width: 100 } };
|
const dropdownStyles: Partial<IDropdownStyles> = { dropdown: { width: 100 } };
|
||||||
const options = [
|
const options = [
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
import * as ViewModels from "../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
import { GraphStyleComponent } from "../../Graph/GraphStyleComponent/GraphStyleComponent";
|
import { GraphStyleComponent } from "../../Graph/GraphStyleComponent/GraphStyleComponent";
|
||||||
import { IGraphConfig } from "../../Tabs/GraphTab";
|
import { IGraphConfig } from "../../Tabs/GraphTab";
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ import folderIcon from "../../../../images/folder_16x16.svg";
|
|||||||
import { logError } from "../../../Common/Logger";
|
import { logError } from "../../../Common/Logger";
|
||||||
import { Collection } from "../../../Contracts/ViewModels";
|
import { Collection } from "../../../Contracts/ViewModels";
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { userContext } from "../../../UserContext";
|
import { userContext } from "../../../UserContext";
|
||||||
import { logConsoleError, logConsoleInfo, logConsoleProgress } from "../../../Utils/NotificationConsoleUtils";
|
import { logConsoleError, logConsoleInfo, logConsoleProgress } from "../../../Utils/NotificationConsoleUtils";
|
||||||
import { useSelectedNode } from "../../useSelectedNode";
|
import { useSelectedNode } from "../../useSelectedNode";
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { useBoolean } from "@fluentui/react-hooks";
|
import { useBoolean } from "@fluentui/react-hooks";
|
||||||
import React, { FunctionComponent, useState } from "react";
|
import React, { FunctionComponent, useState } from "react";
|
||||||
import * as ViewModels from "../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
import { NewVertexComponent } from "../../Graph/NewVertexComponent/NewVertexComponent";
|
import { NewVertexComponent } from "../../Graph/NewVertexComponent/NewVertexComponent";
|
||||||
import { RightPaneForm, RightPaneFormProps } from "../RightPaneForm/RightPaneForm";
|
import { RightPaneForm, RightPaneFormProps } from "../RightPaneForm/RightPaneForm";
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Icon, Link, Stack, Text } from "@fluentui/react";
|
import { Icon, Link, Stack, Text } from "@fluentui/react";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useNotificationConsole } from "../../hooks/useNotificationConsole";
|
import { useNotificationConsole } from "../../hooks/useNotificationConsole";
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ import { getErrorMessage, getErrorStack, handleError } from "../../../Common/Err
|
|||||||
import { useNotebookSnapshotStore } from "../../../hooks/useNotebookSnapshotStore";
|
import { useNotebookSnapshotStore } from "../../../hooks/useNotebookSnapshotStore";
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
import { JunoClient } from "../../../Juno/JunoClient";
|
import { JunoClient } from "../../../Juno/JunoClient";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { Action } from "../../../Shared/Telemetry/TelemetryConstants";
|
import { Action } from "../../../Shared/Telemetry/TelemetryConstants";
|
||||||
import { traceFailure, traceStart, traceSuccess } from "../../../Shared/Telemetry/TelemetryProcessor";
|
import { traceFailure, traceStart, traceSuccess } from "../../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import * as NotificationConsoleUtils from "../../../Utils/NotificationConsoleUtils";
|
import * as NotificationConsoleUtils from "../../../Utils/NotificationConsoleUtils";
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { Dropdown, IDropdownProps, ITextFieldProps, Stack, Text, TextField } from "@fluentui/react";
|
import { Dropdown, IDropdownProps, ITextFieldProps, Stack, Text, TextField } from "@fluentui/react";
|
||||||
import { ImmutableNotebook } from "@nteract/commutable";
|
import { ImmutableNotebook } from "@nteract/commutable";
|
||||||
import React, { FunctionComponent, useState } from "react";
|
import React, { FunctionComponent, useState } from "react";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { GalleryCardComponent } from "../../Controls/NotebookGallery/Cards/GalleryCardComponent";
|
import { GalleryCardComponent } from "../../Controls/NotebookGallery/Cards/GalleryCardComponent";
|
||||||
import * as FileSystemUtil from "../../Notebook/FileSystemUtil";
|
import * as FileSystemUtil from "../../Notebook/FileSystemUtil";
|
||||||
import { SnapshotRequest } from "../../Notebook/NotebookComponent/types";
|
import { SnapshotRequest } from "../../Notebook/NotebookComponent/types";
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ import React, { FunctionComponent, useState } from "react";
|
|||||||
import { Areas, SavedQueries } from "../../../Common/Constants";
|
import { Areas, SavedQueries } from "../../../Common/Constants";
|
||||||
import { getErrorMessage, getErrorStack } from "../../../Common/ErrorHandlingUtils";
|
import { getErrorMessage, getErrorStack } from "../../../Common/ErrorHandlingUtils";
|
||||||
import { Query } from "../../../Contracts/DataModels";
|
import { Query } from "../../../Contracts/DataModels";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { Action } from "../../../Shared/Telemetry/TelemetryConstants";
|
import { Action } from "../../../Shared/Telemetry/TelemetryConstants";
|
||||||
import { traceFailure, traceStart, traceSuccess } from "../../../Shared/Telemetry/TelemetryProcessor";
|
import { traceFailure, traceStart, traceSuccess } from "../../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import { logConsoleError } from "../../../Utils/NotificationConsoleUtils";
|
import { logConsoleError } from "../../../Utils/NotificationConsoleUtils";
|
||||||
|
|||||||
@@ -24,8 +24,7 @@ import { InfoTooltip } from "Common/Tooltip/InfoTooltip";
|
|||||||
import { Platform, configContext } from "ConfigContext";
|
import { Platform, configContext } from "ConfigContext";
|
||||||
import { useDialog } from "Explorer/Controls/Dialog";
|
import { useDialog } from "Explorer/Controls/Dialog";
|
||||||
import { useDatabases } from "Explorer/useDatabases";
|
import { useDatabases } from "Explorer/useDatabases";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { isFabric, isFabricNative } from "Platform/Fabric/FabricUtil";
|
import { isFabric, isFabricNative } from "Platform/Fabric/FabricUtil";
|
||||||
import {
|
import {
|
||||||
AppStateComponentNames,
|
AppStateComponentNames,
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ import {
|
|||||||
import { configContext } from "ConfigContext";
|
import { configContext } from "ConfigContext";
|
||||||
import { ColumnDefinition } from "Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent";
|
import { ColumnDefinition } from "Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent";
|
||||||
import { CosmosFluentProvider, getPlatformTheme } from "Explorer/Theme/ThemeUtil";
|
import { CosmosFluentProvider, getPlatformTheme } from "Explorer/Theme/ThemeUtil";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useSidePanel } from "../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../hooks/useSidePanel";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { IDropdownOption, Image, Label, Stack, Text, TextField } from "@fluentui/react";
|
import { IDropdownOption, Image, Label, Stack, Text, TextField } from "@fluentui/react";
|
||||||
import { useBoolean } from "@fluentui/react-hooks";
|
import { useBoolean } from "@fluentui/react-hooks";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { logConsoleError } from "Utils/NotificationConsoleUtils";
|
import { logConsoleError } from "Utils/NotificationConsoleUtils";
|
||||||
import React, { FunctionComponent, useEffect, useState } from "react";
|
import React, { FunctionComponent, useEffect, useState } from "react";
|
||||||
import * as _ from "underscore";
|
import * as _ from "underscore";
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { IDropdownOption, Image, Label, Stack, Text, TextField } from "@fluentui/react";
|
import { IDropdownOption, Image, Label, Stack, Text, TextField } from "@fluentui/react";
|
||||||
import { useBoolean } from "@fluentui/react-hooks";
|
import { useBoolean } from "@fluentui/react-hooks";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { logConsoleError } from "Utils/NotificationConsoleUtils";
|
import { logConsoleError } from "Utils/NotificationConsoleUtils";
|
||||||
import React, { FunctionComponent, useEffect, useState } from "react";
|
import React, { FunctionComponent, useEffect, useState } from "react";
|
||||||
import * as _ from "underscore";
|
import * as _ from "underscore";
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Checkbox, Text } from "@fluentui/react";
|
import { Checkbox, Text } from "@fluentui/react";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import React, { FunctionComponent, useEffect, useState } from "react";
|
import React, { FunctionComponent, useEffect, useState } from "react";
|
||||||
import { userContext } from "../../../../UserContext";
|
import { userContext } from "../../../../UserContext";
|
||||||
import { useSidePanel } from "../../../../hooks/useSidePanel";
|
import { useSidePanel } from "../../../../hooks/useSidePanel";
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ import {
|
|||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
import { Upload } from "Common/Upload/Upload";
|
import { Upload } from "Common/Upload/Upload";
|
||||||
import { UploadDetailsRecord } from "Contracts/ViewModels";
|
import { UploadDetailsRecord } from "Contracts/ViewModels";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { logConsoleError } from "Utils/NotificationConsoleUtils";
|
import { logConsoleError } from "Utils/NotificationConsoleUtils";
|
||||||
import React, { ChangeEvent, FunctionComponent, useReducer, useState } from "react";
|
import React, { ChangeEvent, FunctionComponent, useReducer, useState } from "react";
|
||||||
import { getErrorMessage } from "../../Tables/Utilities";
|
import { getErrorMessage } from "../../Tables/Utilities";
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ import { DocumentAddRegular, LinkMultipleRegular, OpenRegular } from "@fluentui/
|
|||||||
import { SampleDataConfiguration, SampleDataImportDialog } from "Explorer/SplashScreen/SampleDataImportDialog";
|
import { SampleDataConfiguration, SampleDataImportDialog } from "Explorer/SplashScreen/SampleDataImportDialog";
|
||||||
import { SampleDataFile } from "Explorer/SplashScreen/SampleUtil";
|
import { SampleDataFile } from "Explorer/SplashScreen/SampleUtil";
|
||||||
import { CosmosFluentProvider } from "Explorer/Theme/ThemeUtil";
|
import { CosmosFluentProvider } from "Explorer/Theme/ThemeUtil";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { isFabricNative, isFabricNativeReadOnly } from "Platform/Fabric/FabricUtil";
|
import { isFabricNative, isFabricNativeReadOnly } from "Platform/Fabric/FabricUtil";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { userContext } from "UserContext";
|
import { userContext } from "UserContext";
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ import {
|
|||||||
} from "@fluentui/react-components";
|
} from "@fluentui/react-components";
|
||||||
import Explorer from "Explorer/Explorer";
|
import Explorer from "Explorer/Explorer";
|
||||||
import { checkContainerExists, createContainer, importData, SampleDataFile } from "Explorer/SplashScreen/SampleUtil";
|
import { checkContainerExists, createContainer, importData, SampleDataFile } from "Explorer/SplashScreen/SampleUtil";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import * as ViewModels from "../../Contracts/ViewModels";
|
import * as ViewModels from "../../Contracts/ViewModels";
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ import { sendMessage } from "Common/MessageHandler";
|
|||||||
import { MessageTypes } from "Contracts/ExplorerContracts";
|
import { MessageTypes } from "Contracts/ExplorerContracts";
|
||||||
import { TerminalKind } from "Contracts/ViewModels";
|
import { TerminalKind } from "Contracts/ViewModels";
|
||||||
import { SplashScreenButton } from "Explorer/SplashScreen/SplashScreenButton";
|
import { SplashScreenButton } from "Explorer/SplashScreen/SplashScreenButton";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
||||||
import { traceOpen } from "Shared/Telemetry/TelemetryProcessor";
|
import { traceOpen } from "Shared/Telemetry/TelemetryProcessor";
|
||||||
import { useCarousel } from "hooks/useCarousel";
|
import { useCarousel } from "hooks/useCarousel";
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ import { queryConflicts } from "../../Common/dataAccess/queryConflicts";
|
|||||||
import { updateDocument } from "../../Common/dataAccess/updateDocument";
|
import { updateDocument } from "../../Common/dataAccess/updateDocument";
|
||||||
import * as DataModels from "../../Contracts/DataModels";
|
import * as DataModels from "../../Contracts/DataModels";
|
||||||
import * as ViewModels from "../../Contracts/ViewModels";
|
import * as ViewModels from "../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../Localization/t";
|
|
||||||
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
|
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import { CommandButtonComponentProps } from "../Controls/CommandButton/CommandButtonComponent";
|
import { CommandButtonComponentProps } from "../Controls/CommandButton/CommandButtonComponent";
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ import { usePrevious } from "Explorer/Tabs/DocumentsTabV2/SelectionHelper";
|
|||||||
import { CosmosFluentProvider, LayoutConstants, cosmosShorthands, tokens } from "Explorer/Theme/ThemeUtil";
|
import { CosmosFluentProvider, LayoutConstants, cosmosShorthands, tokens } from "Explorer/Theme/ThemeUtil";
|
||||||
import { useSelectedNode } from "Explorer/useSelectedNode";
|
import { useSelectedNode } from "Explorer/useSelectedNode";
|
||||||
import { KeyboardAction, KeyboardActionGroup, useKeyboardActionGroup } from "KeyboardShortcuts";
|
import { KeyboardAction, KeyboardActionGroup, useKeyboardActionGroup } from "KeyboardShortcuts";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { isFabric } from "Platform/Fabric/FabricUtil";
|
import { isFabric } from "Platform/Fabric/FabricUtil";
|
||||||
import { QueryConstants } from "Shared/Constants";
|
import { QueryConstants } from "Shared/Constants";
|
||||||
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
|
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import { configContext } from "../../../ConfigContext";
|
import { configContext } from "../../../ConfigContext";
|
||||||
import * as ViewModels from "../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants";
|
import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import { userContext } from "../../../UserContext";
|
import { userContext } from "../../../UserContext";
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ import { QueryTabStyles, useQueryTabStyles } from "Explorer/Tabs/QueryTab/Styles
|
|||||||
import { CosmosFluentProvider } from "Explorer/Theme/ThemeUtil";
|
import { CosmosFluentProvider } from "Explorer/Theme/ThemeUtil";
|
||||||
import { useSelectedNode } from "Explorer/useSelectedNode";
|
import { useSelectedNode } from "Explorer/useSelectedNode";
|
||||||
import { KeyboardAction } from "KeyboardShortcuts";
|
import { KeyboardAction } from "KeyboardShortcuts";
|
||||||
import { Keys } from "Localization/Keys.generated";
|
import { Keys, t } from "Localization";
|
||||||
import { t } from "Localization/t";
|
|
||||||
import { QueryConstants } from "Shared/Constants";
|
import { QueryConstants } from "Shared/Constants";
|
||||||
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
|
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
|
||||||
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Resource, StoredProcedureDefinition } from "@azure/cosmos";
|
import { Resource, StoredProcedureDefinition } from "@azure/cosmos";
|
||||||
import { Pivot, PivotItem } from "@fluentui/react";
|
import { Pivot, PivotItem } from "@fluentui/react";
|
||||||
import { KeyboardAction } from "KeyboardShortcuts";
|
import { KeyboardAction } from "KeyboardShortcuts";
|
||||||
|
import { Keys, t } from "Localization";
|
||||||
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import ExecuteQueryIcon from "../../../../images/ExecuteQuery.svg";
|
import ExecuteQueryIcon from "../../../../images/ExecuteQuery.svg";
|
||||||
@@ -11,8 +12,6 @@ import { createStoredProcedure } from "../../../Common/dataAccess/createStoredPr
|
|||||||
import { ExecuteSprocResult } from "../../../Common/dataAccess/executeStoredProcedure";
|
import { ExecuteSprocResult } from "../../../Common/dataAccess/executeStoredProcedure";
|
||||||
import { updateStoredProcedure } from "../../../Common/dataAccess/updateStoredProcedure";
|
import { updateStoredProcedure } from "../../../Common/dataAccess/updateStoredProcedure";
|
||||||
import * as ViewModels from "../../../Contracts/ViewModels";
|
import * as ViewModels from "../../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../../Localization/Keys.generated";
|
|
||||||
import { t } from "../../../Localization/t";
|
|
||||||
import { useNotificationConsole } from "../../../hooks/useNotificationConsole";
|
import { useNotificationConsole } from "../../../hooks/useNotificationConsole";
|
||||||
import { useTabs } from "../../../hooks/useTabs";
|
import { useTabs } from "../../../hooks/useTabs";
|
||||||
import { CommandButtonComponentProps } from "../../Controls/CommandButton/CommandButtonComponent";
|
import { CommandButtonComponentProps } from "../../Controls/CommandButton/CommandButtonComponent";
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { TriggerDefinition } from "@azure/cosmos";
|
|||||||
import { IDropdownOption, IDropdownStyles, Label, TextField } from "@fluentui/react";
|
import { IDropdownOption, IDropdownStyles, Label, TextField } from "@fluentui/react";
|
||||||
import { Dropdown } from "@fluentui/react/lib/Dropdown";
|
import { Dropdown } from "@fluentui/react/lib/Dropdown";
|
||||||
import { KeyboardAction } from "KeyboardShortcuts";
|
import { KeyboardAction } from "KeyboardShortcuts";
|
||||||
|
import { Keys, t } from "Localization";
|
||||||
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import DiscardIcon from "../../../images/discard.svg";
|
import DiscardIcon from "../../../images/discard.svg";
|
||||||
@@ -11,8 +12,6 @@ import { getErrorMessage, getErrorStack } from "../../Common/ErrorHandlingUtils"
|
|||||||
import { createTrigger } from "../../Common/dataAccess/createTrigger";
|
import { createTrigger } from "../../Common/dataAccess/createTrigger";
|
||||||
import { updateTrigger } from "../../Common/dataAccess/updateTrigger";
|
import { updateTrigger } from "../../Common/dataAccess/updateTrigger";
|
||||||
import * as ViewModels from "../../Contracts/ViewModels";
|
import * as ViewModels from "../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../Localization/Keys.generated";
|
|
||||||
import { t } from "../../Localization/t";
|
|
||||||
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
|
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import { SqlTriggerResource } from "../../Utils/arm/generatedClients/cosmos/types";
|
import { SqlTriggerResource } from "../../Utils/arm/generatedClients/cosmos/types";
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { UserDefinedFunctionDefinition } from "@azure/cosmos";
|
|||||||
import { Label, TextField } from "@fluentui/react";
|
import { Label, TextField } from "@fluentui/react";
|
||||||
import { FluentProvider, webDarkTheme, webLightTheme } from "@fluentui/react-components";
|
import { FluentProvider, webDarkTheme, webLightTheme } from "@fluentui/react-components";
|
||||||
import { KeyboardAction } from "KeyboardShortcuts";
|
import { KeyboardAction } from "KeyboardShortcuts";
|
||||||
|
import { Keys, t } from "Localization";
|
||||||
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
import { ValidCosmosDbIdDescription, ValidCosmosDbIdInputPattern } from "Utils/ValidationUtils";
|
||||||
import { useThemeStore } from "hooks/useTheme";
|
import { useThemeStore } from "hooks/useTheme";
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
@@ -12,8 +13,6 @@ import { getErrorMessage, getErrorStack } from "../../Common/ErrorHandlingUtils"
|
|||||||
import { createUserDefinedFunction } from "../../Common/dataAccess/createUserDefinedFunction";
|
import { createUserDefinedFunction } from "../../Common/dataAccess/createUserDefinedFunction";
|
||||||
import { updateUserDefinedFunction } from "../../Common/dataAccess/updateUserDefinedFunction";
|
import { updateUserDefinedFunction } from "../../Common/dataAccess/updateUserDefinedFunction";
|
||||||
import * as ViewModels from "../../Contracts/ViewModels";
|
import * as ViewModels from "../../Contracts/ViewModels";
|
||||||
import { Keys } from "../../Localization/Keys.generated";
|
|
||||||
import { t } from "../../Localization/t";
|
|
||||||
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
|
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import { CommandButtonComponentProps } from "../Controls/CommandButton/CommandButtonComponent";
|
import { CommandButtonComponentProps } from "../Controls/CommandButton/CommandButtonComponent";
|
||||||
|
|||||||
@@ -441,7 +441,11 @@
|
|||||||
"shareThroughput": "Share throughput across {{collectionsLabel}}",
|
"shareThroughput": "Share throughput across {{collectionsLabel}}",
|
||||||
"shareThroughputTooltip": "Provisioned throughput at the {{databaseLabel}} level will be shared across all {{collectionsLabel}} within the {{databaseLabel}}.",
|
"shareThroughputTooltip": "Provisioned throughput at the {{databaseLabel}} level will be shared across all {{collectionsLabel}} within the {{databaseLabel}}.",
|
||||||
"greaterThanError": "Please enter a value greater than {{minValue}} for autopilot throughput",
|
"greaterThanError": "Please enter a value greater than {{minValue}} for autopilot throughput",
|
||||||
"acknowledgeSpendError": "Please acknowledge the estimated {{period}} spend."
|
"acknowledgeSpendError": "Please acknowledge the estimated {{period}} spend.",
|
||||||
|
"acknowledgeSpendErrorMonthly": "Please acknowledge the estimated monthly spend.",
|
||||||
|
"acknowledgeSpendErrorDaily": "Please acknowledge the estimated daily spend.",
|
||||||
|
"provisionSharedThroughputTitle": "Provision shared throughput",
|
||||||
|
"provisionThroughputLabel": "Provision throughput"
|
||||||
},
|
},
|
||||||
"addCollection": {
|
"addCollection": {
|
||||||
"createNew": "Create new",
|
"createNew": "Create new",
|
||||||
@@ -493,7 +497,31 @@
|
|||||||
"acknowledgeShareThroughputError": "Please acknowledge the estimated cost of this dedicated throughput.",
|
"acknowledgeShareThroughputError": "Please acknowledge the estimated cost of this dedicated throughput.",
|
||||||
"vectorPolicyError": "Please fix errors in container vector policy",
|
"vectorPolicyError": "Please fix errors in container vector policy",
|
||||||
"fullTextSearchPolicyError": "Please fix errors in container full text search policy",
|
"fullTextSearchPolicyError": "Please fix errors in container full text search policy",
|
||||||
"addingSampleDataSet": "Adding sample data set"
|
"addingSampleDataSet": "Adding sample data set",
|
||||||
|
"databaseFieldLabelName": "Database name",
|
||||||
|
"databaseFieldLabelId": "Database id",
|
||||||
|
"newDatabaseIdPlaceholder": "Type a new database id",
|
||||||
|
"newDatabaseIdAriaLabel": "New database id, Type a new database id",
|
||||||
|
"createNewDatabaseAriaLabel": "Create new database",
|
||||||
|
"useExistingDatabaseAriaLabel": "Use existing database",
|
||||||
|
"chooseExistingDatabase": "Choose an existing database",
|
||||||
|
"teachingBubble": {
|
||||||
|
"step1Headline": "Create sample database",
|
||||||
|
"step1Body": "Database is the parent of a container. You can create a new database or use an existing one. In this tutorial we are creating a new database named SampleDB.",
|
||||||
|
"step1LearnMore": "Learn more about resources.",
|
||||||
|
"step2Headline": "Setting throughput",
|
||||||
|
"step2Body": "Cosmos DB recommends sharing throughput across database. Autoscale will give you a flexible amount of throughput based on the max RU/s set (Request Units).",
|
||||||
|
"step2LearnMore": "Learn more about RU/s.",
|
||||||
|
"step3Headline": "Naming container",
|
||||||
|
"step3Body": "Name your container",
|
||||||
|
"step4Headline": "Setting partition key",
|
||||||
|
"step4Body": "Last step - you will need to define a partition key for your collection. /address was chosen for this particular example. A good partition key should have a wide range of possible value",
|
||||||
|
"step4CreateContainer": "Create container",
|
||||||
|
"step5Headline": "Creating sample container",
|
||||||
|
"step5Body": "A sample container is now being created and we are adding sample data for you. It should take about 1 minute.",
|
||||||
|
"step5BodyFollowUp": "Once the sample container is created, review your sample dataset and follow next steps",
|
||||||
|
"stepOfTotal": "Step {{current}} of {{total}}"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"addCollectionUtility": {
|
"addCollectionUtility": {
|
||||||
"shardKeyTooltip": "The shard key (field) is used to split your data across many replica sets (shards) to achieve unlimited scalability. It's critical to choose a field that will evenly distribute your data.",
|
"shardKeyTooltip": "The shard key (field) is used to split your data across many replica sets (shards) to achieve unlimited scalability. It's critical to choose a field that will evenly distribute your data.",
|
||||||
@@ -763,7 +791,10 @@
|
|||||||
"howWeCalculate": "How we calculate this",
|
"howWeCalculate": "How we calculate this",
|
||||||
"updatedCostPerMonth": "Updated cost per month",
|
"updatedCostPerMonth": "Updated cost per month",
|
||||||
"currentCostPerMonth": "Current cost per month",
|
"currentCostPerMonth": "Current cost per month",
|
||||||
"perRu": "/RU"
|
"perRu": "/RU",
|
||||||
|
"perHour": "/hr",
|
||||||
|
"perDay": "/day",
|
||||||
|
"perMonth": "/mo"
|
||||||
},
|
},
|
||||||
"throughput": {
|
"throughput": {
|
||||||
"manualToAutoscaleDisclaimer": "The starting autoscale max RU/s will be determined by the system, based on the current manual throughput settings and storage of your resource. After autoscale has been enabled, you can change the max RU/s.",
|
"manualToAutoscaleDisclaimer": "The starting autoscale max RU/s will be determined by the system, based on the current manual throughput settings and storage of your resource. After autoscale has been enabled, you can change the max RU/s.",
|
||||||
@@ -858,7 +889,9 @@
|
|||||||
"freeTierLearnMore": "Learn more.",
|
"freeTierLearnMore": "Learn more.",
|
||||||
"throughputRuS": "Throughput (RU/s)",
|
"throughputRuS": "Throughput (RU/s)",
|
||||||
"autoScaleCustomSettings": "Your account has custom settings that prevents setting throughput at the container level. Please work with your Cosmos DB engineering team point of contact to make changes.",
|
"autoScaleCustomSettings": "Your account has custom settings that prevents setting throughput at the container level. Please work with your Cosmos DB engineering team point of contact to make changes.",
|
||||||
"keyspaceSharedThroughput": "This table shared throughput is configured at the keyspace"
|
"keyspaceSharedThroughput": "This table shared throughput is configured at the keyspace",
|
||||||
|
"throughputRangeLabel": "Throughput ({{min}} - {{max}} RU/s)",
|
||||||
|
"unlimited": "unlimited"
|
||||||
},
|
},
|
||||||
"partitionKeyEditor": {
|
"partitionKeyEditor": {
|
||||||
"changePartitionKey": "Change {{partitionKeyName}}",
|
"changePartitionKey": "Change {{partitionKeyName}}",
|
||||||
|
|||||||
2
src/Localization/index.ts
Normal file
2
src/Localization/index.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export { Keys } from "./Keys.generated";
|
||||||
|
export { t } from "./t";
|
||||||
Reference in New Issue
Block a user