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.
140 lines
3.5 KiB
140 lines
3.5 KiB
3 years ago
|
<template>
|
||
|
<v-container fluid>
|
||
3 years ago
|
<v-simple-table dense class="ignore-height-style params-table" style="">
|
||
|
<template #default>
|
||
3 years ago
|
<thead>
|
||
3 years ago
|
<tr>
|
||
|
<th class="text-left body-2 grey--text" width="40%">
|
||
|
Param Name
|
||
|
</th>
|
||
|
<th class="text-left body-2 grey--text" width="40%">
|
||
|
Value
|
||
|
</th>
|
||
|
</tr>
|
||
3 years ago
|
</thead>
|
||
|
<tbody>
|
||
3 years ago
|
<tr>
|
||
|
<td>
|
||
|
Connections
|
||
|
</td>
|
||
|
<td>
|
||
|
<v-text-field
|
||
|
v-model="perf.connections"
|
||
|
placeholder="Enter a number"
|
||
|
hide-details
|
||
|
single-line
|
||
|
dense
|
||
|
class="body-2"
|
||
|
type="number"
|
||
|
@input="$emit('input', perf)"
|
||
|
/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
Pipeline
|
||
|
</td>
|
||
|
<td>
|
||
|
<v-text-field
|
||
|
v-model="perf.pipelining"
|
||
|
placeholder="Enter a number"
|
||
|
hide-details
|
||
|
single-line
|
||
|
dense
|
||
|
class="body-2"
|
||
|
type="number"
|
||
|
@input="$emit('input', perf)"
|
||
|
/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
Duration
|
||
|
</td>
|
||
|
<td>
|
||
|
<v-text-field
|
||
|
v-model="perf.duration"
|
||
|
placeholder="Duration in seconds"
|
||
|
hide-details
|
||
|
single-line
|
||
|
dense
|
||
|
class="body-2"
|
||
|
type="number"
|
||
|
@input="$emit('input', perf)"
|
||
|
/>
|
||
|
</td>
|
||
|
</tr>
|
||
3 years ago
|
</tbody>
|
||
|
</template>
|
||
|
</v-simple-table>
|
||
3 years ago
|
<div class="pa-1 text-right">
|
||
|
<p class="grey--text caption">
|
||
|
We are using <a
|
||
|
v-ge="['api-client-perf-test','autocannon-link']"
|
||
|
@click="open('https://github.com/mcollina/autocannon')"
|
||
|
>autocannon</a>
|
||
|
</p>
|
||
|
|
||
|
<v-btn v-ge="['api-client-perf-test','clear']" outlined x-small color="warning" @click="$emit('input',{})">
|
||
|
Clear All Fields
|
||
|
</v-btn>
|
||
|
</div>
|
||
3 years ago
|
</v-container>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
|
||
3 years ago
|
// const {shell} = require("electron").remote.require(
|
||
|
// "./libs"
|
||
|
// );
|
||
|
export default {
|
||
|
name: 'PerfTest',
|
||
|
props: {
|
||
|
value: Object
|
||
|
},
|
||
|
computed: {
|
||
|
perf: {
|
||
3 years ago
|
get() {
|
||
3 years ago
|
return { ...(this.value || {}) }
|
||
3 years ago
|
},
|
||
3 years ago
|
set(value) {
|
||
3 years ago
|
this.$emit('input', value)
|
||
3 years ago
|
}
|
||
|
}
|
||
3 years ago
|
},
|
||
|
methods: {
|
||
3 years ago
|
open(url) {
|
||
3 years ago
|
// shell.openExternal(url)
|
||
|
}
|
||
3 years ago
|
}
|
||
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/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|