Lint
This commit is contained in:
Liyas Thomas
2019-11-14 10:18:58 +05:30
committed by GitHub
7 changed files with 31 additions and 15 deletions

View File

@@ -58,6 +58,7 @@ body {
// Make theme transition smoother.
body.afterLoad {
&,
& * {
transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;

View File

@@ -23,7 +23,11 @@
</button>
<template slot="popover">
<div>
<button class="icon" @click="removeFolder" v-tooltip="'Delete folder'">
<button
class="icon"
@click="removeFolder"
v-tooltip="'Delete folder'"
>
<i class="material-icons">delete</i>
<span>Delete</span>
</button>

View File

@@ -24,7 +24,11 @@
</button>
<template slot="popover">
<div>
<button class="icon" @click="removeRequest" v-tooltip="'Delete request'">
<button
class="icon"
@click="removeRequest"
v-tooltip="'Delete request'"
>
<i class="material-icons">delete</i>
<span>Delete</span>
</button>

View File

@@ -1,6 +1,6 @@
<template>
<div class="color" :data-color="color">
<span :style="{backgroundColor: color}" class="preview">
<span :style="{ backgroundColor: color }" class="preview">
<i v-if="active" class="material-icons activeTick">done</i>
</span>
{{ name || color }}

View File

@@ -1,12 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Postwoman</title>
<meta http-equiv="refresh" content="0; url=https://postwoman.io">
<link rel="canonical" href="https://postwoman.io">
</head>
<body>
Redirecting to postwoman.io
</body>
</html>

View File

@@ -14,11 +14,7 @@
aria-label="GitHub"
rel="noopener"
>
<button
class="icon"
aria-label="GitHub"
v-tooltip="'GitHub'"
>
<button class="icon" aria-label="GitHub" v-tooltip="'GitHub'">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"

View File

@@ -35,8 +35,6 @@
</ul>
</pw-section>
<br />
<pw-section class="blue" label="Request" ref="request">
<ul>
<li>
@@ -124,11 +122,20 @@
</span>
<div>
<label for="payload">
<button class="icon" @click="$refs.payload.click()" v-tooltip="'Upload file'">
<button
class="icon"
@click="$refs.payload.click()"
v-tooltip="'Upload file'"
>
<i class="material-icons">attach_file</i>
</button>
</label>
<input ref="payload" name="payload" type="file" @change="uploadPayload"/>
<input
ref="payload"
name="payload"
type="file"
@change="uploadPayload"
/>
</div>
</div>
</li>
@@ -1919,15 +1926,14 @@ export default {
let file = this.$refs.payload.files[0];
if (file != null) {
let reader = new FileReader();
reader.onload = (e) => {
reader.onload = e => {
this.rawParams = e.target.result;
};
reader.readAsText(file);
this.$toast.info("File imported", {
icon: "attach_file"
});
}
else {
} else {
this.$toast.error("Choose a file", {
icon: "attach_file"
});