Skip to content

Commit a9d9d4b

Browse files
committed
chore: lint fixes
1 parent 7ff9cb5 commit a9d9d4b

6 files changed

Lines changed: 21 additions & 22 deletions

File tree

src/application/services/useNoteSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ export default function (): UseNoteSettingsComposableState {
200200
* @param id - Note id
201201
* @param userId - User id
202202
*/
203-
const removeMemberByUserId = async (id: NoteId, userId: UserId) => {
203+
const removeMemberByUserId = async (id: NoteId, userId: UserId): Promise<void> => {
204204
await noteSettingsService.removeMemberByUserId(id, userId);
205-
}
205+
};
206206

207207
return {
208208
updateCover,

src/domain/noteSettings.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default class NoteSettingsService {
118118
public async deleteNote(id: NoteId): Promise<void> {
119119
return await this.noteSettingsRepository.deleteNote(id);
120120
}
121-
121+
122122
/**
123123
* Delete team member by user id
124124
* @param id - Note id

src/infrastructure/noteSettings.repository.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default class NoteSettingsRepository implements NoteSettingsRepositoryInt
7777
*/
7878
public async removeMemberByUserId(id: NoteId, userId: UserId): Promise<void> {
7979
const data = { userId };
80+
8081
await this.transport.delete<boolean>(`/note-settings/${id}/team`, data);
8182
}
8283
}

src/presentation/components/team/MoreActions.vue

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<template>
2-
<button
3-
ref="triggerButton"
4-
class="more-actions-button"
2+
<button
3+
ref="triggerButton"
4+
class="more-actions-button"
55
@click="handleButtonClick"
66
>
7-
<Icon
8-
name="EtcVertical"
7+
<Icon
8+
name="EtcVertical"
99
/>
1010
</button>
1111
</template>
1212

1313
<script setup lang="ts">
1414
import { ref } from 'vue';
15-
import { Icon, ContextMenu, usePopover, useConfirm } from '@codexteam/ui/vue';
16-
import type { ContextMenuItem } from '@codexteam/ui/vue';
15+
import { Icon, ContextMenu, usePopover, useConfirm, type ContextMenuItem } from '@codexteam/ui/vue';
1716
import { type TeamMember } from '@/domain/entities/Team';
1817
import { useI18n } from 'vue-i18n';
1918
import { NoteId } from '@/domain/entities/Note';
@@ -43,13 +42,13 @@ const menuItems: ContextMenuItem[] = [
4342
title: t('noteSettings.team.ContextMenu.remove'),
4443
onActivate: () => {
4544
handleRemove(props.teamMember);
46-
hide();
47-
}
48-
}
45+
hide();
46+
},
47+
},
4948
];
5049
5150
const emit = defineEmits<{
52-
teamMemberRemoved: []
51+
teamMemberRemoved: [];
5352
}>();
5453
5554
const handleButtonClick = (): void => {
@@ -59,14 +58,14 @@ const handleButtonClick = (): void => {
5958
with: {
6059
component: ContextMenu,
6160
props: {
62-
items: menuItems
63-
}
61+
items: menuItems,
62+
},
6463
},
6564
align: {
6665
vertically: 'below',
67-
horizontally: 'right'
66+
horizontally: 'right',
6867
},
69-
width: 'auto'
68+
width: 'auto',
7069
});
7170
}
7271
};
@@ -99,4 +98,3 @@ const handleRemove = async (member: TeamMember): Promise<void> => {
9998
cursor: pointer;
10099
}
101100
</style>
102-

src/presentation/components/team/Team.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
:note-id="noteId"
1616
:team-member="member"
1717
/>
18-
<MoreActions
18+
<MoreActions
1919
:note-id="noteId"
2020
:team-member="member"
21-
@teamMemberRemoved="handleMemberRemoved"
21+
@team-member-removed="handleMemberRemoved"
2222
/>
2323
</template>
2424

src/presentation/pages/NoteSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<Team
7474
:note-id="id"
7575
:team="noteSettings.team"
76-
@teamMemberRemoved="handleTeamMemberRemoved"
76+
@team-member-removed="handleTeamMemberRemoved"
7777
/>
7878
<InviteLink
7979
:id="props.id"

0 commit comments

Comments
 (0)