diff --git a/site/src/components/version/script.js b/site/src/components/version/script.js
index 75099eb..7e22990 100644
--- a/site/src/components/version/script.js
+++ b/site/src/components/version/script.js
@@ -5,5 +5,13 @@ export default
props:
{
content: { type: Object }
+ },
+
+ methods:
+ {
+ onClick()
+ {
+ this.$store.commit('setVersion', this.content)
+ }
}
}
\ No newline at end of file
diff --git a/site/src/components/version/template.html b/site/src/components/version/template.html
index 6126231..978740e 100644
--- a/site/src/components/version/template.html
+++ b/site/src/components/version/template.html
@@ -1,3 +1,3 @@
-
- {{ content }}
-
\ No newline at end of file
+
+ {{ content.date }}
+
\ No newline at end of file
diff --git a/site/src/components/viewer/index.vue b/site/src/components/viewer/index.vue
new file mode 100644
index 0000000..246515d
--- /dev/null
+++ b/site/src/components/viewer/index.vue
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/site/src/components/viewer/script.js b/site/src/components/viewer/script.js
new file mode 100644
index 0000000..9e33a26
--- /dev/null
+++ b/site/src/components/viewer/script.js
@@ -0,0 +1,16 @@
+export default
+{
+ name: 'viewer',
+
+ components:
+ {
+ },
+
+ computed:
+ {
+ version()
+ {
+ return this.$store.state.version
+ }
+ }
+}
\ No newline at end of file
diff --git a/site/src/components/viewer/style.styl b/site/src/components/viewer/style.styl
new file mode 100644
index 0000000..fa82993
--- /dev/null
+++ b/site/src/components/viewer/style.styl
@@ -0,0 +1,7 @@
+.viewer
+ position absolute
+ top 30px
+ right 0
+ width 75%
+ height 100%
+ background rgba(0, 0, 255, 0.3)
\ No newline at end of file
diff --git a/site/src/components/viewer/template.html b/site/src/components/viewer/template.html
new file mode 100644
index 0000000..3859834
--- /dev/null
+++ b/site/src/components/viewer/template.html
@@ -0,0 +1,3 @@
+
+
{{ version.content }}
+
\ No newline at end of file
diff --git a/site/src/store.js b/site/src/store.js
index 88e0e93..e9c02bf 100644
--- a/site/src/store.js
+++ b/site/src/store.js
@@ -10,7 +10,8 @@ export default new Vuex.Store({
projects: {},
project: null,
files: new FileTree({ autoWash: true }),
- file: null
+ file: null,
+ version: null
},
mutations:
@@ -90,6 +91,11 @@ export default new Vuex.Store({
{
state.file = file
}
+ },
+
+ setVersion(state, data)
+ {
+ state.version = data
}
}
})
\ No newline at end of file