refactor: better copy

This commit is contained in:
Liyas Thomas
2021-01-23 19:43:11 +05:30
parent 290781e734
commit ca66b47014
7 changed files with 34 additions and 57 deletions

View File

@@ -10,7 +10,7 @@
</p>
<p>
![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen?logo=github) [![Website](https://img.shields.io/website?url=https%3A%2F%2Fhoppscotch.io&logo=hoppscotch)](https://hoppscotch.io) [![Travis Build Status](https://img.shields.io/travis/com/hoppscotch/hoppscotch/main?logo=Travis)](https://travis-ci.com/hoppscotch/hoppscotch) [![Tweet](https://img.shields.io/twitter/url?url=https%3A%2F%2Fhoppscotch.io%2F)](https://twitter.com/intent/tweet?url=https%3A%2F%2Fhoppscotch.io&text=%F0%9F%91%BD%20Hoppscotch%20%E2%80%A2%20API%20request%20builder%20-%20Helps%20you%20create%20requests%20faster%2C%20saving%20precious%20time%20on%20development&original_referer=https%3A%2F%2Ftwitter.com%2Fshare%3Ftext%3D%25F0%259F%2591%25BD%2520Hoppscotch%2520%25E2%2580%25A2%2520API%2520request%2520builder%2520-%2520Helps%2520you%2520create%2520requests%2520faster%2C%2520saving%2520precious%2520time%2520on%2520development%26url%3Dhttps%3A%2F%2Fhoppscotch.io%26hashtags%3Dhoppscotch%26via%3Dliyasthomas&via=liyasthomas&hashtags=hoppscotch)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen?logo=github)](CODE_OF_CONDUCT.md) [![Website](https://img.shields.io/website?url=https%3A%2F%2Fhoppscotch.io&logo=hoppscotch)](https://hoppscotch.io) [![Travis Build Status](https://img.shields.io/travis/com/hoppscotch/hoppscotch/main?logo=Travis)](https://travis-ci.com/hoppscotch/hoppscotch) [![Tweet](https://img.shields.io/twitter/url?url=https%3A%2F%2Fhoppscotch.io%2F)](https://twitter.com/intent/tweet?url=https%3A%2F%2Fhoppscotch.io&text=%F0%9F%91%BD%20Hoppscotch%20%E2%80%A2%20API%20request%20builder%20-%20Helps%20you%20create%20requests%20faster%2C%20saving%20precious%20time%20on%20development&original_referer=https%3A%2F%2Ftwitter.com%2Fshare%3Ftext%3D%25F0%259F%2591%25BD%2520Hoppscotch%2520%25E2%2580%25A2%2520API%2520request%2520builder%2520-%2520Helps%2520you%2520create%2520requests%2520faster%2C%2520saving%2520precious%2520time%2520on%2520development%26url%3Dhttps%3A%2F%2Fhoppscotch.io%26hashtags%3Dhoppscotch%26via%3Dliyasthomas&via=liyasthomas&hashtags=hoppscotch)
</p>
<p>
@@ -34,7 +34,7 @@
[![Sponsor on GitHub](https://img.shields.io/badge/sponsor-GitHub-181717?logo=github)](https://github.com/sponsors/hoppscotch) [![Contribute on Open Collective](https://img.shields.io/badge/contribute-Open%20Collective-7FADF2?logo=open-collective)](https://opencollective.com/hoppscotch) [![Join on Patreon](https://img.shields.io/badge/join-Patreon-F96854?logo=patreon)](https://www.patreon.com/liyasthomas) [![Donate on PayPal](https://img.shields.io/badge/donate-PayPal-00457C?logo=paypal)](https://www.paypal.me/liyascthomas)
<details>
<summary><i><ins>Table of contents</ins></i></summary>
<summary><i>Table of contents</i></summary>
---
@@ -50,19 +50,15 @@
- [Releasing](#releasing)
- [Contributing](#contributing)
- [Continuous Integration](#continuous-integration)
- [Versioning](#versioning)
- [Changelog](#changelog)
- [Authors](#authors)
- [Lead Developers](#lead-developers)
- [Testing and Debugging](#testing-and-debugging)
- [Collaborators](#collaborators-)
- [Thanks](#thanks)
- [Financial Contributors](#financial-contributors)
- [GitHub Sponsors](#github-sponsors)
- [Open Collective](#open-collective)
- [Code Contributors](#code-contributors)
- [License](#license)
- [Acknowledgements](#acknowledgements)
- [Badges](#badges)
---
@@ -76,7 +72,7 @@
⚡️ **Fast:** Send requests and get/copy responses in real-time.
<details>
<summary><i><ins>HTTP Methods</ins></i></summary>
<summary><i>HTTP Methods</i></summary>
---
@@ -98,7 +94,7 @@
🌈 **Make it yours:** Customizable combinations for background, foreground and accent colors. [Customize now ✨](https://hoppscotch.io/settings)
<details>
<summary><i><ins>Theming</ins></i></summary>
<summary><i>Theming</i></summary>
---
@@ -116,7 +112,7 @@ _Customized themes are synced with local session storage_
🔥 **PWA:** Install as a [PWA](https://developers.google.com/web/progressive-web-apps) on your device.
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -137,7 +133,7 @@ _Customized themes are synced with local session storage_
- Send
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -161,7 +157,7 @@ _Customized themes are synced with local session storage_
🔮 **GraphQL:** GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -178,7 +174,7 @@ _Customized themes are synced with local session storage_
🔐 **Authentication:** Allows to identify the end user.
<details>
<summary><i><ins>Types</ins></i></summary>
<summary><i>Types</i></summary>
---
@@ -199,7 +195,7 @@ _Customized themes are synced with local session storage_
📃 **Request Body:** Used to send and receive data via the REST API.
<details>
<summary><i><ins>Options</ins></i></summary>
<summary><i>Options</i></summary>
---
@@ -214,7 +210,7 @@ _Customized themes are synced with local session storage_
👋 **Response:** Contains the status line, headers and the message/response body.
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -232,7 +228,7 @@ _Customized themes are synced with local session storage_
📁 **Collections:** Keep your API requests organized with collections and folders. Reuse them with a single click.
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -249,7 +245,7 @@ _Collections are synced with cloud / local session storage_
🌐 **Proxy:** Enable Proxy Mode from Settings to access blocked APIs.
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -267,7 +263,7 @@ _Official Hoppscotch Proxy is hosted by Apollo Software - **[Privacy Policy](htt
📜 **Pre-Request Scripts β:** Snippets of code associated with a request that are executed before the request is sent.
<details>
<summary><i><ins>Use-cases</ins></i></summary>
<summary><i>Use-cases</i></summary>
---
@@ -282,7 +278,7 @@ _Official Hoppscotch Proxy is hosted by Apollo Software - **[Privacy Policy](htt
📄 **API Documentation:** Create and share dynamic API documentation easily, quickly.
<details>
<summary><i><ins>Usage</ins></i></summary>
<summary><i>Usage</i></summary>
---
@@ -298,10 +294,10 @@ _Official Hoppscotch Proxy is hosted by Apollo Software - **[Privacy Policy](htt
> **[Shortcuts WIki](https://github.com/hoppscotch/hoppscotch/wiki/Shortcuts)**
🌎 **i18n β:** Experience the app in your own language.
🌎 **i18n:** Experience the app in your own language.
<details>
<summary><i><ins>Usage</ins></i></summary>
<summary><i>Usage</i></summary>
---
@@ -348,7 +344,7 @@ _Add-ons are developed and maintained under **[Official Hoppscotch Organization]
**Post-Request Tests β:** Write tests associated with a request that are executed after the request response.
<details>
<summary><i><ins>Use-cases</ins></i></summary>
<summary><i>Use-cases</i></summary>
---
@@ -367,7 +363,7 @@ _Notes are only available for signed-in users_
🌱 **Environments** : Environment variables allow you to store and reuse values in your requests and scripts.
<details>
<summary><i><ins>Features</ins></i></summary>
<summary><i>Features</i></summary>
---
@@ -380,7 +376,7 @@ _Notes are only available for signed-in users_
</details>
<details>
<summary><i><ins>Use-cases</ins></i></summary>
<summary><i>Use-cases</i></summary>
---
@@ -450,7 +446,7 @@ docker run -p 3000:3000 hoppscotch/hoppscotch:latest
```
<details>
<summary><i><ins>Legacy container</ins></i></summary>
<summary><i>Legacy container</i></summary>
---
@@ -486,10 +482,6 @@ Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDU
We use [Travis CI](https://travis-ci.com) for continuous integration. Check out our [Travis CI Status](https://travis-ci.com/hoppscotch/hoppscotch).
## **Versioning**
This project is developed by [Liyas Thomas](https://github.com/liyasthomas) using the [Semantic Versioning specification](https://semver.org). For the versions available, see the [releases on this repository](https://github.com/liyasthomas/hoppscotch/releases).
## **Changelog**
See the [`CHANGELOG`](CHANGELOG.md) file for details.
@@ -502,10 +494,6 @@ See the [`CHANGELOG`](CHANGELOG.md) file for details.
- **[Andrew Bastin](https://github.com/andrewbastin)** - _Lead developer_
- **[Caneco](https://twitter.com/caneco)** - _Logo and banner designer_
### Testing and Debugging
- [Contributors](https://github.com/hoppscotch/hoppscotch/graphs/contributors)
### Collaborators <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<!-- ALL-CONTRIBUTORS-BADGE:END -->
@@ -527,10 +515,6 @@ See the [`CHANGELOG`](CHANGELOG.md) file for details.
See the list of [contributors](https://github.com/hoppscotch/hoppscotch/graphs/contributors) who participated in this project.
### Thanks
- [dev.to 👩‍💻👨‍💻](https://dev.to)
### Financial Contributors
Become a financial contributor and help us sustain our community [[Support](#support)].
@@ -548,6 +532,13 @@ Become a financial contributor and help us sustain our community [[Support](#sup
</p>
<p align="center">
<a href="https://github.com/aishwarydhare" target="_blank" rel="noopener">
<img
width="64"
src="https://github.com/aishwarydhare.png?size=64"
alt="Aishwary Dhare"
/>
</a>
<a href="https://github.com/diningcity-group" target="_blank" rel="noopener">
<img
width="64"
@@ -668,12 +659,6 @@ This project exists thanks to all the people who contribute [[Contribute](CONTRI
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [`LICENSE`](LICENSE) file for details.
## **Acknowledgements**
- Hat tip to anyone whose code was used
- Inspirations:
- [Dribbble](https://dribbble.com)
## **Badges**
<table>
@@ -759,10 +744,3 @@ This project is licensed under the [MIT License](https://opensource.org/licenses
</tr>
</tbody>
</table>
<div align="center">
<br>
<a href="https://hoppscotch.io"><img src="https://raw.githubusercontent.com/liyasthomas/templates/master/assets/logo.gif" alt="hoppscotch.io" width="200"></a>
<br>
<h3>Happy Coding ❤︎</h3>
</div>

View File

@@ -35,7 +35,7 @@
>
<li>
<input
:placeholder="$t('parameter_count', { count: index + 1 })"
:placeholder="$t('variable_count', { count: index + 1 })"
:name="'param' + index"
:value="variable.key"
@change="

View File

@@ -3,7 +3,7 @@
<ul>
<li>
<div class="row-wrapper">
<label for="reqParamList">{{ $t("parameter_list") }}</label>
<label for="reqParamList">{{ $t("request_body") }}</label>
<div>
<button
class="icon"

View File

@@ -118,7 +118,7 @@
d="M24 4.557a9.83 9.83 0 01-2.828.775 4.932 4.932 0 002.165-2.724 9.864 9.864 0 01-3.127 1.195 4.916 4.916 0 00-3.594-1.555c-3.179 0-5.515 2.966-4.797 6.045A13.978 13.978 0 011.671 3.149a4.93 4.93 0 001.523 6.574 4.903 4.903 0 01-2.229-.616c-.054 2.281 1.581 4.415 3.949 4.89a4.935 4.935 0 01-2.224.084 4.928 4.928 0 004.6 3.419A9.9 9.9 0 010 19.54a13.94 13.94 0 007.548 2.212c9.142 0 14.307-7.721 13.995-14.646A10.025 10.025 0 0024 4.557z"
/>
</svg>
<span>{{ $t("tweet") }}</span>
<span>Tweet</span>
</button>
<button
v-if="navigatorShare"

View File

@@ -6,13 +6,11 @@
"request": "Request",
"install_pwa": "Install PWA",
"support_us": "Support us",
"tweet": "Tweet",
"options": "Options",
"communication": "Communication",
"endpoint": "Endpoint",
"schema": "Schema",
"theme": "Theme",
"subscribe": "Subscribe",
"choose_language": "Choose Language",
"shortcuts": "Shortcuts",
"send_request": "Send/Cancel Request",
@@ -29,6 +27,7 @@
"content_type": "Content Type",
"raw_input": "Raw input",
"parameter_list": "Parameter List",
"request_body": "Request Body",
"raw_request_body": "Raw Request Body",
"show_code": "Show Code",
"show_prerequest_script": "Show Pre-Request Script",
@@ -213,7 +212,6 @@
"docs_generated": "Documentation generated",
"import_collections": "Import collections",
"optional": "(optional)",
"json": "JSON",
"none": "None",
"username": "Username",
"password": "Password",

View File

@@ -10,7 +10,7 @@
</p>
<div class="row-wrapper">
<label for="collectionUpload">
<button class="icon" @click="$refs.collectionUpload.click()" v-tooltip="$t('json')">
<button class="icon" @click="$refs.collectionUpload.click()" v-tooltip="'JSON'">
<i class="material-icons">folder</i>
<span>{{ $t("import_collections") }}</span>
</button>

View File

@@ -206,7 +206,8 @@ export default {
FRAME_COLORS_ENABLED: this.$store.state.postwoman.settings.FRAME_COLORS_ENABLED || false,
PROXY_ENABLED: this.$store.state.postwoman.settings.PROXY_ENABLED || false,
PROXY_URL:
this.$store.state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
this.$store.state.postwoman.settings.PROXY_URL ||
"https://hoppscotch.apollosoftware.xyz/",
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || "",
EXTENSIONS_ENABLED: