-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Path Added On Events Added Progress Updated Fetch & Request
- Loading branch information
Universal Web
committed
Aug 15, 2023
1 parent
8268569
commit 1b365d2
Showing
15 changed files
with
366 additions
and
139 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
import { progress } from '@universalweb/acid'; | ||
export async function onHead(message) { | ||
console.log('On Head event'); | ||
if (this.totalIncomingHeadSize) { | ||
if (this.currentIncomingHeadSize > 0) { | ||
this.incomingProgress = progress(this.totalIncomingHeadSize, this.currentIncomingHeadSize); | ||
} | ||
console.log('Incoming Progress', this.incomingProgress); | ||
} | ||
if (this.events.head) { | ||
this.events.head(message.head, message.pid); | ||
} | ||
} |
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,13 @@ | ||
import { progress } from '@universalweb/acid'; | ||
export async function onParams(message) { | ||
console.log('On Params event'); | ||
if (this.totalIncomingParamsSize) { | ||
if (this.currentIncomingParamsSize > 0) { | ||
this.incomingProgress = progress(this.totalIncomingParamsSize, this.currentIncomingParamsSize); | ||
} | ||
console.log('Incoming Progress', this.incomingProgress); | ||
} | ||
if (this.events.params) { | ||
this.events.params(message.params, message.pid); | ||
} | ||
} |
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,13 @@ | ||
import { progress } from '@universalweb/acid'; | ||
export async function onPath(message) { | ||
console.log('On Path event'); | ||
if (this.totalIncomingPathSize) { | ||
if (this.currentIncomingPathSize > 0) { | ||
this.incomingProgress = progress(this.totalIncomingPathSize, this.currentIncomingPathSize); | ||
} | ||
console.log('Incoming Progress', this.incomingProgress); | ||
} | ||
if (this.events.path) { | ||
this.events.path(message.path, message.pid); | ||
} | ||
} |
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