Skip to content

Commit 49eef31

Browse files
committed
Remove plotly
Maybe re-evaluate when plotly/plotly.js#4407 is resolved.
1 parent a28b0ce commit 49eef31

File tree

7 files changed

+247
-4269
lines changed

7 files changed

+247
-4269
lines changed

client/package-lock.json

Lines changed: 247 additions & 4167 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@
3939
"@ionaru/romanize": "^2.0.0",
4040
"@ng-bootstrap/ng-bootstrap": "^6.0.2",
4141
"@sentry/browser": "^5.15.4",
42-
"angular-plotly.js": "^2.0.0",
4342
"bootstrap": "^4.4.1",
4443
"bootswatch": "^4.4.1",
4544
"countdown": "^2.6.0",
4645
"jwt-decode": "^2.2.0",
47-
"plotly.js": "^1.52.3",
48-
"plotly.js-dist": "^1.52.3",
4946
"rxjs": "^6.5.4",
5047
"socket.io-client": "^2.3.0",
5148
"tslib": "^1.11.1",

client/src/app/app.module.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import { BrowserModule } from '@angular/platform-browser';
55
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
66
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
77
import { NgbModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
8-
import { PlotlyModule } from 'angular-plotly.js';
9-
// @ts-ignore
10-
import * as PlotlyJS from 'plotly.js-dist';
118

129
import { environment } from '../environments/environment';
1310
import { AppReadyEventService } from './app-ready-event.service';
@@ -66,9 +63,6 @@ import { SentryErrorHandler } from './sentry.error-handler';
6663
import { ESIRequestCache } from './shared/esi-request-cache';
6764
import { SocketService } from './socket/socket.service';
6865

69-
PlotlyJS.setPlotConfig({logging: 0});
70-
PlotlyModule.plotlyjs = PlotlyJS;
71-
7266
const errorHandlers = [];
7367
if (environment.production) {
7468
errorHandlers.push({provide: ErrorHandler, useClass: SentryErrorHandler});
@@ -115,7 +109,6 @@ if (environment.production) {
115109
NgbModule,
116110
NgbTooltipModule,
117111
FontAwesomeModule,
118-
PlotlyModule,
119112
],
120113
providers: [
121114
...errorHandlers,

client/src/app/pages/blueprint-calculator/blueprint-calculator.component.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,6 @@ <h2>Shopping list</h2>
120120
</ul>
121121
<p>{{shoppingVolume | number : '1.0-0'}}m³</p>
122122
</div>
123-
124-
<!-- <hr>-->
125-
126-
<!-- <div id="sankey-diagram">-->
127-
<!-- <plotly-plot [data]="plotlyData" [layout]="plotlyLayout" [config]="{-->
128-
<!-- setBackground: setPlotlyBackground,-->
129-
<!-- displayModeBar: false,-->
130-
<!-- responsive: true-->
131-
<!-- }"></plotly-plot>-->
132-
<!-- </div>-->
133123
</ng-container>
134124
</ng-container>
135125
</ng-container>

client/src/app/pages/blueprint-calculator/blueprint-calculator.component.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
55
import { ActivatedRoute, Router } from '@angular/router';
66
import { ICharacterBlueprintsDataUnit, IUniverseNamesDataUnit, IUniverseTypeData } from '@ionaru/eve-utils';
77
import { map } from 'rxjs/operators';
8-
// import { Observable, of } from 'rxjs';
9-
// import { catchError, debounceTime, distinctUntilChanged, map, switchMap } from 'rxjs/operators';
108

119
import { Calc } from '../../../shared/calc.helper';
1210
import { BlueprintsService } from '../../data-services/blueprints.service';
1311
import { IManufacturingData, IndustryService } from '../../data-services/industry.service';
1412
import { MarketService } from '../../data-services/market.service';
15-
// import { NamesService } from '../../data-services/names.service';
1613
import { TypesService } from '../../data-services/types.service';
1714
import { CharacterService } from '../../models/character/character.service';
18-
// import { SankeyDiagram } from './sankey-diagram';
1915
import { SearchService, SearchType } from '../../data-services/search.service';
2016

2117
class ShoppingList2 {
@@ -64,9 +60,6 @@ interface IInput {
6460
})
6561
export class BlueprintCalculatorComponent implements OnInit {
6662

67-
public plotlyData: any;
68-
public plotlyLayout: any;
69-
7063
public calculating?: boolean;
7164

7265
public currentMaterial?: string;
@@ -150,8 +143,6 @@ export class BlueprintCalculatorComponent implements OnInit {
150143
return value.name ? value.name : value;
151144
}
152145

153-
public setPlotlyBackground = () => 'transparent';
154-
155146
public loggedIn = !!CharacterService.selectedCharacter;
156147

157148
public async adjustMaterialsNeededByBlueprintMaterialEfficiency(manufacturingData: IManufacturingData) {
@@ -462,9 +453,6 @@ export class BlueprintCalculatorComponent implements OnInit {
462453
//
463454
// console.log((totalPrice < productPrice ? '' : 'NOT ') + 'WORTH TO PRODUCE');
464455
// console.log(Calc.profitPercentage(totalPrice, productPrice) + ' % profit');
465-
//
466-
// this.plotlyLayout = diagram.layout;
467-
// this.plotlyData = [diagram.data];
468456
// }
469457

470458
this.calculating = false;

client/src/app/pages/blueprint-calculator/sankey-diagram.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

client/tslint.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"rxjs",
1313
"@angular",
1414
"core-js",
15-
"plotly.js",
1615
"zone.js"
1716
]
1817
}

0 commit comments

Comments
 (0)