diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-08-22 14:29:58 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-08-25 08:38:00 +0200 |
commit | d0473214cd2582ec63f4a5021a8f5927f67bc98f (patch) | |
tree | 455708226929d13d55e24bde90833e1508a38714 /apps/comments/src | |
parent | 708018795863999b674d1e3e900313785893d6a8 (diff) | |
download | nextcloud-server-d0473214cd2582ec63f4a5021a8f5927f67bc98f.tar.gz nextcloud-server-d0473214cd2582ec63f4a5021a8f5927f67bc98f.zip |
Add Nc prefix to Nc vue component names
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/comments/src')
-rw-r--r-- | apps/comments/src/components/Comment.vue | 50 | ||||
-rw-r--r-- | apps/comments/src/views/Comments.vue | 12 |
2 files changed, 31 insertions, 31 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 8e4a0d15ff0..41284e50ca9 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -26,7 +26,7 @@ <!-- Comment header toolbar --> <div class="comment__header"> <!-- Author --> - <Avatar class="comment__avatar" + <NcAvatar class="comment__avatar" :display-name="actorDisplayName" :user="actorId" :size="32" /> @@ -34,27 +34,27 @@ <!-- Comment actions, show if we have a message id and current user is author --> - <Actions v-if="isOwnComment && id && !loading" class="comment__actions"> + <NcActions v-if="isOwnComment && id && !loading" class="comment__actions"> <template v-if="!editing"> - <ActionButton :close-after-click="true" + <NcActionButton :close-after-click="true" icon="icon-rename" @click="onEdit"> {{ t('comments', 'Edit comment') }} - </ActionButton> - <ActionSeparator /> - <ActionButton :close-after-click="true" + </NcActionButton> + <NcActionSeparator /> + <NcActionButton :close-after-click="true" icon="icon-delete" @click="onDeleteWithUndo"> {{ t('comments', 'Delete comment') }} - </ActionButton> + </NcActionButton> </template> - <ActionButton v-else + <NcActionButton v-else icon="icon-close" @click="onEditCancel"> {{ t('comments', 'Cancel edit') }} - </ActionButton> - </Actions> + </NcActionButton> + </NcActions> <!-- Show loading if we're editing or deleting, not on new ones --> <div v-if="id && loading" class="comment_loading icon-loading-small" /> @@ -65,13 +65,13 @@ <!-- Message editor --> <div v-if="editor || editing" class="comment__editor "> - <RichContenteditable ref="editor" + <NcRichContenteditable ref="editor" :auto-complete="autoComplete" :contenteditable="!loading" :value="localMessage" @update:value="updateLocalMessage" @submit="onSubmit" /> - <ButtonVue class="comment__submit" + <NcButton class="comment__submit" type="tertiary-no-background" native-type="submit" :aria-label="t('comments', 'Post comment')" @@ -81,7 +81,7 @@ <span v-if="loading" class="icon-loading-small" /> <ArrowRight v-else :size="20" /> </template> - </ButtonVue> + </NcButton> </div> <!-- Message content --> @@ -99,12 +99,12 @@ import { getCurrentUser } from '@nextcloud/auth' import moment from '@nextcloud/moment' -import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' -import Actions from '@nextcloud/vue/dist/Components/Actions' -import ActionSeparator from '@nextcloud/vue/dist/Components/ActionSeparator' -import Avatar from '@nextcloud/vue/dist/Components/Avatar' -import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue' -import RichContenteditable from '@nextcloud/vue/dist/Components/RichContenteditable' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' +import NcActions from '@nextcloud/vue/dist/Components/NcActions' +import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' +import NcButton from '@nextcloud/vue/dist/Components/NcButton' +import NcRichContenteditable from '@nextcloud/vue/dist/Components/NcRichContenteditable' import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor' import ArrowRight from 'vue-material-design-icons/ArrowRight' @@ -115,14 +115,14 @@ export default { name: 'Comment', components: { - ActionButton, - Actions, - ActionSeparator, + NcActionButton, + NcActions, + NcActionSeparator, ArrowRight, - Avatar, - ButtonVue, + NcAvatar, + NcButton, Moment, - RichContenteditable, + NcRichContenteditable, }, mixins: [RichEditorMixin, CommentMixin], diff --git a/apps/comments/src/views/Comments.vue b/apps/comments/src/views/Comments.vue index c101c2c5c39..ce887d6977c 100644 --- a/apps/comments/src/views/Comments.vue +++ b/apps/comments/src/views/Comments.vue @@ -31,9 +31,9 @@ @new="onNewComment" /> <template v-if="!isFirstLoading"> - <EmptyContent v-if="!hasComments && done" icon="icon-comment"> + <NcEmptyContent v-if="!hasComments && done" icon="icon-comment"> {{ t('comments', 'No comments yet, start the conversation!') }} - </EmptyContent> + </NcEmptyContent> <!-- Comments --> <Comment v-for="comment in comments" @@ -55,14 +55,14 @@ </div> <!-- Error message --> - <EmptyContent v-else-if="error" class="comments__error" icon="icon-error"> + <NcEmptyContent v-else-if="error" class="comments__error" icon="icon-error"> {{ error }} <template #desc> <button icon="icon-history" @click="getComments"> {{ t('comments', 'Retry') }} </button> </template> - </EmptyContent> + </NcEmptyContent> </template> </div> </template> @@ -75,7 +75,7 @@ import axios from '@nextcloud/axios' import VTooltip from 'v-tooltip' import Vue from 'vue' -import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent' +import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent' import Comment from '../components/Comment' import getComments, { DEFAULT_LIMIT } from '../services/GetComments' @@ -89,7 +89,7 @@ export default { components: { // Avatar, Comment, - EmptyContent, + NcEmptyContent, }, data() { |