Import Collections directly from Docs page
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
@click="$emit('select-collection')"
|
@click="$emit('select-collection')"
|
||||||
v-tooltip.left="$t('import')"
|
v-tooltip.left="$t('import')"
|
||||||
>
|
>
|
||||||
<i class="material-icons">keyboard_backspace</i>
|
<i class="material-icons">topic</i>
|
||||||
</button>
|
</button>
|
||||||
<v-popover>
|
<v-popover>
|
||||||
<button class="tooltip-target icon" v-tooltip.left="$t('more')">
|
<button class="tooltip-target icon" v-tooltip.left="$t('more')">
|
||||||
@@ -51,6 +51,7 @@
|
|||||||
:folder="folder"
|
:folder="folder"
|
||||||
:folderIndex="index"
|
:folderIndex="index"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
|
:doc="doc"
|
||||||
@edit-folder="editFolder(collectionIndex, folder, index)"
|
@edit-folder="editFolder(collectionIndex, folder, index)"
|
||||||
@edit-request="$emit('edit-request', $event)"
|
@edit-request="$emit('edit-request', $event)"
|
||||||
/>
|
/>
|
||||||
@@ -66,6 +67,7 @@
|
|||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
:folder-index="-1"
|
:folder-index="-1"
|
||||||
:request-index="index"
|
:request-index="index"
|
||||||
|
:doc="doc"
|
||||||
@edit-request="
|
@edit-request="
|
||||||
$emit('edit-request', {
|
$emit('edit-request', {
|
||||||
request,
|
request,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
:folder-index="folderIndex"
|
:folder-index="folderIndex"
|
||||||
:request-index="index"
|
:request-index="index"
|
||||||
|
:doc="doc"
|
||||||
@edit-request="
|
@edit-request="
|
||||||
$emit('edit-request', {
|
$emit('edit-request', {
|
||||||
request,
|
request,
|
||||||
@@ -77,6 +78,7 @@ export default {
|
|||||||
folder: Object,
|
folder: Object,
|
||||||
collectionIndex: Number,
|
collectionIndex: Number,
|
||||||
folderIndex: Number,
|
folderIndex: Number,
|
||||||
|
doc: Boolean,
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
request: () => import("./request"),
|
request: () => import("./request"),
|
||||||
|
|||||||
@@ -80,18 +80,12 @@ TODO:
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <nuxt-link :to="localePath('doc')" :aria-label="$t('documentation')">
|
|
||||||
<button class="icon">
|
|
||||||
<i class="material-icons">topic</i>
|
|
||||||
<span>{{ $t("generate_docs") }}</span>
|
|
||||||
</button>
|
|
||||||
</nuxt-link> -->
|
|
||||||
</pw-section>
|
</pw-section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.virtual-list {
|
.virtual-list {
|
||||||
max-height: calc(100vh - 290px);
|
max-height: calc(100vh - 245px);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex-wrap">
|
<div class="flex-wrap">
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="selectRequest()" v-tooltip="$t('use_request')">
|
<button
|
||||||
|
class="icon"
|
||||||
|
@click="!doc ? selectRequest() : {}"
|
||||||
|
v-tooltip="!doc ? $t('use_request') : ''"
|
||||||
|
>
|
||||||
<i class="material-icons">insert_drive_file</i>
|
<i class="material-icons">insert_drive_file</i>
|
||||||
<span>{{ request.name }}</span>
|
<span>{{ request.name }}</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -50,6 +54,7 @@ export default {
|
|||||||
collectionIndex: Number,
|
collectionIndex: Number,
|
||||||
folderIndex: Number,
|
folderIndex: Number,
|
||||||
requestIndex: Number,
|
requestIndex: Number,
|
||||||
|
doc: Boolean,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
syncCollections() {
|
syncCollections() {
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
fieldset {
|
fieldset {
|
||||||
display: flex;
|
|
||||||
flex: 1;
|
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: var(--bg-dark-color);
|
background-color: var(--bg-dark-color);
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
<nav class="secondary-nav">
|
<nav class="secondary-nav">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="#collections" v-tooltip.right="$t('collections')">
|
<a href="#import" v-tooltip.right="$t('import')">
|
||||||
<i class="material-icons">folder</i>
|
<i class="material-icons">folder</i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="page-columns inner-left">
|
<div class="page-columns inner-left">
|
||||||
<pw-section class="blue" :label="$t('import')" ref="collections">
|
<pw-section class="blue" :label="$t('import')" ref="import">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p class="info">
|
<p class="info">
|
||||||
@@ -277,9 +277,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside class="sticky-inner inner-right">
|
<aside class="sticky-inner inner-right">
|
||||||
<section>
|
|
||||||
<collections @use-collection="useSelectedCollection($event)" :doc="true" />
|
<collections @use-collection="useSelectedCollection($event)" :doc="true" />
|
||||||
</section>
|
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user