Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/nodes
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-19 00:43:01 +0300
committerJulius Härtl <jus@bitgrid.net>2022-08-19 00:57:29 +0300
commit158a6116ca7f06076cbceee8beb2eeee6e8417e6 (patch)
tree3382415f206d5deba388b6c20e3b467cbeb67f35 /src/nodes
parentfe2f71cbed5b88b78514ce157647b483138a8cd8 (diff)
Rename components to Nc
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/nodes')
-rw-r--r--src/nodes/Table/TableCellView.vue24
-rw-r--r--src/nodes/Table/TableHeaderView.vue24
-rw-r--r--src/nodes/Table/TableView.vue16
3 files changed, 32 insertions, 32 deletions
diff --git a/src/nodes/Table/TableCellView.vue b/src/nodes/Table/TableCellView.vue
index dc3b2f6aa..e12288a4e 100644
--- a/src/nodes/Table/TableCellView.vue
+++ b/src/nodes/Table/TableCellView.vue
@@ -24,48 +24,48 @@
<NodeViewWrapper data-text-el="table-cell" as="td">
<div class="container">
<NodeViewContent class="content" />
- <Actions v-if="editor.isEditable"
+ <NcActions v-if="editor.isEditable"
data-text-table-actions="row">
- <ActionButton data-text-table-action="add-row-before"
+ <NcActionButton data-text-table-action="add-row-before"
close-after-click
@click="addRowBefore">
<template #icon>
<TableAddRowBefore />
</template>
{{ t('text', 'Add row before') }}
- </ActionButton>
- <ActionButton data-text-table-action="add-row-after"
+ </NcActionButton>
+ <NcActionButton data-text-table-action="add-row-after"
close-after-click
@click="addRowAfter">
<template #icon>
<TableAddRowAfter />
</template>
{{ t('text', 'Add row after') }}
- </ActionButton>
- <ActionButton data-text-table-action="remove-row"
+ </NcActionButton>
+ <NcActionButton data-text-table-action="remove-row"
close-after-click
@click="deleteRow">
<template #icon>
<Delete />
</template>
{{ t('text', 'Delete this row') }}
- </ActionButton>
- </Actions>
+ </NcActionButton>
+ </NcActions>
</div>
</NodeViewWrapper>
</template>
<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
-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 { TableAddRowBefore, TableAddRowAfter, Delete } from '../../components/icons.js'
export default {
name: 'TableCellView',
components: {
- ActionButton,
- Actions,
+ NcActionButton,
+ NcActions,
NodeViewWrapper,
NodeViewContent,
TableAddRowBefore,
diff --git a/src/nodes/Table/TableHeaderView.vue b/src/nodes/Table/TableHeaderView.vue
index e08f7902d..b6b6a3d0c 100644
--- a/src/nodes/Table/TableHeaderView.vue
+++ b/src/nodes/Table/TableHeaderView.vue
@@ -24,48 +24,48 @@
<NodeViewWrapper data-text-el="table-header" as="th">
<div>
<NodeViewContent class="content" />
- <Actions v-if="editor.isEditable"
+ <NcActions v-if="editor.isEditable"
data-text-table-actions="header">
- <ActionButton data-text-table-action="add-column-before"
+ <NcActionButton data-text-table-action="add-column-before"
close-after-click
@click="addColumnBefore">
<template #icon>
<TableAddColumnBefore />
</template>
{{ t('text', 'Add column before') }}
- </ActionButton>
- <ActionButton data-text-table-action="add-column-after"
+ </NcActionButton>
+ <NcActionButton data-text-table-action="add-column-after"
close-after-click
@click="addColumnAfter">
<template #icon>
<TableAddColumnAfter />
</template>
{{ t('text', 'Add column after') }}
- </ActionButton>
- <ActionButton data-text-table-action="remove-column"
+ </NcActionButton>
+ <NcActionButton data-text-table-action="remove-column"
close-after-click
@click="deleteColumn">
<template #icon>
<Delete />
</template>
{{ t('text', 'Delete this column') }}
- </ActionButton>
- </Actions>
+ </NcActionButton>
+ </NcActions>
</div>
</NodeViewWrapper>
</template>
<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
-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 { Delete, TableAddColumnBefore, TableAddColumnAfter } from '../../components/icons.js'
export default {
name: 'TableHeaderView',
components: {
- ActionButton,
- Actions,
+ NcActionButton,
+ NcActions,
NodeViewWrapper,
NodeViewContent,
Delete,
diff --git a/src/nodes/Table/TableView.vue b/src/nodes/Table/TableView.vue
index 505a644a9..56e6f1c74 100644
--- a/src/nodes/Table/TableView.vue
+++ b/src/nodes/Table/TableView.vue
@@ -23,37 +23,37 @@
<template>
<NodeViewWrapper data-text-el="table-view" class="table-wrapper">
<NodeViewContent class="content" as="table" />
- <Actions v-if="editor.isEditable"
+ <NcActions v-if="editor.isEditable"
force-menu
data-text-table-actions="settings"
class="table-settings">
<template #icon>
<TableSettings />
</template>
- <ActionButton data-text-table-action="delete"
+ <NcActionButton data-text-table-action="delete"
close-after-click
@click="deleteNode">
<template #icon>
<Delete />
</template>
{{ t('text', 'Delete this table') }}
- </ActionButton>
- </Actions>
+ </NcActionButton>
+ </NcActions>
<div class="clearfix" />
</NodeViewWrapper>
</template>
<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
-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 { TableSettings, Delete } from '../../components/icons.js'
export default {
name: 'TableView',
components: {
- ActionButton,
- Actions,
+ NcActionButton,
+ NcActions,
NodeViewWrapper,
NodeViewContent,
TableSettings,