Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSqua committed Dec 2, 2024
1 parent 2473fe2 commit b3815a4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
47 changes: 22 additions & 25 deletions src/app/features/public/custom-pages/galabal/galabal.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import {Component, OnInit} from '@angular/core';
import {Component} from '@angular/core';
import {EventService} from "@ingenium/app/core/services/coreAPI/item/derived_services/event.service";
import {EventItemWideI} from "@ingenium/app/shared/models/item/eventI";
import {Observable} from "rxjs";
import {HttpState} from "@ingenium/app/shared/models/httpState";
import {ItemWideLimitedI} from "@ingenium/app/shared/models/item/itemwideI";
import {ProductOutI} from "@ingenium/app/shared/models/product/products";
import {ProductsService} from "@ingenium/app/core/services/coreAPI/products.service";

Expand All @@ -12,7 +9,7 @@ import {ProductsService} from "@ingenium/app/core/services/coreAPI/products.serv
templateUrl: './galabal.component.html',
styleUrls: ['./galabal.component.css']
})
export class GalabalComponent implements OnInit {
export class GalabalComponent {

constructor(private eventService: EventService,
private productService: ProductsService) {
Expand All @@ -21,25 +18,25 @@ export class GalabalComponent implements OnInit {
products$: Observable<ProductOutI[]> = this.productService.getProducts("Ingenium Galabal");
// $galabalItem: Observable<HttpState<ItemWideLimitedI>> = this.eventService.getEvent("Ingenium%20Galabal");

ngOnInit() {
// this.eventService.getEvent("Ingenium%20Galabal").subscribe({
// next: item => {
// if (item.data === undefined || item.data === null) {
// window.location.href = 'https://www.facebook.com/events/1660039801532627?acontext=%7B%22event_action_history%22%3A[]%7D';
// return
// }
// const eventItem = item.data as EventItemWideI;
// const url = eventItem.derived_type.display.follow_through_link
// if (url.startsWith("http")) {
// window.location.href = url;
// } else {
// window.location.href = `https://ingeniumua.be/${url}`;
// }
// },
// error: (_: Error) => {
// window.location.href = 'https://www.facebook.com/events/1660039801532627?acontext=%7B%22event_action_history%22%3A[]%7D';
// }
// })
}
// ngOnInit() {
// // this.eventService.getEvent("Ingenium%20Galabal").subscribe({
// // next: item => {
// // if (item.data === undefined || item.data === null) {
// // window.location.href = 'https://www.facebook.com/events/1660039801532627?acontext=%7B%22event_action_history%22%3A[]%7D';
// // return
// // }
// // const eventItem = item.data as EventItemWideI;
// // const url = eventItem.derived_type.display.follow_through_link
// // if (url.startsWith("http")) {
// // window.location.href = url;
// // } else {
// // window.location.href = `https://ingeniumua.be/${url}`;
// // }
// // },
// // error: (_: Error) => {
// // window.location.href = 'https://www.facebook.com/events/1660039801532627?acontext=%7B%22event_action_history%22%3A[]%7D';
// // }
// // })
// }

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
CardTypeEnum, CardTypeEnumList
} from "@ingenium/app/shared/models/item/cardI";
import {AvailabilityCompositionInI} from "@ingenium/app/shared/models/item/availabilityCompositionI";
import {LinkItemI, LinkItemInI} from "@ingenium/app/shared/models/item/linkI";
import {LinkItemInI} from "@ingenium/app/shared/models/item/linkI";

@Component({
selector: 'app-item-create',
Expand Down
1 change: 0 additions & 1 deletion src/app/shared/models/item/promoI.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {DisplayCompositionI} from "@ingenium/app/shared/models/item/displayCompositionI";
import {ItemI} from "@ingenium/app/shared/models/item/itemI";
import {ShopItemInI} from "@ingenium/app/shared/models/item/shopI";

export enum PromoItemTypeEnum {
vacature = 1
Expand Down

0 comments on commit b3815a4

Please sign in to comment.