list of sponsors + fixes

- added list of sponsors, if you host an instance, it can be enabled with showSponsors.
- fixed download button thickness on ios.
- about button now opens about tab when no new changelog is available.
This commit is contained in:
wukko
2023-10-12 17:33:26 +06:00
parent 6c314a1a62
commit a57ee53b21
15 changed files with 101 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
import * as fs from "fs";
import { links, repo } from "../modules/config.js";
import loadJson from "../modules/sub/loadJSON.js";
import { loadJSON } from "../modules/sub/loadFromFs.js";
const locPath = './src/localization/languages';
@@ -10,7 +10,7 @@ let languages = [];
export async function loadLoc() {
const files = await fs.promises.readdir(locPath).catch((e) => { return [] });
files.forEach(file => {
loc[file.split('.')[0]] = loadJson(`${locPath}/${file}`);
loc[file.split('.')[0]] = loadJSON(`${locPath}/${file}`);
languages.push(file.split('.')[0])
});
}