PageSourceSearch

https://musicbox.fun/js/components/left-sidebar.js

js musicbox.fun collected 2026-09-25 21:21:17 UTC 532 bytes, 18 lines download raw bytes

1import { MBComponent } from './music-box-component.js';
2import { musicBoxStore } from '../music-box-store.js';
3import classNames from '../vendor/classnames.js';
4
5export class LeftSidebar extends MBComponent {
6  constructor() {
7    super({
8      renderTrigger: 'appState.offCanvasSidebarFocused',
9      element: document.querySelector('#left-sidebar')
10    });
11  }
12
13  render() {
14    this.element.className = classNames('left-sidebar', {
15      'on-canvas': musicBoxStore.state.appState.offCanvasSidebarFocused === 'left'
16    });
17  }
18}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.