Skip to content

Commit

Permalink
Merge pull request #834 from rgantzos/main
Browse files Browse the repository at this point in the history
Bump to v3.8.0
  • Loading branch information
rgantzos authored Jun 20, 2024
2 parents b20bab7 + 7d53a23 commit 03dd6b1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
10 changes: 5 additions & 5 deletions changelog/changes.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"NOTE": "THERE IS NO NEED TO UPDATE THIS YOURSELF, IT WILL BE UPDATED WHEN RELEASED.",
"version": "3.7.0",
"version": "3.8.0",
"enhanced": [
"Improve code quality.",
"Remove ScratchTools Awards ads.",
"Added Spanish as a language."
"Update contributor names.",
"Add clicker game."
],
"fixed": [
"Fix Flag on Profile feature."
"Fix protect mention text.",
"Fix search bar."
]
}
6 changes: 4 additions & 2 deletions changelog/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ document.querySelector("title").textContent = "What's New in v" + version;
document.querySelector("h1").textContent = "What's New in v" + version;

async function getChanges() {
var newFeatures = await (await fetch("/features/features.json")).json();
var newFeatures = (await (await fetch("/features/features.json")).json()).reverse();
let soFarI = 0
for (var i in newFeatures) {
var feature = newFeatures[i];
if (feature.versionAdded === "v" + version || feature.versionUpdated === "v" + version) {
Expand All @@ -24,13 +25,14 @@ async function getChanges() {
var design = document.createElement("div");
design.className = "colorful-design";
div.prepend(design);
if (i > 2) {
if (soFarI > 2) {
div.className = "wide-feature feature";
document.querySelector(".new-features-full").prepend(div);
} else {
div.className = "feature";
document.querySelector(".new-features").prepend(div);
}
soFarI += 1
}
}
const changes = await (await fetch("./changes.json")).json();
Expand Down
12 changes: 6 additions & 6 deletions features/features.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[
{
"version": 2,
"id": "fullscreen-explorer",
"id": "sidebar",
"versionAdded": "v3.8.0"
},
{
"version": 2,
"id": "total-stats",
"id": "project-version-detector",
"versionAdded": "v3.8.0"
},
{
"version": 2,
"id": "project-miniplayer",
"id": "fullscreen-explorer",
"versionAdded": "v3.8.0"
},
{
Expand All @@ -21,17 +21,17 @@
},
{
"version": 2,
"id": "pin-comments",
"id": "total-stats",
"versionAdded": "v3.8.0"
},
{
"version": 2,
"id": "sidebar",
"id": "project-miniplayer",
"versionAdded": "v3.8.0"
},
{
"version": 2,
"id": "project-version-detector",
"id": "pin-comments",
"versionAdded": "v3.8.0"
},
{
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "ScratchTools",
"manifest_version": 3,
"version": "3.8.0",
"version_name": "3.8.0-beta",
"version_name": "3.8.0",
"default_locale": "en",
"description": "__MSG_extDescription__",
"author": "rgantzos",
Expand Down

0 comments on commit 03dd6b1

Please sign in to comment.