1
0

feat: camelcase global components

This commit is contained in:
Dominik Pschenitschni
2024-06-18 17:48:04 +02:00
committed by konrad
parent 1977a7bee0
commit f36115871c
74 changed files with 236 additions and 236 deletions

View File

@ -1,10 +1,10 @@
<template>
<modal
<Modal
transition-name="fade"
variant="hint-modal"
@close="$router.back()"
>
<card
<Card
class="has-no-shadow"
:title="$t('about.title')"
:has-close="true"
@ -24,8 +24,8 @@
{{ $t('misc.close') }}
</x-button>
</template>
</card>
</modal>
</Card>
</Modal>
</template>
<script setup lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<modal
<Modal
@close="$router.back()"
@submit="deleteFilter()"
>
@ -10,7 +10,7 @@
<template #text>
<p>{{ $t('filters.delete.text') }}</p>
</template>
</modal>
</Modal>
</template>
<script setup lang="ts">

View File

@ -1,9 +1,9 @@
<template>
<modal
<Modal
variant="hint-modal"
@close="$router.back()"
>
<card
<Card
class="has-no-shadow"
:title="$t('filters.create.title')"
>
@ -77,8 +77,8 @@
{{ $t('filters.create.action') }}
</x-button>
</template>
</card>
</modal>
</Card>
</Modal>
</template>
<script setup lang="ts">

View File

@ -60,7 +60,7 @@
v-if="isLabelEdit"
class="column is-4"
>
<card
<Card
:title="$t('label.edit.header')"
:has-close="true"
@close="() => isLabelEdit = false"
@ -112,10 +112,10 @@
</div>
</div>
</form>
</card>
</Card>
</div>
<modal
<Modal
:enabled="showDeleteModal"
@close="showDeleteModal = false"
@submit="deleteLabel(labelToDelete)"
@ -130,7 +130,7 @@
{{ $t('task.label.delete.text2') }}
</p>
</template>
</modal>
</Modal>
</div>
</div>
</template>

View File

@ -1,8 +1,8 @@
<template>
<modal
<Modal
@close="$router.back()"
>
<card
<Card
:title="project?.title"
>
<div
@ -16,8 +16,8 @@
>
{{ $t('project.noDescriptionAvailable') }}
</p>
</card>
</modal>
</Card>
</Modal>
</template>
<script lang="ts" setup>

View File

@ -1,5 +1,5 @@
<template>
<modal
<Modal
@close="$router.back()"
@submit="archiveProject()"
>
@ -10,7 +10,7 @@
<template #text>
<p>{{ project.isArchived ? $t('project.archive.unarchiveText') : $t('project.archive.archiveText') }}</p>
</template>
</modal>
</Modal>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<modal
<Modal
@close="$router.back()"
@submit="deleteProject()"
>
@ -28,7 +28,7 @@
{{ $t('misc.cannotBeUndone') }}
</p>
</template>
</modal>
</Modal>
</template>
<script setup lang="ts">

View File

