progresses on sharing #192
Progresses on #192
Progresses on #192
Little API update
Build assets
Former-commit-id: 68e70132ea857eb65638c0496c030be1c181ed1c [formerly d67b74280b7f12c3e20de6abe31fcfc26e8f43ef] [formerly 8fe91e003c9616da23f0e673ad4bb89d792a41c8 [formerly 8684343605]]
Former-commit-id: 7d22ff468e580601d0c3e0921734b587b92484f8 [formerly 55f9d830636f9bbf15e0453d1ee7de6ee5d5191e]
Former-commit-id: ad411a5979521dda9ea9683d86e4c8ae7b3c9e6f
96 lines
2.8 KiB
Vue
96 lines
2.8 KiB
Vue
<template>
|
|
<div>
|
|
<help v-if="showHelp" ></help>
|
|
<download v-else-if="showDownload"></download>
|
|
<new-file v-else-if="showNewFile"></new-file>
|
|
<new-dir v-else-if="showNewDir"></new-dir>
|
|
<rename v-else-if="showRename"></rename>
|
|
<delete v-else-if="showDelete"></delete>
|
|
<info v-else-if="showInfo"></info>
|
|
<move v-else-if="showMove"></move>
|
|
<copy v-else-if="showCopy"></copy>
|
|
<error v-else-if="showError"></error>
|
|
<success v-else-if="showSuccess"></success>
|
|
<replace v-else-if="showReplace"></replace>
|
|
<schedule v-else-if="show === 'schedule'"></schedule>
|
|
<new-archetype v-else-if="show === 'new-archetype'"></new-archetype>
|
|
<share v-else-if="show === 'share'"></share>
|
|
<div v-show="showOverlay" @click="resetPrompts" class="overlay"></div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Help from './Help'
|
|
import Info from './Info'
|
|
import Delete from './Delete'
|
|
import Rename from './Rename'
|
|
import Download from './Download'
|
|
import Move from './Move'
|
|
import Copy from './Copy'
|
|
import Error from './Error'
|
|
import Success from './Success'
|
|
import NewFile from './NewFile'
|
|
import NewDir from './NewDir'
|
|
import NewArchetype from './NewArchetype'
|
|
import Replace from './Replace'
|
|
import Schedule from './Schedule'
|
|
import Share from './Share'
|
|
import { mapState } from 'vuex'
|
|
import buttons from '@/utils/buttons'
|
|
import * as api from '@/utils/api'
|
|
|
|
export default {
|
|
name: 'prompts',
|
|
components: {
|
|
Info,
|
|
Delete,
|
|
NewArchetype,
|
|
Schedule,
|
|
Rename,
|
|
Error,
|
|
Download,
|
|
Success,
|
|
Move,
|
|
Copy,
|
|
Share,
|
|
NewFile,
|
|
NewDir,
|
|
Help,
|
|
Replace
|
|
},
|
|
data: function () {
|
|
return {
|
|
pluginData: {
|
|
api,
|
|
buttons,
|
|
'store': this.$store,
|
|
'router': this.$router
|
|
}
|
|
}
|
|
},
|
|
computed: {
|
|
...mapState(['show', 'plugins']),
|
|
showError: function () { return this.show === 'error' },
|
|
showSuccess: function () { return this.show === 'success' },
|
|
showInfo: function () { return this.show === 'info' },
|
|
showHelp: function () { return this.show === 'help' },
|
|
showDelete: function () { return this.show === 'delete' },
|
|
showRename: function () { return this.show === 'rename' },
|
|
showMove: function () { return this.show === 'move' },
|
|
showCopy: function () { return this.show === 'copy' },
|
|
showNewFile: function () { return this.show === 'newFile' },
|
|
showNewDir: function () { return this.show === 'newDir' },
|
|
showDownload: function () { return this.show === 'download' },
|
|
showReplace: function () { return this.show === 'replace' },
|
|
showOverlay: function () {
|
|
return (this.show !== null && this.show !== 'search' && this.show !== 'more')
|
|
}
|
|
},
|
|
methods: {
|
|
resetPrompts () {
|
|
this.$store.commit('closeHovers')
|
|
}
|
|
}
|
|
}
|
|
</script>
|