From f819bc0f33e31bf248c16eef89c2751d08637e91 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Tue, 12 May 2020 01:31:40 +0530 Subject: [PATCH] Chore: Use installation config in frontend (#847) * Use installation config in widget * Add configuration for installation in UI * Add config for mailer Co-authored-by: Sojan --- .../dashboard/components/layout/Sidebar.vue | 9 ++--- .../dashboard/components/ui/Wizard.vue | 11 ++++--- .../dashboard/routes/auth/Signup.vue | 31 +++++++++++++---- .../dashboard/settings/agents/Index.vue | 13 ++++++-- .../settings/inbox/InboxChannels.vue | 29 +++++++++++++++- .../routes/dashboard/settings/inbox/Index.vue | 13 ++++++-- .../settings/inbox/channels/Facebook.vue | 20 +++++++++-- .../dashboard/settings/integrations/Index.vue | 13 +++++--- .../settings/integrations/Webhook.vue | 12 ++++++- .../dashboard/routes/login/Login.vue | 19 +++++++---- app/javascript/dashboard/store/index.js | 6 ++-- .../shared/mixins/globalConfigMixin.js | 7 ++++ app/javascript/shared/store/globalConfig.js | 33 +++++++++++++++++++ app/javascript/widget/components/Branding.vue | 25 ++++++++++++-- app/javascript/widget/store/index.js | 2 ++ app/mailers/application_mailer.rb | 5 +++ app/views/layouts/mailer.html.erb | 6 ++-- app/views/layouts/vueapp.html.erb | 15 +++++---- app/views/widgets/show.html.erb | 1 + config/installation_config.yml | 16 +++++++-- public/brand-assets/logo.svg | 15 +++++++++ public/brand-assets/logo_thumbnail.svg | 12 +++++++ 22 files changed, 264 insertions(+), 49 deletions(-) create mode 100644 app/javascript/shared/mixins/globalConfigMixin.js create mode 100644 app/javascript/shared/store/globalConfig.js create mode 100644 public/brand-assets/logo.svg create mode 100644 public/brand-assets/logo_thumbnail.svg diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index dfb9081d2..a38ebe2cf 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -2,7 +2,7 @@