Members
-
urlChangeMonitorSelector :string
-
Description
CSS selector to monitor if self-managing URL changes.
Override in subclass if desired.
The selector must resolve to an element that, once it exists, will continue to exist for the lifetime of the SPA.
Details
-
dispatcher :NexusHoratio.base.Dispatcher
-
Details
-
id :string
-
Details
-
logger :NexusHoratio.base.Logger
-
Details
-
spa :NexusHoratio.spa.SPA
-
Details
-
<static> asideSelector :string
-
Description
LinkedIn's common aside used in many layouts.
Details
-
<static> primaryContentSelector :string
-
Description
LinkedIn's primary content for many layouts.
Details
-
<static> primaryNavSelector :string
-
Description
LinkedIn's common navigation bar.
Details
-
<static> scrollerPrimaryClassName :string
-
Description
CSS class name common for primary scrollers.
Details
-
<static> scrollerSecondaryClassName :string
-
Description
CSS class name common for secondary scrollers.
Details
-
<static> sidebarSelector :string
-
Description
LinkedIn's common sidebar used in many layouts.
Details
-
dispatcher2 :NexusHoratio.base.Dispatcher
-
Details
-
licenseData :module:linkedin-tool~LinkedIn~LicenseData
-
Details
-
navbar :external:Element
-
Details
-
pageStyle :module:linkedin-tool~LinkedIn.Style
-
Details
-
registrationComplete :boolean
-
Details
-
<static, readonly> Style :Symbol
-
Description
Different implementation styles across LinkedIn over time.
Properties
Name Type Default Description UNKNOWNSymbol ONESymbol TWOSymbol Details
Methods
-
<static> aboutTab() → {TabbedUI~TabDefinition}
-
Returns
Details
-
<static> errorTab( variant ) → {TabbedUI~TabDefinition}
-
Parameters
Name Type Description variantstring Migration text, one of
spaorlit.Returns
Details
-
<static> ckeyIdentifier( element ) → {string}
-
<static> errorPlatformInfo() → {string}
-
Description
Generate information about the current environment useful in bug reports.
Returns
Details
-
<static> hN( element, level ) → {string}
-
Description
Combine text from child headers.
Parameters
Name Type Description elementexternal:Element Element to examine.
levelnumber Header level to use.
Returns
Details
-
<static> h1( element ) → {string}
-
Description
Combine text from child headers.
Parameters
Name Type Description elementexternal:Element Element to examine.
Returns
Details
-
<static> h2( element ) → {string}
-
Description
Combine text from child headers.
Parameters
Name Type Description elementexternal:Element Element to examine.
Returns
Details
-
focusOnSidebar()
-
Description
Scroll common sidebar into view and move focus to it.
Details
-
focusOnAside()
-
Description
Scroll common aside (right-hand sidebar) into view and move focus to it.
Details
-
newsTab() → {TabbedUI~TabDefinition}
-
Returns
Details
-
licenseTab() → {TabbedUI~TabDefinition}
-
Returns
Details
-
<private> gfUrl( path ) → {string}
-
Description
Create a Greasy Fork project URL.
Parameters
Name Type Description pathstring Portion of the URL.
Returns
Details
-
<private> ghUrl( path ) → {string}
-
Description
Create a GitHub project URL.
Parameters
Name Type Description pathstring Portion of the URL.
Returns
Details
-
<private> ghIssue( issue ) → {string}
-
Description
Create a GitHub issue URL.
Parameters
Name Type Description issuestring Issue portion of the URL.
Returns
Details
-
<private> onActivateUnsupportedPageCheck( type, pages )
-
Parameters
Name Type Description typestring Event type.
pagesNexusHoratio.spa.Page~Pages Updated pages information.
Details
-
<private> guessPageStyle( element ) → {module:linkedin-tool~LinkedIn.Style}
-
Parameters
Name Type Description elementexternal:Element Starting element to avoid another query.
Returns
Details
-
<private> waitUntilPageLoadedEnough()
-
Description
Hang out until the navigation bar has stabilized.
Details
-
<private> finishConstruction()
-
Description
Do the bits that were waiting on the page.
Details
-
<private> licenseFetch() → {module:linkedin-tool~LinkedIn~FetchResult}
-
Returns
Details
-
<private> licenseHandler()
-
Description
Lazily load license text when exposed.
Details
-
<private> infoName( dismissId ) → {external:Element}
-
Parameters
Name Type Description dismissIdstring Element #id to give dismiss button.
Returns
Details
-
<private> infoInstructions() → {external:Element}
-
Returns
Details
-
<private> forceFocusEvent()
-
Description
Force any 'focus' handlers to run.
Details
-
<private> addLitStyle()
-
Description
Create CSS styles for stuff specific to LinkedIn Tool.
Details
-
<private> updateInfoErrorsLabel( count )
-
Description
Update Errors tab label based upon value.
Parameters
Name Type Description countnumber Number of errors currently logged.
Details
-
<private> errorTextHandler( evt )
-
Parameters
Name Type Description evtEvent The 'change' event.
Details
-
<private> findMissingStyleProperties( el1, el2, ignore ) → {Array.<string>}
-
Description
Determine the style property differences between two elements.
Parameters
Name Type Description el1external:Element The first element.
el2external:Element The second element.
ignoreSet.<string> A collection of style properties to ignore.
Returns
Details
-
<private> newsHandlerBadgeStyle1( eventType, show )
-
Description
Update news badge as appropriate.
Parameters
Name Type Description eventTypestring Event type.
showboolean Whether to show the badge or not.
Details
-
<private> errorHandlerBadgeStyle1( eventType, count )
-
Description
Update error badge as appropriate.
Parameters
Name Type Description eventTypestring Event type.
countnumber Number of errors currently logged.
Details
-
<private> finishButtonStyle1( button )
-
Description
Tweak the internals of whatever random element we cloned.
Parameters
Name Type Description buttonexternal:Element The newly created button.
Details
-
<private> assembleBadgesStyle1( element )
-
Parameters
Name Type Description elementexternal:Element Element that will hold the badges.
Details
-
<private> newsHandlerBadgeStyle2( eventType, show )
-
Description
Update news badge as appropriate.
Parameters
Name Type Description eventTypestring Event type.
showboolean Whether to show the badge or not.
Details
-
<private> errorHandlerBadgeStyle2( eventType, count )
-
Description
Updates error badge as appropriate.
Parameters
Name Type Description eventTypestring Event type.
countnumber Number of errors currently logged.
Details
-
<private> finishButtonStyle2( button )
-
Description
Tweak the internals of whatever random element we cloned.
Parameters
Name Type Description buttonexternal:Element The newly created button.
Details
-
<private> assembleBadgesStyle2( element )
-
Parameters
Name Type Description elementexternal:Element Element that will hold the badges.
Details
-
<private> connectMenuItem( menuItem, selector )
-
Description
Connect our menu item to the navbar if necessary.
It will always go after "Me" menu item.
This supports both Styles 1 and 2.
Parameters
Name Type Description menuItemexternal:Element The menu item to connect.
selectorstring The CSS selector for "Me".
Details
-
<private> updateInfoNewsLabel( highlight )
-
Description
Update News tab label as appropriate.
Parameters
Name Type Description highlightboolean Whether to show the badge or not.
Details
-
<private> newsListener()
-
Description
Decisions about news could be made before the UI is available.
Details
-
<private> findNavbar()
-
Description
Find the nav links and ensure observers.
Details
-
<private> observeNavbar()
-
Description
Reset observers for the navbar.
Details
-
<private> navbarHandler()
-
Description
Recheck various items after a change to the navbar.
Fires
Details
-
<private> shortcutsTab() → {TabbedUI~TabDefinition}
-
Returns
Details
-
<private> reportIssueProblems( unknown, unused, old )
-
Description
Post problems about stale issues.
Parameters
Name Type Description unknownSet.<string> Issue ids referenced in news items but not in
globalKnownIssues.unusedSet.<string> Stale
globalKnownIssuesids.oldSet.<string> Stale
globalNewsContententries.Details
-
<private> preprocessKnownIssues() → {obj}
-
Returns
Details
-
<private> refreshErrors()
-
Description
Send
changeevent to the errors text area.Details
-
<private> addError( content )
-
Description
Add content to the Errors tab so the user can use it to file feedback.
Parameters
Name Type Description contentstring Information to add.
Details
-
<private> addErrorMarker()
-
Description
Add a marker to the Errors tab so the user can see where different issues happened.
Details
Type Definitions
-
LicenseData
-
Properties
Name Type Attributes Description idstring SPDX id for the license.
urlstring License URL.
contentstring <nullable> Fallback content.
Details
-
FetchResult
-
Properties
Name Type Description fetchedboolean Indicates if a useful result was generated; all right to retry if false.
spdxstring The SPDX id.
contentstring HTML content to be rendered.
Details