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.

271 lines
12 KiB

5 years ago
5 years ago
  1. <template lang='pug'>
  2. v-container.admin-contribute(fluid, grid-list-lg)
  3. v-layout(row, wrap)
  4. v-flex(xs12)
  5. .admin-header
  6. img.animated.fadeInUp(src='/svg/icon-heart-health.svg', alt='Contribute', style='width: 80px;')
  7. .admin-header-title
  8. .headline.primary--text.animated.fadeInLeft {{ $t('admin:contribute.title') }}
  9. .subheading.grey--text.animated.fadeInLeft.wait-p4s {{ $t('admin:contribute.subtitle') }}
  10. v-card.mt-3.animated.fadeInUp
  11. v-card-text
  12. i18next.body-1.pl-3(path='admin:contribute.openSource', tag='div')
  13. v-icon(color='red') favorite
  14. a(href='https://requarks.io', target='_blank') requarks.io
  15. a(href='https://github.com/Requarks/wiki/graphs/contributors', target='_blank') {{ $t('admin:contribute.openSourceContributors') }}
  16. .body-1.pt-3.pl-3 {{ $t('admin:contribute.needYourHelp') }}
  17. v-divider.mt-3
  18. v-subheader {{ $t('admin:contribute.fundOurWork') }}
  19. v-tabs.mx-3.radius-7.admin-contribute-tabs(
  20. centered
  21. fixed-tabs
  22. color='primary'
  23. dark
  24. slider-color='#FFF'
  25. icons-and-text
  26. )
  27. v-tab
  28. span Patreon
  29. img(src='/svg/icon-patreon.svg')
  30. v-tab
  31. span OpenCollective
  32. img(src='/svg/icon-opencollective.svg')
  33. v-tab
  34. span PayPal
  35. img(src='/svg/icon-paypal.svg')
  36. v-tab
  37. span Ethereum
  38. img(src='/svg/icon-ethereum.svg')
  39. v-tab
  40. span T-Shirts
  41. img(src='/svg/icon-t-shirt.svg')
  42. v-tab-item(:transition='false', :reverse-transition='false')
  43. .body-1.pa-3 {{ $t('admin:contribute.patreon') }}
  44. a.ml-3(href='https://www.patreon.com/bePatron?u=16744039', :title='$t(`admin:contribute.becomeAPatron`)')
  45. img(src='/img/donate_patreon.png', :alt='$t(`admin:contribute.becomeAPatron`)' style='width:200px;')
  46. v-tab-item(:transition='false', :reverse-transition='false')
  47. .body-1.pa-3 {{ $t('admin:contribute.openCollective') }}
  48. a.ml-3(href='https://opencollective.com/wikijs/donate', :title='$t(`admin:contribute.makeADonation`)')
  49. img(src='/img/donate_opencollective.png', :alt='$t(`admin:contribute.makeADonation`)' style='width:300px;')
  50. v-tab-item(:transition='false', :reverse-transition='false')
  51. .body-1.pa-3 {{ $t('admin:contribute.paypal') }}
  52. .ml-3
  53. form(action='https://www.paypal.com/cgi-bin/webscr', method='post', target='_top')
  54. input(type='hidden', name='cmd', value='_s-xclick')
  55. input(type='hidden', name='hosted_button_id', value='FLV5X255Z9CJU')
  56. input(type='image', src='/img/donate_paypal.png', border='0', name='submit', title='PayPal - The safer, easier way to pay online!', alt='Donate with PayPal button')
  57. img(alt='', border='0', src='https://www.paypal.com/en_CA/i/scr/pixel.gif', width='1', height='1')
  58. v-tab-item(:transition='false', :reverse-transition='false')
  59. .body-1.pa-3 {{ $t('admin:contribute.ethereum') }}
  60. .ml-3
  61. .admin-contribute-ethaddress
  62. strong Ethereum Address
  63. span 0xE1d55C19aE86f6Bcbfb17e7f06aCe96BdBb22Cb5
  64. div: img(src='/img/donate_eth_qr.png')
  65. v-tab-item(:transition='false', :reverse-transition='false')
  66. .body-1.pa-3 {{ $t('admin:contribute.tshirts') }}
  67. v-card-actions.ml-2
  68. v-btn(outline, :color='darkMode ? `blue lighten-1` : `primary`', href='https://wikijs.threadless.com', large)
  69. v-icon(left) shopping_cart
  70. span {{ $t('admin:contribute.shop') }}
  71. v-divider.mt-3
  72. v-subheader {{ $t('admin:contribute.contribute') }}
  73. .body-1.pl-3
  74. ul
  75. i18next(path='admin:contribute.submitAnIdea', tag='li')
  76. a(href='https://requests.requarks.io/wiki', target='_blank') {{ $t('admin:contribute.submitAnIdeaLink') }}
  77. i18next(path='admin:contribute.foundABug', tag='li')
  78. a(href='https://github.com/Requarks/wiki/issues', target='_blank') Github
  79. i18next(path='admin:contribute.helpTranslate', tag='li')
  80. a(href='https://gitter.im/Requarks/wiki', target='_blank') Gitter
  81. v-divider.mt-3
  82. v-subheader {{ $t('admin:contribute.spreadTheWord') }}
  83. .body-1.pl-3
  84. ul
  85. li {{ $t('admin:contribute.talkToFriends') }}
  86. i18next(path='admin:contribute.followUsOnTwitter', tag='li')
  87. a(href='https://twitter.com/requarks', target='_blank') Twitter
  88. v-toolbar(color='teal', dense, dark)
  89. .subheading Sponsors
  90. v-spacer
  91. v-btn(outline, small, href='https://opencollective.com/wikijs/order/1273') Become a Sponsor
  92. v-list(two-line)
  93. template(v-for='(sponsor, idx) in sponsors')
  94. v-list-tile(:key='sponsor.id')
  95. v-list-tile-avatar
  96. img(v-if='sponsor.image', :src='sponsor.image')
  97. v-avatar(v-else, color='teal', size='40')
  98. span.white--text.subheading {{sponsor.name[0].toUpperCase()}}
  99. v-list-tile-content
  100. v-list-tile-title {{sponsor.name}}
  101. v-list-tile-sub-title {{sponsor.description}}
  102. v-list-tile-action(v-if='sponsor.twitter')
  103. v-btn(icon, :href='sponsor.twitter', target='_blank')
  104. icon-twitter(fillColor='#9e9e9e')
  105. v-list-tile-action(v-if='sponsor.website')
  106. v-btn(icon, :href='sponsor.website', target='_blank')
  107. v-icon(color='grey') public
  108. v-divider(v-if='idx < sponsors.length - 1')
  109. v-toolbar(color='blue-grey', dense, dark)
  110. .subheading Backers
  111. v-spacer
  112. v-btn(outline, small, href='https://opencollective.com/wikijs/order/1272') Become a Backer
  113. v-list(two-line, dense)
  114. template(v-for='(backer, idx) in backers')
  115. v-list-tile(:key='backer.id')
  116. v-list-tile-avatar
  117. img(v-if='backer.image', :src='backer.image')
  118. v-avatar(v-else, color='blue-grey', size='40')
  119. span.white--text.subheading {{backer.name[0].toUpperCase()}}
  120. v-list-tile-content
  121. v-list-tile-title {{backer.name}}
  122. v-list-tile-sub-title {{backer.description}}
  123. v-list-tile-action(v-if='backer.twitter')
  124. v-btn(icon, :href='backer.twitter', target='_blank')
  125. icon-twitter(fillColor='#9e9e9e')
  126. v-list-tile-action(v-if='backer.website')
  127. v-btn(icon, :href='backer.website', target='_blank')
  128. v-icon(color='grey') public
  129. v-divider(v-if='idx < backers.length - 1')
  130. v-toolbar(color='primary', dense, dark)
  131. .subheading Special Thanks
  132. v-list(two-line)
  133. v-list-tile
  134. v-list-tile-avatar
  135. img(src='https://static.requarks.io/logo/algolia.svg', alt='Algolia')
  136. v-list-tile-content
  137. v-list-tile-title Algolia
  138. v-list-tile-sub-title Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations.
  139. v-list-tile-action
  140. v-btn(icon, href='https://www.algolia.com/', target='_blank')
  141. v-icon(color='grey') public
  142. v-divider
  143. v-list-tile
  144. v-list-tile-avatar
  145. img(src='https://static.requarks.io/logo/browserstack.svg', alt='Browserstack')
  146. v-list-tile-content
  147. v-list-tile-title BrowserStack
  148. v-list-tile-sub-title BrowserStack is a cloud web and mobile testing platform that enables developers to test their websites and mobile applications.
  149. v-list-tile-action
  150. v-btn(icon, href='https://www.browserstack.com/', target='_blank')
  151. v-icon(color='grey') public
  152. v-divider
  153. v-list-tile
  154. v-list-tile-avatar
  155. img(src='https://static.requarks.io/logo/cloudflare.svg', alt='Cloudflare')
  156. v-list-tile-content
  157. v-list-tile-title Cloudflare
  158. v-list-tile-sub-title Providing content delivery network services, DDoS mitigation, Internet security and distributed domain name server services.
  159. v-list-tile-action
  160. v-btn(icon, href='https://www.cloudflare.com/', target='_blank')
  161. v-icon(color='grey') public
  162. v-divider
  163. v-list-tile
  164. v-list-tile-avatar
  165. img(src='https://static.requarks.io/logo/digitalocean.svg', alt='DigitalOcean')
  166. v-list-tile-content
  167. v-list-tile-title DigitalOcean
  168. v-list-tile-sub-title Providing developers and businesses a reliable, easy-to-use cloud computing platform of virtual servers (Droplets), object storage (Spaces), and more.
  169. v-list-tile-action
  170. v-btn(icon, href='https://m.do.co/c/5f7445bfa4d0', target='_blank')
  171. v-icon(color='grey') public
  172. v-divider
  173. v-list-tile
  174. v-list-tile-avatar(tile)
  175. img(src='/svg/logo-icons8.svg', alt='Icons8')
  176. v-list-tile-content
  177. v-list-tile-title Icons8
  178. v-list-tile-sub-title All the Icons You Need. Guaranteed.
  179. v-list-tile-action
  180. v-btn(icon, href='https://icons8.com', target='_blank')
  181. v-icon(color='grey') public
  182. v-divider
  183. v-list-tile
  184. v-list-tile-avatar(tile)
  185. img(src='https://static.requarks.io/logo/lokalise.png', alt='Lokalise')
  186. v-list-tile-content
  187. v-list-tile-title Lokalise
  188. v-list-tile-sub-title Lokalise is a translation management system built for agile teams who want to automate their localization process.
  189. v-list-tile-action
  190. v-btn(icon, href='https://lokalise.co', target='_blank')
  191. v-icon(color='grey') public
  192. v-divider
  193. v-list-tile
  194. v-list-tile-avatar(tile)
  195. img(src='https://static.requarks.io/logo/netlify.svg', alt='Netlify')
  196. v-list-tile-content
  197. v-list-tile-title Netlify
  198. v-list-tile-sub-title Deploy modern static websites with Netlify. Get CDN, Continuous deployment, 1-click HTTPS, and all the services you need.
  199. v-list-tile-action
  200. v-btn(icon, href='https://wwwnetlify.com', target='_blank')
  201. v-icon(color='grey') public
  202. </template>
  203. <script>
  204. import _ from 'lodash'
  205. import { get } from 'vuex-pathify'
  206. import groupsQuery from 'gql/admin/contribute/contribute-query-contributors.gql'
  207. import IconTwitter from 'mdi/Twitter'
  208. export default {
  209. components: {
  210. IconTwitter
  211. },
  212. data() {
  213. return {
  214. contributors: []
  215. }
  216. },
  217. computed: {
  218. darkMode: get('site/dark'),
  219. sponsors() {
  220. return _.filter(this.contributors, ['tier', 'sponsors'])
  221. },
  222. backers() {
  223. return _.reject(this.contributors, ['tier', 'sponsors'])
  224. }
  225. },
  226. apollo: {
  227. contributors: {
  228. query: groupsQuery,
  229. fetchPolicy: 'network-only',
  230. update: (data) => data.contribute.contributors,
  231. watchLoading (isLoading) {
  232. this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'admin-contribute-refresh')
  233. }
  234. }
  235. }
  236. }
  237. </script>
  238. <style lang='scss'>
  239. .admin-contribute {
  240. &-tabs {
  241. .v-tabs__item img {
  242. height: 24px;
  243. margin-bottom: 5px;
  244. }
  245. }
  246. &-ethaddress {
  247. display: inline-block;
  248. margin-bottom: 12px;
  249. border-radius: 7px;
  250. background-color: mc('grey', '100');
  251. padding: 12px;
  252. strong {
  253. display: block;
  254. }
  255. }
  256. ul {
  257. margin-left: 1rem;
  258. list-style-type: square;
  259. }
  260. }
  261. </style>