You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
5.7 KiB

  1. <template lang='pug'>
  2. v-container(fluid, grid-list-lg)
  3. v-layout(row, wrap)
  4. v-flex(xs12)
  5. .admin-header
  6. v-icon(size='80', color='grey lighten-2') favorite
  7. .admin-header-title
  8. .headline.primary--text {{ $t('admin:contribute.title') }}
  9. .subheading.grey--text {{ $t('admin:contribute.subtitle') }}
  10. v-spacer
  11. v-btn(depressed, color='primary', href='https://opencollective.com/wikijs', large)
  12. v-icon(left) local_atm
  13. span {{ $t('admin:contribute.makeADonation') }}
  14. v-card.mt-3
  15. v-card-text
  16. i18next.body-1.pl-3(path='admin:contribute.openSource', tag='div')
  17. v-icon(color='red') favorite
  18. a(href='https://requarks.io', target='_blank') requarks.io
  19. a(href='https://github.com/Requarks/wiki/graphs/contributors', target='_blank') {{ $t('admin:contribute.openSourceContributors') }}
  20. .body-1.pt-3.pl-3 {{ $t('admin:contribute.needYourHelp') }}
  21. v-divider.mt-3
  22. v-subheader {{ $t('admin:contribute.fundOurWork') }}
  23. .body-1.pl-3 {{ $t('admin:contribute.openCollective') }}
  24. v-card-actions.ml-2
  25. v-btn(outline, color='primary', href='https://opencollective.com/wikijs')
  26. v-icon(left) local_atm
  27. span {{ $t('admin:contribute.makeADonation') }}
  28. .body-1.mt-3.pl-3 {{ $t('admin:contribute.tshirts') }}
  29. v-card-actions.ml-2
  30. v-btn(outline, color='primary', href='https://wikijs.threadless.com')
  31. v-icon(left) shopping_cart
  32. span {{ $t('admin:contribute.shop') }}
  33. v-divider.mt-3
  34. v-subheader {{ $t('admin:contribute.contribute') }}
  35. .body-1.pl-3
  36. ul
  37. i18next(path='admin:contribute.submitAnIdea', tag='li')
  38. a(href='https://requests.requarks.io/wiki', target='_blank') {{ $t('admin:contribute.submitAnIdeaLink') }}
  39. i18next(path='admin:contribute.foundABug', tag='li')
  40. a(href='https://github.com/Requarks/wiki/issues', target='_blank') Github
  41. i18next(path='admin:contribute.helpTranslate', tag='li')
  42. a(href='https://gitter.im/Requarks/wiki', target='_blank') Gitter
  43. v-divider.mt-3
  44. v-subheader {{ $t('admin:contribute.spreadTheWord') }}
  45. .body-1.pl-3
  46. ul
  47. li {{ $t('admin:contribute.talkToFriends') }}
  48. i18next(path='admin:contribute.followUsOnTwitter', tag='li')
  49. a(href='https://twitter.com/requarks', target='_blank') Twitter
  50. v-toolbar(color='teal', dense, dark)
  51. .subheading Sponsors
  52. v-spacer
  53. v-btn(outline, small, href='https://opencollective.com/wikijs/order/1273') Become a Sponsor
  54. v-list(two-line, dense)
  55. template(v-for='(sponsor, idx) in sponsors')
  56. v-list-tile(:key='sponsor.id')
  57. v-list-tile-avatar
  58. img(v-if='sponsor.image', :src='sponsor.image')
  59. v-avatar(v-else, color='teal', size='40')
  60. span.white--text.subheading {{sponsor.name[0].toUpperCase()}}
  61. v-list-tile-content
  62. v-list-tile-title {{sponsor.name}}
  63. v-list-tile-sub-title {{sponsor.description}}
  64. v-list-tile-action(v-if='sponsor.twitter')
  65. v-btn(icon, :href='sponsor.twitter', target='_blank')
  66. icon-twitter(fillColor='#9e9e9e')
  67. v-list-tile-action(v-if='sponsor.website')
  68. v-btn(icon, :href='sponsor.website', target='_blank')
  69. v-icon(color='grey') public
  70. v-divider(v-if='idx < sponsors.length - 1')
  71. v-toolbar(color='blue-grey', dense, dark)
  72. .subheading Backers
  73. v-spacer
  74. v-btn(outline, small, href='https://opencollective.com/wikijs/order/1272') Become a Backer
  75. v-list(two-line, dense)
  76. template(v-for='(backer, idx) in backers')
  77. v-list-tile(:key='backer.id')
  78. v-list-tile-avatar
  79. img(v-if='backer.image', :src='backer.image')
  80. v-avatar(v-else, color='blue-grey', size='40')
  81. span.white--text.subheading {{backer.name[0].toUpperCase()}}
  82. v-list-tile-content
  83. v-list-tile-title {{backer.name}}
  84. v-list-tile-sub-title {{backer.description}}
  85. v-list-tile-action(v-if='backer.twitter')
  86. v-btn(icon, :href='backer.twitter', target='_blank')
  87. icon-twitter(fillColor='#9e9e9e')
  88. v-list-tile-action(v-if='backer.website')
  89. v-btn(icon, :href='backer.website', target='_blank')
  90. v-icon(color='grey') public
  91. v-divider(v-if='idx < backers.length - 1')
  92. </template>
  93. <script>
  94. import _ from 'lodash'
  95. import groupsQuery from 'gql/admin/contribute/contribute-query-contributors.gql'
  96. import IconTwitter from 'mdi/Twitter'
  97. export default {
  98. components: {
  99. IconTwitter
  100. },
  101. data() {
  102. return {
  103. contributors: []
  104. }
  105. },
  106. computed: {
  107. sponsors() {
  108. return _.filter(this.contributors, ['tier', 'sponsors'])
  109. },
  110. backers() {
  111. return _.reject(this.contributors, ['tier', 'sponsors'])
  112. }
  113. },
  114. apollo: {
  115. contributors: {
  116. query: groupsQuery,
  117. fetchPolicy: 'network-only',
  118. update: (data) => data.contribute.contributors,
  119. watchLoading (isLoading) {
  120. this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'admin-contribute-refresh')
  121. }
  122. }
  123. }
  124. }
  125. </script>
  126. <style lang='scss' scoped>
  127. ul {
  128. margin-left: 1rem;
  129. list-style-type: square;
  130. }
  131. </style>