Skip to content

Commit 528e21e

Browse files
authored
Merge pull request #1088 from Fijxu/add-phantom
Add phantom, another frontend for Breezewiki
2 parents 600e138 + 0bf18b7 commit 528e21e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/assets/javascripts/services.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
201201
if (query) return `${randomInstance}/search?query="${query}${mapCentre}&${utils.prefsEncoded(prefs)}`
202202
return `${randomInstance}/${mapCentre}&${utils.prefsEncoded(prefs)}`
203203
}
204+
case "phantom":
204205
case "breezeWiki": {
205206
let wiki,
206207
urlpath = ""
@@ -957,7 +958,8 @@ const defaultInstances = {
957958
gocook: ["https://cook.adminforge.de"],
958959
wikimore: ["https://wikimore.private.coffee"],
959960
libreTranslate: ["https://libretranslate.com"],
960-
cryptPad: ["https://cryptpad.org"]
961+
cryptPad: ["https://cryptpad.org"],
962+
phantom: ["https://phantom.kuuro.net"]
961963
}
962964

963965
async function getDefaults() {

src/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,11 @@
513513
"name": "BreezeWiki",
514514
"instanceList": true,
515515
"url": "https://breezewiki.com"
516+
},
517+
"phantom": {
518+
"name": "Phantom",
519+
"instanceList": true,
520+
"url": "https://codeberg.org/phantom-org/phantom"
516521
}
517522
},
518523
"targets": [

0 commit comments

Comments
 (0)