Skip to content

Extract main-nav to separate file/component #11959

@eszkadev

Description

@eszkadev

This is an Easy Hack.
Potential mentors: @eszkadev @Darshan-upadhyay1110

Detailed description and rationale

We have couple of really big files which would be good to shorten (eg. Control.UIManager.ts) and clean from legacy code - jQuery.

Please check .main-nav element. It has some handlers attached and also class toggles in various places.
main-nav code. Would be good to bundle them together in a single place.

Tasks:

  • create separate TS file -> browser/src/control/Control.MenuAndTitleBar.ts
  • put there all related code to that element (.main-nav) converted to TypeScript
  • remove jQuery usage
  • use it's methods in external code (Control.UIManager.ts, Control.Notebookbar.js, Control.Toolbar.js)

Be inspired by other TS files inside browser/src/control/Control.* files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions