mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.0 KiB
128 lines
3.0 KiB
3 years ago
|
<template>
|
||
|
<v-responsive @contextmenu="showMenuFn">
|
||
|
<div class="">
|
||
|
<v-card
|
||
3 years ago
|
class="mx-0 pa-0 elevation-0"
|
||
|
>
|
||
3 years ago
|
<v-card-text class="pa-0">
|
||
|
<v-data-table
|
||
|
class="small-footer"
|
||
|
dense
|
||
|
hide-default-header
|
||
|
:headers="$store.state.outputs.headers"
|
||
|
:items="$store.state.outputs.list"
|
||
3 years ago
|
:loading="loading"
|
||
|
>
|
||
|
<template #header="{props:{headers}}">
|
||
3 years ago
|
<tr style="height:19px !important;">
|
||
3 years ago
|
<th v-for="header in headers" :key="header.title" class="py-0 caption font-weight-bold">
|
||
|
{{ header.text }}
|
||
3 years ago
|
</th>
|
||
|
</tr>
|
||
|
</template>
|
||
|
|
||
3 years ago
|
<template #item="{item}">
|
||
3 years ago
|
<tr style="height:19px !important;">
|
||
|
<td v-for="(header, index) in $store.state.outputs.headers" :key="index" class="caption my-0 py-0">
|
||
|
{{ item[header.text] }}
|
||
|
</td>
|
||
|
</tr>
|
||
|
</template>
|
||
|
</v-data-table>
|
||
|
</v-card-text>
|
||
|
</v-card>
|
||
|
</div>
|
||
|
<!-- </v-flex
|
||
|
> -->
|
||
|
<v-menu
|
||
|
v-if="showMenu"
|
||
|
v-model="showMenu"
|
||
|
absolute
|
||
|
:position-x="x"
|
||
|
:position-y="y"
|
||
|
offset-y
|
||
|
>
|
||
|
<v-list>
|
||
|
<v-list-item @click="clearLogs">
|
||
|
<v-list-item-title>Clear Logs</v-list-item-title>
|
||
|
</v-list-item>
|
||
|
</v-list>
|
||
|
</v-menu>
|
||
|
<!-- </v-layout> -->
|
||
|
</v-responsive>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
|
||
3 years ago
|
export default {
|
||
|
components: {},
|
||
|
directives: {},
|
||
3 years ago
|
validate({ params }) {
|
||
3 years ago
|
return true
|
||
|
},
|
||
|
props: {},
|
||
3 years ago
|
data() {
|
||
3 years ago
|
return {
|
||
|
loading: false,
|
||
|
showMenu: false,
|
||
|
x: 0,
|
||
|
y: 0,
|
||
|
headers: [],
|
||
|
result: [],
|
||
|
maxLogs: 100
|
||
|
}
|
||
|
},
|
||
|
computed: {},
|
||
|
watch: {},
|
||
3 years ago
|
created() {
|
||
3 years ago
|
},
|
||
3 years ago
|
mounted() {
|
||
3 years ago
|
},
|
||
3 years ago
|
beforeDestroy() {
|
||
3 years ago
|
},
|
||
|
methods: {
|
||
3 years ago
|
showMenuFn(e) {
|
||
3 years ago
|
e.preventDefault()
|
||
|
this.showMenu = false
|
||
|
this.x = e.clientX
|
||
|
this.y = e.clientY
|
||
|
this.$nextTick(() => {
|
||
|
this.showMenu = true
|
||
|
})
|
||
|
}
|
||
|
},
|
||
3 years ago
|
|
||
3 years ago
|
beforeCreated() {
|
||
3 years ago
|
},
|
||
3 years ago
|
destroy() {
|
||
3 years ago
|
}
|
||
|
}
|
||
3 years ago
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
</style>
|
||
|
<!--
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||
|
*
|
||
|
* @author Naveen MR <oof1lab@gmail.com>
|
||
|
* @author Pranav C Balan <pranavxc@gmail.com>
|
||
|
*
|
||
|
* @license GNU AGPL version 3 or any later version
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|