Modified file structure.

Modified the file structure to have the `index.html` at the root
of the repository. Needed for Github Pages.
This commit is contained in:
Krafpy
2021-08-15 21:31:25 +02:00
parent 111591724c
commit 824af087c1
56 changed files with 8 additions and 8 deletions

View File

@@ -6,9 +6,9 @@ export class FlybySequenceGenerator {
this.system = system;
this.config = config;
this.totalFeasible = 0;
this._workerPool = new WorkerPool("dedicated-workers/sequence-evaluator.js", this.config);
this._workerPool = new WorkerPool("dist/dedicated-workers/sequence-evaluator.js", this.config);
this._workerPool.initialize({ system: this.system.data, config: this.config });
this._sequenceWorker = new ComputeWorker("dedicated-workers/sequence-generator.js");
this._sequenceWorker = new ComputeWorker("dist/dedicated-workers/sequence-generator.js");
this._sequenceWorker.initialize(this.config);
}
cancel() {

View File

@@ -14,7 +14,7 @@ export class TrajectorySolver {
this._chunkIndices = [];
this.bestTrajectorySteps = [];
this.bestDeltaV = 0;
this._workerPool = new WorkerPool("dedicated-workers/trajectory-optimizer.js", this.config);
this._workerPool = new WorkerPool("dist/dedicated-workers/trajectory-optimizer.js", this.config);
this._workerPool.initialize({ system: this.system.data, config: this.config });
}
_initPlot() {

View File

Before

Width:  |  Height:  |  Size: 97 B

After

Width:  |  Height:  |  Size: 97 B

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -407,6 +407,6 @@
<script src="includes/LineMaterial.js"></script>
<script src="includes/Line2.js"></script>
<script src="includes/OrbitControls.js"></script>
<script src="main/main.js" type="module"></script>
<script src="dist/main/main.js" type="module"></script>
</body>
</html>

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -11,10 +11,10 @@ export class FlybySequenceGenerator {
public totalFeasible: number = 0;
constructor(public readonly system: SolarSystem, public readonly config: Config) {
this._workerPool = new WorkerPool("dedicated-workers/sequence-evaluator.js", this.config);
this._workerPool = new WorkerPool("dist/dedicated-workers/sequence-evaluator.js", this.config);
this._workerPool.initialize({system: this.system.data, config: this.config});
this._sequenceWorker = new ComputeWorker("dedicated-workers/sequence-generator.js");
this._sequenceWorker = new ComputeWorker("dist/dedicated-workers/sequence-generator.js");
this._sequenceWorker.initialize(this.config);
}

View File

@@ -20,7 +20,7 @@ export class TrajectorySolver {
public bestDeltaV: number = 0;
constructor(public readonly system: SolarSystem, public readonly config: Config, public readonly plot: EvolutionPlot) {
this._workerPool = new WorkerPool("dedicated-workers/trajectory-optimizer.js", this.config);
this._workerPool = new WorkerPool("dist/dedicated-workers/trajectory-optimizer.js", this.config);
this._workerPool.initialize({system: this.system.data, config: this.config});
}

View File

@@ -3,7 +3,7 @@
"target": "ES2019",
"module": "ES6",
"lib": ["ES2019", "DOM", "DOM.Iterable", "webworker"],
"outDir": "../public",
"outDir": "../dist",
"rootDir": ".",
"removeComments": true,
"strict": true,