diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-19 00:43:01 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-19 00:57:29 +0300 |
commit | 158a6116ca7f06076cbceee8beb2eeee6e8417e6 (patch) | |
tree | 3382415f206d5deba388b6c20e3b467cbeb67f35 /src/components/Menu | |
parent | fe2f71cbed5b88b78514ce157647b483138a8cd8 (diff) |
Rename components to Nc
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/components/Menu')
-rw-r--r-- | src/components/Menu/ActionImageUpload.vue | 20 | ||||
-rw-r--r-- | src/components/Menu/ActionList.vue | 8 | ||||
-rw-r--r-- | src/components/Menu/ActionSingle.vue | 10 | ||||
-rw-r--r-- | src/components/Menu/EmojiPickerAction.vue | 16 | ||||
-rw-r--r-- | src/components/Menu/MenuBar.vue | 2 |
5 files changed, 28 insertions, 28 deletions
diff --git a/src/components/Menu/ActionImageUpload.vue b/src/components/Menu/ActionImageUpload.vue index 73373f077..153939f06 100644 --- a/src/components/Menu/ActionImageUpload.vue +++ b/src/components/Menu/ActionImageUpload.vue @@ -20,7 +20,7 @@ - --> <template> - <Actions class="entry-action entry-action__image-upload" + <NcActions class="entry-action entry-action__image-upload" :data-text-action-entry="actionEntry.key" :title="actionEntry.label" :aria-label="actionEntry.label" @@ -32,7 +32,7 @@ :aria-label="actionEntry.label" aria-haspopup /> </template> - <ActionButton close-after-click + <NcActionButton close-after-click :disabled="isUploadingImages" :data-text-action-entry="`${actionEntry.key}-upload`" @click="$callChooseLocalImage"> @@ -40,8 +40,8 @@ <Upload /> </template> {{ t('text', 'Upload from computer') }} - </ActionButton> - <ActionButton v-if="!$isPublic" + </NcActionButton> + <NcActionButton v-if="!$isPublic" close-after-click :disabled="isUploadingImages" :data-text-action-entry="`${actionEntry.key}-insert`" @@ -50,13 +50,13 @@ <Folder /> </template> {{ t('text', 'Insert from Files') }} - </ActionButton> - </Actions> + </NcActionButton> + </NcActions> </template> <script> -import Actions from '@nextcloud/vue/dist/Components/Actions.js' -import ActionButton from '@nextcloud/vue/dist/Components/ActionButton.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import { Loading, Folder, Upload } from '../icons.js' import { useIsPublicMixin } from '../Editor.provider.js' @@ -70,8 +70,8 @@ import { export default { name: 'ActionImageUpload', components: { - Actions, - ActionButton, + NcActions, + NcActionButton, Loading, Folder, Upload, diff --git a/src/components/Menu/ActionList.vue b/src/components/Menu/ActionList.vue index 2c71b3d60..88d170aaa 100644 --- a/src/components/Menu/ActionList.vue +++ b/src/components/Menu/ActionList.vue @@ -21,7 +21,7 @@ --> <template> - <Actions v-tooltip="tooltip" + <NcActions v-tooltip="tooltip" class="entry-list-action entry-action" role="menu" v-bind="state" @@ -37,11 +37,11 @@ is-item :action-entry="child" @trigged="onTrigger" /> - </Actions> + </NcActions> </template> <script> -import Actions from '@nextcloud/vue/dist/Components/Actions.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' import { BaseActionEntry } from './BaseActionEntry.js' import ActionSingle from './ActionSingle.vue' import { getIsActive } from './utils.js' @@ -50,7 +50,7 @@ import useStore from '../../mixins/store.js' export default { name: 'ActionList', - components: { Actions, ActionSingle }, + components: { NcActions, ActionSingle }, extends: BaseActionEntry, mixins: [useStore, useOutlineStateMixin], computed: { diff --git a/src/components/Menu/ActionSingle.vue b/src/components/Menu/ActionSingle.vue index c5b96308a..dc3c21ee9 100644 --- a/src/components/Menu/ActionSingle.vue +++ b/src/components/Menu/ActionSingle.vue @@ -21,8 +21,8 @@ --> <script> -import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue.js' -import ActionButton from '@nextcloud/vue/dist/Components/ActionButton.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import { BaseActionEntry } from './BaseActionEntry.js' export default { @@ -36,11 +36,11 @@ export default { }, computed: { component() { - // Button and ActionButton shares styles and behaviours + // Button and NcActionButton shares styles and behaviours // to keep it simple, this component handle the small differences return this.isItem - ? ActionButton - : ButtonVue + ? NcActionButton + : NcButton }, bindState() { const { keyshortcuts } = this diff --git a/src/components/Menu/EmojiPickerAction.vue b/src/components/Menu/EmojiPickerAction.vue index 8218194e8..f2ce30fcb 100644 --- a/src/components/Menu/EmojiPickerAction.vue +++ b/src/components/Menu/EmojiPickerAction.vue @@ -20,10 +20,10 @@ - --> <template> - <EmojiPicker class="entry-action entry-action__emoji" + <NcEmojiPicker class="entry-action entry-action__emoji" :data-text-action-entry="actionEntry.key" @selectData="addEmoji"> - <ButtonVue v-tooltip="actionEntry.label" + <NcButton v-tooltip="actionEntry.label" class="entry-action__button" role="menu" :title="actionEntry.label" @@ -32,20 +32,20 @@ <template #icon> <component :is="icon" /> </template> - </ButtonVue> - </EmojiPicker> + </NcButton> + </NcEmojiPicker> </template> <script> import { BaseActionEntry } from './BaseActionEntry.js' -import EmojiPicker from '@nextcloud/vue/dist/Components/EmojiPicker.js' -import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue.js' +import NcEmojiPicker from '@nextcloud/vue/dist/Components/NcEmojiPicker.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' export default { name: 'EmojiPickerAction', components: { - EmojiPicker, - ButtonVue, + NcEmojiPicker, + NcButton, }, extends: BaseActionEntry, methods: { diff --git a/src/components/Menu/MenuBar.vue b/src/components/Menu/MenuBar.vue index a9907af71..ba589f1fe 100644 --- a/src/components/Menu/MenuBar.vue +++ b/src/components/Menu/MenuBar.vue @@ -137,7 +137,7 @@ export default { remainAction() { return { key: 'remain', - label: this.t('text', 'Remaining Actions'), + label: this.t('text', 'Remaining actions'), icon: DotsHorizontal, children: this.hiddenEntries, } |