twitter spaces and a ton of improvements

This commit is contained in:
wukko
2022-10-24 19:03:11 +06:00
parent d0801c4d1d
commit c532062aa2
32 changed files with 262 additions and 230 deletions

View File

@@ -7,14 +7,15 @@ export default function(string) {
try {
switch (string) {
case "title":
return replaceBase(changelog["current"]["title"]);
return `${replaceBase(changelog["current"]["title"])} (${changelog["current"]["version"]})` ;
case "content":
return replaceBase(changelog["current"]["content"]);
case "history":
return changelog["history"].map((i) => {
return {
title: replaceBase(i["title"]),
content: replaceBase(i["content"])
content: replaceBase(i["content"]),
version: i["version"],
}
});
default: