MCPcopy
hub / github.com/liriliri/eruda / constructor

Method constructor

src/Resources/Storage.js:14–41  ·  view source on GitHub ↗
($container, devtools, resources, type)

Source from the content-addressed store, hash-verified

12
13export default class Storage {
14 constructor($container, devtools, resources, type) {
15 this._type = type
16 this._$container = $container
17 this._devtools = devtools
18 this._resources = resources
19 this._selectedItem = null
20 this._storeData = []
21
22 this._initTpl()
23 this._dataGrid = new LunaDataGrid(this._$dataGrid.get(0), {
24 columns: [
25 {
26 id: 'key',
27 title: 'Key',
28 weight: 30,
29 },
30 {
31 id: 'value',
32 title: 'Value',
33 weight: 90,
34 },
35 ],
36 minHeight: 60,
37 maxHeight: 223,
38 })
39
40 this._bindEvent()
41 }
42 destroy() {
43 emitter.off(emitter.SCALE, this._updateGridHeight)
44 }

Callers

nothing calls this directly

Calls 3

_initTplMethod · 0.95
_bindEventMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected