summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Marçalo <raroma09@gmail.com>2022-10-21 03:01:44 +0100
committerRafael Marçalo <raroma09@gmail.com>2022-10-21 03:01:44 +0100
commit9d5cd6bfde29ed18405112cbdf80a04b8fb02844 (patch)
treededdfa9363f048ad4bfc8a55e5b4d7335140af7f
parent6960b8c20132bfd2cc72226a4265b20551e11e05 (diff)
Linux Update
-rw-r--r--app.js4
-rw-r--r--public/static/images/cover.pngbin0 -> 3616862 bytes
-rw-r--r--public/static/images/favicon.icobin160908 -> 329318 bytes
-rw-r--r--public/static/images/sneed.webpbin23978 -> 0 bytes
-rw-r--r--public/static/images/sneedab.gifbin0 -> 331203 bytes
-rw-r--r--public/static/images/tpb.jpgbin19176 -> 0 bytes
-rw-r--r--routes/home.js2
-rw-r--r--routes/info.js2
-rw-r--r--routes/search.js2
-rw-r--r--routes/settings.js2
-rw-r--r--server/js/apibay.js2
-rw-r--r--server/js/template.js2
-rw-r--r--views/index.ejs9
-rw-r--r--views/info.ejs2
-rw-r--r--views/partials/footer.ejs2
-rw-r--r--views/partials/header.ejs2
-rw-r--r--views/partials/top/head.ejs2
-rw-r--r--views/partials/top/navbar.ejs6
-rw-r--r--views/result.ejs2
-rw-r--r--views/settings.ejs2
20 files changed, 23 insertions, 20 deletions
diff --git a/app.js b/app.js
index 83318c6..0727863 100644
--- a/app.js
+++ b/app.js
@@ -4,7 +4,7 @@
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
-const PORT = 8080;
+const PORT = 4000;
// set the public folder to public acess and added a body parser
app.use(express.static('public'));
@@ -26,4 +26,4 @@ app.post('/search', search);
// app start
app.listen(PORT);
-console.log('Server is listening on port ' + PORT); \ No newline at end of file
+console.log('Server is listening on port ' + PORT);
diff --git a/public/static/images/cover.png b/public/static/images/cover.png
new file mode 100644
index 0000000..972bdab
--- /dev/null
+++ b/public/static/images/cover.png
Binary files differ
diff --git a/public/static/images/favicon.ico b/public/static/images/favicon.ico
index 7df8ccd..7da2f4d 100644
--- a/public/static/images/favicon.ico
+++ b/public/static/images/favicon.ico
Binary files differ
diff --git a/public/static/images/sneed.webp b/public/static/images/sneed.webp
deleted file mode 100644
index 6581503..0000000
--- a/public/static/images/sneed.webp
+++ /dev/null
Binary files differ
diff --git a/public/static/images/sneedab.gif b/public/static/images/sneedab.gif
new file mode 100644
index 0000000..5606141
--- /dev/null
+++ b/public/static/images/sneedab.gif
Binary files differ
diff --git a/public/static/images/tpb.jpg b/public/static/images/tpb.jpg
deleted file mode 100644
index 4b79bce..0000000
--- a/public/static/images/tpb.jpg
+++ /dev/null
Binary files differ
diff --git a/routes/home.js b/routes/home.js
index 98e086b..c98599e 100644
--- a/routes/home.js
+++ b/routes/home.js
@@ -5,4 +5,4 @@ function home(req, res)
res.render('index');
};
-module.exports = home; \ No newline at end of file
+module.exports = home;
diff --git a/routes/info.js b/routes/info.js
index 61b2c87..820b674 100644
--- a/routes/info.js
+++ b/routes/info.js
@@ -5,4 +5,4 @@ function info(req, res)
res.render('info');
};
-module.exports = info; \ No newline at end of file
+module.exports = info;
diff --git a/routes/search.js b/routes/search.js
index 4ef050c..e87a790 100644
--- a/routes/search.js
+++ b/routes/search.js
@@ -10,4 +10,4 @@ async function search(req, res)
res.render('result', {query: query, results: results, functions: template});
};
-module.exports = search; \ No newline at end of file
+module.exports = search;
diff --git a/routes/settings.js b/routes/settings.js
index be6a899..4fd05c1 100644
--- a/routes/settings.js
+++ b/routes/settings.js
@@ -5,4 +5,4 @@ function settings(req, res)
res.render('settings');
};
-module.exports = settings; \ No newline at end of file
+module.exports = settings;
diff --git a/server/js/apibay.js b/server/js/apibay.js
index 74fcfb3..e141259 100644
--- a/server/js/apibay.js
+++ b/server/js/apibay.js
@@ -13,4 +13,4 @@ async function hit(query)
return await getRequest(server + '/q.php?q=' + encodeURI(query));
}
-module.exports = {hit}; \ No newline at end of file
+module.exports = {hit};
diff --git a/server/js/template.js b/server/js/template.js
index 9316dd7..a11ec66 100644
--- a/server/js/template.js
+++ b/server/js/template.js
@@ -121,4 +121,4 @@ function getCategory(cat)
return category + " / " + ((subcategory) ? subcategory : "unavailable");
}
-module.exports = {makeMagnet, bytesToSize, getDate, getCategory}; \ No newline at end of file
+module.exports = {makeMagnet, bytesToSize, getDate, getCategory};
diff --git a/views/index.ejs b/views/index.ejs
index 957395c..20aa31a 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -1,7 +1,10 @@
<%- include('partials/header'); %>
-<h1>Welcome to SneedBay</h1>
+<div class="text-center">
+ <h1>SneedBay</h1>
-<p>Making torrenting great again</p>
+ <p>Making Torrents Great Again</p>
+ <img class="mw-100 w-50" src="static/images/cover.png" alt="app_cover">
+</div>
-<%- include('partials/footer'); %> \ No newline at end of file
+<%- include('partials/footer'); %>
diff --git a/views/info.ejs b/views/info.ejs
index 56a5649..6c73579 100644
--- a/views/info.ejs
+++ b/views/info.ejs
@@ -2,4 +2,4 @@
<h1>About</h1>
-<%- include('partials/footer'); %> \ No newline at end of file
+<%- include('partials/footer'); %>
diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs
index 152328f..b88ca51 100644
--- a/views/partials/footer.ejs
+++ b/views/partials/footer.ejs
@@ -1,4 +1,4 @@
</main>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
index 2df5cf3..320a1e2 100644
--- a/views/partials/header.ejs
+++ b/views/partials/header.ejs
@@ -11,4 +11,4 @@
<%- include('top/navbar'); %>
</navbar>
-<main class="container mt-4"> \ No newline at end of file
+<main class="container mt-4">
diff --git a/views/partials/top/head.ejs b/views/partials/top/head.ejs
index beae843..f1c3c7b 100644
--- a/views/partials/top/head.ejs
+++ b/views/partials/top/head.ejs
@@ -5,4 +5,4 @@
<link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<script src="js/bootstrap.bundle.js"></script>
-<title>SNEEDBAY</title> \ No newline at end of file
+<title>SNEEDBAY</title>
diff --git a/views/partials/top/navbar.ejs b/views/partials/top/navbar.ejs
index f5887ad..eb6f997 100644
--- a/views/partials/top/navbar.ejs
+++ b/views/partials/top/navbar.ejs
@@ -1,7 +1,7 @@
<nav class="navbar bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="/">
- <img src="static/images/sneed.webp" alt="Logo" width="30" height="30" class="d-inline-block align-text-top">
+ <img src="static/images/sneedab.gif" alt="Logo" width="60" height="30" class="d-inline-block align-text-top">
SNEEDBAY
</a>
<div class="align-items-center d-flex justify-content-between gap-3">
@@ -17,11 +17,11 @@
<path d="M7.068.727c.243-.97 1.62-.97 1.864 0l.071.286a.96.96 0 0 0 1.622.434l.205-.211c.695-.719 1.888-.03 1.613.931l-.08.284a.96.96 0 0 0 1.187 1.187l.283-.081c.96-.275 1.65.918.931 1.613l-.211.205a.96.96 0 0 0 .434 1.622l.286.071c.97.243.97 1.62 0 1.864l-.286.071a.96.96 0 0 0-.434 1.622l.211.205c.719.695.03 1.888-.931 1.613l-.284-.08a.96.96 0 0 0-1.187 1.187l.081.283c.275.96-.918 1.65-1.613.931l-.205-.211a.96.96 0 0 0-1.622.434l-.071.286c-.243.97-1.62.97-1.864 0l-.071-.286a.96.96 0 0 0-1.622-.434l-.205.211c-.695.719-1.888.03-1.613-.931l.08-.284a.96.96 0 0 0-1.186-1.187l-.284.081c-.96.275-1.65-.918-.931-1.613l.211-.205a.96.96 0 0 0-.434-1.622l-.286-.071c-.97-.243-.97-1.62 0-1.864l.286-.071a.96.96 0 0 0 .434-1.622l-.211-.205c-.719-.695-.03-1.888.931-1.613l.284.08a.96.96 0 0 0 1.187-1.186l-.081-.284c-.275-.96.918-1.65 1.613-.931l.205.211a.96.96 0 0 0 1.622-.434l.071-.286zM12.973 8.5H8.25l-2.834 3.779A4.998 4.998 0 0 0 12.973 8.5zm0-1a4.998 4.998 0 0 0-7.557-3.779l2.834 3.78h4.723zM5.048 3.967c-.03.021-.058.043-.087.065l.087-.065zm-.431.355A4.984 4.984 0 0 0 3.002 8c0 1.455.622 2.765 1.615 3.678L7.375 8 4.617 4.322zm.344 7.646.087.065-.087-.065z" />
</svg>
</a>
-
+
<form class="d-flex" action="search" method="POST">
<input class="form-control me-2" id="search" name="search" placeholder="Search Torrent" aria-label="Search Torrent">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
-</nav> \ No newline at end of file
+</nav>
diff --git a/views/result.ejs b/views/result.ejs
index 7732521..53e4579 100644
--- a/views/result.ejs
+++ b/views/result.ejs
@@ -39,4 +39,4 @@
</table>
<% } %>
-<%- include('partials/footer'); %> \ No newline at end of file
+<%- include('partials/footer'); %>
diff --git a/views/settings.ejs b/views/settings.ejs
index 1a79db9..6919dc4 100644
--- a/views/settings.ejs
+++ b/views/settings.ejs
@@ -2,4 +2,4 @@
<h1>Settings</h1>
-<%- include('partials/footer'); %> \ No newline at end of file
+<%- include('partials/footer'); %>