Back to Top

tlmanager master

Development tool

TYPE_FLUID()

Returns

Void

TYPE_COLD_FUSION()

Returns

Void

TYPE_COLD_BEYOND()

Returns

Void

ENV_PRODUCTION()

Returns

Void

ENV_PRE_OPENSAAS()

Returns

Void

ENV_IGD_PRODUCTION()

Returns

Void

ENV_IGD_PRE_PRODUCTION()

Returns

Void

TEMPLATE_MODULAR_2018()

Returns

Void

ecommerceData()

Returns

Void

getType()

Return type

Returns

String

getEnvironment()

Return environment

Returns

String

_isTemplateModular2018()

Get if is template modular 2018

Returns

Boolean

getTemplate()

Return template

Returns

String

_getComments()

Get html comments texts

Returns

Array

getFluidCache()

Return if web has fluid cache by html comments

Returns

Boolean

getFluidData()

Return fluid data object

Returns

fluidData

_extractShopId(text, regex)

Extract shop id from text by regexp

Parameters

Name Type Description
text String
regex RegExp

Returns

Number

getShopId(text, regex)

Extract shop id from text by regexp

Parameters

Name Type Description
text String
regex RegExp

Returns

Number

getData()

Return all data object

Returns

ecommerceDataObject

new Modifier()

Creates a new Modifier

Returns

Void

constructor()

Create a Modifier.

Returns

Void

init(node)

Initialize Modifier logic if node is valid

Parameters

Name Type Description
node HTMLElement
  • Finded element from ObserverLC to test

Returns

Void

_match()

If node is valid element this method execute the plugin This method has to be overwritten !!

Returns

Void

new Observer()

Creates a new Observer

Returns

Void

constructor()

Create a Observer. Initialize observer and execute Modifier.init from registeredModifiers

Returns

Void

register(Modifier)

Push Modifier to registeredModifiers

Parameters

Name Type Description
Modifier Modifier

Returns

Void

observe(element)

Initialize observer

Parameters

Name Type Description
element HTMLElement
  • parent observer node

Returns

Void

disconnect()

Disconnect observer

Returns

Void

cookieName()

Cookie Name

Returns

Void

init(load)

Initialize containerLinesGuide

Parameters

Name Type Description
load Boolean
  • Indicate if call is in load or by click directive from popup

Returns

Void

create()

Create containerLinesGuide, add elements and cookie

Returns

Void

_setSizeValues()

Set container and padding data values on window resize

Returns

Void

_windowResizeListener()

Update container and padding data values on window resize

Returns

Void

destroy()

Destroy containerLinesGuide, remove elements and cookie

Returns

Void

_getStyle()

Return js calculated css, static css located into ./index.css

Returns

String

_getContainerWidth()

Return width without paddings of #containerLinesGuide_left Element

Returns

Number

_getContainerOuterWidth()

Return width included paddings of #containerLinesGuide_left Element

Returns

Number

_getContainerPadding()

Return padding left value of #containerLinesGuide_left Element

Returns

Number

_getCookie([name])

Returns a cookie value if a name is specified. Otherwise returns the entire cookies as an object

Parameters

Name Type Description
name String
  • The name of the cookie to fetch the value for. Returns the entire map of cookies if not specified
Optional

Returns

String Object

  • The value of the cookie specified by name if specified. Otherwise returns a name value map of the available cookies

_setCookie(name, value[, options])

Set a cookie

Parameters

Name Type Description
name String
  • The name of the cookie to be set
value String Number
  • The value of the cookie
options Object Optional

Returns

Void

_deleteCookie(name[, path, domain])

Delete a cookie by name

Parameters

Name Type Description
name String
  • The name of the cookie to be deleted
path String
  • The value of the path
Optional
domain String
  • The domain value
Optional

Returns

Void

_parseSymbolIcon(node)

Get HTML parsed code from symbol node.

Parameters

Name Type Description
node HTMLElement
  • Symbol html node.

Returns

Icon

Icon object

setCookie(name, value, days)

Set a cookie

Parameters

Name Type Description
name String
  • The name of the cookie to be set
value String Number
  • The value of the cookie
days Number
  • Days of cookie

Returns

Void

new FlushRedisIgdDomain()

Creates a new FlushRedisIgdDomain

Returns

Void

constructor()

Create a FlushRedisIgdDomain.

Returns

Void

log()

Returns

Void

info(message, debugEl)

Parameters

Name Type Description
message string
  • Text to show in console log
debugEl any
  • Element to debug

Returns

Void

error(message, debugEl)

Parameters

Name Type Description
message string
  • Text to show in console log
debugEl any
  • Element to debug

Returns

Void

warn(message, debugEl)

Parameters

Name Type Description
message string
  • Text to show in console log
debugEl any
  • Element to debug

Returns

Void

success(message, debugEl)

Parameters

