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.

47 lines
2.4 KiB

  1. extends ./_layout.pug
  2. block adminContent
  3. .hero
  4. h1.title#title= t('nav.sysinfo')
  5. h2.subtitle= t('admin:system.subtitle')
  6. i.pageicon.nc-icon-outline.objects_planet
  7. admin-settings(inline-template)
  8. .form-sections
  9. section
  10. img(src='/images/logo.png', style={width:'200px', float:'right'})
  11. label.label= t('admin:system.systemversion')
  12. .section-block
  13. p #{t('admin:system.currentversion')}: #[strong= sysversion.current]
  14. if sysversion.latest
  15. p #{t('admin:system.latestversion')}: #[strong= sysversion.latest] #[em (Published #{moment(sysversion.latestPublishedAt).fromNow()})]
  16. p
  17. if sysversion.current !== sysversion.latest
  18. button.button.is-deep-orange(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "upgrade"})')= t('admin:system.upgrade')
  19. else
  20. button.button.is-disabled= t('admin:system.upgrade')
  21. button.button.is-deep-orange.is-outlined(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "reinstall"})')= t('admin:system.reinstall')
  22. else
  23. p: em= t('admin:system.versioncheckfailed')
  24. section
  25. label.label= t('admin:system.hostinfo')
  26. .section-block
  27. p #{t('admin:system.os')}: #[strong= hostInfo.os]
  28. p #{t('admin:system.nodeversion')}: #[strong= hostInfo.nodeversion]
  29. p #{t('admin:system.hostname')}: #[strong= hostInfo.hostname]
  30. p #{t('admin:system.cores')}: #[strong= hostInfo.cpus.length]
  31. p #{t('admin:system.totalmem')}: #[strong= hostInfo.totalmem]
  32. p #{t('admin:system.cwd')}: #[strong= hostInfo.cwd]
  33. section
  34. label.label= t('admin:system.administrativetools')
  35. .section-block
  36. h6 #{t('admin:system.flushcache')}:
  37. p.is-small= t('admin:system.flushcachetext')
  38. p: button.button.is-teal.is-outlined(v-on:click='flushcache')= t('admin:system.flushcachebtn')
  39. h6 #{t('admin:system.resetaccounts')}:
  40. p.is-small= t('admin:system.resetaccountstext')
  41. p: button.button.is-teal.is-outlined(v-on:click='resetaccounts')= t('admin:system.resetaccountsbtn')
  42. h6 #{t('admin:system.flushsessions')}:
  43. p.is-small= t('admin:system.flushsessionstext')
  44. p: button.button.is-teal.is-outlined(v-on:click='flushsessions')= t('admin:system.flushsessionsbtn')
  45. modal-upgrade-system