Add patch to fix compile breakage due to a missing file

This commit is contained in:
ICScaryThings 2022-05-28 20:06:31 -04:00
parent e527702030
commit 3cabe9b947
2 changed files with 68 additions and 0 deletions

View file

@ -10,6 +10,9 @@ mkdir -p $CONFIG_DIR
git submodule init
git submodule update
# apply misc patches to fix compile time bugs
patch -p1 < patches/*.patch
cp -r mastodont-c treebird/
cp treebird/config.def.h treebird/config.h

View file

@ -0,0 +1,65 @@
diff --git a/treebird/static/index.html b/treebird/static/index.html
new file mode 100644
index 0000000..4f12261
--- /dev/null
+++ b/treebird/static/index.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>%s</title>
+ <link rel="icon" type="image/png" href="/favicon.png">
+ <link rel="stylesheet" type="text/css" href="/%s%s.css">
+ </head>
+ <body %s>
+ <div></div>
+ <div id="main-page-container">
+ <div id="main-page">
+ <header id="navbar">
+ <a href="%s/"><img src="/treebird_logo.png" height="42"></a>
+ <span class="info">%s</span>
+ <div id="navbar-right-container">
+ <div id="navbar-right">
+ %s
+ <!-- Searchbox -->
+ <form action="%s/search" method="get">
+ <input type="textbox" class="group group-left group-inputbox" placeholder="%s" id="searchbox" name="q"><!-- i hate HTML
+ --><input type="submit" class="btn group group-right" value="%s">
+ </form>
+ </div>
+ </div>
+ </header>
+ <table id="content" class="ui-table">
+ <!-- Navigation -->
+ <tr>
+ <td id="leftbar" class="sidebar">
+ <ul>
+ <li><a class="sidebarbtn %s" href="%s/">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/local/">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/federated/">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/notifications">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/lists">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/favourites">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/bookmarks">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/direct">%s</a></li>
+ <li><a class="sidebarbtn %s" href="%s/config">%s</a></li>
+ </ul>
+ %s
+ </td>
+
+ <!-- Display for posts -->
+ <td id="main">
+ %s
+ </td>
+
+ <!-- Notifications and such -->
+ <td id="rightbar" class="sidebar">
+ %s
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </body>
+</html>