Add viewer

This commit is contained in:
brunosimon
2017-08-12 12:02:36 +02:00
parent f7a52d970b
commit 0f33979085
11 changed files with 55 additions and 9 deletions
+3
View File
@@ -0,0 +1,3 @@
<template src="./template.html"></template>
<script src="./script.js"></script>
<style src="./style.styl" lang="stylus" scoped></style>
+16
View File
@@ -0,0 +1,16 @@
export default
{
name: 'viewer',
components:
{
},
computed:
{
version()
{
return this.$store.state.version
}
}
}
+7
View File
@@ -0,0 +1,7 @@
.viewer
position absolute
top 30px
right 0
width 75%
height 100%
background rgba(0, 0, 255, 0.3)
+3
View File
@@ -0,0 +1,3 @@
<div class="viewer" v-if="version">
<pre><code>{{ version.content }}</code></pre>
</div>