Skip to content

Commit 90690b2

Browse files
authored
The finished source code (#6)
1 parent f438ee6 commit 90690b2

26 files changed

+758
-113
lines changed

.github/workflows/compatibility.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
git fetch origin gh-pages
8989
git switch gh-pages --force
9090
mkdir -p /home/runner/work/obhqWebsite/obhqWebsite/compatibility/_images/
91+
mkdir -p /home/runner/work/obhqWebsite/obhqWebsite/download/artifacts/
9192
9293
rm -r -f /home/runner/work/obhqWebsite/obhqWebsite/compatibility/_images/games/
9394
rm -r -f /home/runner/work/obhqWebsite/obhqWebsite/compatibility/_images/hb/
@@ -97,10 +98,12 @@ jobs:
9798
mv -f /home/runner/work/obhqWebsite/temp/updater/images/* /home/runner/work/obhqWebsite/obhqWebsite/compatibility/_images/
9899
mv -f /home/runner/work/obhqWebsite/temp/updater/database.json /home/runner/work/obhqWebsite/obhqWebsite/compatibility/database.json
99100
mv -f /home/runner/work/obhqWebsite/temp/updater/stats.json /home/runner/work/obhqWebsite/obhqWebsite/stats.json
101+
mv -f /home/runner/work/obhqWebsite/temp/updater/artifacts/* /home/runner/work/obhqWebsite/obhqWebsite/download/artifacts/
100102
101103
git add /home/runner/work/obhqWebsite/obhqWebsite/stats.json -f
102104
git add /home/runner/work/obhqWebsite/obhqWebsite/compatibility/database.json -f
103105
git add /home/runner/work/obhqWebsite/obhqWebsite/compatibility/_images/ -f
106+
git add /home/runner/work/obhqWebsite/obhqWebsite/download/artifacts/ -f
104107
105108
files_to_commit=$(git status --porcelain | grep -E 'M|A|D' | wc -l)
106109
if [ $files_to_commit -gt 0 ]; then

.github/workflows/public_html.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
4040
# restore files that dont need updating
4141
git restore --staged --worktree wiki/
42+
git restore --staged --worktree download/artifacts/
4243
git restore --staged --worktree compatibility/_images/games/
4344
git restore --staged --worktree compatibility/_images/hb/
4445
git restore --staged --worktree compatibility/database.json

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
### [v0.3.1] (unreleased)
8+
### [v1.0.0]
9+
10+
#### Added
11+
- Added automatic artifact downloading to the rust updater script
12+
- Added the Downloads page
13+
14+
15+
#### Changed
16+
- Fixed the amount of skeletonCards in the comp page from 20 to 10.
17+
- Modified workflow files for the new Downloads page
18+
- Modified the `status.json` file to include more values for the download page.
19+
20+
### [v0.3.1]
921
- Put the tmdb hex into the config, instead of a secret variable
1022
- Added CSP to the `_errorPages` and some other small fixes
1123

public_html/_errorPages/errapp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
document.addEventListener('DOMContentLoaded', async function () {
22
// required.js
33
adjustScreenSize(700)
4-
4+
55
await init();
66
adjustScreenSize(700);
77

public_html/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
document.addEventListener('DOMContentLoaded', async function () {
22
// required.js
3-
adjustScreenSize(); // might not change the top image for on mobile
43

4+
adjustScreenSize(); // might not change the top image for on mobile
55
await init();
66
adjustScreenSize(700); // ensure change of top image
77
headerShadow();
@@ -13,7 +13,7 @@ document.addEventListener('DOMContentLoaded', async function () {
1313
window.addEventListener("scroll", headerShadow);
1414

1515

16-
await fetch('stats.json').then(response => response.json()).then(jsonData => {
16+
await fetch('/stats.json').then(response => response.json()).then(jsonData => {
1717
countingAnimation(jsonData.stars, document.getElementById("starsNumber"));
1818
countingAnimation(jsonData.issues, document.getElementById("issuesNumber"));
1919
countingAnimation(jsonData.devbuilds, document.getElementById("devbuildsNumber"));

public_html/compatibility/app.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
let databaseJsonData; // :3
2-
let totalPages; // is this needed? like genuinely?
2+
let totalPages;
33
let currentPage = 1; // starts from 1, NOT 0
44
let tagFilter = [];
55
let justUpdated;
66
let issuesPerPage = 10;
77
let issuesCount;
8-
// let Timer;
98
const codeRegex = /[a-zA-Z]{4}[0-9]{5}/;
109

1110
document.addEventListener('DOMContentLoaded', async function () {
12-
let startTime = performance.now()
11+
let startTime = performance.now();
1312

1413
// required.js
1514
adjustScreenSize(610); // might not change the top image for on mobile

public_html/compatibility/index.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@
100100
<div class="gameCard skeletonLoading"></div>
101101
<div class="gameCard skeletonLoading"></div>
102102
<div class="gameCard skeletonLoading"></div>
103-
<div class="gameCard skeletonLoading"></div>
104-
<div class="gameCard skeletonLoading"></div>
105-
<div class="gameCard skeletonLoading"></div>
106-
<div class="gameCard skeletonLoading"></div>
107-
<div class="gameCard skeletonLoading"></div>
108-
<div class="gameCard skeletonLoading"></div>
109-
<div class="gameCard skeletonLoading"></div>
110-
<div class="gameCard skeletonLoading"></div>
111-
<div class="gameCard skeletonLoading"></div>
112-
<div class="gameCard skeletonLoading"></div>
113103
<div class="gameCardE skeletonLoading"></div>
114104
</div>
115105

public_html/compatibility/styles.css

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -53,47 +53,6 @@ body {
5353
}
5454

5555

56-
.backgroundPlane1, .backgroundPlane2 {
57-
position: fixed;
58-
transition: margin 0.5s ease;
59-
width: 160rem;
60-
height: 140rem;
61-
margin-left: 22rem;
62-
margin-top: -16rem;
63-
transform-origin: 50% 48%;
64-
border-radius: 43%;
65-
top: 3%;
66-
left: 10%;
67-
}
68-
69-
.backgroundPlane1 {
70-
animation: rotate1 21000ms infinite linear;
71-
background: var(--main1);
72-
}
73-
74-
.backgroundPlane2 {
75-
animation: rotate2 21000ms infinite linear;
76-
background: var(--main2);
77-
}
78-
79-
@keyframes rotate1 {
80-
from {
81-
transform: rotate(0deg);
82-
}
83-
to {
84-
transform: rotate(360deg);
85-
}
86-
}
87-
88-
@keyframes rotate2 {
89-
from {
90-
transform: rotate(30deg);
91-
}
92-
to {
93-
transform: rotate(390deg);
94-
}
95-
}
96-
9756
.compMenu {
9857
width: 37.5rem;
9958
height: 30.6rem;
@@ -509,7 +468,13 @@ body {
509468

510469

511470
@media screen and (max-width: 1150px) {
512-
.mainBackground1, .mainBackground2 {
471+
.content {
472+
width: 800px;
473+
}
474+
}
475+
476+
@media screen and (max-width: 1150px) {
477+
.backgroundPlane1, .backgroundPlane2 {
513478
margin-left: 32rem;
514479
}
515480
}
@@ -523,7 +488,7 @@ body {
523488

524489

525490
@media screen and (max-width: 600px) {
526-
.mainBackground1, .mainBackground2 {
491+
.backgroundPlane1, .backgroundPlane2 {
527492
margin-left: 50rem;
528493
}
529494
}
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)