diff --git a/site/src/components/file/script.js b/site/src/components/file/script.js index 161b2c3..b762339 100644 --- a/site/src/components/file/script.js +++ b/site/src/components/file/script.js @@ -18,6 +18,11 @@ export default computed: { + serverConfig() + { + return this.$store.state.serverConfig + }, + downloadUrl() { return `${this.$store.state.serverConfig.domain}/${this.$store.state.projects.current.slug}/files/${this.content.path.full}` diff --git a/site/src/components/file/template.html b/site/src/components/file/template.html index 461bdc0..f64ac22 100644 --- a/site/src/components/file/template.html +++ b/site/src/components/file/template.html @@ -6,10 +6,18 @@ - -
-
- + +
+ + + +
+ + +
+ +
+ Sorry, preview isn't available in server mode
@@ -18,7 +26,9 @@
Sorry, I can't read this file. - +
+ But you can download it. +