mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
Merge branch 'master' into users/languye/improve-filter-view
This commit is contained in:
@@ -102,13 +102,13 @@ let configContext: Readonly<ConfigContext> = {
|
|||||||
PORTAL_BACKEND_ENDPOINT: PortalBackendEndpoints.Prod,
|
PORTAL_BACKEND_ENDPOINT: PortalBackendEndpoints.Prod,
|
||||||
MONGO_PROXY_ENDPOINT: MongoProxyEndpoints.Prod,
|
MONGO_PROXY_ENDPOINT: MongoProxyEndpoints.Prod,
|
||||||
NEW_MONGO_APIS: [
|
NEW_MONGO_APIS: [
|
||||||
"resourcelist",
|
// "resourcelist",
|
||||||
"queryDocuments",
|
// "queryDocuments",
|
||||||
"createDocument",
|
// "createDocument",
|
||||||
"readDocument",
|
// "readDocument",
|
||||||
"updateDocument",
|
// "updateDocument",
|
||||||
"deleteDocument",
|
// "deleteDocument",
|
||||||
"createCollectionWithProxy",
|
// "createCollectionWithProxy",
|
||||||
"legacyMongoShell",
|
"legacyMongoShell",
|
||||||
],
|
],
|
||||||
MONGO_PROXY_OUTBOUND_IPS_ALLOWLISTED: false,
|
MONGO_PROXY_OUTBOUND_IPS_ALLOWLISTED: false,
|
||||||
|
|||||||
@@ -680,11 +680,20 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
title: "Learn the Fundamentals",
|
title: "Learn the Fundamentals",
|
||||||
description: "Watch Azure Cosmos DB Live TV show introductory and how to videos.",
|
description: "Watch Azure Cosmos DB Live TV show introductory and how to videos.",
|
||||||
};
|
};
|
||||||
let items: item[];
|
|
||||||
|
const commonItems: item[] = [
|
||||||
|
{
|
||||||
|
link: "https://learn.microsoft.com/azure/cosmos-db/data-explorer-shortcuts",
|
||||||
|
title: "Data Explorer keyboard shortcuts",
|
||||||
|
description: "Learn keyboard shortcuts to navigate Data Explorer.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
let apiItems: item[];
|
||||||
switch (userContext.apiType) {
|
switch (userContext.apiType) {
|
||||||
case "SQL":
|
case "SQL":
|
||||||
case "Postgres":
|
case "Postgres":
|
||||||
items = [
|
apiItems = [
|
||||||
{
|
{
|
||||||
link: "https://aka.ms/msl-sdk-connect",
|
link: "https://aka.ms/msl-sdk-connect",
|
||||||
title: "Get Started using an SDK",
|
title: "Get Started using an SDK",
|
||||||
@@ -699,7 +708,7 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case "Mongo":
|
case "Mongo":
|
||||||
items = [
|
apiItems = [
|
||||||
{
|
{
|
||||||
link: "https://aka.ms/mongonodejs",
|
link: "https://aka.ms/mongonodejs",
|
||||||
title: "Build an app with Node.js",
|
title: "Build an app with Node.js",
|
||||||
@@ -714,7 +723,7 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case "Cassandra":
|
case "Cassandra":
|
||||||
items = [
|
apiItems = [
|
||||||
{
|
{
|
||||||
link: "https://aka.ms/cassandracontainer",
|
link: "https://aka.ms/cassandracontainer",
|
||||||
title: "Create a Container",
|
title: "Create a Container",
|
||||||
@@ -729,7 +738,7 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case "Gremlin":
|
case "Gremlin":
|
||||||
items = [
|
apiItems = [
|
||||||
{
|
{
|
||||||
link: "https://aka.ms/graphquickstart",
|
link: "https://aka.ms/graphquickstart",
|
||||||
title: "Get Started ",
|
title: "Get Started ",
|
||||||
@@ -744,7 +753,7 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case "Tables":
|
case "Tables":
|
||||||
items = [
|
apiItems = [
|
||||||
{
|
{
|
||||||
link: "https://aka.ms/tabledotnet",
|
link: "https://aka.ms/tabledotnet",
|
||||||
title: "Build a .NET App",
|
title: "Build a .NET App",
|
||||||
@@ -761,6 +770,9 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const items = [...commonItems, ...apiItems];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack>
|
||||||
{items.map((item, i) => (
|
{items.map((item, i) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user