diff --git a/packages/hoppscotch-sh-admin/assets/images/pack.svg b/packages/hoppscotch-sh-admin/assets/images/pack.svg new file mode 100644 index 000000000..56a669ba4 --- /dev/null +++ b/packages/hoppscotch-sh-admin/assets/images/pack.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/hoppscotch-sh-admin/locales/en.json b/packages/hoppscotch-sh-admin/locales/en.json index d4aee2637..b2ea859f0 100644 --- a/packages/hoppscotch-sh-admin/locales/en.json +++ b/packages/hoppscotch-sh-admin/locales/en.json @@ -1,4 +1,13 @@ { + "action": { + "cancel": "Cancel", + "confirm": "Confirm", + "close": "Close", + "delete": "Delete", + "edit": "Edit", + "label": "Label", + "save": "Save" + }, "app": { "collapse_sidebar": "Collapse Sidebar", "continue_to_dashboard": "Continue to Dashboard", @@ -73,6 +82,26 @@ "title": "Make Hoppscotch Better", "welcome": "Welcome to" }, + "infra_tokens": { + "copy_token_warning": "Make sure to copy your infra token now. You won't be able to see it again!", + "deletion_success": "The infra token {label} has been deleted", + "empty": "Infra tokens are empty", + "expired": "Expired", + "expiration_label": "Expiration", + "expires_on": "Expires on", + "generate_modal_title": "New Infra Token", + "generate_new_token": "Generate new token", + "generate_token": "Generate Token", + "invalid_label": "Please provide a label for the token", + "last_used_on": "Last used on", + "no_expiration": "No expiration", + "no_expiration_verbose": "This token will never expire!", + "section_description": "Manage your Hoppscotch users through APIs with Infra tokens", + "section_title": "Infra Tokens", + "tab_title": "Infra Tokens", + "token_expires_on": "This token will expire on", + "token_purpose": "Enter a label to identify this token" + }, "metrics": { "dashboard": "Dashboard", "no_metrics": "No metrics found", @@ -121,6 +150,7 @@ "configure_auth": "Check out the documentation to configure auth providers.", "confirm_admin_to_user": "Do you want to remove admin status from this user?", "confirm_admins_to_users": "Do you want to remove admin status from selected users?", + "confirm_delete_infra_token": "Are you sure you want to delete the infra token {tokenLabel}?", "confirm_delete_invite": "Do you want to revoke the selected invite?", "confirm_delete_invites": "Do you want to revoke selected invites?", "confirm_user_deletion": "Confirm user deletion?", @@ -137,6 +167,7 @@ "create_team_failure": "Failed to create workspace!!", "create_team_success": "Workspace created successfully!!", "data_sharing_failure": "Failed to update data sharing settings", + "delete_infra_token_failure": "Something went wrong while deleting the infra token", "delete_invite_failure": "Failed to delete invite!!", "delete_invites_failure": "Failed to delete selected invites!!", "delete_invite_success": "Invite deleted successfully!!", @@ -160,8 +191,10 @@ "enter_team_email": "Please enter email of workspace owner!!", "error": "Something went wrong", "error_auth_providers": "Unable to load auth providers", + "generate_infra_token_failure": "Something went wrong while generating the infra token", "github_signin_failure": "Failed to login with Github", "google_signin_failure": "Failed to login with Google", + "infra_token_label_short": "Infra Token Label character length is too short!!", "invalid_email": "Please enter a valid email address", "link_copied_to_clipboard": "Link copied to clipboard", "logged_out": "Logged out", @@ -207,6 +240,7 @@ "sign_in_agreement": "By signing in, you are agreeing to our", "sign_in_options": "All sign in option", "sign_out": "Sign out", + "something_went_wrong": "Something went wrong", "team_name_too_short": "Workspace name should be atleast 6 characters long!!", "user_already_invited": "Failed to send invite. User is already invited!!", "user_not_found": "User not found in the infra!!", diff --git a/packages/hoppscotch-sh-admin/src/components.d.ts b/packages/hoppscotch-sh-admin/src/components.d.ts index 383e0a719..a3f8ceec3 100644 --- a/packages/hoppscotch-sh-admin/src/components.d.ts +++ b/packages/hoppscotch-sh-admin/src/components.d.ts @@ -1,63 +1,67 @@ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' +import '@vue/runtime-core'; -export {} +export {}; declare module '@vue/runtime-core' { export interface GlobalComponents { - AppHeader: typeof import('./components/app/Header.vue')['default'] - AppLogin: typeof import('./components/app/Login.vue')['default'] - AppLogout: typeof import('./components/app/Logout.vue')['default'] - AppModal: typeof import('./components/app/Modal.vue')['default'] - AppSidebar: typeof import('./components/app/Sidebar.vue')['default'] - AppToast: typeof import('./components/app/Toast.vue')['default'] - DashboardMetricsCard: typeof import('./components/dashboard/MetricsCard.vue')['default'] - HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary'] - HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary'] - HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor'] - HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete'] - HoppSmartCheckbox: typeof import('@hoppscotch/ui')['HoppSmartCheckbox'] - HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal'] - 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'] - HoppSmartSelectWrapper: typeof import('@hoppscotch/ui')['HoppSmartSelectWrapper'] - HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner'] - HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab'] - HoppSmartTable: typeof import('@hoppscotch/ui')['HoppSmartTable'] - HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs'] - HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle'] - IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default'] - IconLucideCheck: typeof import('~icons/lucide/check')['default'] - IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default'] - IconLucideHelpCircle: typeof import('~icons/lucide/help-circle')['default'] - IconLucideInbox: typeof import('~icons/lucide/inbox')['default'] - IconLucideSearch: typeof import('~icons/lucide/search')['default'] - IconLucideUser: typeof import('~icons/lucide/user')['default'] - SettingsAuthProvider: typeof import('./components/settings/AuthProvider.vue')['default'] - SettingsConfigurations: typeof import('./components/settings/Configurations.vue')['default'] - SettingsDataSharing: typeof import('./components/settings/DataSharing.vue')['default'] - SettingsReset: typeof import('./components/settings/Reset.vue')['default'] - SettingsServerRestart: typeof import('./components/settings/ServerRestart.vue')['default'] - SettingsSmtpConfiguration: typeof import('./components/settings/SmtpConfiguration.vue')['default'] - SetupDataSharingAndNewsletter: typeof import('./components/setup/DataSharingAndNewsletter.vue')['default'] - TeamsAdd: typeof import('./components/teams/Add.vue')['default'] - TeamsDetails: typeof import('./components/teams/Details.vue')['default'] - TeamsInvite: typeof import('./components/teams/Invite.vue')['default'] - TeamsMembers: typeof import('./components/teams/Members.vue')['default'] - TeamsPendingInvites: typeof import('./components/teams/PendingInvites.vue')['default'] - Tippy: typeof import('vue-tippy')['Tippy'] - UiAutoResetIcon: typeof import('./components/ui/AutoResetIcon.vue')['default'] - UsersDetails: typeof import('./components/users/Details.vue')['default'] - UsersInviteModal: typeof import('./components/users/InviteModal.vue')['default'] - UsersSharedRequests: typeof import('./components/users/SharedRequests.vue')['default'] - UsersSuccessInviteModal: typeof import('./components/users/SuccessInviteModal.vue')['default'] + AppHeader: typeof import('./components/app/Header.vue')['default']; + AppLogin: typeof import('./components/app/Login.vue')['default']; + AppLogout: typeof import('./components/app/Logout.vue')['default']; + AppModal: typeof import('./components/app/Modal.vue')['default']; + AppSidebar: typeof import('./components/app/Sidebar.vue')['default']; + AppToast: typeof import('./components/app/Toast.vue')['default']; + DashboardMetricsCard: typeof import('./components/dashboard/MetricsCard.vue')['default']; + HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary']; + HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary']; + HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor']; + HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete']; + HoppSmartCheckbox: typeof import('@hoppscotch/ui')['HoppSmartCheckbox']; + HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal']; + 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']; + HoppSmartSelectWrapper: typeof import('@hoppscotch/ui')['HoppSmartSelectWrapper']; + HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner']; + HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab']; + HoppSmartTable: typeof import('@hoppscotch/ui')['HoppSmartTable']; + HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs']; + HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle']; + IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default']; + IconLucideCheck: typeof import('~icons/lucide/check')['default']; + IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default']; + IconLucideHelpCircle: typeof import('~icons/lucide/help-circle')['default']; + IconLucideInbox: typeof import('~icons/lucide/inbox')['default']; + IconLucideSearch: typeof import('~icons/lucide/search')['default']; + IconLucideUser: typeof import('~icons/lucide/user')['default']; + SettingsAuthProvider: typeof import('./components/settings/AuthProvider.vue')['default']; + SettingsConfigurations: typeof import('./components/settings/Configurations.vue')['default']; + SettingsDataSharing: typeof import('./components/settings/DataSharing.vue')['default']; + SettingsReset: typeof import('./components/settings/Reset.vue')['default']; + SettingsServerRestart: typeof import('./components/settings/ServerRestart.vue')['default']; + SettingsSmtpConfiguration: typeof import('./components/settings/SmtpConfiguration.vue')['default']; + SetupDataSharingAndNewsletter: typeof import('./components/setup/DataSharingAndNewsletter.vue')['default']; + TeamsAdd: typeof import('./components/teams/Add.vue')['default']; + TeamsDetails: typeof import('./components/teams/Details.vue')['default']; + TeamsInvite: typeof import('./components/teams/Invite.vue')['default']; + TeamsMembers: typeof import('./components/teams/Members.vue')['default']; + TeamsPendingInvites: typeof import('./components/teams/PendingInvites.vue')['default']; + Tippy: typeof import('vue-tippy')['Tippy']; + Tokens: typeof import('./components/tokens/index.vue')['default']; + TokensGenerateModal: typeof import('./components/tokens/GenerateModal.vue')['default']; + TokensList: typeof import('./components/tokens/List.vue')['default']; + TokensOverview: typeof import('./components/tokens/Overview.vue')['default']; + TokensToken: typeof import('./components/tokens/Token.vue')['default']; + UiAutoResetIcon: typeof import('./components/ui/AutoResetIcon.vue')['default']; + UsersDetails: typeof import('./components/users/Details.vue')['default']; + UsersInviteModal: typeof import('./components/users/InviteModal.vue')['default']; + UsersSharedRequests: typeof import('./components/users/SharedRequests.vue')['default']; + UsersSuccessInviteModal: typeof import('./components/users/SuccessInviteModal.vue')['default']; } - } diff --git a/packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue b/packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue index a7a6c5edb..4efc94ea9 100644 --- a/packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue +++ b/packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue @@ -1,16 +1,13 @@