feat(v4): Update the help center portal design (#10296)

Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
Sivin Varghese
2024-10-24 10:39:36 +05:30
committed by GitHub
parent 6d3ecfe3c1
commit a3855a8d1d
144 changed files with 6376 additions and 6604 deletions

View File

@@ -4,10 +4,10 @@ end
json.meta do
json.all_articles_count @portal_articles.size
json.archived_articles_count @articles.archived.size
json.archived_articles_count @archived_articles_count
json.articles_count @articles_count
json.current_page @current_page
json.draft_articles_count @all_articles.draft.size
json.mine_articles_count @all_articles.search_by_author(current_user.id).size if current_user.present?
json.published_count @articles.published.size
json.draft_articles_count @draft_articles_count
json.mine_articles_count @mine_articles_count
json.published_count @published_articles_count
end

View File

@@ -17,6 +17,12 @@ json.config do
end
end
if portal.channel_web_widget
json.inbox do
json.partial! 'api/v1/models/inbox', formats: [:json], resource: portal.channel_web_widget.inbox
end
end
json.logo portal.file_base_data if portal.logo.present?
json.portal_members do