Adding support for Toki Pona w/ Wikipesija

pull/93/head
Kevin Payravi 2023-03-09 02:44:32 -06:00
parent 5cee2fe8e3
commit f5f0434499
8 changed files with 21 additions and 5 deletions

View File

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

View File

@ -25,7 +25,7 @@ function addLocationObserver(callback) {
// Load website data
async function getData() {
const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL", "TOK"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

13
data/sitesTOK.json Normal file
View File

@ -0,0 +1,13 @@
[
{
"id": "tok-wikipesija",
"origin": "Toki Pona Fandom Wiki",
"origin_base_url": "tokipona.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Wikipesija",
"destination_base_url": "wikipesija.org",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "wikipesija.png"
}
]

BIN
favicons/tok/wikipesija.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

View File

@ -31,7 +31,8 @@
"data/sitesES.json",
"data/sitesFR.json",
"data/sitesIT.json",
"data/sitesPL.json"
"data/sitesPL.json",
"data/sitesTOK.json"
],
"background": {
"scripts": [

View File

@ -33,7 +33,8 @@
"data/sitesES.json",
"data/sitesFR.json",
"data/sitesIT.json",
"data/sitesPL.json"
"data/sitesPL.json",
"data/sitesTOK.json"
],
"matches": [
"https://*.fandom.com/*",

View File

@ -187,6 +187,7 @@
<option value="FR">Français</option>
<option value="IT">Italiano</option>
<option value="PL">Polski</option>
<option value="TOK">Toki Pona</option>
</select>
</div>
<div class="options">

View File

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