-
-
Notifications
You must be signed in to change notification settings - Fork 37
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 #617 from SwapnilChand/new-logo
Extension API history and dark mode friendly logo
- Loading branch information
Showing
12 changed files
with
876 additions
and
697 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,57 @@ | ||
[ | ||
{ | ||
"method": "GET", | ||
"name": "https://jsonplaceholder.typicode.com/posts", | ||
"lastUsed": "2024-10-16T16:18:51.817Z" | ||
}, | ||
{ | ||
"method": "GET", | ||
"name": "http://localhost:8000/github-webhook", | ||
"lastUsed": "2024-10-16T12:08:14.848Z" | ||
}, | ||
{ | ||
"method": "PATCH", | ||
"name": "http://localhost:8000/github-webhook", | ||
"lastUsed": "2024-10-16T12:03:42.401Z" | ||
}, | ||
{ | ||
"method": "POST", | ||
"name": "http://localhost:8000/github-webhook", | ||
"lastUsed": "2024-10-16T12:01:18.314Z" | ||
}, | ||
{ | ||
"name": "GET https://jsonplaceholder.typicode.com/posts", | ||
"method": "GET", | ||
"url": "https://jsonplaceholder.typicode.com/posts", | ||
"headers": {}, | ||
"body": "" | ||
}, | ||
{ | ||
"name": "GET https://jsonplaceholder.typicode.com/posts", | ||
"method": "GET", | ||
"url": "https://jsonplaceholder.typicode.com/posts", | ||
"headers": {}, | ||
"body": "" | ||
}, | ||
{ | ||
"name": "GET https://jsonplaceholder.typicode.com/posts", | ||
"method": "GET", | ||
"url": "https://jsonplaceholder.typicode.com/posts", | ||
"headers": {}, | ||
"body": "" | ||
}, | ||
{ | ||
"name": "GET https://jsonplaceholder.typicode.com/posts", | ||
"method": "GET", | ||
"url": "https://jsonplaceholder.typicode.com/posts", | ||
"headers": {}, | ||
"body": "" | ||
}, | ||
{ | ||
"name": "GET https://jsonplaceholder.typicode.com/posts", | ||
"method": "GET", | ||
"url": "https://jsonplaceholder.typicode.com/posts", | ||
"headers": {}, | ||
"body": "" | ||
} | ||
] |
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 @@ | ||
���method�GET�name�*https://jsonplaceholder.typicode.com/posts�lastUsed�2024-10-16T16:18:51.817Z��method�GET�name�$http://localhost:8000/github-webhook�lastUsed�2024-10-16T12:08:14.848Z��method�PATCH�name�$http://localhost:8000/github-webhook�lastUsed�2024-10-16T12:03:42.401Z��method�POST�name�$http://localhost:8000/github-webhook�lastUsed�2024-10-16T12:01:18.314Z��name�.GET https://jsonplaceholder.typicode.com/posts�method�GET�url�*https://jsonplaceholder.typicode.com/posts�headers��body���name�.GET https://jsonplaceholder.typicode.com/posts�method�GET�url�*https://jsonplaceholder.typicode.com/posts�headers��body���name�.GET https://jsonplaceholder.typicode.com/posts�method�GET�url�*https://jsonplaceholder.typicode.com/posts�headers��body���name�.GET https://jsonplaceholder.typicode.com/posts�method�GET�url�*https://jsonplaceholder.typicode.com/posts�headers��body���name�.GET https://jsonplaceholder.typicode.com/posts�method�GET�url�*https://jsonplaceholder.typicode.com/posts�headers��body� |
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,28 @@ | ||
import * as fs from 'fs'; | ||
import * as msgpack from 'msgpack-lite'; | ||
|
||
// Function to read and decode a MessagePack file | ||
const readMessagePackFile = (filePath: string) => { | ||
try { | ||
// Read the packed data from the file | ||
const packedData = fs.readFileSync(filePath); | ||
|
||
// Decode the packed data to a JavaScript object | ||
const decodedData = msgpack.decode(packedData); | ||
|
||
// Convert the object to a human-readable JSON format | ||
const jsonString = JSON.stringify(decodedData, null, 2); | ||
|
||
// Save the JSON string to a file in the same directory | ||
const outputFilePath = './history.json'; | ||
fs.writeFileSync(outputFilePath, jsonString, { encoding: 'utf8' }); | ||
|
||
console.log(`Decoded data saved to ${outputFilePath}`); | ||
} catch (error) { | ||
console.error(`Error reading or decoding the file: ${error.message}`); | ||
} | ||
}; | ||
|
||
// Specify the path to your MessagePack file | ||
const filePath = './history.msgpack'; | ||
readMessagePackFile(filePath); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.