-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request from release/v2.0.0
It's here... Release v2.0.0.
- Loading branch information
Showing
23 changed files
with
937 additions
and
87 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
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,12 @@ | ||
[2.0.0] => { | ||
Features => { | ||
[DONE] Custom App Frame. | ||
[DONE] New Tab System. | ||
[DONE] Initial App Loader. | ||
[DONE] Download Progress Bar. | ||
[DELAYED->v3.0.0] New Settings Menu. | ||
} | ||
Fixes => { | ||
[DONE] Fixed Random Browser's Page Link. | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "v1.2.2" | ||
"version": "v2.0.0" | ||
} |
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,54 @@ | ||
/** | ||
* The logger class. | ||
* @since v2.0.0 | ||
* | ||
* Prints messages to `stdout` and `stderr`. | ||
*/ | ||
export default class Logger { | ||
private browserVersion: string; | ||
|
||
/** | ||
* @param browserVersion Random Browser's current version allocated in `app.json` | ||
*/ | ||
constructor(browserVersion: string) { | ||
this.browserVersion = browserVersion; | ||
} | ||
|
||
/** | ||
* Prints a message to the `stdout`. | ||
*/ | ||
logMessage(msg: string): void { | ||
console.log(`[LOG:${this.browserVersion}] => ${msg}`); | ||
} | ||
|
||
/** | ||
* Prints a message to the `stdout` with a label | ||
* saying it should be removed before the app | ||
* gets to production. | ||
*/ | ||
tempLogMessage(msg: string): void { | ||
console.log(`The following log is temporal and should be removed before production.\n[TEMPORAL LOG:${this.browserVersion}] => ${msg}`); | ||
} | ||
|
||
/** | ||
* Prints a warning to the `stderr`. | ||
*/ | ||
logWarning(warn: string): void { | ||
console.warn(`[WARNING!] => ${warn} | ${this.browserVersion}`); | ||
} | ||
|
||
/** | ||
* Prints an `string` or an `Error` to `stderr`. | ||
*/ | ||
logError(err: string | Error, origin: { file: string }): void { | ||
if (typeof err == 'string') { | ||
console.error( | ||
`[ERR!] => ${err} | ${this.browserVersion} [${origin.file}]` | ||
); | ||
} else { | ||
console.error( | ||
`[ERR!] => ${err.name}: ${err.message} | ${this.browserVersion} [${origin.file}]` | ||
); | ||
} | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.