[go: nahoru, domu]

Skip to content

Commit

Permalink
Finish re-org
Browse files Browse the repository at this point in the history
  • Loading branch information
jsakas committed May 19, 2019
1 parent bb62030 commit a6e894a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "error",
"multiline-ternary": "error",
"multiline-ternary": "off",
"new-cap": "error",
"new-parens": "error",
"newline-after-var": "off",
Expand Down Expand Up @@ -203,7 +203,7 @@
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-spaced-func": "error",
"no-sync": "error",
"no-sync": "off",
"no-tabs": "error",
"no-template-curly-in-string": "error",
"no-ternary": "off",
Expand Down
2 changes: 1 addition & 1 deletion entry/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Vue from 'vue';

import Subtractor from 'core/Subtractor';
import EnvelopeGraph from 'core/envelope/EnvelopeGraph';
import initQwertyController from 'core/qwerty';
import MidiController from 'core/midi';
import { loadPresetFile, savePresetFile } from 'core/preset';
Expand All @@ -11,6 +10,7 @@ import { knobToFreq } from 'core/utils/maths';
import presets from 'presets';
import defaultPreset from 'presets/default';

import EnvelopeGraph from 'ui/env-graph';
import initOscilloscope from 'ui/oscilloscope';
import 'ui/fader';
import 'ui/knob';
Expand Down
4 changes: 2 additions & 2 deletions ui/button/Button.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../style/theme';
@import '../style/mixins';
@import 'style/theme';
@import 'style/mixins';

.button {
@include control;
Expand Down
1 change: 1 addition & 0 deletions ui/button/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./Button');
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

class EnvelopeGraph {
import { knobToAttack, knobToDecay, knobToRelease } from 'core/utils/maths';

export default class EnvelopeGraph {
constructor(envelope, canvas) {
this.envelope = envelope;
this.canvas = canvas;
Expand Down Expand Up @@ -65,5 +67,3 @@ class EnvelopeGraph {
this.canvas.setAttribute('height', this.height);
}
}

export default EnvelopeGraph;
1 change: 1 addition & 0 deletions ui/env-graph/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./EnvelopeGraph');

0 comments on commit a6e894a

Please sign in to comment.