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.

256 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='/_assets/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 GitHub
  30. v-icon.my-1(size='24') mdi-github
  31. v-tab
  32. span Patreon
  33. img.my-1(src='/_assets/svg/icon-patreon.svg', style='height: 24px;')
  34. v-tab
  35. span OpenCollective
  36. img.my-1(src='/_assets/svg/icon-opencollective.svg', style='height: 24px;')
  37. v-tab
  38. span PayPal
  39. img.my-1(src='/_assets/svg/icon-paypal.svg', style='height: 24px;')
  40. v-tab
  41. span Ethereum
  42. img.my-1(src='/_assets/svg/icon-ethereum.svg', style='height: 24px;')
  43. v-tab
  44. span T-Shirts
  45. img.my-1(src='/_assets/svg/icon-t-shirt.svg', style='height: 24px;')
  46. v-tab-item(:transition='false', :reverse-transition='false')
  47. .body-2.pa-3 {{ $t('admin:contribute.github') }}
  48. a.ml-3(href='https://github.com/users/NGPixel/sponsorship', :title='$t(`admin:contribute.becomeASponsor`)')
  49. img(src='/_assets/img/donate_github.svg', :alt='$t(`admin:contribute.becomeASponsor`)' style='width:200px;')
  50. v-tab-item(:transition='false', :reverse-transition='false')
  51. .body-2.pa-3 {{ $t('admin:contribute.patreon') }}
  52. a.ml-3(href='https://www.patreon.com/bePatron?u=16744039', :title='$t(`admin:contribute.becomeAPatron`)')
  53. img(src='/_assets/img/donate_patreon.png', :alt='$t(`admin:contribute.becomeAPatron`)' style='width:200px;')
  54. v-tab-item(:transition='false', :reverse-transition='false')
  55. .body-2.pa-3 {{ $t('admin:contribute.openCollective') }}
  56. a.ml-3(href='https://opencollective.com/wikijs/donate', :title='$t(`admin:contribute.makeADonation`)')
  57. img(src='/_assets/img/donate_opencollective.png', :alt='$t(`admin:contribute.makeADonation`)' style='width:300px;')
  58. v-tab-item(:transition='false', :reverse-transition='false')
  59. .body-2.pa-3 {{ $t('admin:contribute.paypal') }}
  60. .ml-3
  61. form(action='https://www.paypal.com/cgi-bin/webscr', method='post', target='_top')
  62. input(type='hidden', name='cmd', value='_s-xclick')
  63. input(type='hidden', name='hosted_button_id', value='FLV5X255Z9CJU')
  64. input(type='image', src='/_assets/img/donate_paypal.png', border='0', name='submit', title='PayPal - The safer, easier way to pay online!', alt='Donate with PayPal button')
  65. img(alt='', border='0', src='https://www.paypal.com/en_CA/i/scr/pixel.gif', width='1', height='1')
  66. v-tab-item(:transition='false', :reverse-transition='false')
  67. .body-2.pa-3 {{ $t('admin:contribute.ethereum') }}
  68. .ml-3
  69. .admin-contribute-ethaddress
  70. strong Ethereum Address
  71. span 0xE1d55C19aE86f6Bcbfb17e7f06aCe96BdBb22Cb5
  72. div: img(src='/_assets/img/donate_eth_qr.png')
  73. v-tab-item(:transition='false', :reverse-transition='false')
  74. .body-2.pa-3 {{ $t('admin:contribute.tshirts') }}
  75. v-card-actions.ml-2
  76. v-btn(outlined, :color='$vuetify.theme.dark ? `blue lighten-1` : `primary`', href='https://wikijs.threadless.com', large)
  77. v-icon(left) mdi-tshirt-crew
  78. span {{ $t('admin:contribute.shop') }}
  79. v-divider.mt-3
  80. v-subheader.subtitle-2 {{ $t('admin:contribute.contribute') }}
  81. .body-2.pl-3
  82. ul
  83. i18next(path='admin:contribute.submitAnIdea', tag='li')
  84. a(href='https://requests.requarks.io/wiki', target='_blank') {{ $t('admin:contribute.submitAnIdeaLink') }}
  85. i18next(path='admin:contribute.foundABug', tag='li')
  86. a(href='https://github.com/Requarks/wiki/issues', target='_blank') Github
  87. i18next(path='admin:contribute.helpTranslate', tag='li')
  88. a(href='https://wiki.requarks.io/slack', target='_blank') Slack
  89. v-divider.mt-3
  90. v-subheader.subtitle-2 {{ $t('admin:contribute.spreadTheWord') }}
  91. .body-2.pl-3
  92. ul
  93. li {{ $t('admin:contribute.talkToFriends') }}
  94. i18next(path='admin:contribute.followUsOnTwitter', tag='li')
  95. a(href='https://twitter.com/requarks', target='_blank') Twitter
  96. v-toolbar(color='indigo', dense, dark)
  97. .subtitle-1 Sponsors &amp; Backers
  98. v-container.pa-5.grey(fluid, :class='$vuetify.theme.dark ? `darken-3` : `lighten-4`')
  99. v-progress-circular(indeterminate, color='indigo', size='24', width='2', v-if='backers.length < 1')
  100. v-row(dense)
  101. v-col(cols='12', lg='6', xl='4', v-for='(backer, idx) in backers', :key='backer.id')
  102. v-card.grey(flat, :class='$vuetify.theme.dark ? `darken-4` : `lighten-2`')
  103. v-list-item
  104. v-list-item-avatar
  105. img(v-if='backer.avatar', :src='backer.avatar')
  106. v-avatar(v-else, color='blue-grey', size='40')
  107. span.white--text.subtitle-1 {{backer.name[0].toUpperCase()}}
  108. v-list-item-content
  109. v-list-item-title {{backer.name}}
  110. v-list-item-subtitle: .caption Since {{backer.joined | moment('MMMM DD, YYYY')}} on {{backer.source}}
  111. v-list-item-action(v-if='backer.twitter')
  112. v-btn(icon, :href='backer.twitter', target='_blank')
  113. v-icon(color='grey') mdi-twitter
  114. v-list-item-action(v-if='backer.website')
  115. v-btn(icon, :href='backer.website', target='_blank')
  116. v-icon(color='grey') mdi-earth
  117. v-toolbar(color='primary', dense, dark)
  118. .subtitle-1 Special Thanks
  119. v-list(two-line)
  120. v-list-item
  121. v-list-item-avatar
  122. img(src='https://static.requarks.io/logo/algolia.svg', alt='Algolia')
  123. v-list-item-content
  124. v-list-item-title Algolia
  125. 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.
  126. v-list-item-action
  127. v-btn(icon, href='https://www.algolia.com/', target='_blank')
  128. v-icon(color='grey') mdi-earth
  129. v-divider
  130. v-list-item
  131. v-list-item-avatar
  132. img(src='https://static.requarks.io/logo/browserstack.svg', alt='Browserstack')
  133. v-list-item-content
  134. v-list-item-title BrowserStack
  135. v-list-item-subtitle BrowserStack is a cloud web and mobile testing platform that enables developers to test their websites and mobile applications.
  136. v-list-item-action
  137. v-btn(icon, href='https://www.browserstack.com/', target='_blank')
  138. v-icon(color='grey') mdi-earth
  139. v-divider
  140. v-list-item
  141. v-list-item-avatar
  142. img(src='https://static.requarks.io/logo/cloudflare.svg', alt='Cloudflare')
  143. v-list-item-content
  144. v-list-item-title Cloudflare
  145. v-list-item-subtitle Providing content delivery network services, DDoS mitigation, Internet security and distributed domain name server services.
  146. v-list-item-action
  147. v-btn(icon, href='https://www.cloudflare.com/', target='_blank')
  148. v-icon(color='grey') mdi-earth
  149. v-divider
  150. v-list-item
  151. v-list-item-avatar
  152. img(src='https://static.requarks.io/logo/digitalocean.svg', alt='DigitalOcean')
  153. v-list-item-content
  154. v-list-item-title DigitalOcean
  155. 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.
  156. v-list-item-action
  157. v-btn(icon, href='https://m.do.co/c/5f7445bfa4d0', target='_blank')
  158. v-icon(color='grey') mdi-earth
  159. v-divider
  160. v-list-item
  161. v-list-item-avatar(tile)
  162. img(src='/_assets/svg/logo-icons8.svg', alt='Icons8')
  163. v-list-item-content
  164. v-list-item-title Icons8
  165. v-list-item-subtitle All the Icons You Need. Guaranteed.
  166. v-list-item-action
  167. v-btn(icon, href='https://icons8.com', target='_blank')
  168. v-icon(color='grey') mdi-earth
  169. v-divider
  170. v-list-item
  171. v-list-item-avatar(tile)
  172. img(src='https://static.requarks.io/logo/lokalise.png', alt='Lokalise')
  173. v-list-item-content
  174. v-list-item-title Lokalise
  175. v-list-item-subtitle Lokalise is a translation management system built for agile teams who want to automate their localization process.
  176. v-list-item-action
  177. v-btn(icon, href='https://lokalise.co', target='_blank')
  178. v-icon(color='grey') mdi-earth
  179. v-divider
  180. v-list-item
  181. v-list-item-avatar(tile)
  182. img(src='https://static.requarks.io/logo/netlify.svg', alt='Netlify')
  183. v-list-item-content
  184. v-list-item-title Netlify
  185. v-list-item-subtitle Deploy modern static websites with Netlify. Get CDN, Continuous deployment, 1-click HTTPS, and all the services you need.
  186. v-list-item-action
  187. v-btn(icon, href='https://wwwnetlify.com', target='_blank')
  188. v-icon(color='grey') mdi-earth
  189. </template>
  190. <script>
  191. import gql from 'graphql-tag'
  192. export default {
  193. data() {
  194. return {
  195. backers: []
  196. }
  197. },
  198. apollo: {
  199. backers: {
  200. query: gql`
  201. {
  202. contribute {
  203. contributors {
  204. id
  205. source
  206. name
  207. joined
  208. website
  209. twitter
  210. avatar
  211. }
  212. }
  213. }
  214. `,
  215. fetchPolicy: 'network-only',
  216. update: (data) => data.contribute.contributors,
  217. watchLoading (isLoading) {
  218. this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'admin-contribute-refresh')
  219. }
  220. }
  221. }
  222. }
  223. </script>
  224. <style lang='scss'>
  225. .admin-contribute {
  226. &-tabs {
  227. .v-tabs__item img {
  228. height: 24px;
  229. margin-bottom: 5px;
  230. }
  231. }
  232. &-ethaddress {
  233. display: inline-block;
  234. margin-bottom: 12px;
  235. border-radius: 7px;
  236. background-color: mc('grey', '100');
  237. color: mc('grey', '700');
  238. padding: 12px;
  239. strong {
  240. display: block;
  241. }
  242. }
  243. ul {
  244. margin-left: 1rem;
  245. list-style-type: square;
  246. }
  247. }
  248. </style>