Adding Ukrainian Minecraft Wiki

pull/352/head
Kevin Payravi 2023-11-16 04:34:18 -06:00
parent 46e749663e
commit 825cc8d67d
9 changed files with 25 additions and 5 deletions

View File

@ -296,7 +296,7 @@ function redirectToBreezeWiki(storage, eventInfo, url) {
// Load website data
async function getData() {
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const breezeWikiRegex = /breezewiki\.com$|breeze\.hostux\.net$|bw\.projectsegfau\.lt$|antifandom\.com$|breezewiki\.pussthecat\.org$|bw\.vern\.cc$|breezewiki\.esmailelbob\.xyz$|bw\.artemislena\.eu$|bw\.hamstro\.dev$|nerd\.whatever\.social$|breeze\.nohost\.network$|breeze\.whateveritworks\.org$/;
const currentURL = new URL(document.location);

View File

@ -1,3 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const currentURL = new URL(document.location);
let filteredWikis = [];
let hiddenWikisRevealed = {};
@ -26,7 +27,6 @@ function addLocationObserver(callback) {
// Load website data:
async function getData() {
const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL", "TOK"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

18
data/sitesUK.json Normal file
View File

@ -0,0 +1,18 @@
[
{
"id": "uk-minecraft",
"origins_label": "Minecraft Fandom Wiki",
"origins": [
{
"origin": "Minecraft Fandom Wiki",
"origin_base_url": "minecraft.fandom.com/uk",
"origin_content_path": "/wiki/"
}
],
"destination": "Minecraft Wiki",
"destination_base_url": "uk.minecraft.wiki",
"destination_content_path": "/w/",
"destination_platform": "mediawiki",
"destination_icon": "minecraftwiki.png"
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

View File

@ -50,6 +50,7 @@
"data/sitesPL.json",
"data/sitesPT.json",
"data/sitesTOK.json",
"data/sitesUK.json",
"data/sitesZH.json"
],
"background": {

View File

@ -38,6 +38,7 @@
"data/sitesPL.json",
"data/sitesPT.json",
"data/sitesTOK.json",
"data/sitesUK.json",
"data/sitesZH.json"
],
"matches": [

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
// Set power setting
function setPower(setting) {

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
var sites = [];
// Create object prototypes for getting and setting attributes: