Improve Integration Cards (#643)
* Add integration action components and update integration JSON files - Introduced new action components for Email, Slack, Discord, Webhook, and Google Sheets integrations, enhancing the user interface for managing these integrations. - Updated the `integrations.json` files to include `actions_file_name` for each integration, linking them to their respective action components. - Improved the `GoogleSheetsIntegrationActions.vue` component by replacing direct provider information display with a badge for better UI consistency. These changes aim to streamline integration management and improve the overall user experience. * Minor UI fixes --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
12
client/lib/utils.js
vendored
12
client/lib/utils.js
vendored
@@ -109,3 +109,15 @@ export const customDomainUsed = function () {
|
||||
|
||||
return host !== appDomain && getDomain(host) !== appDomain
|
||||
}
|
||||
|
||||
export const mentionAsText = (content) => {
|
||||
if (!content) return ''
|
||||
|
||||
// Parse the content and style mentions
|
||||
return content.replace(
|
||||
/<span\s+mention-field-id="([^"]+)"\s+mention-field-name="([^"]+)"[^>]*>([^<]+)<\/span>/g,
|
||||
(match, fieldId, fieldName, text) => {
|
||||
return `${text}`
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user