mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 10:13:48 +02:00
eslint fix
This commit is contained in:
@@ -426,7 +426,7 @@
|
||||
import GroupDialogPhotosTab from './GroupDialogPhotosTab.vue';
|
||||
import GroupDialogPostsTab from './GroupDialogPostsTab.vue';
|
||||
import GroupPostEditDialog from './GroupPostEditDialog.vue';
|
||||
import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
|
||||
const { t } = useI18n();
|
||||
const groupDialogTabs = computed(() => [
|
||||
@@ -439,13 +439,9 @@ import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
|
||||
const modalStore = useModalStore();
|
||||
|
||||
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { groupDialog, inviteGroupDialog } = storeToRefs(useGroupStore());
|
||||
const {
|
||||
updateGroupPostSearch,
|
||||
showGroupMemberModerationDialog
|
||||
} = useGroupStore();
|
||||
const { updateGroupPostSearch, showGroupMemberModerationDialog } = useGroupStore();
|
||||
|
||||
const { showFullscreenImageDialog } = useGalleryStore();
|
||||
|
||||
|
||||
@@ -216,12 +216,11 @@
|
||||
import { applyGroupMember, handleGroupMember } from '../../../coordinators/groupCoordinator';
|
||||
import { groupDialogSortingOptions } from '../../../shared/constants';
|
||||
import { useGroupMembers } from './useGroupMembers';
|
||||
import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
|
||||
const { userImage } = useUserDisplay();
|
||||
const { t } = useI18n();
|
||||
|
||||
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { groupDialog } = storeToRefs(useGroupStore());
|
||||
|
||||
|
||||
@@ -122,7 +122,11 @@
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import { useAppearanceSettingsStore, useGalleryStore, useGroupStore, useUserStore } from '../../../stores';
|
||||
import { applyGroupMember, handleGroupMember, handleGroupMemberProps } from '../../../coordinators/groupCoordinator';
|
||||
import {
|
||||
applyGroupMember,
|
||||
handleGroupMember,
|
||||
handleGroupMemberProps
|
||||
} from '../../../coordinators/groupCoordinator';
|
||||
import { hasGroupPermission } from '../../../shared/utils';
|
||||
import { useUserDisplay } from '../../../composables/useUserDisplay';
|
||||
import { groupDialogFilterOptions, groupDialogSortingOptions } from '../../../shared/constants';
|
||||
@@ -140,13 +144,13 @@
|
||||
import GroupModerationInvitesTab from './GroupModerationInvitesTab.vue';
|
||||
import GroupModerationLogsTab from './GroupModerationLogsTab.vue';
|
||||
import GroupModerationMembersTab from './GroupModerationMembersTab.vue';
|
||||
import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
import { showUserDialog } from '../../../coordinators/userCoordinator';
|
||||
|
||||
// ── Stores ───────────────────────────────────────────────────
|
||||
const { userImage, userImageFull } = useUserDisplay();
|
||||
const appearanceSettingsStore = useAppearanceSettingsStore();
|
||||
const { randomUserColours } = storeToRefs(appearanceSettingsStore);
|
||||
|
||||
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { groupDialog, groupMemberModeration } = storeToRefs(useGroupStore());
|
||||
const { showFullscreenImageDialog } = useGalleryStore();
|
||||
|
||||
@@ -40,9 +40,7 @@
|
||||
</template>
|
||||
<AlertTriangle style="margin-left: 3px; display: inline-block" />
|
||||
</TooltipWrapper>
|
||||
<span
|
||||
v-text="user.user?.displayName || user.userId"
|
||||
style="font-weight: bold; margin-left: 6px"></span>
|
||||
<span v-text="user.user?.displayName || user.userId" style="font-weight: bold; margin-left: 6px"></span>
|
||||
<button
|
||||
type="button"
|
||||
style="
|
||||
@@ -79,10 +77,7 @@
|
||||
<SelectValue :placeholder="t('dialog.group_member_moderation.choose_roles_placeholder')" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem
|
||||
v-for="role in groupRef.roles"
|
||||
:key="role.id"
|
||||
:value="role.id">
|
||||
<SelectItem v-for="role in groupRef.roles" :key="role.id" :value="role.id">
|
||||
{{ role.name }}
|
||||
</SelectItem>
|
||||
</SelectContent>
|
||||
@@ -96,9 +91,7 @@
|
||||
variant="outline"
|
||||
:disabled="
|
||||
Boolean(
|
||||
!selectedRoles.length ||
|
||||
progressCurrent ||
|
||||
!hasGroupPermission(groupRef, 'group-roles-assign')
|
||||
!selectedRoles.length || progressCurrent || !hasGroupPermission(groupRef, 'group-roles-assign')
|
||||
)
|
||||
"
|
||||
@click="$emit('add-roles')"
|
||||
@@ -108,9 +101,7 @@
|
||||
variant="secondary"
|
||||
:disabled="
|
||||
Boolean(
|
||||
!selectedRoles.length ||
|
||||
progressCurrent ||
|
||||
!hasGroupPermission(groupRef, 'group-roles-assign')
|
||||
!selectedRoles.length || progressCurrent || !hasGroupPermission(groupRef, 'group-roles-assign')
|
||||
)
|
||||
"
|
||||
@click="$emit('remove-roles')"
|
||||
@@ -118,45 +109,25 @@
|
||||
>
|
||||
<Button
|
||||
variant="outline"
|
||||
:disabled="
|
||||
Boolean(
|
||||
progressCurrent ||
|
||||
!hasGroupPermission(groupRef, 'group-members-manage')
|
||||
)
|
||||
"
|
||||
:disabled="Boolean(progressCurrent || !hasGroupPermission(groupRef, 'group-members-manage'))"
|
||||
@click="$emit('save-note')"
|
||||
>{{ t('dialog.group_member_moderation.save_note') }}</Button
|
||||
>
|
||||
<Button
|
||||
variant="outline"
|
||||
:disabled="
|
||||
Boolean(
|
||||
progressCurrent ||
|
||||
!hasGroupPermission(groupRef, 'group-members-remove')
|
||||
)
|
||||
"
|
||||
:disabled="Boolean(progressCurrent || !hasGroupPermission(groupRef, 'group-members-remove'))"
|
||||
@click="$emit('kick')"
|
||||
>{{ t('dialog.group_member_moderation.kick') }}</Button
|
||||
>
|
||||
<Button
|
||||
variant="outline"
|
||||
:disabled="
|
||||
Boolean(
|
||||
progressCurrent ||
|
||||
!hasGroupPermission(groupRef, 'group-bans-manage')
|
||||
)
|
||||
"
|
||||
:disabled="Boolean(progressCurrent || !hasGroupPermission(groupRef, 'group-bans-manage'))"
|
||||
@click="$emit('ban')"
|
||||
>{{ t('dialog.group_member_moderation.ban') }}</Button
|
||||
>
|
||||
<Button
|
||||
variant="outline"
|
||||
:disabled="
|
||||
Boolean(
|
||||
progressCurrent ||
|
||||
!hasGroupPermission(groupRef, 'group-bans-manage')
|
||||
)
|
||||
"
|
||||
:disabled="Boolean(progressCurrent || !hasGroupPermission(groupRef, 'group-bans-manage'))"
|
||||
@click="$emit('unban')"
|
||||
>{{ t('dialog.group_member_moderation.unban') }}</Button
|
||||
>
|
||||
|
||||
@@ -130,7 +130,7 @@ const MOCK_POSTS = [
|
||||
];
|
||||
|
||||
/**
|
||||
* @param {Object} overrides
|
||||
* @param {object} overrides
|
||||
*/
|
||||
function mountComponent(overrides = {}) {
|
||||
const pinia = createTestingPinia({
|
||||
|
||||
@@ -3,7 +3,6 @@ import { computed } from 'vue';
|
||||
/**
|
||||
* Composable for filtering group calendar events into past and upcoming,
|
||||
* and updating follow state on individual events.
|
||||
*
|
||||
* @param {import('vue').Ref} groupDialog - reactive ref to the group dialog state
|
||||
* @returns {{
|
||||
* pastCalenderEvents: import('vue').ComputedRef<Array>,
|
||||
@@ -35,7 +34,7 @@ export function useGroupCalendarEvents(groupDialog) {
|
||||
});
|
||||
|
||||
/**
|
||||
* @param {Object} event
|
||||
* @param {object} event
|
||||
*/
|
||||
function updateFollowingCalendarData(event) {
|
||||
const calendar = groupDialog.value.calendar;
|
||||
|
||||
Reference in New Issue
Block a user