Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EditorFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { Editor } from '@tiptap/core'
import { Emoji, Markdown, PlainText, RichText } from './extensions/index.js'
import { translate as t } from '@nextcloud/l10n'
import { listLanguages, registerLanguage } from 'lowlight/lib/core'
import { emojiSearch } from '@nextcloud/vue/dist/Functions/emoji'
import { emojiSearch } from '@nextcloud/vue'
import { VueRenderer } from '@tiptap/vue-2'
import EmojiList from './components/EmojiList.vue'
import tippy from 'tippy.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/AvatarWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<script>
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
import { Avatar } from '@nextcloud/vue'
export default {
name: 'AvatarWrapper',
components: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/GuestNameDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</template>

<script>
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import { Tooltip } from '@nextcloud/vue'
import { generateUrl } from '@nextcloud/router'
import AvatarWrapper from './AvatarWrapper.vue'
import { useSyncServiceMixin } from '../Editor.provider.js'
Expand Down
3 changes: 1 addition & 2 deletions src/components/Editor/SessionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
</template>

<script>
import Popover from '@nextcloud/vue/dist/Components/Popover'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import { Popover, Tooltip } from '@nextcloud/vue'
import AvatarWrapper from './AvatarWrapper.vue'
import store from '../../mixins/store.js'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<script>

import { ERROR_TYPE } from './../../services/SyncService.js'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import { Tooltip } from '@nextcloud/vue'
import {
useIsMobileMixin,
useIsPublicMixin,
Expand Down
4 changes: 2 additions & 2 deletions src/components/EmojiList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<script>
import { translate as t } from '@nextcloud/l10n'
import { addRecent } from '@nextcloud/vue/dist/Functions/emoji'
import { emojiAddRecent } from '@nextcloud/vue'

export default {
name: 'EmojiList',
Expand Down Expand Up @@ -113,7 +113,7 @@ export default {

if (emojiObject) {
this.command(emojiObject)
addRecent(emojiObject)
emojiAddRecent(emojiObject)
}
},
},
Expand Down
3 changes: 1 addition & 2 deletions src/components/HelpModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@
</template>

<script>
import Modal from '@nextcloud/vue/dist/Components/Modal'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import { Modal, Tooltip } from '@nextcloud/vue'
import isMobile from './../mixins/isMobile.js'

export default {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Menu/ActionImageUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
</template>

<script>
import Actions from '@nextcloud/vue/dist/Components/Actions'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import { Actions, ActionButton } from '@nextcloud/vue'

import { Loading, Folder, Upload } from '../icons.js'
import { useIsPublicMixin } from '../Editor.provider.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/ActionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</template>

<script>
import Actions from '@nextcloud/vue/dist/Components/Actions'
import { Actions } from '@nextcloud/vue'
import { BaseActionEntry } from './BaseActionEntry.js'
import ActionSingle from './ActionSingle.vue'
import { getIsActive } from './utils.js'
Expand Down
3 changes: 1 addition & 2 deletions src/components/Menu/ActionSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
-->

<script>
import Button from '@nextcloud/vue/dist/Components/Button'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import { Button, ActionButton } from '@nextcloud/vue'
import { BaseActionEntry } from './BaseActionEntry.js'

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/BaseActionEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/* eslint-disable jsdoc/valid-types */

import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import { Tooltip } from '@nextcloud/vue'
import debounce from 'debounce'

import { useEditorMixin, useIsMobileMixin } from '../Editor.provider.js'
Expand Down
3 changes: 1 addition & 2 deletions src/components/Menu/EmojiPickerAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@

<script>
import { BaseActionEntry } from './BaseActionEntry.js'
import EmojiPicker from '@nextcloud/vue/dist/Components/EmojiPicker'
import Button from '@nextcloud/vue/dist/Components/Button'
import { EmojiPicker, Button } from '@nextcloud/vue'

export default {
name: 'EmojiPickerAction',
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuBubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import { BubbleMenu } from '@tiptap/vue-2'
import { getMarkAttributes } from '@tiptap/core'
import { getCurrentUser } from '@nextcloud/auth'
import { loadState } from '@nextcloud/initial-state'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import { Tooltip } from '@nextcloud/vue'
import { optimalPath } from './../helpers/files.js'

import { useEditorMixin } from './Editor.provider.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/PublicFilesEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</template>

<script>
import Modal from '@nextcloud/vue/dist/Components/Modal'
import { Modal } from '@nextcloud/vue'

export default {
name: 'PublicFilesEditor',
Expand Down
2 changes: 2 additions & 0 deletions src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import { loadState } from '@nextcloud/initial-state'
import { linkTo } from '@nextcloud/router'
import store from './store.js'

import '@nextcloud/vue/style.css'

__webpack_nonce__ = window.btoa(OC.requestToken) // eslint-disable-line
__webpack_public_path__ = linkTo('text', 'js/') // eslint-disable-line

Expand Down
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import store from './store.js'

import '@nextcloud/vue/style.css'

__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
__webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line

Expand Down
3 changes: 1 addition & 2 deletions src/nodes/Table/TableCellView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@

<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import Actions from '@nextcloud/vue/dist/Components/Actions'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import { Actions, ActionButton } from '@nextcloud/vue'
import { TableAddRowBefore, TableAddRowAfter, Delete } from '../../components/icons.js'

export default {
Expand Down
3 changes: 1 addition & 2 deletions src/nodes/Table/TableHeaderView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@

<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import Actions from '@nextcloud/vue/dist/Components/Actions'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import { Actions, ActionButton } from '@nextcloud/vue'
import { Delete, TableAddColumnBefore, TableAddColumnAfter } from '../../components/icons.js'

export default {
Expand Down
3 changes: 1 addition & 2 deletions src/nodes/Table/TableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@

<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import Actions from '@nextcloud/vue/dist/Components/Actions'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import { Actions, ActionButton } from '@nextcloud/vue'
import { TableSettings, Delete } from '../../components/icons.js'

export default {
Expand Down
2 changes: 2 additions & 0 deletions src/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { openMimetypes } from './helpers/mime.js'
import { loadState } from '@nextcloud/initial-state'
import store from './store.js'

import '@nextcloud/vue/style.css'

__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
__webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line

Expand Down
1 change: 1 addition & 0 deletions src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import '@nextcloud/vue/style.css'

import ViewerComponent from './components/ViewerComponent.vue'
import { openMimetypesMarkdown, openMimetypesPlainText } from './helpers/mime.js'
Expand Down