/** * @external MenuDefinition */ /* eslint-disable quotes */ import menuTemplate from '!!raw-loader!../includes/templates/Menu.mustache'; import { htmluserlangattributes } from './utils'; /** * @type {MenuDefinition} */ const loggedOut = { id: 'p-personal', class: 'vector-menu', 'list-classes': 'vector-menu-content-list', 'label-id': 'p-personal-label', label: 'Personal tools', 'html-userlangattributes': htmluserlangattributes, 'html-items': `
  • Not logged in
  • Talk
  • Contributions
  • Create account
  • Log in
  • ` }; /** * @type {MenuDefinition} */ const loggedInWithEcho = { id: 'p-personal', class: 'vector-menu', 'list-classes': 'vector-menu-content-list', 'label-id': 'p-personal-label', label: 'Personal tools', 'html-userlangattributes': htmluserlangattributes, 'html-items': `
  • Jdlrobson
  • Alerts (0)
  • Notices (3)
  • Talk
  • Sandbox
  • Preferences
  • Beta
  • Watchlist
  • Contributions
  • Log out
  • ` }; const ULS_LANGUAGE_SELECTOR = '
  • English
  • '; /** * @type {MenuDefinition} */ const defaultMenu = { id: 'p-generic', class: 'vector-menu', 'list-classes': 'vector-menu-content-list', 'label-id': 'p-generic-label', label: 'Menu label', 'html-userlangattributes': htmluserlangattributes, 'html-items': `
  • Item 1
  • Item 2
  • Item 3
  • ` }; /** * @type {MenuDefinition} */ const loggedInWithULS = { id: 'p-personal', class: 'vector-menu', 'list-classes': 'vector-menu-content-list', 'label-id': 'p-personal-label', label: 'Personal tools', 'html-userlangattributes': htmluserlangattributes, 'html-items': `${ULS_LANGUAGE_SELECTOR}
  • Jdlrobson
  • Alerts (0)
  • Notices (3)
  • Talk
  • Sandbox
  • Preferences
  • Beta
  • Watchlist
  • Contributions
  • Log out
  • ` }; /** * @type {Object.} */ const PERSONAL_MENU_TEMPLATE_DATA = { loggedOut, defaultMenu, loggedInWithEcho, loggedInWithULS }; export { PERSONAL_MENU_TEMPLATE_DATA, menuTemplate };