1import { ThemeEditorEventHandlerMixin } from 'util.editor-events' 2 3export class ThemeElement extends HTMLElement { 4 get sectionId() { 5 this._sectionId = this._sectionId || this.getAttribute('section-id') 6 7 if (!this._sectionId) { 8 throw new Error(`The section-id attribute must be specified for ${this.tagName}`) 9 } 10 11 return this._sectionId 12 } 13 14 get locales() { 15 this._locales = 16 this._locales || JSON.parse(this.querySelector('script[type="application/json"][data-locales]').textContent) 17 18 return this._locales 19 } 20} 21 22export class HTMLThemeElement extends ThemeEditorEventHandlerMixin(ThemeElement) { }
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.