@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user