yeet source viewer; replace with gitea
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
'Android was originally an operating system for cameras',
|
||||
'"password" is still one of the most commonly used passwords',
|
||||
'People call me funny sometimes I guess',
|
||||
'Haiii <3',
|
||||
'e^(i*pi) = -1',
|
||||
'According to the leading fan theory, 1 + 1 might actually not be 11',
|
||||
'xkcd.com is a thing, and it is funny most of the time',
|
||||
'Apparently I am a hooman',
|
||||
'This message changes every time you refresh the page',
|
||||
'I wish my friends would talk to me more often',
|
||||
'I am a functional introvert'
|
||||
'I am a functional introvert',
|
||||
'Haiii <3'
|
||||
]; %>Fun Fact: <%= facts[Math.floor(Math.random() * facts.length)] %></p>
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
<a id="button" href="/">Home</a>
|
||||
<a id="button" href="/art">Art</a>
|
||||
<a id="button" href="/music">Playlist</a>
|
||||
<a id="button" href="/source">Source code</a>
|
||||
<a id="button" href="/git">Gitea</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Directory Tree</title>
|
||||
<meta name="fediverse:creator" content="@oddbyte@mastodon.social">
|
||||
<style>
|
||||
<%- include('partials/style') %>
|
||||
.directory {
|
||||
font-weight: bold;
|
||||
color: #0066cc;
|
||||
cursor: pointer;
|
||||
}
|
||||
.file {
|
||||
color: #00af00;
|
||||
}
|
||||
.directory-tree {
|
||||
text-align-last: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partials/navbar') %>
|
||||
<div id="container_top">
|
||||
<div id="container_main">
|
||||
<div id="container_thing">
|
||||
<main>
|
||||
<h1>Directory Tree</h1>
|
||||
<p>(here is where all the raw files are)</p>
|
||||
|
||||
<ul class="directory-tree">
|
||||
<% function renderTree(items, indentLevel = 0) { %>
|
||||
<% items.forEach(item => { %>
|
||||
<li>
|
||||
<% if (item.type === 'directory') { %>
|
||||
<span class="directory"><%= item.name %></span>
|
||||
<% if (item.children && item.children.length > 0) { %>
|
||||
<ul>
|
||||
<%= renderTree(item.children, indentLevel + 1) %>
|
||||
</ul>
|
||||
<% } %>
|
||||
<% } else { %>
|
||||
<a href="/source/<%= encodeURIComponent(item.path).replaceAll('%2F', '/') %>" class="file"><%= item.name %></a>
|
||||
<% } %>
|
||||
</li>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
|
||||
<%= renderTree(paths) %>
|
||||
</ul>
|
||||
|
||||
<h1>Rendered Pages</h1>
|
||||
<div style="display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; flex-direction: column; align-self: center;">
|
||||
<div style="max-width: 500px; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; flex-direction: column; align-self: center;">
|
||||
<p>these are the thingies that you see when you use my site like a normal person (in a browser, hopefully)</p>
|
||||
<p style="text-align-last: left;">
|
||||
<a href="/">/</a> <-- Main Page <br />
|
||||
<a href="/music">/music</a> <-- My Youtube Music playlist<br />
|
||||
<a href="/source">/source</a> <-- You are here :P <br />
|
||||
<a href="/art">/art</a> <-- My art ^.^<br />
|
||||
<a href="/blog">/blog</a> <-- My crappy blog<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<h1>Files</h1>
|
||||
<div style="display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; flex-direction: column; align-self: center;">
|
||||
<div style="max-width: 500px; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; flex-direction: column; align-self: center;">
|
||||
<p style="text-align-last: left;">
|
||||
<a href="/favicon.ico">/favicon.ico</a> <-- icon</br>
|
||||
<a href="/robots.txt">/robots.txt</a> <-- tells some robots to go away
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Oddbyte</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="favicon" rel="shortcut icon" type="image/png" href="data:image/png;base64,<%- faviconb64 %>">
|
||||
<link rel="canonical" href="https://oddbyte.dev/"/>
|
||||
<meta name="fediverse:creator" content="@oddbyte@mastodon.social">
|
||||
<style>
|
||||
body {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1 class="selectDisable">Source code for <code><%-filePath %></code></h1>
|
||||
<p><a href="/source" style="color: white;">Back</a></p>
|
||||
<hr />
|
||||
<pre><code><%= fileContent %></code></pre>
|
||||
<hr />
|
||||
<p><a href="/source" style="color: white;">Back</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user