Import and use needed linkify packages

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/1558/head
Louis Chemineau 2023-01-04 10:56:57 +01:00
rodzic f945d5fe63
commit cd2e56d80c
3 zmienionych plików z 35 dodań i 20 usunięć

44
package-lock.json wygenerowano
Wyświetl plik

@ -21,6 +21,8 @@
"@nextcloud/vue": "^7.3.0",
"@nextcloud/vue-richtext": "^2.0.4",
"he": "^1.2.0",
"linkify-plugin-mention": "^4.1.0",
"linkify-string": "^4.1.0",
"linkifyjs": "^4.0.2",
"sass": "^1.57.1",
"tributejs": "^5.1.3",
@ -3261,14 +3263,6 @@
"node": ">=12.20"
}
},
"node_modules/@nextcloud/vue/node_modules/linkify-string": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/linkify-string/-/linkify-string-4.0.2.tgz",
"integrity": "sha512-+HoBme50rPaKxh5TrEJqRLq4gphks1zj3cz6gMBKIHwJCFYVwHig8ii9aCzqGUz8DxF2otbq+Z3AJmKUnfOtKg==",
"peerDependencies": {
"linkifyjs": "^4.0.0"
}
},
"node_modules/@nextcloud/vue/node_modules/string-length": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz",
@ -10940,6 +10934,22 @@
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
"integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA="
},
"node_modules/linkify-plugin-mention": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/linkify-plugin-mention/-/linkify-plugin-mention-4.1.0.tgz",
"integrity": "sha512-DsPd5gQp1QkTTcv54xw2wK1qxgkyy+rNBUK4n5t3npQvIFoP71fmAuIfwOg/Jx3nNSCCbse040WpSLMUG8s+yA==",
"peerDependencies": {
"linkifyjs": "^4.0.0"
}
},
"node_modules/linkify-string": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/linkify-string/-/linkify-string-4.1.0.tgz",
"integrity": "sha512-mw4KyPoE/vP0lamGbFFtDsutxOw0b+3g2/lH5bwS7X4tRHQyLBoJ60avPVGUoHfU8G1bLS329u13hhpxBIqFiA==",
"peerDependencies": {
"linkifyjs": "^4.0.0"
}
},
"node_modules/linkifyjs": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.0.2.tgz",
@ -17907,12 +17917,6 @@
"resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz",
"integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw=="
},
"linkify-string": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/linkify-string/-/linkify-string-4.0.2.tgz",
"integrity": "sha512-+HoBme50rPaKxh5TrEJqRLq4gphks1zj3cz6gMBKIHwJCFYVwHig8ii9aCzqGUz8DxF2otbq+Z3AJmKUnfOtKg==",
"requires": {}
},
"string-length": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz",
@ -23817,6 +23821,18 @@
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
"integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA="
},
"linkify-plugin-mention": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/linkify-plugin-mention/-/linkify-plugin-mention-4.1.0.tgz",
"integrity": "sha512-DsPd5gQp1QkTTcv54xw2wK1qxgkyy+rNBUK4n5t3npQvIFoP71fmAuIfwOg/Jx3nNSCCbse040WpSLMUG8s+yA==",
"requires": {}
},
"linkify-string": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/linkify-string/-/linkify-string-4.1.0.tgz",
"integrity": "sha512-mw4KyPoE/vP0lamGbFFtDsutxOw0b+3g2/lH5bwS7X4tRHQyLBoJ60avPVGUoHfU8G1bLS329u13hhpxBIqFiA==",
"requires": {}
},
"linkifyjs": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.0.2.tgz",

Wyświetl plik

@ -40,6 +40,8 @@
"@nextcloud/vue": "^7.3.0",
"@nextcloud/vue-richtext": "^2.0.4",
"he": "^1.2.0",
"linkify-plugin-mention": "^4.1.0",
"linkify-string": "^4.1.0",
"linkifyjs": "^4.0.2",
"sass": "^1.57.1",
"tributejs": "^5.1.3",

Wyświetl plik

@ -78,11 +78,10 @@
</template>
<script>
// eslint-disable-next-line no-unused-vars
import * as linkify from 'linkifyjs'
// eslint-disable-next-line
import pluginMention from 'linkifyjs/plugins/mention'
// eslint-disable-next-line
import 'linkifyjs/string'
import 'linkify-plugin-mention'
import 'linkify-string'
import currentUser from './../mixins/currentUserMixin.js'
import PostAttachment from './PostAttachment.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
@ -97,8 +96,6 @@ import moment from '@nextcloud/moment'
import { generateUrl } from '@nextcloud/router'
import RichText from '@nextcloud/vue-richtext'
pluginMention(linkify)
export default {
name: 'TimelinePost',
components: {