About.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <a-card style="text-align: center">
  3. <div class="logo">
  4. <img :src="logo" alt="logo"/>
  5. </div>
  6. <h2>Nginx UI</h2>
  7. <p>Yet another WebUI for Nginx</p>
  8. <p>Version: {{ version }} ({{ build_id }})</p>
  9. <h3 v-translate>Project Team</h3>
  10. <p><a href="https://jackyu.cn/">@0xJacky</a></p>
  11. <p><a href="https://blog.kugeek.com/">@Hintay</a></p>
  12. <h3 v-translate>Build with</h3>
  13. <p>Go</p>
  14. <p>Gin</p>
  15. <p>Vue</p>
  16. <p>Websocket</p>
  17. <h3 v-translate translate-context="Project">License</h3>
  18. <p>GNU General Public License v2.0</p>
  19. <p>Copyright © 2020 - {{ this_year }} Nginx UI </p>
  20. </a-card>
  21. </template>
  22. <script>
  23. import $gettext from "@/lib/translate/gettext";
  24. export default {
  25. name: 'About',
  26. data() {
  27. const date = new Date()
  28. return {
  29. logo: require('@/assets/img/logo.png'),
  30. this_year: date.getFullYear(),
  31. version: process.env.VUE_APP_VERSION,
  32. build_id: process.env.VUE_APP_TOTAL_BUILD ?? $gettext('Development Mode'),
  33. api_root: process.env.VUE_APP_API_ROOT
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="less" scoped>
  39. .logo {
  40. img {
  41. max-width: 120px
  42. }
  43. }
  44. .egg {
  45. padding: 10px 0;
  46. }
  47. .ant-btn {
  48. margin: 10px 10px 0 0;
  49. }
  50. </style>