MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/editor/level/LevelSearchView.js:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13module.exports = (LevelSearchView = (function () {
14 LevelSearchView = class LevelSearchView extends SearchView {
15 static initClass () {
16 this.prototype.id = 'editor-level-home-view'
17 this.prototype.modelLabel = 'Level'
18 this.prototype.model = require('models/Level')
19 this.prototype.modelURL = '/db/level'
20 this.prototype.tableTemplate = require('app/templates/editor/level/table')
21 this.prototype.projection = ['slug', 'name', 'description', 'version', 'watchers', 'creator']
22 this.prototype.page = 'level'
23 this.prototype.archived = utils.isOzaria ? false : undefined
24 }
25
26 getRenderData () {
27 const context = super.getRenderData()

Callers 1

LevelSearchView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected