Skip to content

Commit

Permalink
Merge pull request #30 from 1Hive/forum-field
Browse files Browse the repository at this point in the history
Forum field
  • Loading branch information
fabriziovigevani authored May 31, 2021
2 parents bff092a + badd38d commit 2768453
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 81 deletions.
84 changes: 3 additions & 81 deletions src/daos/rinkeby.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"logo": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x7777cd7c9c6d3537244871ac8e73b3cb9710d45a/logo.png",
"logo_type": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x7777cd7c9c6d3537244871ac8e73b3cb9710d45a/logo_type.png",
"wiki": "https://1hive.gitbook.io/1hive/",
"forum":"https://forum.1hive.org/",
"links": {
"community": [
{
Expand Down Expand Up @@ -48,87 +49,6 @@
]
}
},
{
"address": "0x85017d3aeef46411dfb41f13ecd547cbc809d1f0",
"name": "1Hive Border Cases",
"description": "Building an experimenting with decentralized applications and protocols with an effort to build a sustainable and thriving economy around a currency called Honey which is used to influence the direction of the community",
"wrappableToken": {
"logo": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x85017d3aeef46411dfb41f13ecd547cbc809d1f0/wrappedToken.png"
},
"logo": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x85017d3aeef46411dfb41f13ecd547cbc809d1f0/logo.png",
"logo_type": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x85017d3aeef46411dfb41f13ecd547cbc809d1f0/logo_type.png",
"wiki": "https://1hive.gitbook.io/1hive/",
"links": {
"community": [
{
"label": "Discord",
"link": "https://discord.gg/4fm7pgB"
},
{
"label": "Github",
"link": "https://github.com/1Hive"
},
{
"label": "Twitter",
"link": "https://twitter.com/1HiveOrg"
},
{
"label": "Telegram",
"link": "https://t.me/honeyswapdex"
},
{
"label": "Forum",
"link": "https://forum.1hive.org/"
},
{
"label": "Discord",
"link": "https://discord.gg/4fm7pgB"
},
{
"label": "Github",
"link": "https://github.com/1Hive"
},
{
"label": "Twitter",
"link": "https://twitter.com/1HiveOrg"
},
{
"label": "Telegram",
"link": "https://t.me/honeyswapdex"
},
{
"label": "Forum",
"link": "https://forum.1hive.org/"
}
],
"documentation": [
{
"label": "Wiki",
"link": "https://wiki.1hive.org/"
},
{
"label": "Bug Bounty",
"link": "https://wiki.1hive.org/community/security/bug-bounty"
},
{
"label": "FAQs",
"link": "https://wiki.1hive.org/guides/faq"
},
{
"label": "Wiki",
"link": "https://wiki.1hive.org/"
},
{
"label": "BugBounty",
"link": "https://wiki.1hive.org/community/security/bug-bounty"
},
{
"label": "FAQs",
"link": "https://wiki.1hive.org/guides/faq"
}
]
}
},
{
"address": "0x52605d44Ae93Afc4e876cb1FE24aEf91336884Df",
"name": "BrightDAO",
Expand Down Expand Up @@ -228,6 +148,7 @@
},
"logo": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x02945Cf2FbCB01119F1B26503b42416b53aF703C/logo.png",
"logo_type": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x02945Cf2FbCB01119F1B26503b42416b53aF703C/logo_type.png",
"forum":"https://forum.1hive.org/",
"links": {
"community": [
{
Expand Down Expand Up @@ -264,6 +185,7 @@
"name": "Beezu",
"description": "Exciting NFT battle and breeding game in the context of a DAO.",
"logo_type": "https://raw.githubusercontent.com/1Hive/dao-list/master/src/assets/rinkeby/0x9B4294Bf467d97B29f7a96489536da2dd14080bf/logo_type.png",
"forum":"https://forum.1hive.org/",
"links": {
"community": [
{
Expand Down
8 changes: 8 additions & 0 deletions test/gardens-dao.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,12 @@ describe("buildList", () => {
}
}
})

it("forum should be in valid url format", () => {
for (let dao of defaultTokenList.daos) {
if(dao.forum) {
expect(dao.forum).match(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/)
}
}
})
});

0 comments on commit 2768453

Please sign in to comment.