mediawiki-projects-list 4.2.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +16 -1
- package/index.js +6 -1
- package/package.json +1 -1
- package/projects-schema.json +3 -1
- package/projects.json +34 -0
package/index.d.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
declare module 'mediawiki-projects-list' {
|
|
2
2
|
|
|
3
|
+
/** A wiki farm */
|
|
4
|
+
export type WikiFarm = (
|
|
5
|
+
"biligame" |
|
|
6
|
+
"fandom" |
|
|
7
|
+
"huijiwiki" |
|
|
8
|
+
"miraheze" |
|
|
9
|
+
"shoutwiki" |
|
|
10
|
+
"telepedia" |
|
|
11
|
+
"wiki.gg" |
|
|
12
|
+
"wikiforge" |
|
|
13
|
+
"wikimedia" |
|
|
14
|
+
"wikitide" |
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
|
|
3
18
|
/** A MediaWiki project */
|
|
4
19
|
export type WikiProject = {
|
|
5
20
|
/** Hostname of the project */
|
|
@@ -26,7 +41,7 @@ declare module 'mediawiki-projects-list' {
|
|
|
26
41
|
/** Whether the paths include matches of the regex */
|
|
27
42
|
regexPaths: boolean;
|
|
28
43
|
/** Wiki farm of the project */
|
|
29
|
-
wikiFarm:
|
|
44
|
+
wikiFarm: WikiFarm;
|
|
30
45
|
/** List of extensions providing useful API endpoints */
|
|
31
46
|
extensions: ("Cargo" | "CentralAuth" | "OAuth")[];
|
|
32
47
|
/** Replacement for spaces in the article URL */
|
package/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
const {properties: {wikiProjects: {items: {properties: wikiProjectSchema}}, frontendProxies: {items: {properties: frontendProxySchema}}}} = require('./projects-schema.json');
|
|
2
2
|
const PROJECTS = require('./projects.json');
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A wiki farm
|
|
6
|
+
* @typedef {"biligame"|"fandom"|"huijiwiki"|"miraheze"|"shoutwiki"|"telepedia"|"wiki.gg"|"wikiforge"|"wikimedia"|"wikitide"|null} WikiFarm
|
|
7
|
+
*/
|
|
8
|
+
|
|
4
9
|
/**
|
|
5
10
|
* A MediaWiki project
|
|
6
11
|
* @typedef {object} WikiProject
|
|
@@ -15,7 +20,7 @@ const PROJECTS = require('./projects.json');
|
|
|
15
20
|
* @property {string} idString.regex - Regex to match the id string
|
|
16
21
|
* @property {string[]} idString.scriptPaths - How to turn the group matches of the id string regex into an URL to the script path, index based on group matches
|
|
17
22
|
* @property {boolean} regexPaths - Whether the paths include matches of the regex
|
|
18
|
-
* @property {
|
|
23
|
+
* @property {WikiFarm} wikiFarm - Wiki farm of the project
|
|
19
24
|
* @property {("Cargo"|"CentralAuth"|"OAuth")[]} extensions - List of extensions providing useful API endpoints
|
|
20
25
|
* @property {string} urlSpaceReplacement - Replacement for spaces in the article URL
|
|
21
26
|
* @property {?string} note - Note about the specific project
|
package/package.json
CHANGED
package/projects-schema.json
CHANGED
package/projects.json
CHANGED
|
@@ -1399,6 +1399,23 @@
|
|
|
1399
1399
|
"scriptPath": "/",
|
|
1400
1400
|
"fullScriptPath": "https://tcrf.net/"
|
|
1401
1401
|
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "telepedia.net",
|
|
1404
|
+
"regex": "(([a-z\\d-]{1,50})\\.telepedia\\.net)",
|
|
1405
|
+
"articlePath": "/wiki/",
|
|
1406
|
+
"scriptPath": "/",
|
|
1407
|
+
"idString": {
|
|
1408
|
+
"regex": "([a-z\\d-]{1,50})",
|
|
1409
|
+
"scriptPaths": [
|
|
1410
|
+
"https://$1.telepedia.net/"
|
|
1411
|
+
]
|
|
1412
|
+
},
|
|
1413
|
+
"wikiFarm": "telepedia",
|
|
1414
|
+
"extensions": [
|
|
1415
|
+
"CentralAuth",
|
|
1416
|
+
"OAuth"
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1402
1419
|
{
|
|
1403
1420
|
"name": "thecyclefrontier.wiki",
|
|
1404
1421
|
"regex": "((?:www\\.)?thecyclefrontier\\.wiki)",
|
|
@@ -2037,6 +2054,23 @@
|
|
|
2037
2054
|
"OAuth"
|
|
2038
2055
|
]
|
|
2039
2056
|
},
|
|
2057
|
+
{
|
|
2058
|
+
"name": "wikitide.com",
|
|
2059
|
+
"regex": "(([a-z\\d-]{1,50})\\.wikitide\\.com)",
|
|
2060
|
+
"articlePath": "/wiki/",
|
|
2061
|
+
"scriptPath": "/w/",
|
|
2062
|
+
"idString": {
|
|
2063
|
+
"regex": "([a-z\\d-]{1,50})",
|
|
2064
|
+
"scriptPaths": [
|
|
2065
|
+
"https://$1.wikitide.com/w/"
|
|
2066
|
+
]
|
|
2067
|
+
},
|
|
2068
|
+
"wikiFarm": "wikitide",
|
|
2069
|
+
"extensions": [
|
|
2070
|
+
"CentralAuth",
|
|
2071
|
+
"OAuth"
|
|
2072
|
+
]
|
|
2073
|
+
},
|
|
2040
2074
|
{
|
|
2041
2075
|
"name": "wikiversity.org",
|
|
2042
2076
|
"regex": "((?:([a-z\\d-]{1,50})\\.)?(?:m\\.)?wikiversity\\.org)",
|