Skip to content

Commit

Permalink
Move from CommonJS to ES6
Browse files Browse the repository at this point in the history
This is an automated conversion:

    find src/ -type f -name "*.js" \
        -not -name "*.min.js" -not -name "optimer_regular.js" \
        -exec esnext -I -w modules.commonjs {} \;

Then processed sources have been js-beautified again
(see earlier commit for the command-line used)
  • Loading branch information
tbroyer committed Feb 17, 2016
1 parent 9fb19ed commit 505e23e
Show file tree
Hide file tree
Showing 45 changed files with 109 additions and 109 deletions.
4 changes: 2 additions & 2 deletions src/Core/Commander/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ History.prototype.delete = function(id) {



module.exports = {
History: History
export {
History
};
4 changes: 2 additions & 2 deletions src/Core/Commander/Interfaces/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Event.prototype.xmlToEvents = function() {



module.exports = {
Event: Event
export {
Event
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Interfaces/KeyboardEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Evènement clavier
*/

var Event = require('Event');
import Event from 'Event';

function KeyboardEvent() {
//Constructor
Expand All @@ -15,6 +15,6 @@ function KeyboardEvent() {
KeyboardEvent.prototype = new Event();


module.exports = {
KeyboardEvent: KeyboardEvent
export {
KeyboardEvent
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Interfaces/MouseEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Evènement souris
*/

var Event = require('Event');
import Event from 'Event';

function MouseEvent() {
//Constructor
Expand All @@ -15,6 +15,6 @@ function MouseEvent() {
MouseEvent.prototype = new Event();


module.exports = {
MouseEvent: MouseEvent
export {
MouseEvent
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Interfaces/Times/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: Timeline
*/

var EventsManager = require('EventsManager');
import EventsManager from 'EventsManager';

function Timeline() {
//Constructor
Expand All @@ -26,6 +26,6 @@ Timeline.prototype.update = function() {



module.exports = {
Timeline: Timeline
export {
Timeline
};
4 changes: 2 additions & 2 deletions src/Core/Commander/Interfaces/Times/Timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ Timer.prototype.pause = function() {



module.exports = {
Timer: Timer
export {
Timer
};
4 changes: 2 additions & 2 deletions src/Core/Commander/Interfaces/Times/Trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Trigger.prototype.executeChildrenCommand = function() {



module.exports = {
Trigger: Trigger
export {
Trigger
};
4 changes: 2 additions & 2 deletions src/Core/Commander/Memento.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Memento.prototype.memento = function(object) {



module.exports = {
Memento: Memento
export {
Memento
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverBati3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverBati3D
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverBati3D() {
//Constructor
Expand All @@ -14,6 +14,6 @@ function IoDriverBati3D() {
IoDriverBati3D.prototype = new IoDriver();


module.exports = {
IoDriverBati3D: IoDriverBati3D
export {
IoDriverBati3D
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverCameraStereoPolis.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverCameraStereoPolis
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverCameraStereoPolis() {
//Constructor
Expand All @@ -14,6 +14,6 @@ function IoDriverCameraStereoPolis() {
IoDriverCameraStereoPolis.prototype = new IoDriver();


module.exports = {
IoDriverCameraStereoPolis: IoDriverCameraStereoPolis
export {
IoDriverCameraStereoPolis
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverFloatImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverFloatImage
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverFloatImage() {
//Constructor
Expand All @@ -14,6 +14,6 @@ function IoDriverFloatImage() {
IoDriverFloatImage.prototype = new IoDriver();


module.exports = {
IoDriverFloatImage: IoDriverFloatImage
export {
IoDriverFloatImage
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverLydarCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverLydarCloud
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverLydarCloud() {
//Constructor
Expand All @@ -14,6 +14,6 @@ function IoDriverLydarCloud() {
IoDriverLydarCloud.prototype = new IoDriver();


module.exports = {
IoDriverLydarCloud: IoDriverLydarCloud
export {
IoDriverLydarCloud
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverMicmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverMicmac
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverMicmac() {
//Constructor
Expand All @@ -22,6 +22,6 @@ IoDriverMicmac.prototype.loadOrientation = function() {



module.exports = {
IoDriverMicmac: IoDriverMicmac
export {
IoDriverMicmac
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverPly.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverPly
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverPly() {
//Constructor
Expand All @@ -14,6 +14,6 @@ function IoDriverPly() {
IoDriverPly.prototype = new IoDriver();


module.exports = {
IoDriverPly: IoDriverPly
export {
IoDriverPly
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/IoDriverglTF.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Class: IoDriverglTF
*/

var IoDriver = require('IoDriver');
import IoDriver from 'IoDriver';

function IoDriverglTF() {
//Constructor
Expand All @@ -14,6 +14,6 @@ function IoDriverglTF() {
IoDriverglTF.prototype = new IoDriver();


module.exports = {
IoDriverglTF: IoDriverglTF
export {
IoDriverglTF
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/ItineraryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Service de calcul d'itinéraire
*/

var Service = require('Service');
import Service from 'Service';

function ItineraryService() {
//Constructor
Expand All @@ -15,6 +15,6 @@ function ItineraryService() {
ItineraryService.prototype = new Service();


module.exports = {
ItineraryService: ItineraryService
export {
ItineraryService
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/NodeMeshProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Factory/Provider NodeMesh
*/

var NodeProvider = require('NodeProvider');
import NodeProvider from 'NodeProvider';

function NodeMeshProvider() {
//Constructor
Expand All @@ -15,6 +15,6 @@ function NodeMeshProvider() {
NodeMeshProvider.prototype = new NodeProvider();


module.exports = {
NodeMeshProvider: NodeMeshProvider
export {
NodeMeshProvider
};
6 changes: 3 additions & 3 deletions src/Core/Commander/Providers/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Service distant ou locaux.
*/

var Provider = require('Provider');
import Provider from 'Provider';

function Service() {
//Constructor
Expand All @@ -15,6 +15,6 @@ function Service() {
Service.prototype = new Provider();


module.exports = {
Service: Service
export {
Service
};
4 changes: 2 additions & 2 deletions src/Core/Commander/TemplatesCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ TemplatesCommand.prototype.specifiesCommand = function() {



module.exports = {
TemplatesCommand: TemplatesCommand
export {
TemplatesCommand
};
4 changes: 2 additions & 2 deletions src/Core/Commander/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ function Worker() {



module.exports = {
Worker: Worker
export {
Worker
};
4 changes: 2 additions & 2 deletions src/Core/Math/Box.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ function Box() {



module.exports = {
Box: Box
export {
Box
};
4 changes: 2 additions & 2 deletions src/Core/Math/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ function Rectangle() {



module.exports = {
Rectangle: Rectangle
export {
Rectangle
};
4 changes: 2 additions & 2 deletions src/Core/System/MessageError.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ function MessageError() {



module.exports = {
MessageError: MessageError
export {
MessageError
};
4 changes: 2 additions & 2 deletions src/Core/Web/Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ function Proxy() {



module.exports = {
Proxy: Proxy
export {
Proxy
};
4 changes: 2 additions & 2 deletions src/Core/Web/Url.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ function Url() {



module.exports = {
Url: Url
export {
Url
};
4 changes: 2 additions & 2 deletions src/Core/Web/XMLHttpRequester.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ function XMLHttpRequester() {



module.exports = {
XMLHttpRequester: XMLHttpRequester
export {
XMLHttpRequester
};
6 changes: 3 additions & 3 deletions src/Globe/CollisionGlobe.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

var NodeProcess = require('NodeProcess');
import NodeProcess from 'NodeProcess';

function CollisionGlobe() {
//Constructor
Expand All @@ -25,6 +25,6 @@ CollisionGlobe.prototype.update = function(camera) {



module.exports = {
CollisionGlobe: CollisionGlobe
export {
CollisionGlobe
};
6 changes: 3 additions & 3 deletions src/Globe/HorizonCulling.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Determine les NodeMeshs cachés par l'horizon du Globe.
*/

var NodeProcess = require('NodeProcess');
import NodeProcess from 'NodeProcess';

function HorizonCulling() {
//Constructor
Expand All @@ -15,6 +15,6 @@ function HorizonCulling() {
HorizonCulling.prototype = new NodeProcess();


module.exports = {
HorizonCulling: HorizonCulling
export {
HorizonCulling
};
Loading

0 comments on commit 505e23e

Please sign in to comment.