mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #650] [MERGED] Added the ability to prettify GraphQL queries #2770
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2770
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/650
Author: @AndrewBastin
Created: 3/5/2020
Status: ✅ Merged
Merged: 3/6/2020
Merged by: @AndrewBastin
Base:
master← Head:feat/gql-query-prettify📝 Commits (6)
7dd4db1Added prettifying to GQL Query Editora9ba2b5Added error handling to query prettify to prevent event propagationcb0de46Added i10n entry for invalid GQL Query prettification64091c1GQL Query Editor shows toast on prettifying invalid queries30ee570Added i10n entry for prettify querye4abe4eAdded prettify query button for GraphQL queries📊 Changes
3 files changed (+32 additions, -0 deletions)
View changed files
📝
components/graphql/queryeditor.vue(+19 -0)📝
lang/en-US.js(+3 -0)📝
pages/graphql.vue(+10 -0)📄 Description
This PR intends to add the ability to do GraphQL query prettification. It adds a editor shortcut (
cmd-porctrl-p) and also a button above the query editor to do prettification.I am not a pretty big fan of the icon for the prettify button, I had that auto-fix magic wand icon in my mind but I think it is removed from the material icons collection now. @liyasthomas it would be awesome if you could replace that with something more aesthetically pleasing.
NOTE to Translators: Added new entries for i10n
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.