chore: Remove static URLs from the documentation (#5461)

This commit is contained in:
Pranav Raj S 2022-09-19 21:52:01 -07:00 committed by GitHub
parent 3a1e521b4c
commit 1761100c77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 120 additions and 92 deletions

View file

@ -0,0 +1,10 @@
export const buildPortalURL = portalSlug => {
const { hostURL, helpCenterURL } = window.chatwootConfig;
const baseURL = helpCenterURL || hostURL || '';
return `${baseURL}/hc/${portalSlug}`;
};
export const buildPortalArticleURL = (portalSlug, categorySlug, articleId) => {
const portalURL = buildPortalURL(portalSlug);
return `${portalURL}/${categorySlug}/${articleId}`;
};

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,6 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal-Slug für URLs", "PLACEHOLDER": "Portal-Slug für URLs",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug ist erforderlich" "ERROR": "Slug ist erforderlich"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +246,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Kategorie-Slug für URLs", "PLACEHOLDER": "Kategorie-Slug für URLs",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug ist erforderlich" "ERROR": "Slug ist erforderlich"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -160,7 +160,8 @@
} }
}, },
"ADD": { "ADD": {
"CREATE_FLOW": [{ "CREATE_FLOW": [
{
"title": "Help center information", "title": "Help center information",
"route": "new_portal_information", "route": "new_portal_information",
"body": "Basic information about portal", "body": "Basic information about portal",
@ -211,7 +212,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -352,7 +353,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {
@ -383,7 +384,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug مورد نیاز است" "ERROR": "Slug مورد نیاز است"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Slug دسته برای آدرس ها", "PLACEHOLDER": "Slug دسته برای آدرس ها",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug مورد نیاز است" "ERROR": "Slug مورد نیاز است"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Slug portale per URLs", "PLACEHOLDER": "Slug portale per URLs",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug è obbligatorio" "ERROR": "Slug è obbligatorio"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Slug categoria per url", "PLACEHOLDER": "Slug categoria per url",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug è obbligatorio" "ERROR": "Slug è obbligatorio"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Slug do Portal para URLs", "PLACEHOLDER": "Slug do Portal para URLs",
"HELP_TEXT": "app.chatwoot.com/portal/meu-portal", "HELP_TEXT": "app.chatwoot.com/hc/meu-portal",
"ERROR": "Slug é obrigatório" "ERROR": "Slug é obrigatório"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Categoria de slug para URLs", "PLACEHOLDER": "Categoria de slug para URLs",
"HELP_TEXT": "app.chatwoot.com/portal/meu-portal/en-US/categories/meu-slug", "HELP_TEXT": "app.chatwoot.com/hc/meu-portal/en-US/categories/meu-slug",
"ERROR": "Slug é obrigatório" "ERROR": "Slug é obrigatório"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Метка", "LABEL": "Метка",
"PLACEHOLDER": "Слаг портала для url", "PLACEHOLDER": "Слаг портала для url",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Необходимо указать метку" "ERROR": "Необходимо указать метку"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Метка", "LABEL": "Метка",
"PLACEHOLDER": "Метка категории для url", "PLACEHOLDER": "Метка категории для url",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Необходимо указать метку" "ERROR": "Необходимо указать метку"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Slug portala za adrese", "PLACEHOLDER": "Slug portala za adrese",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug je obavezan" "ERROR": "Slug je obavezan"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Slug kategorije za adrese", "PLACEHOLDER": "Slug kategorije za adrese",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug je obavezan" "ERROR": "Slug je obavezan"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Мітка", "LABEL": "Мітка",
"PLACEHOLDER": "Портал slug для URL-адрес", "PLACEHOLDER": "Портал slug для URL-адрес",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Необхідно вказати мітку" "ERROR": "Необхідно вказати мітку"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Мітка", "LABEL": "Мітка",
"PLACEHOLDER": "Мітка категорії для URL-адрес", "PLACEHOLDER": "Мітка категорії для URL-адрес",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Необхідно вказати мітку" "ERROR": "Необхідно вказати мітку"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/zh-CN/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/zh-CN/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -164,7 +164,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Portal slug for urls", "PLACEHOLDER": "Portal slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DOMAIN": { "DOMAIN": {
@ -247,7 +247,7 @@
"SLUG": { "SLUG": {
"LABEL": "Slug", "LABEL": "Slug",
"PLACEHOLDER": "Category slug for urls", "PLACEHOLDER": "Category slug for urls",
"HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug",
"ERROR": "Slug is required" "ERROR": "Slug is required"
}, },
"DESCRIPTION": { "DESCRIPTION": {

View file

@ -243,7 +243,7 @@ export default {
this.$emit('add-locale', this.portal.id); this.$emit('add-locale', this.portal.id);
}, },
openSite() { openSite() {
this.$emit('open-site'); this.$emit('open-site', this.portal.slug);
}, },
openSettings() { openSettings() {
this.fetchPortalsAndItsCategories(); this.fetchPortalsAndItsCategories();

View file

@ -50,7 +50,7 @@
:error="slugError" :error="slugError"
:label="$t('HELP_CENTER.PORTAL.ADD.SLUG.LABEL')" :label="$t('HELP_CENTER.PORTAL.ADD.SLUG.LABEL')"
:placeholder="$t('HELP_CENTER.PORTAL.ADD.SLUG.PLACEHOLDER')" :placeholder="$t('HELP_CENTER.PORTAL.ADD.SLUG.PLACEHOLDER')"
:help-text="$t('HELP_CENTER.PORTAL.ADD.SLUG.HELP_TEXT')" :help-text="domainHelpText"
@input="$v.slug.$touch" @input="$v.slug.$touch"
/> />
</div> </div>
@ -80,6 +80,7 @@
import thumbnail from 'dashboard/components/widgets/Thumbnail'; import thumbnail from 'dashboard/components/widgets/Thumbnail';
import { required, minLength } from 'vuelidate/lib/validators'; import { required, minLength } from 'vuelidate/lib/validators';
import { convertToCategorySlug } from 'dashboard/helper/commons.js'; import { convertToCategorySlug } from 'dashboard/helper/commons.js';
import { buildPortalURL } from 'dashboard/helper/portalHelper';
export default { export default {
components: { components: {
@ -132,6 +133,9 @@ export default {
domainError() { domainError() {
return this.$v.domain.$error; return this.$v.domain.$error;
}, },
domainHelpText() {
return buildPortalURL(this.slug);
},
}, },
mounted() { mounted() {
const portal = this.portal || {}; const portal = this.portal || {};

View file

@ -51,6 +51,7 @@ import Spinner from 'shared/components/Spinner';
import portalMixin from '../../mixins/portalMixin'; import portalMixin from '../../mixins/portalMixin';
import alertMixin from 'shared/mixins/alertMixin'; import alertMixin from 'shared/mixins/alertMixin';
import wootConstants from 'dashboard/constants'; import wootConstants from 'dashboard/constants';
import { buildPortalArticleURL } from 'dashboard/helper/portalHelper';
const { ARTICLE_STATUS_TYPES } = wootConstants; const { ARTICLE_STATUS_TYPES } = wootConstants;
export default { export default {
@ -86,7 +87,11 @@ export default {
}, },
portalLink() { portalLink() {
const slug = this.$route.params.portalSlug; const slug = this.$route.params.portalSlug;
return `/hc/${slug}/${this.article.category.slug}/${this.article.id}`; return buildPortalArticleURL(
slug,
this.article.category.slug,
this.article.id
);
}, },
}, },
mounted() { mounted() {

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="container"> <div class="container overflow-auto">
<article-header <article-header
:header-title="headerTitle" :header-title="headerTitle"
:count="articleCount" :count="articleCount"

View file

@ -21,6 +21,7 @@
:portal="portal" :portal="portal"
:status="portalStatus" :status="portalStatus"
@add-locale="addLocale" @add-locale="addLocale"
@open-site="openPortal"
/> />
<div v-if="isFetching" class="portals--loader"> <div v-if="isFetching" class="portals--loader">
<spinner /> <spinner />
@ -51,6 +52,8 @@ import PortalListItem from '../../components/PortalListItem';
import Spinner from 'shared/components/Spinner.vue'; import Spinner from 'shared/components/Spinner.vue';
import EmptyState from 'dashboard/components/widgets/EmptyState'; import EmptyState from 'dashboard/components/widgets/EmptyState';
import AddLocale from '../../components/AddLocale'; import AddLocale from '../../components/AddLocale';
import { buildPortalURL } from 'dashboard/helper/portalHelper';
export default { export default {
components: { components: {
PortalListItem, PortalListItem,
@ -79,6 +82,9 @@ export default {
}, },
}, },
methods: { methods: {
openPortal(portalSlug) {
window.open(buildPortalURL(portalSlug), '_blank');
},
addPortal() { addPortal() {
this.$router.push({ name: 'new_portal_information' }); this.$router.push({ name: 'new_portal_information' });
}, },

View file

@ -9,6 +9,7 @@ json.meta article.meta
json.category do json.category do
json.id article.category_id json.id article.category_id
json.name article.category.name json.name article.category.name
json.slug article.category.slug
end end
if article.portal.present? if article.portal.present?

View file

@ -33,6 +33,7 @@
<script> <script>
window.chatwootConfig = { window.chatwootConfig = {
hostURL: '<%= ENV.fetch('FRONTEND_URL', '') %>', hostURL: '<%= ENV.fetch('FRONTEND_URL', '') %>',
helpCenterURL: '<%= ENV.fetch('HELPCENTER_URL', '') %>',
fbAppId: '<%= ENV.fetch('FB_APP_ID', nil) %>', fbAppId: '<%= ENV.fetch('FB_APP_ID', nil) %>',
fbApiVersion: '<%= @global_config['FACEBOOK_API_VERSION'] %>', fbApiVersion: '<%= @global_config['FACEBOOK_API_VERSION'] %>',
signupEnabled: '<%= @global_config['ENABLE_ACCOUNT_SIGNUP'] %>', signupEnabled: '<%= @global_config['ENABLE_ACCOUNT_SIGNUP'] %>',

View file

@ -5,6 +5,7 @@ module.exports = {
'./app/javascript/widget/**/*.vue', './app/javascript/widget/**/*.vue',
'./app/javascript/shared/**/*.vue', './app/javascript/shared/**/*.vue',
'./app/javascript/survey/**/*.vue', './app/javascript/survey/**/*.vue',
'./app/views/**/*.html.erb',
], ],
future: { future: {
removeDeprecatedGapUtilities: true, removeDeprecatedGapUtilities: true,