Name Type Description
message string
  • Text to show in console log
debugEl any
  • Element to debug

Returns

Void

console(message, debugEl, level, bgColor, textColor)

Parameters

Name Type Description
message string
  • Text to show in console log
debugEl any
  • Element to debug
level string
  • Level of log
bgColor string
  • Background color badge
textColor string
  • Text color badge

Returns

Void

new LogiInfo()

Creates a new LoginInfo

Returns

Void

new ObserverLC()

Creates a new ObserverLC

Returns

Void

ObserverLC.constructor()

Returns

Void

new AutoIncrVersionPublish()

Creates a new AutoIncrVersionPublish

Returns

Void

AutoIncrVersionPublish.constructor()

Create a AutoIncrVersionPublish.

Returns

Void

AutoIncrVersionPublish._match()

If node contains #popupPublishForm find and set next publish version

Returns

Void

AutoIncrVersionPublish._getNextPublishVersion()

Return next publish version

Returns

string

AutoIncrVersionPublish._getPartByRegexp(data, regexp, defaultValue)

Find a value into data.id els return default

Parameters

Name Type Description
data object
  • Dataset of last publication row of publications window
regexp RegExp
  • Regexp to find
defaultValue string

Returns

string

AutoIncrVersionPublish._getVersionNextNumberPart(versionStrPart, versionNumbersArr)

Return concat of next version value

Parameters

Name Type Description
versionStrPart string
  • ('v', 'V', ...)
versionNumbersArr array
  • Array of number part [2, 3, 1] from '2.3.1' for example.

Returns

string

AutoIncrVersionPublish._getLastNumberIncr(number)

Return incremented last number

Parameters

Name Type Description
number string

Returns

string

AutoIncrVersionPublish._getPenultimateNumberIncr(number, lastNumber)

Return incremented penultimate number

Parameters

Name Type Description
number string
lastNumber number

Returns

string

new BackgroundLC()

Creates a new BackgroundLC

Returns

Void

constructor(chromeData)

Create a DeveloperBar.

Parameters

Name Type Description
chromeData object

Returns

Void

_executeDL()

Execute ajax to downloadLocation

Returns

Void

new DeveloperBar()

Creates a new DeveloperBar

Returns

Void

constructor(logiInfo)

Create a DeveloperBar.

Parameters

Name Type Description
logiInfo LogiInfo

Returns

Void

_appendStructure()

Called in _initEnvironment, add bar html structure.

Returns

Void

_initSearch()

Initialize bar search system

Returns

Void

_initEnvironment()

Initialize bar depends LC environment

Returns

Void

_initDevOpenSaas()

Initialize bar if LC is dev open saas

Returns

Void

executeTagScript(scriptString)

Append script and execute-it into body

Parameters

Name Type Description
scriptString string

Returns

Void

_initProOpenSaas()

Initialize bar if LC is production open saas

Returns

Void

_devOSButtonsWindow()

Change dev open saas buttons text

Returns

Void

_flushRedisBetter()

Open saas flush button custom event

Returns

Void

_flushRedisBetterHandler(event)

Open saas flush button custom event handler

Parameters

Name Type Description
event object

Returns

Void

new BetterGroupHeaders()

Creates a new BetterGroupHeaders

Returns

Void

constructor()

Create a BetterGroupHeaders.

Returns

Void

_match()

If node contains .nameLabel HTMLElement edit all inner HTML

Returns

Void

_createInnerTextNode(textContent)

Create span with simple text

Parameters

Name Type Description
textContent String
  • textContent of nameLabel property

Returns

HTMLElement

_createBadge(text)

Create span with badge

Parameters

Name Type Description
text String
  • Example: [textfinded] -> textfinded

Returns

HTMLElement

_createBadgeIcon(textContent)

Create span with badge icon, for each type search and mathc type of icon

Parameters

Name Type Description
textContent String
  • textContent of nameLabel property

Returns

HTMLElement

_makeSafeForCSS(name)

Util, convert string to valid class attr string

Parameters

Name Type Description
name String

Returns

String

new BetterTreeLevels()

Creates a new BetterTreeLevels

Returns

Void

BetterTreeLevels.constructor()

Create a BetterTreeLevels.

Returns

Void

BetterTreeLevels._match()

If node contains .pagesTreeContainer HTMLElement edit all inner HTML

Returns

Void

new GridView()

Creates a new GridView

Returns

Void

GridView.constructor()

Create a GridView.

Returns

Void

GridView._match()

If node contains .pagesTreeContainer HTMLElement edit all inner HTML

Returns

Void

new SandboxLoginButtons()

Creates a new SandboxLoginButtons

Returns

Void

constructor(selector, regexTextButton, regexFindedInData, regexWrapText)

Create a SandboxLoginButtons.

Parameters

Name Type Description
selector String
regexTextButton RegExp
regexFindedInData Boolean
regexWrapText Boolean

