Skip to content

Commit 7419e87

Browse files
author
Vinicius Reis
committed
♻️ use single entry from @nextcloud/vue
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
1 parent db82d0d commit 7419e87

22 files changed

+3503
-3541
lines changed

package-lock.json

Lines changed: 3478 additions & 3507 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,15 @@
8080
"@tiptap/extension-underline": "^2.0.0-beta.196",
8181
"@tiptap/suggestion": "^2.0.0-beta.196",
8282
"@tiptap/vue-2": "^2.0.0-beta.196",
83+
"debounce": "^1.2.1",
84+
"escape-html": "^1.0.3",
85+
"highlight.js": "^10.7.3",
86+
"lowlight": "^1.20.0",
8387
"markdown-it": "^13.0.1",
8488
"markdown-it-container": "^3.0.0",
8589
"markdown-it-front-matter": "^0.2.3",
8690
"path-normalize": "^6.0.7",
91+
"mitt": "^3.0.0",
8792
"prosemirror-collab": "^1.3.0",
8893
"prosemirror-inputrules": "^1.2.0",
8994
"prosemirror-markdown": "^1.9.4",
@@ -119,15 +124,10 @@
119124
"@vue/vue2-jest": "^28.1.0",
120125
"cypress": "^10.8.0",
121126
"cypress-file-upload": "^5.0.8",
122-
"debounce": "^1.2.1",
123-
"escape-html": "^1.0.3",
124127
"eslint-plugin-cypress": "^2.12.1",
125-
"highlight.js": "^10.7.3",
126128
"jest": "^28.1.3",
127129
"jest-environment-jsdom": "^29.0.3",
128130
"jest-serializer-vue": "^2.0.2",
129-
"lowlight": "^1.20.0",
130-
"mitt": "^3.0.0",
131131
"vite": "^3.1.3",
132132
"vite-plugin-commonjs": "^0.5.2",
133133
"vue-demi": "^0.13.11",

src/EditorFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import 'proxy-polyfill'
3636
import { Editor } from '@tiptap/core'
3737
import { VueRenderer } from '@tiptap/vue-2'
3838
import { translate as t } from '@nextcloud/l10n'
39-
import { emojiSearch } from '@nextcloud/vue/dist/Functions/emoji.js'
39+
import { emojiSearch } from '@nextcloud/vue'
4040
import { listLanguages, registerLanguage } from 'lowlight/lib/core.js'
4141

4242
import { logger } from './helpers/logger.js'

src/components/Editor/AvatarWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</template>
1515

1616
<script>
17-
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
17+
import { NcAvatar } from '@nextcloud/vue'
1818
export default {
1919
name: 'AvatarWrapper',
2020
components: {

src/components/Editor/EditorOutline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<script>
1616
import debounce from 'debounce'
17-
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
17+
import { NcButton } from '@nextcloud/vue'
1818
import TableOfContents from './TableOfContents.vue'
1919
import { useOutlineStateMixin, useOutlineActions } from './Wrapper.provider.js'
2020
import { Close } from './../icons.js'

src/components/Editor/GuestNameDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</template>
3636

3737
<script>
38-
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'
38+
import { Tooltip } from '@nextcloud/vue'
3939
import { generateUrl } from '@nextcloud/router'
4040
import AvatarWrapper from './AvatarWrapper.vue'
4141
import { useSyncServiceMixin } from '../Editor.provider.js'

src/components/Editor/SessionList.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
</template>
6363

6464
<script>
65-
import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js'
66-
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'
65+
import { NcPopover, Tooltip } from '@nextcloud/vue'
6766
import AvatarWrapper from './AvatarWrapper.vue'
6867
import store from '../../mixins/store.js'
6968

src/components/Editor/Status.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<script>
4343
4444
import { ERROR_TYPE } from './../../services/SyncService.js'
45-
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'
45+
import { Tooltip } from '@nextcloud/vue'
4646
import {
4747
useIsMobileMixin,
4848
useIsPublicMixin,

src/components/EmojiList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
<script>
4444
import { translate as t } from '@nextcloud/l10n'
45-
import { addRecent } from '@nextcloud/vue/dist/Functions/emoji.js'
45+
import { emojiAddRecent } from '@nextcloud/vue'
4646
4747
export default {
4848
name: 'EmojiList',

src/components/HelpModal.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@
159159
</template>
160160

161161
<script>
162-
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
163-
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'
162+
import { NcModal, Tooltip } from '@nextcloud/vue'
164163
import isMobile from './../mixins/isMobile.js'
165164
166165
export default {

0 commit comments

Comments
 (0)