✨ Add viewer
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<template src="./template.html"></template>
|
||||
<script src="./script.js"></script>
|
||||
<style src="./style.styl" lang="stylus" scoped></style>
|
||||
@@ -0,0 +1,16 @@
|
||||
export default
|
||||
{
|
||||
name: 'viewer',
|
||||
|
||||
components:
|
||||
{
|
||||
},
|
||||
|
||||
computed:
|
||||
{
|
||||
version()
|
||||
{
|
||||
return this.$store.state.version
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
.viewer
|
||||
position absolute
|
||||
top 30px
|
||||
right 0
|
||||
width 75%
|
||||
height 100%
|
||||
background rgba(0, 0, 255, 0.3)
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="viewer" v-if="version">
|
||||
<pre><code>{{ version.content }}</code></pre>
|
||||
</div>
|
||||
Reference in New Issue
Block a user