-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify content to match new schema (#57)
* updated content to comply with new schema Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * added new agents Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * addded examples Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * slightly modified styles, added default paging of 100 items Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * added tooltips, modified layout and styling, added commit history Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * added commit history Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * temp file to get Jekyll going... Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> * No longer needed Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi> --------- Signed-off-by: Samuel Rinnetmäki <samuel@iki.fi>
- Loading branch information
Showing
71 changed files
with
722 additions
and
724 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,6 +1,20 @@ | ||
import { readdirSync, readFileSync, writeFileSync } from 'fs'; | ||
|
||
// url for the folder containing the wallet files in the GitHub repo | ||
const commitHistoryBase = 'https://github.com/openwallet-foundation/digital-wallet-and-agent-overviews-sig/commits/main/wallets/' | ||
|
||
// function to merge all the individual wallet files into a single file | ||
const files = readdirSync('../wallets'); | ||
const wallets = files.map(file => JSON.parse(readFileSync(`../wallets/${file}`))); | ||
// const wallets = files.map(file => JSON.parse(readFileSync(`../wallets/${file}`))); | ||
const wallets = [] | ||
for (const file of files) { | ||
try { | ||
const json = JSON.parse(readFileSync(`../wallets/${file}`)) | ||
json.commitHistory = commitHistoryBase + file | ||
wallets.push(json) | ||
} | ||
catch(e) { | ||
console.warn(`Error parsing ${file}: ${e}`) | ||
} | ||
} | ||
writeFileSync('src/assets/wallets.json', JSON.stringify(wallets, null, 2)); |
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
Oops, something went wrong.