Returns

Void

_match()

If node contains select#sandbox init plugin and hide select

Returns

Void

_initSelect()

For each select option create a button and add events to control original html select

Returns

Void

_createWrap()

Create an element that will contain the buttons

Returns

HTMLDivElement

_createButton(option)

From an option of a selector create a button

Parameters

Name Type Description
option HTMLOptionElement

Returns

HTMLButtonElement

_getButtonText(option)

From a select option it returns the text that will go inside the new button

Parameters

Name Type Description
option HTMLOptionElement

Returns

Object

insertAfter(newNode, referenceNode)

Insert an element right after another element, siblings.

Parameters

Name Type Description
newNode HTMLElement
referenceNode HTMLElement

Returns

Void

Creates a new TicketRefLinks

Returns

Void

Create a TicketRefLinks.

Returns

Void

If find node search find text elements and initialize tickets search

Returns

Void

Return string html of ticket

Parameters

Name Type Description
ticket string

Returns

string

If html string contains tickets replace it with ticket link, else return defautl html.

Parameters

Name Type Description
html string
tickets array.<string>

Returns

string

For each html element find tickets and add links

Parameters

Name Type Description
elements Array.<HTMLElement>

Returns

Void

getFontWesomeIcons()

Properties

Name Type Description
name String
  • Name of icon
raw String
  • Original code html of svg
svg String
  • Clean svg code
symbol String
  • Clean symbol code from svg code
use String
  • Use tag code
bg String
  • Css background code
color String
added Boolean
  • Indicate if widget is added

Returns

Void

init(raw, color)

Initialize object function

Parameters

Name Type Description
raw String
  • Svg icon html
color String
  • Hex or rgb/a color string

Returns

Void

setName()

Set name property

Returns

Void

setUse()

Set use property

Returns

Void

setSvg()

Set svg property, cleaning original code (raw)

Returns

Void

setSymbol()

Set symbol property, transforming code of svg property

Returns

Void

setBg()

Set bg property, transforming code of svg property

Returns

Void

replaceAll(str, find, replace)

Replace text by regexp string

Parameters

Name Type Description
str String
  • String to aply replace
find String
  • Regex string
replace String
  • Replace string

Returns

String

escapeRegExp(str)

Escape string regexp

Parameters

Name Type Description
str String
  • Regex string to escape

Returns

String

getCss()

Return calculated css part, other css is into ./index.css

Returns

String

getOutputElement(key, text)

Return widget column with textarea, if key is svg add a download button

Parameters

Name Type Description
key String
  • textarea key output
text String
  • textarea label text

Returns

String

getStructure()

Return widget main structure

Returns

String

addWidget()

Destroy existent widget and add new widget

Returns

Void

destroy()

Destroy the widget

Returns

Void

new ObserverZendesk()

Creates a new ObserverZendesk

Returns

Void

ObserverZendesk.constructor()

Returns

Void

ZENDESK_API_TOKEN()

Define user session api token

Returns

Void

ZENDESK_API_HEADERS()

Define api headers

Returns

Void

new TicketPriorityHighlightColors()

Creates a new TicketPriorityHighlightColors

Returns

Void

constructor(selector, onlyIncidents, colors)

Create a TicketPriorityHighlightColors.

Parameters

Name Type Description
selector string
onlyIncidents boolean
colors object

Returns

Void

_match()

On finded changed nodes, up to tbody and update all tbody rows

Returns

Void

updateRows()

Update rows highlight

Returns

Void

evalDecorateRow(hasPriority, isIncident)

Returns boolean if the row has to be decorated

Parameters

Name Type Description
hasPriority boolean
isIncident boolean

Returns

boolean

getRowData(cells)

Returns priority text and if is incident row

Parameters

Name Type Description
cells HTMLCollection

Returns

object

getTextPriority(text)

Get text priority of if match with this.priorities

Parameters

Name Type Description
text string

Returns

string

getIncident(text)

Returns if this td has priority text

Parameters

Name Type Description
text string

Returns

boolean

decorateRow(row, priorityText)

Add class

Parameters

Name Type Description
row HTMLElement
priorityText string

Returns

Void

clearRow(row)

Remove classes of decorateRow()

Parameters

Name Type Description
row HTMLElement

Returns

Void

addCssVariables()

Add root color css variables

Returns

Void

colorLuminance(hex, lum)

Returns color with luminance modification

Parameters

Name Type Description
hex string
lum number
  • Accepts positive and negative floats

Returns

string

_createNotify(archvievement, earned)

Create chrome notify

Parameters

Name Type Description
archvievement object
  • object from achievements.js
earned boolean

Returns

Void

_singleClickLogic(metricsKey, achievementKey)

Logic of an achievement that consists of capturing a single click.

Parameters

Name Type Description
metricsKey string
achievementKey string

Returns

Void