Skip to content

Commit

Permalink
fix: remove console.log statements and adjust font sizes in various c…
Browse files Browse the repository at this point in the history
…omponents
  • Loading branch information
swoopertr committed Jan 7, 2025
1 parent ed8e241 commit 0cbc0f1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 0 additions & 2 deletions jsAgent/banner.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
console.log('banner.js is here!');

let temp_banner_html = `
<div class="bw-banner" id="bw-banner-{{id}}" data-id="{{dataId}}" style="position: fixed; top: 50px; z-index: 999999; height:50px; width:435px; background-color:{{backGroundColor}}; left: 50%; transform: translate(-50%, -50%);
line-height: 13px; font-weight: 400; display: flex; align-items: center; justify-content: space-between; padding: 0.7rem; border-radius: 5px; height:50px; width:435px;">
Expand Down
4 changes: 1 addition & 3 deletions jsAgent/hint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
console.log('hint.js is here!');

bw.hint = {
isMouseOverTooltip : false,
isMouseOverContainer : false,
Expand Down Expand Up @@ -171,7 +169,7 @@ bw.hint = {
min-width: 64px;
padding: 6px 16px;
font-family: Inter;
font-size: 14px;
font-size: 13px;
cursor: pointer;
float: right;
display: inline-flex;
Expand Down
3 changes: 1 addition & 2 deletions jsAgent/links.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
console.log('bw-link.js is loaded');
const linksDefaultOptions = {
"url": "https://www.google.com",
"order": 1,
Expand Down Expand Up @@ -96,7 +95,7 @@ bw.links={
return temp_content_html;
},
putFooter: function(){
return '<p style="margin-bottom: 0px; margin-top: 0px; background: white;; padding: 14px 0 11px;border-top: 1px solid #ebebeb; font-family: Inter; font-size: 10px; font-weight: 400; line-height: 2.12; text-align: center;">Powered by BlueWave Onboarding</p>';
return '<p style="margin-bottom: 0px; margin-top: 0px; background: white;; padding: 14px 0 11px;border-top: 1px solid #ebebeb; font-family: Inter; font-size: 11px; font-weight: 400; line-height: 2.12; text-align: center;">Powered by BlueWave Onboarding</p>';
},
bindClick : function(){
bw.util.bindLive("#bw-link-icon", "click", function(){
Expand Down
4 changes: 2 additions & 2 deletions jsAgent/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//CONSTANTS
const BW_SERVER_ENDPOINT_BASE = window.bwApiBaseUrl; //"http://localhost:3000/api/";
const BW_SERVER_ENDPOINT_BASE = window.bwApiBaseUrl;
const BW_GET_GUIDE_LOG_URL= `${BW_SERVER_ENDPOINT_BASE}guide/get_incomplete_guides_by_url`;
const BW_ADD_GUIDE_LOG_URL= `${BW_SERVER_ENDPOINT_BASE}guide_log/add_guide_log`;
const BW_JS_BASE_URL = window.bwAgentBaseUrl; //"http://localhost:8082/";
const BW_JS_BASE_URL = window.bwAgentBaseUrl;
const BW_POPUP_JS_URL = `${BW_JS_BASE_URL}popup.js`;
const BW_LINKS_JS_URL = `${BW_JS_BASE_URL}links.js`;
const BW_BANNER_JS_URL = `${BW_JS_BASE_URL}banner.js`;
Expand Down
2 changes: 1 addition & 1 deletion jsAgent/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bw.popup = {
bw.popup.bindEvents( option.closeButtonAction, option.url);
},
addHeader: function(headerTitle, bgColor, textColor, padding){
let headerHtml = `<div class="modal-header" style='height:57px; margin: auto; font-size: 20px; font-weight: bold; padding: 0 ${padding}px; background-color: ${bgColor}; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #D0D5DD;'>
let headerHtml = `<div class="modal-header" style='height:57px; margin: auto; font-weight: bold; padding: 0 ${padding}px; background-color: ${bgColor}; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #D0D5DD;'>
<h2 style= 'font-family: "Inter", sans-serif; font-size: 20px; font-weight: 500; margin-left: 5px; color:${textColor}'>${headerTitle}</h2>
<svg id='bw-modal-close' class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="CloseOutlinedIcon"
style="fill: rgb(152, 162, 179); font-size: 20px; display: block;position: absolute;float: right;right: 23px;cursor: pointer; width: 1em;height: 1em;display: inline-block; margin: auto;">
Expand Down

0 comments on commit 0cbc0f1

Please sign in to comment.