Adjust code to airbnb style guide, including eslint rules and prettier configuration for code base
This commit is contained in:
parent
1b55cabf63
commit
281acd6ad8
23 changed files with 919 additions and 2225 deletions
19
plejd/Scene.js
Normal file
19
plejd/Scene.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const SceneStep = require('./SceneStep');
|
||||
|
||||
class Scene {
|
||||
constructor(idx, scene, steps) {
|
||||
this.id = idx;
|
||||
this.title = scene.title;
|
||||
this.sceneId = scene.sceneId;
|
||||
|
||||
const sceneSteps = steps.filter((x) => x.sceneId === scene.sceneId);
|
||||
this.steps = [];
|
||||
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const step of sceneSteps) {
|
||||
this.steps.push(new SceneStep(step));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Scene;
|
||||
Loading…
Add table
Add a link
Reference in a new issue