jointrashposs/components/content/ApiPermissions.vue
2023-09-24 03:02:04 +09:00

22 lines
578 B
Vue

<template>
<table>
<thead>
<tr>
<th>{{ $t('_api._permissions.title') }}</th>
<th>{{ $t('_api._permissions.description') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="permission in permissions">
<td><code>{{ permission }}</code></td>
<td>{{ $t(`_api._permissions._types.${permission}`) }}</td>
</tr>
</tbody>
</table>
</template>
<script setup lang="ts">
import { permissions } from 'misskey-js';
</script>
<style scoped></style>