what are you doing big bro

This commit is contained in:
quoije
2025-02-05 20:59:33 -05:00
parent 735793e69f
commit 34870c2f53
9 changed files with 56 additions and 42 deletions
+11 -1
View File
@@ -5,4 +5,14 @@ Would probably need to revamp everything, but didn't want to spend more time on
![Oscars Pool 2025](https://github.com/quoije/oscar-pool/blob/prod/img/preview.png) ![Oscars Pool 2025](https://github.com/quoije/oscar-pool/blob/prod/img/preview.png)
**node .\index.js** ## Setup
Config those in your .env file:
**DOG_NAMES=**`woof, WOOF, Woof` &nbsp;&nbsp;&nbsp;&nbsp;(for "verification")<br>
**GITHUB_OWNER=**`quoije` &nbsp;&nbsp;&nbsp;&nbsp;(for version history)<br>
**GITHUB_REPO=**`oscars-pool` &nbsp;&nbsp;&nbsp;&nbsp;(for version history)<br>
**JWT_SECRET=**`RANDOM STRING` &nbsp;&nbsp;&nbsp;&nbsp;(for authentication token)<br>
**MONGO_URI=**`mongodb+srv://USER:[email protected]/?retryWrites=true&w=majority&appName=Cluster69`<br>
**OMDB_API=**`1234567` &nbsp;&nbsp;&nbsp;&nbsp;(for movie info)
run with **node .\index.js**
+1
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pool Oscars 2025 - Checklist</title> <title>Pool Oscars 2025 - Checklist</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/app.css" rel="stylesheet">
<style> <style>
.navbar-custom { .navbar-custom {
background-color: black; background-color: black;
+23
View File
@@ -0,0 +1,23 @@
footer {
margin-top: auto;
padding: 25px;
background-color: #f8f9fa;
text-align: center;
}
#footer-text {
margin: -5px;
font-family:monospace;
font-size: small;
}
#footer-copy {
margin: -5px;
font-family:monospace;
font-size: smaller;
padding-top: 10px;
}
#copy {
text-decoration: none;
}
+2 -22
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pool Oscars 2025</title> <title>Pool Oscars 2025</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/app.css" rel="stylesheet">
<style> <style>
/* Ensure the body takes the full height */ /* Ensure the body takes the full height */
html, body { html, body {
@@ -19,28 +20,6 @@
min-height: 100vh; min-height: 100vh;
} }
footer {
margin-top: auto;
padding: 25px;
background-color: #f8f9fa;
text-align: center;
}
#footer-text {
margin: -5px;
font-family:monospace;
font-size: small;
}
#footer-copy {
margin: -5px;
font-family:monospace;
font-size: smaller;
padding-top: 10px;
}
#copy {
text-decoration: none;
}
</style> </style>
</head> </head>
<body class="bg-light"> <body class="bg-light">
@@ -75,6 +54,7 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="./js/app_index.js"></script> <script src="./js/app_index.js"></script>
<script src="./js/app_version.js"></script>
</body> </body>
</html> </html>
-17
View File
@@ -27,20 +27,3 @@ if (localStorage.getItem('auth_token')) {
alert(`${error.message}`); alert(`${error.message}`);
} }
}); });
// Fetch version information from the API
async function fetchVersionInfo() {
const res = await fetch('/api/version');
if (res.ok) {
const data = await res.json();
// Update footer with the fetched version info
const footerText = `${data.date} - ${data.version} - ${data.message}`;
document.getElementById('footer-text').textContent = footerText;
} else {
document.getElementById('footer-text').textContent = '';
}
}
// Call the function to fetch and display the version info
// Doesn't work on prod, will fix later
fetchVersionInfo();
+16
View File
@@ -0,0 +1,16 @@
// Fetch version information from the API
async function fetchVersionInfo() {
const res = await fetch('/api/version');
if (res.ok) {
const data = await res.json();
// Update footer with the fetched version info
const footerText = `${data.date} - ${data.version} - ${data.message}`;
document.getElementById('footer-text').textContent = footerText;
} else {
document.getElementById('footer-text').textContent = '';
}
}
// Call the function to fetch and display the version info
// Doesn't work on prod, will fix later
fetchVersionInfo();
+1
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pool Oscars 2025 - Films</title> <title>Pool Oscars 2025 - Films</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/app.css" rel="stylesheet">
<style> <style>
.navbar-custom { .navbar-custom {
background-color: black; background-color: black;
+1
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pool Oscars 2025 - Enregistrement</title> <title>Pool Oscars 2025 - Enregistrement</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/app.css" rel="stylesheet">
</head> </head>
<style> <style>
#dog { #dog {
-1
View File
@@ -98,7 +98,6 @@
</div> </div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="./js/app_user-stat.js"></script> <script src="./js/app_user-stat.js"></script>
</body> </body>