⚡ Lint
This commit is contained in:
@@ -58,6 +58,7 @@ body {
|
|||||||
|
|
||||||
// Make theme transition smoother.
|
// Make theme transition smoother.
|
||||||
body.afterLoad {
|
body.afterLoad {
|
||||||
|
|
||||||
&,
|
&,
|
||||||
& * {
|
& * {
|
||||||
transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
|
transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
|
||||||
|
|||||||
@@ -23,7 +23,11 @@
|
|||||||
</button>
|
</button>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
<div>
|
<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>
|
<i class="material-icons">delete</i>
|
||||||
<span>Delete</span>
|
<span>Delete</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -24,7 +24,11 @@
|
|||||||
</button>
|
</button>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
<div>
|
<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>
|
<i class="material-icons">delete</i>
|
||||||
<span>Delete</span>
|
<span>Delete</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="color" :data-color="color">
|
<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>
|
<i v-if="active" class="material-icons activeTick">done</i>
|
||||||
</span>
|
</span>
|
||||||
{{ name || color }}
|
{{ name || color }}
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<title>Postwoman</title>
|
<title>Postwoman</title>
|
||||||
|
<meta http-equiv="refresh" content="0; url=https://postwoman.io">
|
||||||
|
<link rel="canonical" href="https://postwoman.io">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
Redirecting to postwoman.io
|
Redirecting to postwoman.io
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -14,11 +14,7 @@
|
|||||||
aria-label="GitHub"
|
aria-label="GitHub"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
<button
|
<button class="icon" aria-label="GitHub" v-tooltip="'GitHub'">
|
||||||
class="icon"
|
|
||||||
aria-label="GitHub"
|
|
||||||
v-tooltip="'GitHub'"
|
|
||||||
>
|
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="24"
|
||||||
|
|||||||
@@ -35,8 +35,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</pw-section>
|
</pw-section>
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<pw-section class="blue" label="Request" ref="request">
|
<pw-section class="blue" label="Request" ref="request">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@@ -124,11 +122,20 @@
|
|||||||
</span>
|
</span>
|
||||||
<div>
|
<div>
|
||||||
<label for="payload">
|
<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>
|
<i class="material-icons">attach_file</i>
|
||||||
</button>
|
</button>
|
||||||
</label>
|
</label>
|
||||||
<input ref="payload" name="payload" type="file" @change="uploadPayload"/>
|
<input
|
||||||
|
ref="payload"
|
||||||
|
name="payload"
|
||||||
|
type="file"
|
||||||
|
@change="uploadPayload"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -1919,15 +1926,14 @@ export default {
|
|||||||
let file = this.$refs.payload.files[0];
|
let file = this.$refs.payload.files[0];
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
reader.onload = (e) => {
|
reader.onload = e => {
|
||||||
this.rawParams = e.target.result;
|
this.rawParams = e.target.result;
|
||||||
};
|
};
|
||||||
reader.readAsText(file);
|
reader.readAsText(file);
|
||||||
this.$toast.info("File imported", {
|
this.$toast.info("File imported", {
|
||||||
icon: "attach_file"
|
icon: "attach_file"
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this.$toast.error("Choose a file", {
|
this.$toast.error("Choose a file", {
|
||||||
icon: "attach_file"
|
icon: "attach_file"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user