-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix imports; remove .vscode and ignore it
- Loading branch information
Showing
11 changed files
with
142 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ yarn-error.log | |
|
||
# IDEs and editors | ||
.idea/ | ||
.vscode/ | ||
.project | ||
.classpath | ||
.c9/ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 10 additions & 21 deletions
31
frontend/projects/admin/src/app/event/event-dashboard/event-dashboard.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
frontend/projects/admin/src/app/event/show-selected-categories.pipe.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
frontend/projects/admin/src/app/event/ui-category-builder.pipe.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
frontend/projects/admin/src/app/model/ticket-category.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
export type TicketAccessType = 'INHERIT' | 'IN_PERSON' | 'ONLINE'; | ||
|
||
export interface TicketTokenStatus { | ||
accessCodeId: number | null; | ||
code: string; | ||
id: number; | ||
priceInCents: number; | ||
recipientEmail: string | null; | ||
recipientName: string | null; | ||
sentTimestamp: string | null; | ||
status: string; | ||
ticketCategoryId: number; | ||
} | ||
|
||
export interface TicketCategory { | ||
accessRestricted: boolean; | ||
availableTickets: number | null; | ||
bounded: boolean; | ||
checkedInTickets: number; | ||
containingOrphans: boolean; | ||
containingStuckTickets: boolean; | ||
description: { [key: string]: string }; | ||
displayTaxInformation: boolean; | ||
expired: boolean; | ||
formattedDiscountedPrice: string; | ||
formattedExpiration: { [key: string]: string }; | ||
formattedFinalPrice: string; | ||
formattedInception: { [key: string]: string }; | ||
free: boolean; | ||
hasDiscount: boolean; | ||
id: number; | ||
maximumSaleableTickets: number; | ||
maxTickets: number; | ||
name: string; | ||
notSoldTickets: number; | ||
pendingTickets: number; | ||
saleableAndLimitNotReached: boolean; | ||
saleInFuture: boolean; | ||
soldOutOrLimitReached: boolean; | ||
soldTickets: number; | ||
ticketAccessType: TicketAccessType; | ||
tokenStatus: TicketTokenStatus[]; | ||
} | ||
|
||
export class UiTicketCategory implements TicketCategory { | ||
accessRestricted: boolean; | ||
availableTickets: number | null; | ||
bounded: boolean; | ||
checkedInTickets: number; | ||
containingOrphans: boolean; | ||
containingStuckTickets: boolean; | ||
description: { [key: string]: string }; | ||
displayTaxInformation: boolean; | ||
displayWarning: boolean; | ||
expired: boolean; | ||
formattedDiscountedPrice: string; | ||
formattedExpiration: { [key: string]: string }; | ||
formattedFinalPrice: string; | ||
formattedInception: { [key: string]: string }; | ||
free: boolean; | ||
hasDiscount: boolean; | ||
id: number; | ||
maximumSaleableTickets: number; | ||
maxTickets: number; | ||
name: string; | ||
notSoldTickets: number; | ||
pendingTickets: number; | ||
saleableAndLimitNotReached: boolean; | ||
saleInFuture: boolean; | ||
soldOutOrLimitReached: boolean; | ||
soldTickets: number; | ||
ticketAccessType: TicketAccessType; | ||
tokenViewExpanded: boolean; | ||
attendeesList: { groupId: number; groupName: string } | null; | ||
tokenStatus: TicketTokenStatus[]; | ||
|
||
constructor(ticketCategory: TicketCategory) { | ||
this.accessRestricted = ticketCategory.accessRestricted; | ||
this.availableTickets = ticketCategory.availableTickets; | ||
this.bounded = ticketCategory.bounded; | ||
this.checkedInTickets = ticketCategory.checkedInTickets; | ||
this.containingOrphans = ticketCategory.containingOrphans; | ||
this.containingStuckTickets = ticketCategory.containingStuckTickets; | ||
this.description = ticketCategory.description; | ||
this.displayTaxInformation = ticketCategory.displayTaxInformation; | ||
this.displayWarning = | ||
ticketCategory.containingStuckTickets || ticketCategory.containingOrphans; | ||
this.expired = ticketCategory.expired; | ||
this.formattedDiscountedPrice = ticketCategory.formattedDiscountedPrice; | ||
this.formattedExpiration = ticketCategory.formattedExpiration; | ||
this.formattedFinalPrice = ticketCategory.formattedFinalPrice; | ||
this.formattedInception = ticketCategory.formattedInception; | ||
this.free = ticketCategory.free; | ||
this.hasDiscount = ticketCategory.hasDiscount; | ||
this.id = ticketCategory.id; | ||
this.maximumSaleableTickets = ticketCategory.maximumSaleableTickets; | ||
this.maxTickets = ticketCategory.maxTickets; | ||
this.name = ticketCategory.name; | ||
this.saleableAndLimitNotReached = ticketCategory.saleableAndLimitNotReached; | ||
this.saleInFuture = ticketCategory.saleInFuture; | ||
this.soldOutOrLimitReached = ticketCategory.soldOutOrLimitReached; | ||
this.soldTickets = ticketCategory.soldTickets; | ||
this.ticketAccessType = ticketCategory.ticketAccessType; | ||
this.pendingTickets = ticketCategory.pendingTickets; | ||
this.notSoldTickets = ticketCategory.notSoldTickets; | ||
this.tokenStatus = ticketCategory.tokenStatus; | ||
this.tokenViewExpanded = false; | ||
this.attendeesList = null; | ||
} | ||
} | ||
|
||
export interface TicketCategoryFilter { | ||
active: boolean; | ||
expired: boolean; | ||
search: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters