⚡ Minor UI updates
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="$emit('add-folder')"
|
@click="$emit('add-folder')"
|
||||||
v-tooltip="'New Folder'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">create_new_folder</i>
|
<i class="material-icons">create_new_folder</i>
|
||||||
@@ -29,7 +28,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="$emit('edit-collection')"
|
@click="$emit('edit-collection')"
|
||||||
v-tooltip="'Edit collection'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">create</i>
|
<i class="material-icons">create</i>
|
||||||
@@ -40,7 +38,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="removeCollection"
|
@click="removeCollection"
|
||||||
v-tooltip="'Delete collection'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
@@ -126,7 +123,7 @@ export default {
|
|||||||
this.showChildren = !this.showChildren;
|
this.showChildren = !this.showChildren;
|
||||||
},
|
},
|
||||||
removeCollection() {
|
removeCollection() {
|
||||||
if (!confirm("Are you sure you want to remove this collection?")) return;
|
if (!confirm("Are you sure you want to remove this Collection?")) return;
|
||||||
this.$store.commit("postwoman/removeCollection", {
|
this.$store.commit("postwoman/removeCollection", {
|
||||||
collectionIndex: this.collectionIndex
|
collectionIndex: this.collectionIndex
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="editFolder"
|
@click="editFolder"
|
||||||
v-tooltip="'Edit folder'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">edit</i>
|
<i class="material-icons">edit</i>
|
||||||
@@ -29,7 +28,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="removeFolder"
|
@click="removeFolder"
|
||||||
v-tooltip="'Delete folder'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="$emit('edit-request')"
|
@click="$emit('edit-request')"
|
||||||
v-tooltip="'Edit request'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">edit</i>
|
<i class="material-icons">edit</i>
|
||||||
@@ -26,7 +25,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="removeRequest"
|
@click="removeRequest"
|
||||||
v-tooltip="'Delete request'"
|
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
defaultRequestName: "My New Request",
|
defaultRequestName: "My Request",
|
||||||
requestData: {
|
requestData: {
|
||||||
name: undefined,
|
name: undefined,
|
||||||
collectionIndex: undefined,
|
collectionIndex: undefined,
|
||||||
|
|||||||
@@ -11,44 +11,44 @@
|
|||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
<v-popover>
|
<v-popover>
|
||||||
<button class="tooltip-target icon" v-tooltip="'More'">
|
<button class="tooltip-target icon" v-tooltip="'Sort'">
|
||||||
<i class="material-icons">more_vert</i>
|
<i class="material-icons">sort</i>
|
||||||
</button>
|
</button>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="sort_by_label()" v-close-popover>
|
<button class="icon" @click="sort_by_label()" v-close-popover>
|
||||||
<i class="material-icons">label</i>
|
<i class="material-icons">sort_by_alpha</i>
|
||||||
<span>Sort by label</span>
|
<span>Label</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="sort_by_time()" v-close-popover>
|
<button class="icon" @click="sort_by_time()" v-close-popover>
|
||||||
<i class="material-icons">access_time</i>
|
<i class="material-icons">access_time</i>
|
||||||
<span>Sort by time</span>
|
<span>Time</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="sort_by_status_code()" v-close-popover>
|
<button class="icon" @click="sort_by_status_code()" v-close-popover>
|
||||||
<i class="material-icons">assistant</i>
|
<i class="material-icons">assistant</i>
|
||||||
<span>Sort by status</span>
|
<span>Status</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="sort_by_url()" v-close-popover>
|
<button class="icon" @click="sort_by_url()" v-close-popover>
|
||||||
<i class="material-icons">language</i>
|
<i class="material-icons">language</i>
|
||||||
<span>Sort by url</span>
|
<span>URL</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="sort_by_path()" v-close-popover>
|
<button class="icon" @click="sort_by_path()" v-close-popover>
|
||||||
<i class="material-icons">timeline</i>
|
<i class="material-icons">timeline</i>
|
||||||
<span>Sort by path</span>
|
<span>Path</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showMore">
|
<div v-if="showMore">
|
||||||
<button class="icon" @click="sort_by_duration()" v-close-popover>
|
<button class="icon" @click="sort_by_duration()" v-close-popover>
|
||||||
<i class="material-icons">timer</i>
|
<i class="material-icons">timer</i>
|
||||||
<span>Sort by duration</span>
|
<span>Duration</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
</li>
|
</li>
|
||||||
-->
|
-->
|
||||||
<v-popover>
|
<v-popover>
|
||||||
<button class="tooltip-target icon" v-tooltip="'More'">
|
<button class="tooltip-target icon" v-tooltip="'Options'">
|
||||||
<i class="material-icons">more_vert</i>
|
<i class="material-icons">more_vert</i>
|
||||||
</button>
|
</button>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
@@ -119,8 +119,8 @@
|
|||||||
aria-label="Edit"
|
aria-label="Edit"
|
||||||
v-close-popover
|
v-close-popover
|
||||||
>
|
>
|
||||||
<i class="material-icons">edit</i>
|
<i class="material-icons">restore</i>
|
||||||
<span>Use</span>
|
<span>Restore</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -241,15 +241,17 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
id="confirm-clear-history-button"
|
id="confirm-clear-history-button"
|
||||||
@click="clearHistory"
|
@click="clearHistory"
|
||||||
|
v-tooltip="'Yes'"
|
||||||
>
|
>
|
||||||
Yes
|
<i class="material-icons">done</i>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
id="reject-clear-history-button"
|
id="reject-clear-history-button"
|
||||||
@click="disableHistoryClearing"
|
@click="disableHistoryClearing"
|
||||||
|
v-tooltip="'No'"
|
||||||
>
|
>
|
||||||
No
|
<i class="material-icons">close</i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -267,13 +269,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
|
||||||
&:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
color: var(--fg-color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.smooth-enter-active,
|
.smooth-enter-active,
|
||||||
.smooth-leave-active {
|
.smooth-leave-active {
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export const SETTINGS_KEYS = [
|
|||||||
export const state = () => ({
|
export const state = () => ({
|
||||||
settings: {},
|
settings: {},
|
||||||
collections: [{
|
collections: [{
|
||||||
name: 'My First Collection',
|
name: 'My Collection',
|
||||||
folders: [],
|
folders: [],
|
||||||
requests: [],
|
requests: [],
|
||||||
}],
|
}],
|
||||||
|
|||||||
Reference in New Issue
Block a user