* feat: added new columns into the TeamCollections and UserCollections models
* feat: completed addition of new data field in TeamCollection
* feat: completed addition of new data field in UserCollections
* chore: updated all tests in team-collection module
* chore: added tests for updateTeamCollection method in team-collection module
* chore: refactored all existing testcases in user-collection to reflect new changes
* chore: added new testcases for updateUserCollection method in user-collection module
* chore: made data field optional in team and user collections
* chore: fixed edgecases for data being null
* chore: resolved issue with team-request testcases
* chore: completed changes requested in PR review
* chore: changed target to prod in hoppscotch-old-backend service
* feat: added query in infra to fetch all shortcodes
* feat: added mutation in admin to delete shortcode
* chore: added new tests for methods in shortcode module
* chore: removed .vscode file
* chore: added a new ShortcodeCreator type to output of fetchAllShortcodes query
* chore: shortcodeCreator type is now nullable
* chore: added type defs to fetchAllShortcodes method in admin module
* docs: update code comments
* chore: changed target to prod in hoppscotch-old-backend
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
* feat: added new property to existing shortcode model in prisma schema
* chore: created shared-requests module
* chore: created shared-request model
* chore: complete sharedRequest query
* chore: completed mutation to create a SharedRequest
* chore: completed subscription to create a SharedRequest
* chore: completed query to fetch all user created shared-requests
* chore: completed mutation to delete a SharedRequest
* chore: completed subscription to delete a SharedRequest
* chore: removed unused dependncues in share-requests module
* chore: added shared-requests into user deletion spec
* test: added all testcases for shared-request module
* test: modified all relevant tests in shortcode module
* chore: added deprecated label to all queries,mutations and subscriptions in the shortcode module
* chore: resolved all comments raised in review
* feat: added ability to update and listen to updates of shared-requests
* chore: added updatedOn field to shortcode model
* chore: fixed issue with updateSharedRequest method
* chore: fixed incorrect value getting updated
* chore: added all test-cases for updateSharedRequest method
* chore: created migration for shared-requests
* chore: moved shared-requests into shortcode module
* chore: added missing import in shortcode tests
* chore: changed properties to embedProperties in shortcode model
* feat: generated migrations file for new schema changes to Shortcodes table
* chore: changed target of old-backend service in docker-compose file
* chore: fixed issue with updatedOn field in shortcodes model
* chore: removed unused dependencies
* fix: handle invalid input for shortcode properties
* Revert "fix: handle invalid input for shortcode properties"
This reverts commit 4dcb0afb18.
* chore: changed updateShortcode method name to updateEmbedProperties
* chore: changed target of hoppscotch-old-backend service to prod
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
* feat: infra type added in admin module
* feat: infra-resolver added in admin module
* feat: feedback resolved
* feat: deprecated tag added in some admin ResolveFields
* build: update pnpm-lock file
* feat: add field in infra type
* feat: admin extends user partially
* feat: admin extends user with omitting some fields
* chore: remove unused imports
* build: conflict resolve in pnpm lock file
* refactor: abstract axios queries to a separate helper file
* chore: delete unnecessary file
* chore: remove unnecessary console logs
* refactor: updated urls for api and authquery helpers
* refactor: updated auth implementation
* refactor: use default axios instance
* chore: improve code readability
* refactor: separate instances for rest and gql calls
* refactor: removed async await from functions that do not need them
* refactor: removed probable login and probable user from the auth system
* refactor: better error handling in login component
* chore: deleted unnecessary files and restructured some files
* feat: new errors file with typed error message formats
* refactor: removed unwanted usage of async await
* refactor: optimizing the usage and return of promises in auth flow
* refactor: convey boolean return type in a better way
* chore: apply suggestions
* refactor: handle case when mailcatcher is not active
---------
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: James George <jamesgeorge998001@gmail.com>
* chore: removed rejectOnNotFound property from prisma query in team-enviroment method
* chore: fixed issues with test cases in team-environment module
* chore: changed target of hoppscotch-old-backend service back to prod
* fix: dashboard logs out user when cookie expires or is unauthorized
* fix: handles the 401 error thrown when trying to refresh tokens
* chore: updated wrong logic when returning state in refresh token function
* feat: introduced auth exchange to urql client to check for errors on each backend call
* fix: prevent multiple window reloads
---------
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
* feat: introduced new unplugin i18n and removed the old vite i18n package
* refactor: updated vite config to support the new plugin
* refactor: removed irrelevant logic from the i18n module
* feat: add ability to export a single environment
* refactor: export environment without id
* feat: introducing zod for checking json format for environment variables
* refactor: new zod specific type for HoppEnvPair
* feat: add ability to export single environment in team environment
* refactor: moved zod as a dependency to devDependency
* refactor: separated repeating logic to helper file
* refactor: removed unnecessary to string operation
* chore: rearranged smart item placement
* refactor: introduced error type when a bulk environment export is used in cli
* refactor: removed unnecssary type exports and updated logic and variable names across most files
* refactor: better logic for type shapes
* chore: bump hoppscotch-cli package version
---------
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* fix: send auth headers to the payload
* refactor: alert user that headers are sent to connection_init
* refactor: send headers only when headers are populated
* chore: cleanup code
* fix: missing baseurl on import openapi
* fix: url parser for openapi v3
* chore: revert to baseURL for cases where doc servers is present but url is null
---------
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* fix: sticky search bar in codemirror
* chore: use tailwind classes
* chore: improve consistency across editor instances
---------
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
* fix: dirty tab count incorrect when closing tabs
* refactor: make the calculation more expressive
---------
Co-authored-by: amk-dev <akash.k.mohan98@gmail.com>
* refactor: remove font size from settings
* refactor: remove font size from themes
* refactor: remove font size from spotlight
* refactor: remove default font size
* chore: clean up
---------
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
* fix: spotlight actions for graphql
* fix: environment actions
* fix: gql rename request
* fix: graphql spotlight actions
* fix: tab shortcuts not working properly
* fix: only show download and copy response when there is a response
---------
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* fix: environment add bug in inspection
* chore: add 127.0.0.1 in url inspection
* chore: update browserextension inspection help url
* fix: team env not showing bug in selector
* chore: rework inspector systems to be reactive
* chore: handling tab changes gracefully
* refactor: move out url interceptor from the platform
* chore: add view function in inspector service to get views into the list
* fix: interceptors not kicking in on initial load
* fix: don't show no internet connection error unless browser deems so
* chore: fix tests
---------
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* refactor: removed unused files, dependencies and added valid callback URL
* chore: update env example
* test: fixed issue with subscription on deleteUserCollection in UserCollection module
* test: fixed time related issue with auth service methods
* chore: removed unused dependencies in auth.service file
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
Co-authored-by: Balu Babu <balub997@gmail.com>
* fix: if-condition for getCollectionOfRequest func
* fix: all test cases for team request module
* fix: user collection test case
* fix: team module test case
* refactor: updated test description for last implemented changes in admin and removed commented code
---------
Co-authored-by: ankitsridhar16 <ankit.sridhar16@gmail.com>
* chore: modified magiclink /signin function to work with origin
* chore: modified testcases for signInMagicLink to reflect new changes
* chore: removed prisma migration file
* chore: removed admin module dulicate from guards folder
* chore: implemented ENUMs for origins in signin method
* chore: added VITE_ADMIN_URL to .env.example file
* fix: cast prisma user object to user object
* chore: improved consistency
* chore: cast function renamed
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
* refactor: modifed userCollectionRemoved subscription to return custom return type
* chore: created new return type for export to JSON mutation in UserCollection
* refactor: added reqType to exportUserCollectionsToJSON query
* chore: remove duplicate enum in user-collection.model.ts file
* feat: introducing get team info by id in admin module as a query
* chore: adding resolve field for admin
* chore: remove nullable false
* refactor: rename getTeamInfo to teamInfo
* refactor: make myRole nullable
* fix: check if admin users are there in infra when removing user as an admin
* fix: corrected the logic for length check
* chore: update error message
* chore: add new error message
* chore: removed production env check and redis as pubsub provider in pubsub module
* chore: removed pnpm-lock.yaml file from backend
* chore: removed migrations folder from prisma
* chore: removed RedisPubSub from pubsub service file and changed signature of asyncIterator method
* feat: introducing admin module, resolvers and service files as a module
* feat: adding admin module in the app module
* feat: introducing admin guard and decorator for allowing admin operations
* feat: invited user model
* chore: added user invitation mail description to mailer service
* chore: added admin and user related error
* feat: added invited users as a new model in prisma
* chore: added admin related topics to pubsub
* chore: added service method to fetch all users from user table
* chore: added user deletion base implementation
* Revert "chore: added user deletion base implementation"
This reverts commit d1615ad83db2bae946e2d366a903d2f95051dabb.
* feat: adding team related operations to admin
* chore: adding admin related service methods to teams module service
* chore: adding admin related service methods to team coll invitations requests envs
* chore: added more module error messages
* chore: added admin check service method
* chore: added find individual user by UID in admin
* HBE-106 feat: introduced code to handle first time admin login setup (#23)
* test: wrote test cases for verifyAdmin route service method
* chore: added comments to verifyAdmin service method
* chore: deleted the prisma migration file
* chore: added find admin users
* feat: added user deletion into admin module
* chore: admin user related errors
* chore: fixed registry pattern in the shortcodes and teams to handle user deletion
* chore: add subscription topic for user deletion
* chore: updated user type in data handler
* feat: implement and fix user deletion
* feat: added make user admin mutation
* chore: added unit tests for admin specific service methods in admin module
* chore: added invitation not found error
* chore: added admin specific operation test cases in specific modules
* chore: added tests related to user deletion and admin related operation in user module
* chore: updated to error constant when invitations not found
* chore: fix rebase overwritten methods
* feat: implement remove user as admin
* chore: add new line
* feat: introducing basic metrics into the self-hosted admin module (HBE-104) (#43)
* feat: introducing admin module, resolvers and service files as a module
* feat: adding admin module in the app module
* feat: introducing admin guard and decorator for allowing admin operations
* feat: invited user model
* chore: added user invitation mail description to mailer service
* chore: added admin and user related error
* feat: added invited users as a new model in prisma
* chore: added admin related topics to pubsub
* chore: added service method to fetch all users from user table
* chore: added user deletion base implementation
* Revert "chore: added user deletion base implementation"
This reverts commit d1615ad83db2bae946e2d366a903d2f95051dabb.
* feat: adding team related operations to admin
* chore: adding admin related service methods to teams module service
* chore: adding admin related service methods to team coll invitations requests envs
* chore: added more module error messages
* chore: added admin check service method
* chore: added find individual user by UID in admin
* HBE-106 feat: introduced code to handle first time admin login setup (#23)
* test: wrote test cases for verifyAdmin route service method
* chore: added comments to verifyAdmin service method
* chore: deleted the prisma migration file
* chore: added find admin users
* feat: added user deletion into admin module
* chore: admin user related errors
* chore: fixed registry pattern in the shortcodes and teams to handle user deletion
* chore: add subscription topic for user deletion
* chore: updated user type in data handler
* feat: implement and fix user deletion
* feat: added make user admin mutation
* chore: added unit tests for admin specific service methods in admin module
* chore: added invitation not found error
* chore: added admin specific operation test cases in specific modules
* chore: added tests related to user deletion and admin related operation in user module
* chore: updated to error constant when invitations not found
* chore: fix rebase overwritten methods
* feat: implement remove user as admin
* chore: add new line
* chore: created new GQL return type for admin module
* chore: created resolver and service method for method to fetch org metrics
* chore: removed all entities relevant to seperate query for fetching admin metrics
* chore: created all resolvers for metrics
* feat: completed adding field resolves to query org metrics
* test: wrote tests for all metrics related methods in admin module
* test: added test cases for get count functions in multiple modules
* chore: removed prisma migration folder
* Delete backend-schema.gql
* chore: resolved merge conflicts in team test file
---------
Co-authored-by: ankitsridhar16 <ankit.sridhar16@gmail.com>
* refactor: update mailer service to stop using postmark (#38)
* refactor: update mailer service to stop using postmark
* chore: remove postmark as a dep and move out postmark code
* chore: remove postmark variables from .env.example
* chore: add formal errors for mailer initialization errors
* chore: add and update jsdoc comments in mailer service methods
* chore: added user invitation mail description to mailer service
* chore: updated with review changes requested for admin module
* feat: adding admin resolver to gql schema
* feat: adding input args for admin resolvers
* chore: invited user renamed
* chore: updated mailer service to be compatible with new mailer
* chore: updated team service with review changes
* chore: updated team collection service with review changes
* chore: updated team environments service with review changes
* chore: updated team requests service with review changes
* chore: updated user service with review changes
* refactor: invited user model
* chore: review changes implemented
* chore: implemented the review changes for admin, user and teams module
* chore: removed error handling and implemented review changes
* refactor: naming change for IsAdmin
---------
Co-authored-by: Balu Babu <balub997@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* refactor: update mailer service to stop using postmark
* chore: remove postmark as a dep and move out postmark code
* chore: remove postmark variables from .env.example
* chore: add formal errors for mailer initialization errors
* chore: add and update jsdoc comments in mailer service methods
* chore: added the nest graphql fix for making it use Int over Float
* chore: changed the type of cursor to Int in PaginationArgs
* chore: fixed description mismatch in rootUserCreation functions in UserCollection module
* chore: removed unused title type in UserRequest input-args
* fix: added ID scaler in user-request input type
* fix: added ID scaler in team-invitation and user-history
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
* chore: completed base auth implementation with redirectUrl
* chore: completed base auth fix with redirect_uri
* chore: added whitelist based redirection
* chore: added a env variable for session secret in main.ts
* chore: removed migrations folder from prisma directory
* feat: created exportUserCollectionsToJSON mutation for UserCollection module
* chore: added comments to export functions
* chore: added type and user ownership checking to creation methods
* chore: replaced request property with spread request object instead
* chore: completed all changes requested in inital review of PR
* chore: explicitly exporting request title in export function
* chore: explicitly exporting request title in export function
* chore: added codegen folder to gitignore
* chore: removed gql-code gen file from repo
* feat: createdOn, updatedOn added in team-request schema and updateTeamReq resolver refactored
* feat: resolver name changed for updateTeamRequest
* refactor: searchForTeamRequest resolver
* refactor: some functions refactored
* refactor: team-request service and subscriptions
* refactor: update GqlRequestTeamMemberGuard
* feat: team request reordering add
* feat: handle exception on update Team Request
* chore: change some return statement
* fix: change field name of MoveTeamRequestArgs
* feat: publish message update for reorder team req
* test: fix all the exists cases
* fix: add return statement
* test: add few functions test cases
* feat: made backward compatible
* fix: team-member guard for retrive user
* fix: few bugs
* chore: destructured parameters in service methods
* test: fix test cases
* feat: updateLookUpRequestOrder resolver added
* test: fix test cases
* chore: improved code consistency
* fix: feedback changes
* fix: main changes
* chore: removed firebase module as a dependency from team-collection module
* chore: modified team-collection resolver file to use input-args types
* chore: modified getTeamOfCollection service method and resolver
* chore: modified getParentOfCollection service method in team-collection module
* chore: modified getChildrenOfCollection service method in team-collection module
* chore: added new fields to TeamCollection model in prisma schema file
* chore: modified getCollection service method and resolver in team-collection module
* chore: modified createCollection service method and resolver in team-collection module
* chore: created cast helper function to resolve issue with creation mutation in team-collection
* chore: modified teamCollectionRemoved subscription return types
* chore: removed return types from subscriptions in team-collection module
* chore: removed all instances of getTeamCollections service method in team-collection module
* feat: added mutation to handle moving collections and supporting subscriptions
* feat: added mutation to re-ordering team-collection order
* chore: added teacher comments to both collection modules
* test: added test cases for getTeamOfCollection service method
* test: added test cases for getParentOfCollection service method
* test: added test cases for getChildrenOfCollection service method
* test: added test cases for getTeamRootCollections service method
* test: added test cases for getCollection service method
* test: added test cases for createCollection service method
* chore: renamed renameCollection to renameUserCollection in UserCollection module
* test: added test cases for renameCollection service method
* test: added test cases for deleteCollection service method
* test: added test cases for moveCollection service method
* test: added test cases for updateCollectionOrder service method
* chore: added import and export to JSON mutations to team-collection module
* chore: created replaceCollectionsWithJSON mutation in team-collection module
* chore: moved the mutation and service method of importCollectionFromFirestore to the end of file
* chore: added helper comments to all import,export functions
* chore: exportCollectionsToJSON service method orders collections and requests in ascending order
* chore: added test cases for importCollectionsFromJSON service method
* chore: added ToDo to write test cases for exportCollectionsToJSON
* chore: removed prisma migration folder
* chore: completed all changes requested in inital PR review
* chore: completed all changes requested in second PR review
* chore: completed all changes requested in third PR review
* feat: added user-request schema in prisma
* feat: basic mutation and queries implementation
* fix: enum registration in graphql
* feat: user resolver added for user requests
* chore: refactor codes
* feat: transaction added in request reordering operation
* feat: pubsub added in user request
* refactor: user request service
* chore: feedback added
* chore: code improvement
* fix: bug fix
* feat: request type update in schema and JSDoc added
* test: fetchUserRequests and fetchUserRequest unit test added
* chore: refactor two functions
* test: unit test added for more functions
* chore: code readability improved
* test: added unit test for reorderRequests function
* feat: subscriptions added
* fix: User reference to AuthUser
* fix: User to AuthUser in test file
* chore: update dto file extensions
* feat: relation added in schema level
* chore: add function for db to model type casting
* feat: filter with title and collectionID add in userRequest resolver
* feat: resolvers added for userCollection in request module, and move inputTypes in a single file
* test: test file updated
* docs: description updated
* feat: createdOn, updatedOn added in user request schema
* chore: (delete in future) user collection module add for testing purpose
* feat: separate resolvers for create, update, delete user request based on req type
* feat: used paginationArgs from common types
* fix: shift InputTypes to ArgsTypes
* docs: update docs
* feat: avoid destructuring
* test: fix test cases for create and update
* docs: update JS doc
* feat: separate object variables for moveRequest function
* test: fix test case for moveRequest function
* feat: saperate parameters for fetchUserRequest
* test: fix test cases for fetchUserRequests
* feat: update some query names and made review changes
* test: fix test cases
* feat: remove filtering with title
* test: fix text cases for fetchUserRequests func
* feat: update subscription key
* feat: edge case handled for user request creation
* test: fix test case
* fix: user field resolver
* fix: fetch user req issue
* fix: update with type check
* test: fix test cases
* feat: type checked on move request
* test: add test case for typeValidity check func
* fix: edge condition added in if statement
* fix: error message
* chore: removed user collection from this branch
* fix: typos
* feat: team module added
* feat: teamEnvironment module added
* feat: teamCollection module added
* feat: team request module added
* feat: team invitation module added
* feat: selfhost auth frontend (#15)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* feat: bringing shortcodes from central to selfhost
* chore: added review changes in resolver
* chore: commented out subscriptions
* chore: bump backend prettier version
* feat: created new user-collections module with base files
* feat: added new models for user-collection and user-request tables in schema.prisma file
* feat: mutations to create user-collections complete
* feat: added user field resolver for userCollections
* feat: added parent field resolver for userCollections
* feat: added child field resolver with pagination for userCollections
* feat: added query to fetch root user-collections with pagination for userCollections
* feat: added query to fetch user-collections for userCollections
* feat: added mutation to rename user-collections
* feat: added mutation to delete user-collections
* feat: added mutation to delete user-collections
* refactor: changed the way we fetch root and child user-collection counts for other operations
* feat: added mutation to move user-collections between root and other child collections
* refactor: abstracted orderIndex update logic into helpert function
* chore: mutation to update order root user-collections complete
* feat: user-collections order can be updated when moving it to the end of list
* feat: user-collections order update feature complete
* feat: subscriptions for user-collection module complete
* chore: removed all console.logs from user-collection.service file
* test: added tests for all field resolvers for user-collection module
* test: test cases for getUserCollection is complete
* test: test cases for getUserRootCollections is complete
* test: test cases for createUserCollection is complete
* test: test cases for renameCollection is complete
* test: test cases for moveUserCollection is complete
* test: test cases for updateUserCollectionOrder is complete
* chore: added createdOn and updatedOn fields to userCollections and userRequests schema
* chore: created function to check if title are of valid size
* refactor: simplified user-collection creation code
* chore: made changed requested in initial PR review
* chore: added requestType enum to user-collections
* refactor: created two seperate queries to fetch root REST or GQL queries
* chore: created seperate mutations and queries for REST and GQL root/child collections
* chore: migrated all input args classess into a single file
* chore: modified createUserCollection service method to work with different creation inputs args type
* chore: rewrote all test cases for user-collections service methods with new CollType
* fix: added updated and deleted subscription changes
* fix: made all the changes requested in the initial PR review
* fix: made all the changes requested in the second PR review
* chore: removed migrations from prisma directory
* fix: made all the changes requested in the third PR review
* chore: added collection type checking to updateUserCollectionOrder service method
* chore: refactored all test cases to reflect new additions to service methods
* chore: fixed issues with pnpm-lock
* chore: removed migrations from prisma directory
* chore: hopefully fixed pnpm-lock issues
* chore: removed console logs in auth controller
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
Co-authored-by: Akash K <57758277+amk-dev@users.noreply.github.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: ankitsridhar16 <ankit.sridhar16@gmail.com>
* chore: updated fetchUserHistory operation to return recently executed 50 entries
* chore: updated history to use PaginationArgs for operation
* chore: updated GraphQL resolver name
* refactor: refactor all queries,mutations and subscriptions for shortcode module
* test: rewrote test cases for shortcodes
* chore: modified shortcode error code
* chore: created helper function to do shortcode type conversion in service file
* chore: simplifed logic to fetch user shortcodes with cursor pagination
* chore: removed migrations file
* chore: removed unused imports in shortcodes module
* chore: modified generateUniqueShortCodeID function
* chore: modified generateUniqueShortCodeID function
* chore: changed jwtService to use verify instead of decode
* docs: added teacher comments to all shortcodes service methods
* chore: removed stale test cases from shortcode modules
* feat: add gql mutation
* feat: added delete account section in profile page
* feat: separate shortcodes section to a component
* feat: delete user modal
* feat: delete user account
* feat: navigate to homepage after delete
* chore: improve ui
* fix: delete user mutation
* chore: minor ui improvements
* chore: correct grammar in certain i18n strings
* feat: delection section separated to component
* feat: separate user delete section into component
* feat: defer fetch my teams
* feat: disable delete account button on loading state
* Update Shortcodes.vue
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* refactor: moved global env to top
* fix: change to my collection and env when logedout
* fix: merge fix
* refactor: change v-show to v-if
* chore: minor type change
* chore: pass variable name to edit
* chore: improve logic
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* chore: minor ui improvements
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Squashed commit of the following:
commit fac38b9293c6963cbc081f05f67b36d652524956
Author: Oscar Dominguez <dominguez.celada@gmail.com>
Date: Sun Oct 2 02:50:33 2022 +0200
ci(publish-docker): upgrade actions/checkout to v3 (#2721)
commit f352646887682e80105ca758849415f9628dd336
Author: Oscar Dominguez <dominguez.celada@gmail.com>
Date: Sun Oct 2 02:50:15 2022 +0200
ci(deploy-staging-netlify): upgrade actions/checkout to v3 (#2722)
commit 7afc517620a5f649dc08b1bf5afd6af086f20af9
Author: Oscar Dominguez <dominguez.celada@gmail.com>
Date: Sun Oct 2 02:49:57 2022 +0200
ci(deploy-prod): upgrade actions/checkout to v3 (#2723)
commit 50f0540f5afcbd835fa6db89e575aead1023c9ff
Author: Oscar Dominguez <dominguez.celada@gmail.com>
Date: Sun Oct 2 02:49:45 2022 +0200
ci(codeql-analysis): upgrade actions/checkout to v3 (#2724)
commit fc5d5ea131a553b1f38b272525f40941eea031ee
Author: Oscar Dominguez <dominguez.celada@gmail.com>
Date: Sun Oct 2 02:49:31 2022 +0200
ci(deploy-netlify): upgrade actions/checkout to v3 (#2725)
commit 4e16962001800b633309c726f71ac476efba4e13
Author: Oscar Dominguez <dominguez.celada@gmail.com>
Date: Sun Oct 2 02:47:40 2022 +0200
chore(PR template): fix typo (#2726)
* refactor: migrate buttons to script setup on ts
* refactor: migrate env components to script setup on ts
* fix: reference sharing when requests are opened from the sidebar
* ci: deploy to prod from actions
* chore: type updation
* chore: update
* refactor: update types
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: liyasthomas <liyascthomas@gmail.com>
_We highly recommend you take a look at the [**Hoppscotch Documentation**](https://docs.hoppscotch.io) to learn more about the app._
#### **Support**
[](https://hoppscotch.io/discord) [](https://hoppscotch.io/telegram) [](https://github.com/hoppscotch/hoppscotch/discussions)
_Customized themes are synced with cloud / local session_
_Customized themes are synced with your cloud/local session._
🔥 **PWA:** Install as a [PWA](https://developers.google.com/web/progressive-web-apps) on your device.
🔥 **PWA:** Install as a [Progressive Web App](https://web.dev/progressive-web-apps) on your device.
- Instant loading with Service Workers
- Offline support
@@ -122,7 +95,7 @@ _Customized themes are synced with cloud / local session_
📡 **Server-Sent Events:** Receive a stream of updates from a server over an HTTP connection without resorting to polling.
🌩 **Socket.IO:** Send and Receive data with SocketIO server.
🌩 **Socket.IO:** Send and Receive data with the SocketIO server.
🦟 **MQTT:** Subscribe and Publish to topics of an MQTT Broker.
@@ -142,7 +115,7 @@ _Customized themes are synced with cloud / local session_
- OAuth 2.0
- OIDC Access Token/PKCE
📢 **Headers:** Describes the format the body of your request is being sent as.
📢 **Headers:** Describes the format the body of your request is being sent in.
📫 **Parameters:** Use request parameters to set varying parts in simulated requests.
@@ -152,14 +125,14 @@ _Customized themes are synced with cloud / local session_
- FormData, JSON, and many more
- Toggle between key-value and RAW input parameter list
👋**Response:** Contains the status line, headers, and the message/response body.
📮**Response:** Contains the status line, headers, and the message/response body.
- Copy response to clipboard
- Download response as a file
- Copy the response to the clipboard
- Download the response as a file
- View response headers
- View raw and preview of HTML, image, JSON, XML responses
- View raw and preview HTML, image, JSON, and XML responses
⏰ **History:** Request entries are synced with cloud / local session storage to restore with a single click.
⏰ **History:** Request entries are synced with your cloud/local session storage.
📁 **Collections:** Keep your API requests organized with collections and folders. Reuse them with a single click.
@@ -167,7 +140,32 @@ _Customized themes are synced with cloud / local session_
- Nested folders
- Export and import as a file or GitHub gist
_Collections are synced with cloud / local session storage_
_Collections are synced with your cloud/local session storage._
📜 **Pre-Request Scripts:** Snippets of code associated with a request that is executed before the request is sent.
- Set environment variables
- Include timestamp in the request headers
- Send a random alphanumeric string in the URL parameters
- Any JavaScript functions
👨👩👧👦 **Teams:** Helps you collaborate across your teams to design, develop, and test APIs faster.
- Create unlimited teams
- Create unlimited shared collections
- Create unlimited team members
- Role-based access control
- Cloud sync
- Multiple devices
👥 **Workspaces:** Organize your personal and team collections environments into workspaces. Easily switch between workspaces to manage multiple projects.
- Create unlimited workspaces
- Switch between personal and team workspaces
⌨️ **Keyboard Shortcuts:** Optimized for efficiency.
> **[Read our documentation on Keyboard Shortcuts](https://docs.hoppscotch.io/documentation/features/shortcuts)**
🌐 **Proxy:** Enable Proxy Mode from Settings to access blocked APIs.
@@ -176,66 +174,39 @@ _Collections are synced with cloud / local session storage_
- Access APIs served in non-HTTPS (`http://`) endpoints
- Use your Proxy URL
_Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/hoppscotch/proxyscotch)** - **[Privacy Policy](https://docs.hoppscotch.io/privacy)**_
📜 **Pre-Request Scripts β:** Snippets of code associated with a request that is executed before the request is sent.
- Set environment variables
- Include timestamp in the request headers
- Send a random alphanumeric string in the URL parameters
- Any JavaScript functions
📄 **API Documentation:** Create and share dynamic API documentation easily, quickly.
1. Add your requests to Collections and Folders
2. Export Collections and easily share your APIs with the rest of your team
3. Import Collections and Generate Documentation on-the-go
⌨️ **Keyboard Shortcuts:** Optimized for efficiency.
> **[Read our documentation on Keyboard Shortcuts](https://docs.hoppscotch.io/features/shortcuts)**
_Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/hoppscotch/proxyscotch)** - **[Privacy Policy](https://docs.hoppscotch.io/support/privacy)**._
🌎 **i18n:** Experience the app in your language.
Help us to translate Hoppscotch. Please read [`TRANSLATIONS`](TRANSLATIONS.md) for details on our [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us.
Help us to translate Hoppscotch. Please read [`TRANSLATIONS`](TRANSLATIONS.md) for details on our [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md) and the process for submitting pull requests to us.
📦**Add-ons:** Official add-ons for hoppscotch.
☁️**Auth + Sync:** Sign in and sync your data in real-time across all your devices.
- **[Proxy](https://github.com/hoppscotch/proxyscotch)** - A simple proxy server created for Hoppscotch
- **[CLI β](https://github.com/hoppscotch/hopp-cli)** - A CLI solution for Hoppscotch
- **[Browser Extensions](https://github.com/hoppscotch/hoppscotch-extension)** - Browser extensions that simplifies access to Hoppscotch
0. Update [`.env.example`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/.env.example) file found in `packages/hoppscotch-app` with your own keys and rename it to `.env`.
_Sample keys only work with the [production build](https://hoppscotch.io)._
docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest
```
## **Releasing**
1. [Clone this repo](https://help.github.com/en/articles/cloning-a-repository) with git.
2. Install pnpm using npm by running `npm install -g pnpm`.
3. Install dependencies by running `pnpm install` within the directory that you cloned (probably `hoppscotch`).
4. Build the release files with `pnpm run generate`.
5. Find the built project in `packages/hoppscotch-app/dist`.
Follow our [self-hosting documentation](https://docs.hoppscotch.io/documentation/self-host/getting-started) to get started with the development environment.
## **Contributing**
@@ -347,7 +281,7 @@ See the [`CHANGELOG`](CHANGELOG.md) file for details.
## **Authors**
This project exists thanks to all the people who contribute — [contribute](CONTRIBUTING.md).
This project owes its existence to the collective efforts of all those who contribute — [contribute now](CONTRIBUTING.md).
@@ -9,26 +9,24 @@ Before you start working on a new language, please look through the [open pull r
if there is no existing translation, you can create a new one by following these steps:
1.**[Fork the repository](https://github.com/hoppscotch/hoppscotch/fork).**
2.**Checkout the `i18n` branch for latest translations.**
3.**Create a new branch for your translation with base branch `i18n`.**
4.**Create target language file in the [`locales`](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-app/locales) directory.**
5.**Copy the contents of the source file [`locales/en.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/locales/en.json) to the target language file.**
2.**Checkout the `main` branch for latest translations.**
3.**Create a new branch for your translation with base branch `main`.**
4.**Create target language file in the [`/packages/hoppscotch-common/locales`](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-common/locales) directory.**
5.**Copy the contents of the source file [`/packages/hoppscotch-common/locales/en.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/locales/en.json) to the target language file.**
6.**Translate the strings in the target language file.**
7.**Add your language entry to [`languages.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/languages.json).**
8.**Save & commit changes.**
7.**Add your language entry to [`/packages/hoppscotch-common/languages.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/languages.json).**
8.**Save and commit changes.**
9.**Send a pull request.**
_You may send a pull request before all steps above are complete: e.g., you may want to ask for help with translations, or getting tests to pass. However, your pull request will not be merged until all steps above are complete._
`i18n` branch will be merged into `main` branch once every week.
Completing an initial translation of the whole site is a fairly large task. One way to break that task up is to work with other translators through pull requests on your fork. You can also [add collaborators to your fork](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository) if you'd like to invite other translators to commit directly to your fork and share responsibility for merging pull requests.
## Updating a translation
### Corrections
If you notice spelling or grammar errors, typos, or opportunities for better phrasing, open a pull request with your suggested fix. If you see a problem that you aren't sure of or don't have time to fix, open an issue.
If you notice spelling or grammar errors, typos, or opportunities for better phrasing, open a pull request with your suggested fix. If you see a problem that you aren't sure of or don't have time to fix, [open an issue](https://github.com/hoppscotch/hoppscotch/issues/new/choose).
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.