Skip to content

Commit

Permalink
Replaced axios in api service.
Browse files Browse the repository at this point in the history
  • Loading branch information
RillingDev committed Oct 31, 2022
1 parent 8688030 commit 8f7af67
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 161 deletions.
64 changes: 17 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"test": "vue-cli-service test:unit"
},
"dependencies": {
"axios": "^0.27.2",
"base64-js": "^1.5.1",
"bootstrap": "^4.6.1",
"bootstrap-vue": "^2.21.2",
Expand Down
27 changes: 0 additions & 27 deletions src/core/http/HttpService.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/core/inversify.modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { DeckExportService } from "./deck/DeckExportService";
import { DeckService } from "./deck/DeckService";
import { SortingService } from "./card/SortingService";
import { FilterService } from "./card/FilterService";
import { HttpService } from "./http/HttpService";
import { DeckRandomizationService } from "./deck/DeckRandomizationService";
import { DeckUriEncodingService } from "./deck/DeckUriEncodingService";
import { DeckFileService } from "./deck/DeckFileService";
Expand All @@ -20,7 +19,6 @@ import { EncodingService } from "./util/EncodingService";
*/
export const baseModule = new ContainerModule((bind: interfaces.Bind) => {
bind<EncodingService>(TYPES.EncodingService).to(EncodingService);
bind<HttpService>(TYPES.HttpService).to(HttpService);

bind<CardService>(TYPES.CardService).to(CardService);
bind<CardPredicateService>(TYPES.CardPredicateService).to(
Expand Down
1 change: 0 additions & 1 deletion src/core/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export { CardTypeCategory } from "./card/type/CardTypeCategory";
export type { Vendor } from "./price/Vendor";
export { DefaultVendor, DEFAULT_VENDOR_ARR } from "./price/Vendor";

export { HttpService } from "./http/HttpService";
export { CardDatabase } from "./card/CardDatabase";
export { FindCardBy } from "./card/CardDatabase";
export { CardService } from "./card/CardService";
Expand Down
1 change: 0 additions & 1 deletion src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export const TYPES = {
EnvironmentConfig: Symbol.for("EnvironmentConfig"),

EncodingService: Symbol.for("EncodingService"),
HttpService: Symbol.for("HttpService"),

CardDatabase: Symbol.for("CardDatabase"),
CardService: Symbol.for("CardService"),
Expand Down

0 comments on commit 8f7af67

Please sign in to comment.