diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 99fe9cd9a..020e26672 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -175,7 +175,7 @@ "different_parent": "Cannot reorder collection with different parent", "edit": "Edit Collection", "import_or_create": "Import or create a collection", - "import_collection":"Import Collection", + "import_collection": "Import Collection", "invalid_name": "Please provide a name for the collection", "invalid_root_move": "Collection already in the root", "moved": "Moved Successfully", @@ -858,7 +858,7 @@ "switch_to_personal": "Switch to your personal workspace", "title": "Workspaces" }, - "phrases":{ + "phrases": { "try": "Try", "import_collections": "Import collections", "create_environment": "Create environment", @@ -941,6 +941,8 @@ "query": "Query", "schema": "Schema", "shared_requests": "Shared Requests", + "codegen": "Generate Code", + "code_snippet": "Code snippet", "share_tab_request": "Share tab request", "socketio": "Socket.IO", "sse": "SSE", diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index 76b467152..6f4408365 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -7,152 +7,149 @@ export {} declare module "@vue/runtime-core" { export interface GlobalComponents { - AccessTokens: (typeof import("./components/accessTokens/index.vue"))["default"] - AccessTokensGenerate: (typeof import("./components/accessTokens/Generate.vue"))["default"] - AccessTokensGenerateModal: (typeof import("./components/accessTokens/GenerateModal.vue"))["default"] - AccessTokensList: (typeof import("./components/accessTokens/List.vue"))["default"] - AccessTokensOverview: (typeof import("./components/accessTokens/Overview.vue"))["default"] - AppActionHandler: (typeof import("./components/app/ActionHandler.vue"))["default"] - AppBanner: (typeof import("./components/app/Banner.vue"))["default"] - AppContextMenu: (typeof import("./components/app/ContextMenu.vue"))["default"] - AppDeveloperOptions: (typeof import("./components/app/DeveloperOptions.vue"))["default"] - AppFooter: (typeof import("./components/app/Footer.vue"))["default"] - AppGitHubStarButton: (typeof import("./components/app/GitHubStarButton.vue"))["default"] - AppHeader: (typeof import("./components/app/Header.vue"))["default"] - AppInspection: (typeof import("./components/app/Inspection.vue"))["default"] - AppInterceptor: (typeof import("./components/app/Interceptor.vue"))["default"] - AppLogo: (typeof import("./components/app/Logo.vue"))["default"] - AppOptions: (typeof import("./components/app/Options.vue"))["default"] - AppPaneLayout: (typeof import("./components/app/PaneLayout.vue"))["default"] - AppShare: (typeof import("./components/app/Share.vue"))["default"] - AppShortcuts: (typeof import("./components/app/Shortcuts.vue"))["default"] - AppShortcutsEntry: (typeof import("./components/app/ShortcutsEntry.vue"))["default"] - AppShortcutsPrompt: (typeof import("./components/app/ShortcutsPrompt.vue"))["default"] - AppSidenav: (typeof import("./components/app/Sidenav.vue"))["default"] - AppSpotlight: (typeof import("./components/app/spotlight/index.vue"))["default"] - AppSpotlightEntry: (typeof import("./components/app/spotlight/Entry.vue"))["default"] - AppSpotlightEntryGQLHistory: (typeof import("./components/app/spotlight/entry/GQLHistory.vue"))["default"] - AppSpotlightEntryGQLRequest: (typeof import("./components/app/spotlight/entry/GQLRequest.vue"))["default"] - AppSpotlightEntryIconSelected: (typeof import("./components/app/spotlight/entry/IconSelected.vue"))["default"] - AppSpotlightEntryRESTHistory: (typeof import("./components/app/spotlight/entry/RESTHistory.vue"))["default"] - AppSpotlightEntryRESTRequest: (typeof import("./components/app/spotlight/entry/RESTRequest.vue"))["default"] - AppSpotlightEntryRESTTeamRequestEntry: (typeof import("./components/app/spotlight/entry/RESTTeamRequestEntry.vue"))["default"] - AppSpotlightSearch: (typeof import("./components/app/SpotlightSearch.vue"))["default"] - AppSupport: (typeof import("./components/app/Support.vue"))["default"] - Collections: (typeof import("./components/collections/index.vue"))["default"] - CollectionsAdd: (typeof import("./components/collections/Add.vue"))["default"] - CollectionsAddFolder: (typeof import("./components/collections/AddFolder.vue"))["default"] - CollectionsAddRequest: (typeof import("./components/collections/AddRequest.vue"))["default"] - CollectionsCollection: (typeof import("./components/collections/Collection.vue"))["default"] - CollectionsEdit: (typeof import("./components/collections/Edit.vue"))["default"] - CollectionsEditFolder: (typeof import("./components/collections/EditFolder.vue"))["default"] - CollectionsEditRequest: (typeof import("./components/collections/EditRequest.vue"))["default"] - CollectionsGraphql: (typeof import("./components/collections/graphql/index.vue"))["default"] - CollectionsGraphqlAdd: (typeof import("./components/collections/graphql/Add.vue"))["default"] - CollectionsGraphqlAddFolder: (typeof import("./components/collections/graphql/AddFolder.vue"))["default"] - CollectionsGraphqlAddRequest: (typeof import("./components/collections/graphql/AddRequest.vue"))["default"] - CollectionsGraphqlCollection: (typeof import("./components/collections/graphql/Collection.vue"))["default"] - CollectionsGraphqlEdit: (typeof import("./components/collections/graphql/Edit.vue"))["default"] - CollectionsGraphqlEditFolder: (typeof import("./components/collections/graphql/EditFolder.vue"))["default"] - CollectionsGraphqlEditRequest: (typeof import("./components/collections/graphql/EditRequest.vue"))["default"] - CollectionsGraphqlFolder: (typeof import("./components/collections/graphql/Folder.vue"))["default"] - CollectionsGraphqlImportExport: (typeof import("./components/collections/graphql/ImportExport.vue"))["default"] - CollectionsGraphqlRequest: (typeof import("./components/collections/graphql/Request.vue"))["default"] - CollectionsImportExport: (typeof import("./components/collections/ImportExport.vue"))["default"] - CollectionsMyCollections: (typeof import("./components/collections/MyCollections.vue"))["default"] - CollectionsProperties: (typeof import("./components/collections/Properties.vue"))["default"] - CollectionsRequest: (typeof import("./components/collections/Request.vue"))["default"] - CollectionsSaveRequest: (typeof import("./components/collections/SaveRequest.vue"))["default"] - CollectionsTeamCollections: (typeof import("./components/collections/TeamCollections.vue"))["default"] - CookiesAllModal: (typeof import("./components/cookies/AllModal.vue"))["default"] - CookiesEditCookie: (typeof import("./components/cookies/EditCookie.vue"))["default"] - Embeds: (typeof import("./components/embeds/index.vue"))["default"] - Environments: (typeof import("./components/environments/index.vue"))["default"] - EnvironmentsAdd: (typeof import("./components/environments/Add.vue"))["default"] - EnvironmentsImportExport: (typeof import("./components/environments/ImportExport.vue"))["default"] - EnvironmentsMy: (typeof import("./components/environments/my/index.vue"))["default"] - EnvironmentsMyDetails: (typeof import("./components/environments/my/Details.vue"))["default"] - EnvironmentsMyEnvironment: (typeof import("./components/environments/my/Environment.vue"))["default"] - EnvironmentsSelector: (typeof import("./components/environments/Selector.vue"))["default"] - EnvironmentsTeams: (typeof import("./components/environments/teams/index.vue"))["default"] - EnvironmentsTeamsDetails: (typeof import("./components/environments/teams/Details.vue"))["default"] - EnvironmentsTeamsEnvironment: (typeof import("./components/environments/teams/Environment.vue"))["default"] - FirebaseLogin: (typeof import("./components/firebase/Login.vue"))["default"] - FirebaseLogout: (typeof import("./components/firebase/Logout.vue"))["default"] - GraphqlAuthorization: (typeof import("./components/graphql/Authorization.vue"))["default"] - GraphqlField: (typeof import("./components/graphql/Field.vue"))["default"] - GraphqlHeaders: (typeof import("./components/graphql/Headers.vue"))["default"] - GraphqlQuery: (typeof import("./components/graphql/Query.vue"))["default"] - GraphqlRequest: (typeof import("./components/graphql/Request.vue"))["default"] - GraphqlRequestOptions: (typeof import("./components/graphql/RequestOptions.vue"))["default"] - GraphqlRequestTab: (typeof import("./components/graphql/RequestTab.vue"))["default"] - GraphqlResponse: (typeof import("./components/graphql/Response.vue"))["default"] - GraphqlSidebar: (typeof import("./components/graphql/Sidebar.vue"))["default"] - GraphqlSubscriptionLog: (typeof import("./components/graphql/SubscriptionLog.vue"))["default"] - GraphqlTabHead: (typeof import("./components/graphql/TabHead.vue"))["default"] - GraphqlType: (typeof import("./components/graphql/Type.vue"))["default"] - GraphqlTypeLink: (typeof import("./components/graphql/TypeLink.vue"))["default"] - GraphqlVariable: (typeof import("./components/graphql/Variable.vue"))["default"] - History: (typeof import("./components/history/index.vue"))["default"] - HistoryGraphqlCard: (typeof import("./components/history/graphql/Card.vue"))["default"] - HistoryRestCard: (typeof import("./components/history/rest/Card.vue"))["default"] - HoppButtonPrimary: (typeof import("@hoppscotch/ui"))["HoppButtonPrimary"] - HoppButtonSecondary: (typeof import("@hoppscotch/ui"))["HoppButtonSecondary"] - HoppSmartAnchor: (typeof import("@hoppscotch/ui"))["HoppSmartAnchor"] - HoppSmartCheckbox: (typeof import("@hoppscotch/ui"))["HoppSmartCheckbox"] - HoppSmartConfirmModal: (typeof import("@hoppscotch/ui"))["HoppSmartConfirmModal"] - HoppSmartExpand: (typeof import("@hoppscotch/ui"))["HoppSmartExpand"] - HoppSmartFileChip: (typeof import("@hoppscotch/ui"))["HoppSmartFileChip"] - HoppSmartInput: (typeof import("@hoppscotch/ui"))["HoppSmartInput"] - HoppSmartIntersection: (typeof import("@hoppscotch/ui"))["HoppSmartIntersection"] - HoppSmartItem: (typeof import("@hoppscotch/ui"))["HoppSmartItem"] - HoppSmartLink: (typeof import("@hoppscotch/ui"))["HoppSmartLink"] - HoppSmartModal: (typeof import("@hoppscotch/ui"))["HoppSmartModal"] - HoppSmartPicture: (typeof import("@hoppscotch/ui"))["HoppSmartPicture"] - HoppSmartPlaceholder: (typeof import("@hoppscotch/ui"))["HoppSmartPlaceholder"] - HoppSmartProgressRing: (typeof import("@hoppscotch/ui"))["HoppSmartProgressRing"] - HoppSmartRadio: (typeof import("@hoppscotch/ui"))["HoppSmartRadio"] - HoppSmartRadioGroup: (typeof import("@hoppscotch/ui"))["HoppSmartRadioGroup"] - HoppSmartSelectWrapper: (typeof import("@hoppscotch/ui"))["HoppSmartSelectWrapper"] - HoppSmartSlideOver: (typeof import("@hoppscotch/ui"))["HoppSmartSlideOver"] - HoppSmartSpinner: (typeof import("@hoppscotch/ui"))["HoppSmartSpinner"] - HoppSmartTab: (typeof import("@hoppscotch/ui"))["HoppSmartTab"] - HoppSmartTabs: (typeof import("@hoppscotch/ui"))["HoppSmartTabs"] - HoppSmartToggle: (typeof import("@hoppscotch/ui"))["HoppSmartToggle"] - HoppSmartTree: (typeof import("@hoppscotch/ui"))["HoppSmartTree"] - HoppSmartWindow: (typeof import("@hoppscotch/ui"))["HoppSmartWindow"] - HoppSmartWindows: (typeof import("@hoppscotch/ui"))["HoppSmartWindows"] - HttpAuthorization: (typeof import("./components/http/Authorization.vue"))["default"] - HttpAuthorizationApiKey: (typeof import("./components/http/authorization/ApiKey.vue"))["default"] - HttpAuthorizationBasic: (typeof import("./components/http/authorization/Basic.vue"))["default"] - HttpBody: (typeof import("./components/http/Body.vue"))["default"] - HttpBodyParameters: (typeof import("./components/http/BodyParameters.vue"))["default"] - HttpCodegenModal: (typeof import("./components/http/CodegenModal.vue"))["default"] - HttpHeaders: (typeof import("./components/http/Headers.vue"))["default"] - HttpImportCurl: (typeof import("./components/http/ImportCurl.vue"))["default"] - HttpOAuth2Authorization: (typeof import("./components/http/OAuth2Authorization.vue"))["default"] - HttpParameters: (typeof import("./components/http/Parameters.vue"))["default"] - HttpPreRequestScript: (typeof import("./components/http/PreRequestScript.vue"))["default"] - HttpRawBody: (typeof import("./components/http/RawBody.vue"))["default"] - HttpReqChangeConfirmModal: (typeof import("./components/http/ReqChangeConfirmModal.vue"))["default"] - HttpRequest: (typeof import("./components/http/Request.vue"))["default"] - HttpRequestOptions: (typeof import("./components/http/RequestOptions.vue"))["default"] - HttpRequestTab: (typeof import("./components/http/RequestTab.vue"))["default"] - HttpRequestVariables: (typeof import("./components/http/RequestVariables.vue"))["default"] - HttpResponse: (typeof import("./components/http/Response.vue"))["default"] - HttpResponseMeta: (typeof import("./components/http/ResponseMeta.vue"))["default"] - HttpSidebar: (typeof import("./components/http/Sidebar.vue"))["default"] - HttpTabHead: (typeof import("./components/http/TabHead.vue"))["default"] - HttpTestResult: (typeof import("./components/http/TestResult.vue"))["default"] - HttpTestResultEntry: (typeof import("./components/http/TestResultEntry.vue"))["default"] - HttpTestResultEnv: (typeof import("./components/http/TestResultEnv.vue"))["default"] - HttpTestResultReport: (typeof import("./components/http/TestResultReport.vue"))["default"] - HttpTests: (typeof import("./components/http/Tests.vue"))["default"] - HttpURLEncodedParams: (typeof import("./components/http/URLEncodedParams.vue"))["default"] - IconLucideActivity: (typeof import("~icons/lucide/activity"))["default"] - IconLucideAlertTriangle: (typeof import("~icons/lucide/alert-triangle"))["default"] - IconLucideArrowLeft: (typeof import("~icons/lucide/arrow-left"))["default"] - IconLucideArrowUpRight: (typeof import("~icons/lucide/arrow-up-right"))["default"] + AppActionHandler: typeof import('./components/app/ActionHandler.vue')['default'] + AppBanner: typeof import('./components/app/Banner.vue')['default'] + AppContextMenu: typeof import('./components/app/ContextMenu.vue')['default'] + AppDeveloperOptions: typeof import('./components/app/DeveloperOptions.vue')['default'] + AppFooter: typeof import('./components/app/Footer.vue')['default'] + AppGitHubStarButton: typeof import('./components/app/GitHubStarButton.vue')['default'] + AppHeader: typeof import('./components/app/Header.vue')['default'] + AppInspection: typeof import('./components/app/Inspection.vue')['default'] + AppInterceptor: typeof import('./components/app/Interceptor.vue')['default'] + AppLogo: typeof import('./components/app/Logo.vue')['default'] + AppOptions: typeof import('./components/app/Options.vue')['default'] + AppPaneLayout: typeof import('./components/app/PaneLayout.vue')['default'] + AppShare: typeof import('./components/app/Share.vue')['default'] + AppShortcuts: typeof import('./components/app/Shortcuts.vue')['default'] + AppShortcutsEntry: typeof import('./components/app/ShortcutsEntry.vue')['default'] + AppShortcutsPrompt: typeof import('./components/app/ShortcutsPrompt.vue')['default'] + AppSidenav: typeof import('./components/app/Sidenav.vue')['default'] + AppSpotlight: typeof import('./components/app/spotlight/index.vue')['default'] + AppSpotlightEntry: typeof import('./components/app/spotlight/Entry.vue')['default'] + AppSpotlightEntryGQLHistory: typeof import('./components/app/spotlight/entry/GQLHistory.vue')['default'] + AppSpotlightEntryGQLRequest: typeof import('./components/app/spotlight/entry/GQLRequest.vue')['default'] + AppSpotlightEntryIconSelected: typeof import('./components/app/spotlight/entry/IconSelected.vue')['default'] + AppSpotlightEntryRESTHistory: typeof import('./components/app/spotlight/entry/RESTHistory.vue')['default'] + AppSpotlightEntryRESTRequest: typeof import('./components/app/spotlight/entry/RESTRequest.vue')['default'] + AppSpotlightEntryRESTTeamRequestEntry: typeof import('./components/app/spotlight/entry/RESTTeamRequestEntry.vue')['default'] + AppSpotlightSearch: typeof import('./components/app/SpotlightSearch.vue')['default'] + AppSupport: typeof import('./components/app/Support.vue')['default'] + Collections: typeof import('./components/collections/index.vue')['default'] + CollectionsAdd: typeof import('./components/collections/Add.vue')['default'] + CollectionsAddFolder: typeof import('./components/collections/AddFolder.vue')['default'] + CollectionsAddRequest: typeof import('./components/collections/AddRequest.vue')['default'] + CollectionsCollection: typeof import('./components/collections/Collection.vue')['default'] + CollectionsEdit: typeof import('./components/collections/Edit.vue')['default'] + CollectionsEditFolder: typeof import('./components/collections/EditFolder.vue')['default'] + CollectionsEditRequest: typeof import('./components/collections/EditRequest.vue')['default'] + CollectionsGraphql: typeof import('./components/collections/graphql/index.vue')['default'] + CollectionsGraphqlAdd: typeof import('./components/collections/graphql/Add.vue')['default'] + CollectionsGraphqlAddFolder: typeof import('./components/collections/graphql/AddFolder.vue')['default'] + CollectionsGraphqlAddRequest: typeof import('./components/collections/graphql/AddRequest.vue')['default'] + CollectionsGraphqlCollection: typeof import('./components/collections/graphql/Collection.vue')['default'] + CollectionsGraphqlEdit: typeof import('./components/collections/graphql/Edit.vue')['default'] + CollectionsGraphqlEditFolder: typeof import('./components/collections/graphql/EditFolder.vue')['default'] + CollectionsGraphqlEditRequest: typeof import('./components/collections/graphql/EditRequest.vue')['default'] + CollectionsGraphqlFolder: typeof import('./components/collections/graphql/Folder.vue')['default'] + CollectionsGraphqlImportExport: typeof import('./components/collections/graphql/ImportExport.vue')['default'] + CollectionsGraphqlRequest: typeof import('./components/collections/graphql/Request.vue')['default'] + CollectionsImportExport: typeof import('./components/collections/ImportExport.vue')['default'] + CollectionsMyCollections: typeof import('./components/collections/MyCollections.vue')['default'] + CollectionsProperties: typeof import('./components/collections/Properties.vue')['default'] + CollectionsRequest: typeof import('./components/collections/Request.vue')['default'] + CollectionsSaveRequest: typeof import('./components/collections/SaveRequest.vue')['default'] + CollectionsTeamCollections: typeof import('./components/collections/TeamCollections.vue')['default'] + CookiesAllModal: typeof import('./components/cookies/AllModal.vue')['default'] + CookiesEditCookie: typeof import('./components/cookies/EditCookie.vue')['default'] + Embeds: typeof import('./components/embeds/index.vue')['default'] + Environments: typeof import('./components/environments/index.vue')['default'] + EnvironmentsAdd: typeof import('./components/environments/Add.vue')['default'] + EnvironmentsImportExport: typeof import('./components/environments/ImportExport.vue')['default'] + EnvironmentsMy: typeof import('./components/environments/my/index.vue')['default'] + EnvironmentsMyDetails: typeof import('./components/environments/my/Details.vue')['default'] + EnvironmentsMyEnvironment: typeof import('./components/environments/my/Environment.vue')['default'] + EnvironmentsSelector: typeof import('./components/environments/Selector.vue')['default'] + EnvironmentsTeams: typeof import('./components/environments/teams/index.vue')['default'] + EnvironmentsTeamsDetails: typeof import('./components/environments/teams/Details.vue')['default'] + EnvironmentsTeamsEnvironment: typeof import('./components/environments/teams/Environment.vue')['default'] + FirebaseLogin: typeof import('./components/firebase/Login.vue')['default'] + FirebaseLogout: typeof import('./components/firebase/Logout.vue')['default'] + GraphqlAuthorization: typeof import('./components/graphql/Authorization.vue')['default'] + GraphqlField: typeof import('./components/graphql/Field.vue')['default'] + GraphqlHeaders: typeof import('./components/graphql/Headers.vue')['default'] + GraphqlQuery: typeof import('./components/graphql/Query.vue')['default'] + GraphqlRequest: typeof import('./components/graphql/Request.vue')['default'] + GraphqlRequestOptions: typeof import('./components/graphql/RequestOptions.vue')['default'] + GraphqlRequestTab: typeof import('./components/graphql/RequestTab.vue')['default'] + GraphqlResponse: typeof import('./components/graphql/Response.vue')['default'] + GraphqlSidebar: typeof import('./components/graphql/Sidebar.vue')['default'] + GraphqlSubscriptionLog: typeof import('./components/graphql/SubscriptionLog.vue')['default'] + GraphqlTabHead: typeof import('./components/graphql/TabHead.vue')['default'] + GraphqlType: typeof import('./components/graphql/Type.vue')['default'] + GraphqlTypeLink: typeof import('./components/graphql/TypeLink.vue')['default'] + GraphqlVariable: typeof import('./components/graphql/Variable.vue')['default'] + History: typeof import('./components/history/index.vue')['default'] + HistoryGraphqlCard: typeof import('./components/history/graphql/Card.vue')['default'] + HistoryRestCard: typeof import('./components/history/rest/Card.vue')['default'] + HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary'] + HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary'] + HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor'] + HoppSmartCheckbox: typeof import('@hoppscotch/ui')['HoppSmartCheckbox'] + HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal'] + HoppSmartExpand: typeof import('@hoppscotch/ui')['HoppSmartExpand'] + HoppSmartFileChip: typeof import('@hoppscotch/ui')['HoppSmartFileChip'] + HoppSmartInput: typeof import('@hoppscotch/ui')['HoppSmartInput'] + HoppSmartIntersection: typeof import('@hoppscotch/ui')['HoppSmartIntersection'] + HoppSmartItem: typeof import('@hoppscotch/ui')['HoppSmartItem'] + HoppSmartLink: typeof import('@hoppscotch/ui')['HoppSmartLink'] + HoppSmartModal: typeof import('@hoppscotch/ui')['HoppSmartModal'] + HoppSmartPicture: typeof import('@hoppscotch/ui')['HoppSmartPicture'] + HoppSmartPlaceholder: typeof import('@hoppscotch/ui')['HoppSmartPlaceholder'] + HoppSmartProgressRing: typeof import('@hoppscotch/ui')['HoppSmartProgressRing'] + HoppSmartRadio: typeof import('@hoppscotch/ui')['HoppSmartRadio'] + HoppSmartRadioGroup: typeof import('@hoppscotch/ui')['HoppSmartRadioGroup'] + HoppSmartSelectWrapper: typeof import('@hoppscotch/ui')['HoppSmartSelectWrapper'] + HoppSmartSlideOver: typeof import('@hoppscotch/ui')['HoppSmartSlideOver'] + HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner'] + HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab'] + HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs'] + HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle'] + HoppSmartTree: typeof import('@hoppscotch/ui')['HoppSmartTree'] + HoppSmartWindow: typeof import('@hoppscotch/ui')['HoppSmartWindow'] + HoppSmartWindows: typeof import('@hoppscotch/ui')['HoppSmartWindows'] + HttpAuthorization: typeof import('./components/http/Authorization.vue')['default'] + HttpAuthorizationApiKey: typeof import('./components/http/authorization/ApiKey.vue')['default'] + HttpAuthorizationBasic: typeof import('./components/http/authorization/Basic.vue')['default'] + HttpBody: typeof import('./components/http/Body.vue')['default'] + HttpBodyParameters: typeof import('./components/http/BodyParameters.vue')['default'] + HttpCodegen: typeof import('./components/http/Codegen.vue')['default'] + HttpCodegenBody: typeof import('./components/http/CodegenBody.vue')['default'] + HttpCodegenModal: typeof import('./components/http/CodegenModal.vue')['default'] + HttpHeaders: typeof import('./components/http/Headers.vue')['default'] + HttpImportCurl: typeof import('./components/http/ImportCurl.vue')['default'] + HttpOAuth2Authorization: typeof import('./components/http/OAuth2Authorization.vue')['default'] + HttpParameters: typeof import('./components/http/Parameters.vue')['default'] + HttpPreRequestScript: typeof import('./components/http/PreRequestScript.vue')['default'] + HttpRawBody: typeof import('./components/http/RawBody.vue')['default'] + HttpReqChangeConfirmModal: typeof import('./components/http/ReqChangeConfirmModal.vue')['default'] + HttpRequest: typeof import('./components/http/Request.vue')['default'] + HttpRequestOptions: typeof import('./components/http/RequestOptions.vue')['default'] + HttpRequestTab: typeof import('./components/http/RequestTab.vue')['default'] + HttpRequestVariables: typeof import('./components/http/RequestVariables.vue')['default'] + HttpResponse: typeof import('./components/http/Response.vue')['default'] + HttpResponseMeta: typeof import('./components/http/ResponseMeta.vue')['default'] + HttpSidebar: typeof import('./components/http/Sidebar.vue')['default'] + HttpTabHead: typeof import('./components/http/TabHead.vue')['default'] + HttpTestResult: typeof import('./components/http/TestResult.vue')['default'] + HttpTestResultEntry: typeof import('./components/http/TestResultEntry.vue')['default'] + HttpTestResultEnv: typeof import('./components/http/TestResultEnv.vue')['default'] + HttpTestResultReport: typeof import('./components/http/TestResultReport.vue')['default'] + HttpTests: typeof import('./components/http/Tests.vue')['default'] + HttpURLEncodedParams: typeof import('./components/http/URLEncodedParams.vue')['default'] + IconLucideActivity: typeof import('~icons/lucide/activity')['default'] + IconLucideAlertTriangle: typeof import('~icons/lucide/alert-triangle')['default'] + IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default'] + IconLucideArrowUpRight: typeof import('~icons/lucide/arrow-up-right')['default'] IconLucideBrush: (typeof import("~icons/lucide/brush"))["default"] IconLucideCheckCircle: (typeof import("~icons/lucide/check-circle"))["default"] IconLucideChevronRight: (typeof import("~icons/lucide/chevron-right"))["default"] diff --git a/packages/hoppscotch-common/src/components/http/Codegen.vue b/packages/hoppscotch-common/src/components/http/Codegen.vue new file mode 100644 index 000000000..f848c086b --- /dev/null +++ b/packages/hoppscotch-common/src/components/http/Codegen.vue @@ -0,0 +1,253 @@ + + + + {{ t("request.choose_language") }} + + + + + + + + + + + + { + codegenType = codegen.name + hide() + } + " + /> + + + + + + + + + + + {{ t("error.something_went_wrong") }} + + + + + {{ t("request.generated_code") }} + + + + + + + + + + + + + diff --git a/packages/hoppscotch-common/src/components/http/CodegenModal.vue b/packages/hoppscotch-common/src/components/http/CodegenModal.vue index 510e00ae8..b19cb0eb9 100644 --- a/packages/hoppscotch-common/src/components/http/CodegenModal.vue +++ b/packages/hoppscotch-common/src/components/http/CodegenModal.vue @@ -6,110 +6,7 @@ @close="hideModal" > - - - {{ t("request.choose_language") }} - - - - - - - - - - - - { - codegenType = codegen.name - hide() - } - " - /> - - - - - - - - - - - {{ t("error.something_went_wrong") }} - - - - - {{ t("request.generated_code") }} - - - - - - - - - - + @@ -131,38 +28,15 @@ diff --git a/packages/hoppscotch-common/src/components/http/Sidebar.vue b/packages/hoppscotch-common/src/components/http/Sidebar.vue index a29e8b518..b851dfb02 100644 --- a/packages/hoppscotch-common/src/components/http/Sidebar.vue +++ b/packages/hoppscotch-common/src/components/http/Sidebar.vue @@ -33,6 +33,24 @@ > + + + {{ t("request.title") }} + + {{ t("tab.code_snippet") }} + + + @@ -41,12 +59,18 @@ import IconClock from "~icons/lucide/clock" import IconLayers from "~icons/lucide/layers" import IconFolder from "~icons/lucide/folder" import IconShare2 from "~icons/lucide/share-2" +import IconCode from "~icons/lucide/code" import { ref } from "vue" import { useI18n } from "@composables/i18n" const t = useI18n() -type RequestOptionTabs = "history" | "collections" | "env" +type RequestOptionTabs = + | "history" + | "collections" + | "env" + | "share-request" + | "codegen" const selectedNavigationTab = ref("collections")