Commit 8998ce16 authored by Wolf's avatar Wolf 💯
Browse files

make it clear that list of contr. is randomized

parent d265983b
......@@ -107,3 +107,8 @@ h3 {
flex-shrink: 1;
flex-grow: 1;
}
.link {
color: $primary-color-100;
cursor: pointer;
}
......@@ -4,8 +4,13 @@
<div class="contributors__subtitle">
We're a decentralized project, running on more than
{{ CONTRIBUTORS.length }} people contributing regularly to the Hive
Ecosystem
Ecosystem.
</div>
<div>
The list of contributors below is
<i class="link" @click="$accessor.shuffleContributors()">randomized</i>.
</div>
<div class="contributors__labels">
<ContributorsContributorLabel
v-for="label in contributorLabels"
......@@ -89,6 +94,10 @@ export default defineComponent({
() => route.value.query.t,
(newT) => getFilteredContributors(newT),
)
watch(
() => root.$accessor.shuffledContributors,
() => getFilteredContributors(route.value.query.t),
)
return {
filteredContributors: filteredContributors as IContributor[],
......
......@@ -75,11 +75,8 @@ export const actions = actionTree(
// async nuxtServerInit({commit}, {req, app}: any) {
// },
nuxtClientInit({commit}) {
commit(
'setShuffledContributors',
shuffleArray(CONTRIBUTORS.filter((e) => !e.inactive)),
)
nuxtClientInit({commit, dispatch}) {
dispatch('shuffleContributors')
this.$axios
.get('https://hivedapps.com/api/global')
.then((result) => {
......@@ -98,6 +95,12 @@ export const actions = actionTree(
})
.catch()
},
shuffleContributors({commit}) {
commit(
'setShuffledContributors',
shuffleArray(CONTRIBUTORS.filter((e) => !e.inactive)),
)
},
},
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment