WS: improve ES6 import/export syntax
This commit is contained in:
parent
5929551b3b
commit
842b989e19
|
@ -16,7 +16,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
import { ArdourClient } from '/shared/ardour.js';
|
||||
import ArdourClient from '/shared/ardour.js';
|
||||
|
||||
import { Switch, DiscreteSlider, ContinuousSlider, LogarithmicSlider,
|
||||
StripPanSlider, StripGainSlider, StripMeter } from './widget.js';
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
import { ArdourClient } from '/shared/ardour.js';
|
||||
import ArdourClient from '/shared/ardour.js';
|
||||
|
||||
(() => {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
import { ArdourClient } from '/shared/ardour.js';
|
||||
import ArdourClient from '/shared/ardour.js';
|
||||
|
||||
(() => {
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
import { MessageChannel } from './base/channel.js';
|
||||
import { StateNode } from './base/protocol.js';
|
||||
import { Mixer } from './components/mixer.js';
|
||||
import { Transport } from './components/transport.js';
|
||||
import MessageChannel from './base/channel.js';
|
||||
import Mixer from './components/mixer.js';
|
||||
import Transport from './components/transport.js';
|
||||
|
||||
export class ArdourClient {
|
||||
export default class ArdourClient {
|
||||
|
||||
constructor (handlers, options) {
|
||||
this._options = options || {};
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import { Message } from './protocol.js';
|
||||
|
||||
export class MessageChannel {
|
||||
export default class MessageChannel {
|
||||
|
||||
constructor (host) {
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/URL/host
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
import { Message } from './protocol.js';
|
||||
import { Observable } from './observable.js';
|
||||
import Observable from './observable.js';
|
||||
|
||||
export class Component extends Observable {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
export class Observable {
|
||||
export default class Observable {
|
||||
|
||||
constructor () {
|
||||
this._observers = {};
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
|
||||
import { Component } from '../base/component.js';
|
||||
import { StateNode } from '../base/protocol.js';
|
||||
import { Strip } from './strip.js';
|
||||
import Strip from './strip.js';
|
||||
|
||||
export class Mixer extends Component {
|
||||
export default class Mixer extends Component {
|
||||
|
||||
constructor (channel) {
|
||||
super(channel);
|
||||
|
|
|
@ -39,7 +39,7 @@ class ValueType {
|
|||
|
||||
}
|
||||
|
||||
export class Parameter extends AddressableComponent {
|
||||
export default class Parameter extends AddressableComponent {
|
||||
|
||||
constructor (parent, addr, desc) {
|
||||
super(parent, addr);
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
*/
|
||||
|
||||
import { AddressableComponent } from '../base/component.js';
|
||||
import { Parameter } from './parameter.js';
|
||||
import { StateNode } from '../base/protocol.js';
|
||||
import Parameter from './parameter.js';
|
||||
|
||||
export class Plugin extends AddressableComponent {
|
||||
export default class Plugin extends AddressableComponent {
|
||||
|
||||
constructor (parent, addr, desc) {
|
||||
super(parent, addr);
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
*/
|
||||
|
||||
import { AddressableComponent } from '../base/component.js';
|
||||
import { Plugin } from './plugin.js';
|
||||
import { StateNode } from '../base/protocol.js';
|
||||
import Plugin from './plugin.js';
|
||||
|
||||
const NodeToProperty = Object.freeze({
|
||||
[StateNode.STRIP_METER] : 'meter',
|
||||
|
@ -27,7 +27,7 @@ const NodeToProperty = Object.freeze({
|
|||
[StateNode.STRIP_MUTE] : 'mute'
|
||||
});
|
||||
|
||||
export class Strip extends AddressableComponent {
|
||||
export default class Strip extends AddressableComponent {
|
||||
|
||||
constructor (parent, addr, desc) {
|
||||
super(parent, addr);
|
||||
|
|
|
@ -26,7 +26,7 @@ const NodeToProperty = Object.freeze({
|
|||
[StateNode.TRANSPORT_RECORD] : 'record'
|
||||
});
|
||||
|
||||
export class Transport extends Component {
|
||||
export default class Transport extends Component {
|
||||
|
||||
constructor (channel) {
|
||||
super(channel);
|
||||
|
|
Loading…
Reference in New Issue
Block a user