jointrashposs/components/content/ApiPermissions.vue

22 lines
578 B
Vue
Raw Normal View History

2023-07-17 18:43:55 +02:00
<template>
<table>
<thead>
<tr>
2023-09-23 20:02:04 +02:00
<th>{{ $t('_api._permissions.title') }}</th>
<th>{{ $t('_api._permissions.description') }}</th>
2023-07-17 18:43:55 +02:00
</tr>
</thead>
<tbody>
<tr v-for="permission in permissions">
<td><code>{{ permission }}</code></td>
2023-09-23 20:02:04 +02:00
<td>{{ $t(`_api._permissions._types.${permission}`) }}</td>
2023-07-17 18:43:55 +02:00
</tr>
</tbody>
</table>
</template>
<script setup lang="ts">
import { permissions } from 'misskey-js';
</script>
<style scoped></style>