mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 13:53:09 +02:00
406b4bdbe7
* refactor(frontend): 非推奨となったReactivity Transformを使わないように * refactor: 不要な括弧を除去 * fix: 不要なアノテーションを除去 * fix: Refの配列をrefしている部分の対応 * refactor: 不要な括弧を除去 * fix: lint * refactor: Ref、ShallowRef、ComputedRefの変数の宣言をletからconstに置換 * fix: type error * chore: drop reactivity transform from eslint configuration * refactor: remove unnecessary import * fix: 対応漏れ
25 lines
618 B
Vue
25 lines
618 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<MkSpacer :contentMax="700">
|
|
<div class="_gaps_s">
|
|
<MkRolePreview v-for="role in roles" :key="role.id" :role="role" :forModeration="false"/>
|
|
</div>
|
|
</MkSpacer>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue';
|
|
import MkRolePreview from '@/components/MkRolePreview.vue';
|
|
import * as os from '@/os.js';
|
|
|
|
const roles = ref();
|
|
|
|
os.api('roles/list').then(res => {
|
|
roles.value = res.filter(x => x.target === 'manual').sort((a, b) => b.displayOrder - a.displayOrder);
|
|
});
|
|
</script>
|
|
|