@ -205,7 +205,7 @@ async function saveViewPosition(e) {
@click="viewToEdit = {...v}"
/>
<span class="icon handle">
<icon icon="grip-lines" />
<Icon icon="grip-lines" />
</span>
</td>
</template>
@ -215,7 +215,7 @@ async function saveViewPosition(e) {
</table>
</CreateEdit>
<modal
<Modal
:enabled="showDeleteModal"
@close="showDeleteModal = false"
@submit="deleteView"
@ -227,7 +227,7 @@ async function saveViewPosition(e) {
<template #text>
<p>{{ $t('project.views.deleteText') }}</p>
</template>
</modal>
</Modal>
</template>
<style scoped>

View File

@ -256,7 +256,7 @@ function validateSelectedEvents() {
</tbody>
</table>
<modal
<Modal
:enabled="showDeleteModal"
@close="showDeleteModal = false"
@submit="deleteWebhook()"
@ -268,7 +268,7 @@ function validateSelectedEvents() {
<template #text>
<p>{{ $t('project.webhooks.deleteText') }}</p>
</template>
</modal>
</Modal>
</CreateEdit>
</template>

View File

@ -43,7 +43,7 @@
<LlamaCool class="llama-cool" />
</template>
<card
<Card
v-if="hasTasks"
:padding="false"
class="has-overflow"
@ -59,7 +59,7 @@
@taskUpdated="updateTasks"
/>
</div>
</card>
</Card>
<div
v-else
:class="{ 'is-loading': loading}"

View File

@ -60,7 +60,7 @@
>
<!-- Assignees -->
<div class="detail-title">
<icon icon="users" />
<Icon icon="users" />
{{ $t('task.attributes.assignees') }}
</div>
<EditAssignees
@ -86,7 +86,7 @@
>
<!-- Priority -->
<div class="detail-title">
<icon icon="exclamation" />
<Icon icon="exclamation" />
{{ $t('task.attributes.priority') }}
</div>
<PrioritySelect
@ -107,7 +107,7 @@
>
<!-- Due Date -->
<div class="detail-title">
<icon icon="calendar" />
<Icon icon="calendar" />
{{ $t('task.attributes.dueDate') }}
</div>
<div class="date-input">
@ -124,7 +124,7 @@
@click="() => {task.dueDate = null;saveTask()}"
>
<span class="icon is-small">
<icon icon="times" />
<Icon icon="times" />
</span>
</BaseButton>
</div>
@ -140,7 +140,7 @@
>
<!-- Progress -->
<div class="detail-title">
<icon icon="percent" />
<Icon icon="percent" />
{{ $t('task.attributes.percentDone') }}
</div>
<PercentDoneSelect
@ -161,7 +161,7 @@
>
<!-- Start Date -->
<div class="detail-title">
<icon icon="play" />
<Icon icon="play" />
{{ $t('task.attributes.startDate') }}
</div>
<div class="date-input">
@ -178,7 +178,7 @@
@click="() => {task.startDate = null;saveTask()}"
>
<span class="icon is-small">
<icon icon="times" />
<Icon icon="times" />
</span>
</BaseButton>
</div>
@ -194,7 +194,7 @@
>
<!-- End Date -->
<div class="detail-title">
<icon icon="stop" />
<Icon icon="stop" />
{{ $t('task.attributes.endDate') }}
</div>
<div class="date-input">
@ -211,7 +211,7 @@
@click="() => {task.endDate = null;saveTask()}"
>
<span class="icon is-small">
<icon icon="times" />
<Icon icon="times" />
</span>
</BaseButton>
</div>
@ -227,7 +227,7 @@
>
<!-- Reminders -->
<div class="detail-title">
<icon :icon="['far', 'clock']" />
<Icon :icon="['far', 'clock']" />
{{ $t('task.attributes.reminders') }}
</div>
<Reminders
@ -249,7 +249,7 @@
<!-- Repeat after -->
<div class="is-flex is-justify-content-space-between">
<div class="detail-title">
<icon icon="history" />
<Icon icon="history" />
{{ $t('task.attributes.repeat') }}
</div>
<BaseButton
@ -258,7 +258,7 @@
@click="removeRepeatAfter"
>
<span class="icon is-small">
<icon icon="times" />
<Icon icon="times" />
</span>
</BaseButton>
</div>
@ -280,7 +280,7 @@
>
<!-- Color -->
<div class="detail-title">
<icon icon="fill-drip" />
<Icon icon="fill-drip" />
{{ $t('task.attributes.color') }}
</div>
<ColorPicker
@ -300,7 +300,7 @@
>
<div class="detail-title">
<span class="icon is-grey">
<icon icon="tags" />
<Icon icon="tags" />
</span>
{{ $t('task.attributes.labels') }}
</div>
@ -352,7 +352,7 @@
>
<h3>
<span class="icon is-grey">
<icon icon="sitemap" />
<Icon icon="sitemap" />
</span>
{{ $t('task.attributes.relatedTasks') }}
</h3>
@ -373,7 +373,7 @@
>
<h3>
<span class="icon is-grey">
<icon icon="list" />
<Icon icon="list" />
</span>
{{ $t('task.detail.move') }}
</h3>
@ -560,7 +560,7 @@
/>
</div>
<modal
<Modal
:enabled="showDeleteModal"
@close="showDeleteModal = false"
@submit="deleteTask()"
@ -575,7 +575,7 @@
{{ $t('task.detail.delete.text2') }}
</p>
</template>
</modal>
</Modal>
</div>
</template>

View File

@ -3,7 +3,7 @@
class="loader-container is-max-width-desktop"
:class="{ 'is-loading': teamService.loading }"
>
<card
<Card
v-if="userIsAdmin && !team.oidcId"
class="is-fullwidth"
:title="title"
@ -90,9 +90,9 @@
/>
</div>
</div>
</card>
</Card>
<card
<Card
class="is-fullwidth has-overflow"
:title="$t('team.edit.members')"
:padding="false"
@ -157,13 +157,13 @@
<td class="type">
<template v-if="m.admin">
<span class="icon is-small">
<icon icon="lock" />
<Icon icon="lock" />
</span>
{{ $t('team.attributes.admin') }}
</template>
<template v-else>
<span class="icon is-small">
<icon icon="user" />
<Icon icon="user" />
</span>
{{ $t('team.attributes.member') }}
</template>
@ -191,7 +191,7 @@
</tr>
</tbody>
</table>
</card>
</Card>
<x-button
v-if="team && !team.oidcId"
@ -202,7 +202,7 @@
</x-button>
<!-- Leave team modal -->
<modal
<Modal
v-if="showLeaveModal"
@close="showLeaveModal = false"
@submit="leave()"
@ -217,10 +217,10 @@
{{ $t('team.edit.leave.text2') }}
</p>
</template>
</modal>
</Modal>
<!-- Team delete modal -->
<modal
<Modal
:enabled="showDeleteModal"
@close="showDeleteModal = false"
@submit="deleteTeam()"
@ -235,10 +235,10 @@
{{ $t('team.edit.delete.text2') }}
</p>
</template>
</modal>
</Modal>
<!-- User delete modal -->
<modal
<Modal
:enabled="showUserDeleteModal"
@close="showUserDeleteModal = false"
@submit="deleteMember()"
@ -253,7 +253,7 @@
{{ $t('team.edit.deleteUser.text2') }}
</p>
</template>
</modal>
</Modal>
</div>
</template>

View File

@ -150,7 +150,7 @@ function toggleGroupPermissionsFromChild(group: string, checked: boolean) {
</script>
<template>
<card :title="$t('user.settings.apiTokens.title')">
<Card :title="$t('user.settings.apiTokens.title')">
<Message
v-if="tokenCreatedSuccessMessage !== ''"
class="has-text-centered mb-4"
@ -342,7 +342,7 @@ function toggleGroupPermissionsFromChild(group: string, checked: boolean) {
{{ $t('user.settings.apiTokens.createAToken') }}
</XButton>
<modal
<Modal
:enabled="showDeleteModal"
@close="showDeleteModal = false"
@submit="deleteToken()"
@ -357,6 +357,6 @@ function toggleGroupPermissionsFromChild(group: string, checked: boolean) {
{{ $t('user.settings.apiTokens.delete.text2') }}
</p>
</template>
</modal>
</card>
</Modal>
</Card>
</template>

View File

@ -1,5 +1,5 @@
<template>
<card :title="$t('user.settings.avatar.title')">
<Card :title="$t('user.settings.avatar.title')">
<div class="control mb-4">
<label
v-for="(label, providerId) in AVATAR_PROVIDERS"
@ -62,7 +62,7 @@
{{ $t('misc.save') }}
</x-button>
</div>
</card>
</Card>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<card
<Card
v-if="caldavEnabled"
:title="$t('user.settings.caldav.title')"
>
@ -95,7 +95,7 @@
{{ $t('user.settings.caldav.more') }}
</BaseButton>
</p>
</card>
</Card>
</template>
<script lang="ts" setup>

View File

@ -1,5 +1,5 @@
<template>
<card :title="$t('user.export.title')">
<Card :title="$t('user.export.title')">
<p>
{{ $t('user.export.description') }}
</p>
@ -42,7 +42,7 @@
>
{{ $t('user.export.request') }}
</x-button>
</card>
</Card>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<card
<Card
v-if="userDeletionEnabled"
:title="$t('user.deletion.title')"
>
@ -107,7 +107,7 @@
{{ $t('user.deletion.confirm') }}
</x-button>
</template>
</card>
</Card>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<card
<Card
v-if="isLocalUser"
:title="$t('user.settings.updateEmailTitle')"
>
@ -45,7 +45,7 @@
>
{{ $t('misc.save') }}
</x-button>
</card>
</Card>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<card
<Card
:title="$t('user.settings.general.title')"
class="general-settings"
:loading="loading"
@ -212,7 +212,7 @@
>
{{ $t('misc.save') }}
</x-button>
</card>
</Card>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<card
<Card
v-if="isLocalUser"
:title="$t('user.settings.newPasswordTitle')"
:loading="passwordUpdateService.loading"
@ -65,7 +65,7 @@
>
{{ $t('misc.save') }}
</x-button>
</card>
</Card>
</template>
<script lang="ts">

View File

@ -1,5 +1,5 @@
<template>
<card
<Card
v-if="totpEnabled"
:title="$t('user.settings.totp.title')"
>
@ -90,7 +90,7 @@
</x-button>
</div>
</template>
</card>
</Card>
</template>
<script lang="ts">