diff --git a/package-lock.json b/package-lock.json index 0e573c45e7..b2e74b14d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6030,14 +6030,6 @@ "dev": true, "requires": { "follow-redirects": "^1.14.4" - }, - "dependencies": { - "follow-redirects": { - "version": "1.14.6", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.6.tgz", - "integrity": "sha512-fhUl5EwSJbbl8AR+uYL2KQDxLkdSjZGR36xy46AO7cOMTrCMON6Sa28FmAnC2tRTDbd/Uuzz3aJBv7EBN7JH8A==", - "dev": true - } } }, "axobject-query": { @@ -12239,9 +12231,9 @@ } }, "follow-redirects": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.1.tgz", - "integrity": "sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg==" + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" }, "for-in": { "version": "1.0.2", @@ -27149,4 +27141,4 @@ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" } } -} \ No newline at end of file +} diff --git a/src/app/views/sidebar/resource-explorer/ResourceLink.tsx b/src/app/views/sidebar/resource-explorer/ResourceLink.tsx index 9f61140bf7..bd075dae3c 100644 --- a/src/app/views/sidebar/resource-explorer/ResourceLink.tsx +++ b/src/app/views/sidebar/resource-explorer/ResourceLink.tsx @@ -12,7 +12,7 @@ import { IResourceLink, ResourceOptions } from '../../../../types/resources'; import { setSampleQuery } from '../../../services/actions/query-input-action-creators'; import { GRAPH_URL } from '../../../services/graph-constants'; import { translateMessage } from '../../../utils/translate-messages'; -import { getAvailableMethods, getUrlFromLink, removeCounter } from './resource-explorer.utils'; +import { getAvailableMethods, getUrlFromLink } from './resource-explorer.utils'; interface IResourceLinkProps { link: any; @@ -105,7 +105,7 @@ const ResourceLink = (props: IResourceLinkProps) => { }); } - if (resourceLink.type === 'path') { + if (resourceLink.type === 'path' || resourceLink.type === 'function') { menuItems.push( { key: ResourceOptions.SHOW_QUERY_PARAMETERS, @@ -141,14 +141,6 @@ const ResourceLink = (props: IResourceLinkProps) => { } }); } - - if (menuItems.length > 0) { - menuItems.unshift({ - key: 'actions', - itemType: ContextualMenuItemType.Header, - text: removeCounter(resourceLink.name) - }); - } return menuItems; } } diff --git a/src/messages/GE_fr-FR.json b/src/messages/GE_fr-FR.json index fb9a27b7fd..ae109d78b8 100644 --- a/src/messages/GE_fr-FR.json +++ b/src/messages/GE_fr-FR.json @@ -382,12 +382,12 @@ "This response contains unviewable content": "Cette réponse contient du contenu qui peut ne pas être visualisable sur cet éditeur.", "Click to download file": "Cliquez pour télécharger le fichier.", "Learn more": "En savoir plus", - "loading resources": "chargement des ressources", + "loading resources": "chargement de ressources", "Isolate": "Isoler", - "Search resources": "Ressources de recherche", + "Search resources": "Rechercher des ressources", "Select version": "Sélectionner une version", - "Close isolation": "Fermer l’isolation", - "Path display": "Affichage du chemin d’accès", + "Close isolation": "Fermer une isolation", + "Path display": "Afficher un chemin d’accès", "More path links": "Autres liens de chemin d’accès", "Resources available": "Ressources disponibles", "Selected Resources": "Ressources sélectionnées", @@ -420,12 +420,14 @@ "Please tell us more. Why did you choose that answer": "Dites-nous en plus. Pourquoi avez-vous choisi cette réponse ?", "Not at all likely": "Certainement pas", "Extremely likely": "Très certainement", - "Show methods": "Afficher les méthodes", - "Set Query": "Définir la requête", + "Show methods": "Afficher des méthodes", + "Set Query": "Définir une requête", "Query parameters": "Paramètres de requête", - "Preview collection": "Aperçu de la collection", - "Download postman collection": "Télécharger la collection postman", + "Preview collection": "Afficher un aperçu de la collection", + "Download postman collection": "Télécharger la collection Postman", "You can export the entire list as a Postman Collection. If there are items in the list you would not want, select them to remove": "Vous pouvez exporter la liste entière en tant que collection Postman. S’il y a des éléments dans la liste que vous ne souhaitez pas, sélectionnez-les pour les supprimer.", "Copied": "Copié", - "Invalid whitespace in URL": "Espace non valide dans l'URL" + "Invalid whitespace in URL": "Espace non valide dans l'URL", + "Response content not available due to CORS policy": "Le contenu de la réponse n'est pas disponible dans l’afficheur Graph en raison de la politique CORS. Vous pouvez exécuter cette requête dans un client API, comme Postman. En savoir plus sur CORS et comprendre son fonctionnement", + "here": "ici" } diff --git a/src/messages/GE_ja-JP.json b/src/messages/GE_ja-JP.json index b62a12472b..e9e220cb7a 100644 --- a/src/messages/GE_ja-JP.json +++ b/src/messages/GE_ja-JP.json @@ -427,5 +427,7 @@ "Download postman collection": "Postman コレクションをダウンロード", "You can export the entire list as a Postman Collection. If there are items in the list you would not want, select them to remove": "リスト全体を Postman コレクションとしてエクスポートできます。リストに不要なアイテムがある場合は、それらを選択して削除します", "Copied": "コピー済み", - "Invalid whitespace in URL": "URL 内の空白文字が無効です" -} \ No newline at end of file + "Invalid whitespace in URL": "URL 内の空白文字は無効です", + "Response content not available due to CORS policy": "CORS ポリシーにより、Graph エクスプローラーでは応答コンテンツを使用できません。この要求は、Postman などの API クライアントで実行できます。CORS の詳細を読み、そのしくみを理解してください", + "here": "こちら" +} diff --git a/src/messages/GE_pt-BR.json b/src/messages/GE_pt-BR.json index e67cb0b72c..8d087bfb69 100644 --- a/src/messages/GE_pt-BR.json +++ b/src/messages/GE_pt-BR.json @@ -427,5 +427,7 @@ "Download postman collection": "Baixar a coleção de carteiros", "You can export the entire list as a Postman Collection. If there are items in the list you would not want, select them to remove": "Você pode exportar a lista inteira como uma Coleção de carteiros. Se houver itens na lista que você não quer, selecione-os para removê-los", "Copied": "Copiado", - "Invalid whitespace in URL": "Espaço em branco inválido na URL" -} \ No newline at end of file + "Invalid whitespace in URL": "Espaço em branco inválido na URL", + "Response content not available due to CORS policy": "O conteúdo da resposta não está disponível no Graph Explorer devido à política CORS. Você pode executar essa solicitação em um cliente de API, como o Postman. Leia mais sobre o CORS e entenda como ele funciona", + "here": "aqui" +} diff --git a/src/messages/GE_zh-CN.json b/src/messages/GE_zh-CN.json index 89565e2442..1f45d2fece 100644 --- a/src/messages/GE_zh-CN.json +++ b/src/messages/GE_zh-CN.json @@ -428,4 +428,4 @@ "You can export the entire list as a Postman Collection. If there are items in the list you would not want, select them to remove": "可以将整个列表导出为 Postman 集合。如果列表中存在你不想要的项目,请选择它们以将其删除", "Copied": "已复制", "Invalid whitespace in URL": "URL 中的无效空白" -} \ No newline at end of file +}