FeedEventsCommunities
Sign UpSign In
test21

test2

@test21
  • Report User
  • Block
Follow
7Activities0Followers0Following
test2
test2
loadUrlPreview () {

const urlRegex = /(https?):\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/gi
const foundLinks = this.content.post.match(urlRegex)

if (!foundLinks) {
this.preview = null
return
}
const link = foundLinks[foundLinks.length - 1]

if (!this.preview || this.preview.link !== link) {
chatAxios.post('/cards/preview', {
url: encodeURI(link)
}).then(res => {
if (res.data.data.ogTitle) {
this.preview = {
url: link,
provider: res.data.data.ogSiteName,
domain: new URL(link).hostname,
title: res.data.data.ogTitle,
description: res.data.data.ogDescription,
image: res.data.data.ogImage,
video: res.data.data.ogVideo
}
}
})
}
}
2 years ago


test2
test2
loadUrlPreview () {

const urlRegex = /(https?):\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/gi
const foundLinks = this.content.post.match(urlRegex)

if (!foundLinks) {
this.preview = null
return
}
const link = foundLinks[foundLinks.length - 1]

if (!this.preview || this.preview.link !== link) {
chatAxios.post('/cards/preview', {
url: encodeURI(link)
}).then(res => {
if (res.data.data.ogTitle) {
this.preview = {
url: link,
provider: res.data.data.ogSiteName,
domain: new URL(link).hostname,
title: res.data.data.ogTitle,
description: res.data.data.ogDescription,
image: res.data.data.ogImage,
video: res.data.data.ogVideo
}
}
})
}
}
2 years ago


test2
test2
const mentionHoverAndClick = {

bind (el, binding) {
const spans = el.querySelectorAll('span[data-id]')

spans.forEach(span => {
span.addEventListener('click', (event) => {
event.stopPropagation()
if (binding.value && binding.value.onClick) {
binding.value.onClick(span.getAttribute('data-id'))
}
})

span.addEventListener('mouseover', (event) => {
if (binding.value && binding.value.onHover) {
binding.value.onHover(span.getAttribute('data-id'), event)
}
})

span.addEventListener('mouseout', () => {
if (binding.value && binding.value.onOut) {
binding.value.onOut(span.getAttribute('data-id'), event)
}
})
})
}
}

export default mentionHoverAndClick
2 years ago


test2
test2
const mentionHoverAndClick = {

bind (el, binding) {
const spans = el.querySelectorAll('span[data-id]')

spans.forEach(span => {
span.addEventListener('click', (event) => {
event.stopPropagation()
if (binding.value && binding.value.onClick) {
binding.value.onClick(span.getAttribute('data-id'))
}
})

span.addEventListener('mouseover', (event) => {
if (binding.value && binding.value.onHover) {
binding.value.onHover(span.getAttribute('data-id'), event)
}
})

span.addEventListener('mouseout', () => {
if (binding.value && binding.value.onOut) {
binding.value.onOut(span.getAttribute('data-id'), event)
}
})
})
}
}

export default mentionHoverAndClick
2 years ago


test2
test2
.code-block {

background-color: #f4f4f4;
border-radius: 4px;
font-family: 'Courier New', Courier, monospace;
padding: 10px;
margin: 10px 0;
}
2 years ago


TEST2'S ACTIVITIES

Show All
test2
bought a ticket to
Biletli Form Denemesi
Thu, Oct 08 at 9:40 AM
Biletli Form Denemesi
test2
going an event
Biletli Form Denemesi
Thu, Oct 08 at 9:40 AM
Biletli Form Denemesi
test2 joined a kommunity
Dinazorlar Yine
Dinazorlar Yine
Ankara
17 members

TEST2'S COMMUNITIES

Show All
This profile is not part of any community.
Features
Help
English
  • English
  • Türkçe
  • Українська
  • Français
More
About Us Status Page Privacy Policy Terms of Service Cookie Policy
© 2026 Kommunity
Home Features Help Explore Events Explore Communities Categories
English
  • English
  • Türkçe
  • Українська
  • Français