feat: Super admin design improvements (#8517)

- Revamp the super admin design
- Introduce a new settings page for support and billing settings
- Move the access tokens into users, agent bots and platform app show pages


Co-authored-by: Sojan <sojan@pepalo.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Nithin David Thomas
2023-12-08 19:40:35 -08:00
committed by GitHub
parent b1a68759cf
commit f002870c6a
39 changed files with 577 additions and 348 deletions

View File

@@ -19,3 +19,33 @@ by providing a `content_for(:javascript)` block.
$.ajaxSetup({ async: false });
<% end %>
<% end %>
<script>
window.chatwootSettings = {
hideMessageBubble: true,
};
(function(d,t) {
var BASE_URL = '';
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src= BASE_URL + "/packs/js/sdk.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g,s);
g.onload=function(){
window.chatwootSDK.run({
websiteToken: '<%= ChatwootHub.support_config[:support_website_token] %>',
baseUrl: '<%= ChatwootHub.support_config[:support_script_url] %>'
})
}
})(document,"script");
window.addEventListener('chatwoot:ready', function() {
window.$chatwoot.setUser('<%= ChatwootHub.installation_identifier %>', {
identifier_hash: '<%= ChatwootHub.support_config[:support_identifier_hash] %>',
email: '<%= SuperAdmin.first.email %>',
name: '<%= SuperAdmin.first.name %>'
});
})
</script>