123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <template lang='pug'>
- v-app(:dark='darkMode').history
- nav-header
- v-content
- v-toolbar(color='primary', dark)
- .subheading Viewing history of page #[strong /{{path}}]
- v-spacer
- .caption.blue--text.text--lighten-3 ID {{id}}
- v-btn.ml-4(depressed, color='blue darken-1', @click='goLive') Return to Live Version
- v-container(fluid, grid-list-xl)
- v-layout(row, wrap)
- v-flex(xs5)
- v-chip.ma-0.grey--text.text--darken-2(
- label
- small
- color='grey lighten-2'
- )
- span Live
- v-timeline(
- dense
- )
- v-timeline-item(
- fill-dot
- color='primary'
- icon='edit'
- )
- v-card.grey.lighten-3.radius-7(flat)
- v-card-text
- v-layout(justify-space-between)
- v-flex(xs7)
- v-chip.ml-0.mr-3(
- label
- small
- color='primary'
- )
- span.white--text Viewing
- span Edited by John Doe
- v-flex(xs5, text-xs-right, align-center, d-flex)
- .caption Today at 12:34 PM
- v-timeline-item(
- fill-dot
- small
- color='primary'
- icon='edit'
- )
- v-card.grey.lighten-3.radius-7(flat)
- v-card-text
- v-layout(justify-space-between)
- v-flex(xs7)
- span Edited by Jane Doe
- v-flex(xs5, text-xs-right, align-center, d-flex)
- .caption Today at 12:27 PM
- v-timeline-item(
- fill-dot
- small
- color='purple'
- icon='forward'
- )
- v-card.purple.lighten-5.radius-7(flat)
- v-card-text
- v-layout(justify-space-between)
- v-flex(xs7)
- span Moved page from #[strong /test] to #[strong /home] by John Doe
- v-flex(xs5, text-xs-right, align-center, d-flex)
- .caption Yesterday at 10:45 AM
- v-timeline-item(
- fill-dot
- color='teal'
- icon='add'
- )
- v-card.teal.lighten-5.radius-7(flat)
- v-card-text
- v-layout(justify-space-between)
- v-flex(xs7): span Initial page creation by John Doe
- v-flex(xs5, text-xs-right, align-center, d-flex)
- .caption Last Tuesday at 7:56 PM
- v-chip.ma-0.grey--text.text--darken-2(
- label
- small
- color='grey lighten-2'
- ) End of history
- v-flex(xs7)
- v-card.radius-7
- v-card-text
- v-card.grey.lighten-4.radius-7(flat)
- v-card-text
- .subheading Page Title
- .caption Some page description
- nav-footer
- </template>
- <script>
- /* global siteConfig */
- export default {
- props: {
- id: {
- type: Number,
- default: 0
- },
- locale: {
- type: String,
- default: 'en'
- },
- path: {
- type: String,
- default: 'home'
- }
- },
- data() {
- return {}
- },
- computed: {
- darkMode() { return siteConfig.darkMode }
- },
- created () {
- this.$store.commit('page/SET_ID', this.id)
- this.$store.commit('page/SET_LOCALE', this.locale)
- this.$store.commit('page/SET_PATH', this.path)
- },
- methods: {
- goLive() {
- window.location.assign(`/${this.path}`)
- }
- }
- }
- </script>
- <style lang='scss'>
- </style>
|