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.

268 lines
12 KiB

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