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.
91 lines
2.8 KiB
91 lines
2.8 KiB
3 years ago
|
<template>
|
||
3 years ago
|
<v-dialog v-model="localState" max-width="900">
|
||
3 years ago
|
<v-card>
|
||
3 years ago
|
<v-card-title> Shortcuts </v-card-title>
|
||
3 years ago
|
<v-card-text>
|
||
|
<v-simple-table v-slot dense>
|
||
|
<thead>
|
||
3 years ago
|
<tr>
|
||
|
<th></th>
|
||
|
<th class="pa-2">Mac OS</th>
|
||
|
<th class="pa-2">Windows / Linux</th>
|
||
|
</tr>
|
||
3 years ago
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
3 years ago
|
<tr v-for="(short, i) in shortcuts" :key="i">
|
||
|
<td class="caption">{{ short.description }}</td>
|
||
|
<td class="caption pa-2" v-html="short.mac"></td>
|
||
|
<td class="caption pa-2" v-html="short.windows"></td>
|
||
|
</tr>
|
||
3 years ago
|
</tbody>
|
||
|
</v-simple-table>
|
||
|
</v-card-text>
|
||
|
</v-card>
|
||
|
</v-dialog>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'Help',
|
||
|
props: {
|
||
3 years ago
|
value: Boolean,
|
||
3 years ago
|
},
|
||
|
data() {
|
||
|
return {
|
||
3 years ago
|
shortcuts: [
|
||
|
{
|
||
|
description: 'Add tables',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>T</kbd>',
|
||
|
windows: '<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>T</kbd>',
|
||
|
},
|
||
|
{
|
||
|
description: 'Add columns',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>C</kbd>',
|
||
|
windows: '<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd>',
|
||
|
},
|
||
|
{
|
||
|
description: 'Add new column row',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>A</kbd>',
|
||
|
windows: '<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>A</kbd>',
|
||
|
},
|
||
|
{
|
||
|
description: 'Table navigation',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>Arrow Down</kbd> <br>AND<br> <kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>Arrow Up</kbd>',
|
||
|
windows:
|
||
|
'<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Arrow Down</kbd> <br>AND<br> <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Arrow Up</kbd>',
|
||
|
},
|
||
|
{
|
||
|
description: 'Column navigation',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>Arrow Right</kbd> <br>AND<br> <kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>Arrow Left</kbd>',
|
||
|
windows:
|
||
|
'<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Arrow Right</kbd> <br>AND<br> <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Arrow Right</kbd>',
|
||
|
},
|
||
|
{
|
||
|
description: 'Copy json to clipboard',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>J</kbd>',
|
||
|
windows: '<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd>',
|
||
|
},
|
||
|
{
|
||
|
description: 'Submit template',
|
||
|
mac: '<kbd>Command</kbd> + <kbd>Control</kbd> + <kbd>S</kbd>',
|
||
|
windows: '<kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd>',
|
||
|
},
|
||
|
],
|
||
|
};
|
||
3 years ago
|
},
|
||
|
computed: {
|
||
|
localState: {
|
||
|
get() {
|
||
3 years ago
|
return this.value;
|
||
3 years ago
|
},
|
||
|
set(val) {
|
||
3 years ago
|
this.$emit('input', val);
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|
||
3 years ago
|
</script>
|
||
|
|
||
3 years ago
|
<style scoped></style>
|