aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/fileview.rocker.html
diff options
context:
space:
mode:
authorMarvin Borner2020-07-09 22:33:43 +0200
committerMarvin Borner2020-07-09 22:33:43 +0200
commit1edfdf5f3a316a36108a0a853b0a2553d116d6fc (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/main/resources/views/fileview.rocker.html
parent18edde9bd3603f3f867cebce100e7b22be9012cd (diff)
Rewriiiiiiiiiite!
Okay, okay. I know, rewriting projects all the time is dumb. Buuut, we really don't want to work with our old and ugly code anymore. Furthermore we'll be using Deno now!
Diffstat (limited to 'src/main/resources/views/fileview.rocker.html')
-rw-r--r--src/main/resources/views/fileview.rocker.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/main/resources/views/fileview.rocker.html b/src/main/resources/views/fileview.rocker.html
deleted file mode 100644
index 6be08fd..0000000
--- a/src/main/resources/views/fileview.rocker.html
+++ /dev/null
@@ -1,40 +0,0 @@
-@import space.anity.DatabaseController
-@import space.anity.UserHandler
-@import io.javalin.*
-@args (String content, String filename, String extension, Context ctx)
-
-@css => {
-<link href="/css/fileview.css" rel="stylesheet">
-<link href="/css/markdown.css" rel="stylesheet">
-
-@if((new DatabaseController()).isDarkTheme((new UserHandler()).getVerifiedUserId(ctx))) {
-<link href="/css/darkTheme.css" rel="stylesheet"/>
-} else {
-<link href="/css/lightTheme.css" rel="stylesheet"/>
-}
-}
-
-@js => {
-<script>const extension = "@extension";</script>
-<script src="/js/prettify.js"></script>
-<script src="/js/markdown.js"></script>
-<script src="/js/fileview.js"></script>
-}
-
-@layout.template("File " + filename, ctx, css, js) -> {
-<div class="navigation">
- <h3>
- <a href="/"><i class="icon ion-md-home"></i></a>
- <a href="./">Files</a>
- <i class='icon ion-ios-arrow-forward'></i>
- <a href="">@filename</a>
- </h3>
-</div>
-<button class="switch" id="raw">Show preview</button>
-<span class="settings" id="settings">
- <label for="code">Linecount</label><input id="code" type="checkbox">
-</span>
-<pre class="prettyprint" id="content"><code class="lang-@extension">@content</code></pre>
-<textarea class="modify" id="modify"></textarea>
-<iframe class="preview" id="preview"></iframe>
-}