Skip to content

Commit

Permalink
Update dapps list (#2545)
Browse files Browse the repository at this point in the history
* Update dapps

* Allow authOrigins in dapps.json to be a single string

This change allows to set the `authOrigins` property to a single
string in the dapps.json file.

---------

Co-authored-by: gix-bot <[email protected]>
Co-authored-by: Frederik Rothenberger <[email protected]>
  • Loading branch information
3 people authored Aug 5, 2024
1 parent 9b41921 commit 44b2079
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 7 deletions.
Binary file added src/frontend/assets/icons/clpfinance_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/frontend/assets/icons/dotmeet_logo.webp
Binary file not shown.
Binary file added src/frontend/assets/icons/doxa_logo.webp
Binary file not shown.
Binary file added src/frontend/assets/icons/staex_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/frontend/assets/icons/zon_logo.webp
Binary file not shown.
35 changes: 33 additions & 2 deletions src/frontend/src/flows/dappsExplorer/dapps.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,10 @@
"logo": "kinic_logo.webp"
},
{
"name": "The Asset App",
"name": "ubin",
"website": "https://h3cjw-syaaa-aaaam-qbbia-cai.ic0.app/",
"logo": "asset-app_logo.png",
"oneLiner": "Allows any user to generate their own file canister smart contract and visually manage their files on the Internet Computer without requiring any code"
"oneLiner": "Allows you to seamlessly launch your file storage smart contracts on ICP and interact with them via a file explorer in the browser."
},
{
"name": "icgpt",
Expand Down Expand Up @@ -552,5 +552,36 @@
"https://az5sd-cqaaa-aaaae-aaarq-cai.ic0.app/"
],
"logo": "distrikt_logo.webp"
},
{
"name": "CLP Finance",
"oneLiner": "A decentralized financial protocol with low-cost, efficient, and secure digital asset lending services to borrow CUSD using ICP, ckETH, or ckBTC.",
"website": "https://www.clp.finance/",
"logo": "clpfinance_logo.png"
},
{
"name": "Dotmeet",
"oneLiner": "A city-based events calendar app helping web3 communities and companies in effectively reaching their target audience within cities.",
"website": "https://dotmeet.app/",
"logo": "dotmeet_logo.webp"
},
{
"name": "Doxa",
"oneLiner": "A multi-stablecoin plartform with the doxa dollar.",
"website": "https://i7m4z-gqaaa-aaaak-qddtq-cai.icp0.io/",
"logo": "doxa_logo.webp"
},
{
"name": "Staex VTS",
"oneLiner": "A vehicle tracking system that serves as an infrastructure to track and invoice vehicles.",
"website": "https://staex.io",
"logo": "staex_logo.png"
},
{
"name": "Zon Social Media",
"oneLiner": "A fusion of social network, marketplace, and Web directory.",
"website": "https://zoncircle.com",
"logo": "zon_logo.webp",
"authOrigins": "https://zoncircle.com"
}
]
17 changes: 12 additions & 5 deletions src/frontend/src/flows/dappsExplorer/dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@ export class KnownDapp {
// * the website
// * any (some) of the authOrigins
hasOrigin(orig: string): boolean {
return (
orig === new URL(this.descr.website).origin ||
(this.descr.authOrigins ?? []).some(
if (orig === this.descr.website) {
return true;
}
if (typeof this.descr.authOrigins === "string") {
return (
// If authOrigins is a string, it's a single origin
orig === new URL(this.descr.authOrigins).origin
);
} else {
return (this.descr.authOrigins ?? []).some(
(authOrigin) => orig === new URL(authOrigin).origin
)
);
);
}
}

// Path to use for logo files
Expand Down

0 comments on commit 44b2079

Please sign in to comment.