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.
112 lines
2.9 KiB
112 lines
2.9 KiB
4 years ago
|
<template>
|
||
|
<v-responsive @contextmenu="showMenuFn">
|
||
|
<div class="">
|
||
2 years ago
|
<v-card class="mx-0 pa-0 elevation-0">
|
||
4 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"
|
||
|
>
|
||
2 years ago
|
<template #header="{ props: { headers } }">
|
||
|
<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 }}
|
||
4 years ago
|
</th>
|
||
|
</tr>
|
||
|
</template>
|
||
|
|
||
2 years ago
|
<template #item="{ item }">
|
||
|
<tr style="height: 19px !important">
|
||
4 years ago
|
<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
|
||
|
> -->
|
||
2 years ago
|
<v-menu v-if="showMenu" v-model="showMenu" absolute :position-x="x" :position-y="y" offset-y>
|
||
4 years ago
|
<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 }) {
|
||
2 years ago
|
return true;
|
||
3 years ago
|
},
|
||
|
props: {},
|
||
3 years ago
|
data() {
|
||
3 years ago
|
return {
|
||
|
loading: false,
|
||
|
showMenu: false,
|
||
|
x: 0,
|
||
|
y: 0,
|
||
|
headers: [],
|
||
|
result: [],
|
||
2 years ago
|
maxLogs: 100,
|
||
|
};
|
||
3 years ago
|
},
|
||
|
computed: {},
|
||
|
watch: {},
|
||
2 years ago
|
created() {},
|
||
|
mounted() {},
|
||
|
beforeDestroy() {},
|
||
3 years ago
|
methods: {
|
||
3 years ago
|
showMenuFn(e) {
|
||
2 years ago
|
e.preventDefault();
|
||
|
this.showMenu = false;
|
||
|
this.x = e.clientX;
|
||
|
this.y = e.clientY;
|
||
3 years ago
|
this.$nextTick(() => {
|
||
2 years ago
|
this.showMenu = true;
|
||
|
});
|
||
|
},
|
||
3 years ago
|
},
|
||
4 years ago
|
|
||
2 years ago
|
beforeCreated() {},
|
||
|
destroy() {},
|
||
|
};
|
||
4 years ago
|
</script>
|
||
|
|
||
2 years ago
|
<style scoped></style>
|
||
4 years ago
|
<!--
|
||
|
/**
|
||
|
* @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/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|