-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed extension not scrolling to top when capturing
- Loading branch information
Showing
14 changed files
with
221 additions
and
19 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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
package responses | ||
|
||
type Stats struct { | ||
TotalJobs int `json:"totalJobs"` | ||
Current StatTrack `json:"current"` | ||
Historical StatTrack `json:"historical"` | ||
Total int `json:"total"` | ||
Current Stat `json:"current"` | ||
Historical Stat `json:"historical"` | ||
} | ||
|
||
type StatTrack struct { | ||
type Stat struct { | ||
Applied int `json:"applied"` | ||
Interview int `json:"interview"` | ||
Offer int `json:"offer"` | ||
Rejected int `json:"rejected"` | ||
Other int `json:"other"` | ||
Accepted int `json:"accepted"` | ||
Withdrawn int `json:"withdrawn"` | ||
} |
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
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
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
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
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,47 @@ | ||
export type StatsResponseJson = { | ||
total: number; | ||
current: StatResponseJson; | ||
historical: StatResponseJson; | ||
}; | ||
|
||
export type StatResponseJson = { | ||
applied: number; | ||
interview: number; | ||
offer: number; | ||
rejected: number; | ||
other: number; | ||
accepted: number; | ||
withdrawn: number; | ||
}; | ||
|
||
export default class StatsResponse { | ||
constructor(data: StatsResponseJson) { | ||
this.total = data.total; | ||
this.current = new StatResponse(data.current); | ||
this.historical = new StatResponse(data.historical); | ||
} | ||
|
||
public total: number; | ||
public current: StatResponse; | ||
public historical: StatResponse; | ||
} | ||
|
||
export class StatResponse { | ||
constructor(data: StatResponseJson) { | ||
this.applied = data.applied; | ||
this.interview = data.interview; | ||
this.offer = data.offer; | ||
this.rejected = data.rejected; | ||
this.other = data.other; | ||
this.accepted = data.accepted; | ||
this.withdrawn = data.withdrawn; | ||
} | ||
|
||
public applied: number; | ||
public interview: number; | ||
public offer: number; | ||
public rejected: number; | ||
public other: number; | ||
public accepted: number; | ||
public withdrawn: number; | ||
} |
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
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
Oops, something went wrong.