Hardcode to double quotes, indent to 2 spaces (#5824)

This commit is contained in:
Henry Zhu
2017-06-05 23:14:37 -04:00
committed by Brian Ng
parent b0524427c1
commit 123dce5fcd
46 changed files with 276 additions and 322 deletions

View File

@@ -1,49 +1,49 @@
'use strict';
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
value: true
});
exports.default = undefined;
var _net = require('net');
var _net = require("net");
var _net2 = babelHelpers.interopRequireDefault(_net);
var _events = require('events');
var _events = require("events");
var _binarySerializer = require('./helpers/binary-serializer');
var _binarySerializer = require("./helpers/binary-serializer");
var _binarySerializer2 = babelHelpers.interopRequireDefault(_binarySerializer);
// import ...
var Connection = function (_EventEmitter) {
babelHelpers.inherits(Connection, _EventEmitter);
babelHelpers.inherits(Connection, _EventEmitter);
function Connection(endpoint, joinKey, joinData, roomId) {
babelHelpers.classCallCheck(this, Connection);
function Connection(endpoint, joinKey, joinData, roomId) {
babelHelpers.classCallCheck(this, Connection);
var _this = babelHelpers.possibleConstructorReturn(this, (Connection.__proto__ || Object.getPrototypeOf(Connection)).call(this));
var _this = babelHelpers.possibleConstructorReturn(this, (Connection.__proto__ || Object.getPrototypeOf(Connection)).call(this));
_this.isConnected = false;
_this.roomId = roomId;
_this.isConnected = false;
_this.roomId = roomId;
// ...
return _this;
// ...
return _this;
}
babelHelpers.createClass(Connection, [{
key: "send",
value: function send(message) {
this.sock.write(_binarySerializer2.default.serializeMessage(message));
}
babelHelpers.createClass(Connection, [{
key: 'send',
value: function send(message) {
this.sock.write(_binarySerializer2.default.serializeMessage(message));
}
}, {
key: 'disconnect',
value: function disconnect() {
this.sock.close();
}
}]);
return Connection;
}, {
key: "disconnect",
value: function disconnect() {
this.sock.close();
}
}]);
return Connection;
}(_events.EventEmitter);
exports.default = Connection;
exports.default = Connection;

View File

@@ -1,11 +1,11 @@
'use strict';
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _BaseFoo2 = require('./BaseFoo');
var _BaseFoo2 = require("./BaseFoo");
var _BaseFoo3 = babelHelpers.interopRequireDefault(_BaseFoo2);
@@ -18,13 +18,13 @@ var SubFoo = function (_BaseFoo) {
}
babelHelpers.createClass(SubFoo, null, [{
key: 'talk',
key: "talk",
value: function talk() {
babelHelpers.get(SubFoo.__proto__ || Object.getPrototypeOf(SubFoo), 'talk', this).call(this);
babelHelpers.get(SubFoo.__proto__ || Object.getPrototypeOf(SubFoo), "talk", this).call(this);
console.log('SubFoo.talk');
}
}]);
return SubFoo;
}(_BaseFoo3.default);
exports.default = SubFoo;
exports.default = SubFoo;

View File

@@ -1,11 +1,11 @@
'use strict';
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _react = require('react');
var _react = require("react");
var _react2 = babelHelpers.interopRequireDefault(_react);
@@ -18,15 +18,15 @@ var RandomComponent = function (_Component) {
}
babelHelpers.createClass(RandomComponent, [{
key: 'render',
key: "render",
value: function render() {
return _react2.default.createElement(
'div',
{ className: 'sui-RandomComponent' },
"div",
{ className: "sui-RandomComponent" },
_react2.default.createElement(
'h2',
"h2",
null,
'Hi there!'
"Hi there!"
)
);
}
@@ -34,4 +34,4 @@ var RandomComponent = function (_Component) {
return RandomComponent;
}(_react.Component);
exports.default = RandomComponent;
exports.default = RandomComponent;

View File

@@ -5,10 +5,10 @@ var C = function () {
}
babelHelpers.createClass(C, [{
key: 'm',
key: "m",
value: function m(x: number): string {
return 'a';
}
}]);
return C;
}();
}();