-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Point and Click feature #213
Conversation
@@ -0,0 +1,146 @@ | |||
export const initialiseCTBuilder = (url, variant, details) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general review, lets add jsdoc comments to all functions
https://jsdoc.app/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Done
container.style.position = 'relative' // Ensure relative positioning for absolute positioning of form | ||
container.style.display = 'flex' | ||
document.body.appendChild(container) | ||
const overlayPath = 'https://d2r1yp2w7bby2u.cloudfront.net/js/lib-overlay/overlay.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets remove this hard coded string here. Add a new constants file inside visualBuilder
and add this string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Done
var link = document.createElement('link') | ||
link.rel = 'stylesheet' | ||
link.type = 'text/css' | ||
link.href = 'https://d2r1yp2w7bby2u.cloudfront.net/js/lib-overlay/style.css' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Done
var d = document | ||
var h = d.documentElement | ||
var t = setTimeout(function () { | ||
h.className = h.className.replace(/\bwf-loading\b/g, '') + ' wf-inactive' | ||
// $(document).trigger("TypeKitReady"); | ||
}, config.scriptTimeout) | ||
var tk = d.createElement('script') | ||
var f = false | ||
var s = d.getElementsByTagName('script')[0] | ||
var a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meaningful name of the variables.
Also define them as const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Done
src/util/tr.js
Outdated
// msg = { | ||
// arp: { | ||
// j_n: 'Zw==', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no commented code please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Done
src/clevertap.js
Outdated
|
||
if (search === '?ctBuilder') { | ||
// open in visual builder mode | ||
console.log('open in visual builder mode') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use our logger class here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done
JIRA Issue: WEB-2848
Implementation