history.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template lang='pug'>
  2. v-app(:dark='darkMode').history
  3. nav-header
  4. v-content
  5. v-toolbar(color='primary', dark)
  6. .subheading Viewing history of page #[strong /{{path}}]
  7. v-spacer
  8. .caption.blue--text.text--lighten-3 ID {{id}}
  9. v-btn.ml-4(depressed, color='blue darken-1', @click='goLive') Return to Live Version
  10. v-container(fluid, grid-list-xl)
  11. v-layout(row, wrap)
  12. v-flex(xs5)
  13. v-chip.ma-0.grey--text.text--darken-2(
  14. label
  15. small
  16. color='grey lighten-2'
  17. )
  18. span Live
  19. v-timeline(
  20. dense
  21. )
  22. v-timeline-item(
  23. fill-dot
  24. color='primary'
  25. icon='edit'
  26. )
  27. v-card.grey.lighten-3.radius-7(flat)
  28. v-card-text
  29. v-layout(justify-space-between)
  30. v-flex(xs7)
  31. v-chip.ml-0.mr-3(
  32. label
  33. small
  34. color='primary'
  35. )
  36. span.white--text Viewing
  37. span Edited by John Doe
  38. v-flex(xs5, text-xs-right, align-center, d-flex)
  39. .caption Today at 12:34 PM
  40. v-timeline-item(
  41. fill-dot
  42. small
  43. color='primary'
  44. icon='edit'
  45. )
  46. v-card.grey.lighten-3.radius-7(flat)
  47. v-card-text
  48. v-layout(justify-space-between)
  49. v-flex(xs7)
  50. span Edited by Jane Doe
  51. v-flex(xs5, text-xs-right, align-center, d-flex)
  52. .caption Today at 12:27 PM
  53. v-timeline-item(
  54. fill-dot
  55. small
  56. color='purple'
  57. icon='forward'
  58. )
  59. v-card.purple.lighten-5.radius-7(flat)
  60. v-card-text
  61. v-layout(justify-space-between)
  62. v-flex(xs7)
  63. span Moved page from #[strong /test] to #[strong /home] by John Doe
  64. v-flex(xs5, text-xs-right, align-center, d-flex)
  65. .caption Yesterday at 10:45 AM
  66. v-timeline-item(
  67. fill-dot
  68. color='teal'
  69. icon='add'
  70. )
  71. v-card.teal.lighten-5.radius-7(flat)
  72. v-card-text
  73. v-layout(justify-space-between)
  74. v-flex(xs7): span Initial page creation by John Doe
  75. v-flex(xs5, text-xs-right, align-center, d-flex)
  76. .caption Last Tuesday at 7:56 PM
  77. v-chip.ma-0.grey--text.text--darken-2(
  78. label
  79. small
  80. color='grey lighten-2'
  81. ) End of history
  82. v-flex(xs7)
  83. v-card.radius-7
  84. v-card-text
  85. v-card.grey.lighten-4.radius-7(flat)
  86. v-card-text
  87. .subheading Page Title
  88. .caption Some page description
  89. nav-footer
  90. </template>
  91. <script>
  92. /* global siteConfig */
  93. export default {
  94. props: {
  95. id: {
  96. type: Number,
  97. default: 0
  98. },
  99. locale: {
  100. type: String,
  101. default: 'en'
  102. },
  103. path: {
  104. type: String,
  105. default: 'home'
  106. }
  107. },
  108. data() {
  109. return {}
  110. },
  111. computed: {
  112. darkMode() { return siteConfig.darkMode }
  113. },
  114. created () {
  115. this.$store.commit('page/SET_ID', this.id)
  116. this.$store.commit('page/SET_LOCALE', this.locale)
  117. this.$store.commit('page/SET_PATH', this.path)
  118. },
  119. methods: {
  120. goLive() {
  121. window.location.assign(`/${this.path}`)
  122. }
  123. }
  124. }
  125. </script>
  126. <style lang='scss'>
  127. </style>