✏️ Meta

This commit is contained in:
liyasthomas
2019-09-27 22:59:21 +05:30
parent d5759286fa
commit 271008d748
3 changed files with 59 additions and 63 deletions

View File

@@ -3,21 +3,21 @@ When I wrote this, only God and I understood what I was doing. Now, only God kno
``` ```
<div align="center"> <div align="center">
<a href="https://liyas-thomas.firebaseapp.com"><img src="static/icons/logo.svg" alt="Liyas Thomas" height="128"></a> <a href="https://liyas-thomas.firebaseapp.com"><img src="static/icons/logo.svg" alt="Liyas Thomas" height="128"></a>
<br> <br>
<h1>Postwoman</h1> <h1>Postwoman</h1>
<p> <p>
API request builder - Helps you create your requests faster, saving you precious time on your development API request builder - Helps you create your requests faster, saving you precious time on your development
</p> </p>
<p> <p>
[![Financial Contributors on Open Collective](https://opencollective.com/postwoman/all/badge.svg?label=financial+contributors)](https://opencollective.com/postwoman) [![Build Status](https://travis-ci.com/liyasthomas/postwoman.svg?branch=master)](https://travis-ci.com/liyasthomas/postwoman) [![GitHub release](https://img.shields.io/github/release/liyasthomas/postwoman/all.svg)](https://github.com/liyasthomas/postwoman/releases/latest) [![repo size](https://img.shields.io/github/repo-size/liyasthomas/postwoman.svg)](https://github.com/liyasthomas/postwoman/archive/master.zip) [![license](https://img.shields.io/github/license/liyasthomas/postwoman.svg)](https://github.com/liyasthomas/postwoman/blob/master/LICENSE) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/liyasthomas/postwoman/issues) [![Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=website)](https://postwoman.io) [![Donate](https://img.shields.io/badge/$-donate-blue.svg)](https://www.paypal.me/liyascthomas) [![Buy me a coffee](https://img.shields.io/badge/$-BuyMeACoffee-orange.svg)](https://www.buymeacoffee.com/liyasthomas) [![Chat on Telegram](https://img.shields.io/badge/chat-Telegram-blueviolet)](https://t.me/postwoman_app) [![Chat on Discord](https://img.shields.io/badge/chat-Discord-violet?logo=discord)](https://discord.gg/GAMWxmR) [![Financial Contributors on Open Collective](https://opencollective.com/postwoman/all/badge.svg?label=financial+contributors)](https://opencollective.com/postwoman) [![Build Status](https://travis-ci.com/liyasthomas/postwoman.svg?branch=master)](https://travis-ci.com/liyasthomas/postwoman) [![GitHub release](https://img.shields.io/github/release/liyasthomas/postwoman/all.svg)](https://github.com/liyasthomas/postwoman/releases/latest) [![repo size](https://img.shields.io/github/repo-size/liyasthomas/postwoman.svg)](https://github.com/liyasthomas/postwoman/archive/master.zip) [![license](https://img.shields.io/github/license/liyasthomas/postwoman.svg)](https://github.com/liyasthomas/postwoman/blob/master/LICENSE) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/liyasthomas/postwoman/issues) [![Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=website)](https://postwoman.io) [![Donate](https://img.shields.io/badge/$-donate-blue.svg)](https://www.paypal.me/liyascthomas) [![Buy me a coffee](https://img.shields.io/badge/$-BuyMeACoffee-orange.svg)](https://www.buymeacoffee.com/liyasthomas) [![Chat on Telegram](https://img.shields.io/badge/chat-Telegram-blueviolet)](https://t.me/postwoman_app) [![Chat on Discord](https://img.shields.io/badge/chat-Discord-violet?logo=discord)](https://discord.gg/GAMWxmR)
</p> </p>
<sub>Built with ❤︎ by <sub>Built with ❤︎ by
<a href="https://github.com/liyasthomas">liyasthomas</a> and <a href="https://github.com/liyasthomas">liyasthomas</a> and
<a href="https://github.com/liyasthomas/postwoman/graphs/contributors">contributors</a> <a href="https://github.com/liyasthomas/postwoman/graphs/contributors">contributors</a>
</sub> </sub>
</div> </div>
--- ---
@@ -202,7 +202,7 @@ See the [CHANGELOG](CHANGELOG.md) file for details.
* ([contributors](https://github.com/liyasthomas/postwoman/graphs/contributors)) * ([contributors](https://github.com/liyasthomas/postwoman/graphs/contributors))
### Contributors 🚸 ### Collaborators 🚸
<table> <table>
<tr> <tr>

View File

@@ -25,7 +25,7 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.5);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;

View File

@@ -1,48 +1,38 @@
<template> <template>
<div class="page"> <div class="page">
<pw-section class="yellow" label="Import" ref="import"> <pw-modal v-if="showModal" @close="showModal = false">
<ul> <div slot="header">
<li> <ul>
<button class="icon" id="show-modal" @click="showModal = true"> <li>
<i class="material-icons">import_export</i> <div class="flex-wrap">
<span>Import cURL</span> <h3 class="title">Import cURL</h3>
</button> <div>
</li> <button class="icon" @click="toggleModal">
</ul> <i class="material-icons">close</i>
<pw-modal v-if="showModal" @close="showModal = false"> </button>
<div slot="header">
<ul>
<li>
<div class="flex-wrap">
<h3 class="title">Import cURL</h3>
<div>
<button class="icon" @click="toggleModal">
<i class="material-icons">close</i>
</button>
</div>
</div> </div>
</li> </div>
</ul> </li>
</div> </ul>
<div slot="body"> </div>
<ul> <div slot="body">
<li> <ul>
<textarea id="import-text" autofocus rows="8" placeholder="Enter cURL"></textarea> <li>
</li> <textarea id="import-text" autofocus rows="8" placeholder="Enter cURL"></textarea>
</ul> </li>
</div> </ul>
<div slot="footer"> </div>
<ul> <div slot="footer">
<li> <ul>
<button class="icon" @click="handleImport"> <li>
<i class="material-icons">get_app</i> <button class="icon" @click="handleImport">
<span>Import</span> <i class="material-icons">get_app</i>
</button> <span>Import</span>
</li> </button>
</ul> </li>
</div> </ul>
</pw-modal> </div>
</pw-section> </pw-modal>
<pw-section class="blue" label="Request" ref="request"> <pw-section class="blue" label="Request" ref="request">
<ul> <ul>
<li> <li>
@@ -141,12 +131,18 @@
</ul> </ul>
</div> </div>
</div> </div>
<button class="icon" @click="clearContent"> <div class="flex-wrap">
<i class="material-icons">clear_all</i> <button class="icon" id="show-modal" @click="showModal = true">
<span>Clear all</span> <i class="material-icons">import_export</i>
</button> <span>Import cURL</span>
</button>
<button class="icon" @click="clearContent">
<i class="material-icons">clear_all</i>
<span>Clear all</span>
</button>
</div>
</pw-section> </pw-section>
<pw-section class="blue" label="Code" ref="requestCode" v-if="!isHidden"> <pw-section class="yellow" label="Code" ref="requestCode" v-if="!isHidden">
<ul> <ul>
<li> <li>
<label for="requestType">Request Type</label> <label for="requestType">Request Type</label>
@@ -919,7 +915,7 @@
} else { } else {
this.$refs.copyRequest.innerHTML = this.copiedButton + '<span>Copied</span>'; this.$refs.copyRequest.innerHTML = this.copiedButton + '<span>Copied</span>';
this.$toast.success('Copied to clipboard', { this.$toast.success('Copied to clipboard', {
icon: 'file_copy', icon: 'done',
position: 'bottom-center', position: 'bottom-center',
duration: 1000, duration: 1000,
}); });
@@ -935,7 +931,7 @@
copyRequestCode() { copyRequestCode() {
this.$refs.copyRequestCode.innerHTML = this.copiedButton + '<span>Copied</span>'; this.$refs.copyRequestCode.innerHTML = this.copiedButton + '<span>Copied</span>';
this.$toast.success('Copied to clipboard', { this.$toast.success('Copied to clipboard', {
icon: 'file_copy', icon: 'done',
position: 'bottom-center', position: 'bottom-center',
duration: 1000, duration: 1000,
}); });
@@ -946,7 +942,7 @@
copyResponse() { copyResponse() {
this.$refs.copyResponse.innerHTML = this.copiedButton + '<span>Copied</span>'; this.$refs.copyResponse.innerHTML = this.copiedButton + '<span>Copied</span>';
this.$toast.success('Copied to clipboard', { this.$toast.success('Copied to clipboard', {
icon: 'file_copy', icon: 'done',
position: 'bottom-center', position: 'bottom-center',
duration: 1000, duration: 1000,
}); });
@@ -1083,7 +1079,7 @@
this.bodyParams = []; this.bodyParams = [];
this.rawParams = ''; this.rawParams = '';
} }
this.$toast.error('Cleared', { this.$toast.info('Cleared', {
icon: 'clear_all', icon: 'clear_all',
position: 'bottom-center', position: 'bottom-center',
duration: 1000, duration: 1000,