Compare commits
5 commits
a007c80aa3
...
bdd216b6d7
Author | SHA1 | Date | |
---|---|---|---|
bdd216b6d7 | |||
3352548b50 | |||
1076ab8796 | |||
bb531c1227 | |||
299cfab019 |
2 changed files with 17 additions and 18 deletions
|
@ -7,7 +7,7 @@
|
|||
"license-name": "AGPL",
|
||||
"type": "other",
|
||||
"AutoloadNamespaces": {
|
||||
"MediaWiki\\Extension\\BigBuffet\\": "includes/"
|
||||
"MediaWiki\\Extension\\BigBuffet\\": "src/"
|
||||
},
|
||||
"SpecialPages": {
|
||||
"BigBuffet": "MediaWiki\\Extension\\BigBuffet\\SpecialBigBuffet"
|
||||
|
@ -28,7 +28,7 @@
|
|||
"description": "Route basename"
|
||||
},
|
||||
"BigBuffetBaseUrl": {
|
||||
"value": "https://pleroma.woodynet.net/",
|
||||
"value": "https://fedi.bigbuff.et/",
|
||||
"description": "Instance URL"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -21,21 +21,20 @@ class SpecialBigBuffet extends \SpecialPage
|
|||
$basename = $config->get('BigBuffetBasename');
|
||||
$baseurl = $config->get('BigBuffetBaseUrl');
|
||||
|
||||
$wikitext = '
|
||||
<script defer="defer" src="/bigbuffet/js/common.js"></script>
|
||||
<script defer="defer" src="/bigbuffet/js/application.js"></script>
|
||||
<div id="bigbuffet" class="text-base"></div>
|
||||
<script>
|
||||
window.BIG_BUFFET_CONFIG = {
|
||||
basename:' . json_encode($basename) . ',
|
||||
baseUrl:' . json_encode($baseurl) . ',
|
||||
mountPoint: "bigbuffet",
|
||||
styles: ["default"],
|
||||
icons: {},
|
||||
locale:' . json_encode($locale) . '
|
||||
};
|
||||
</script>
|
||||
';
|
||||
$output->addHTML($wikitext);
|
||||
$html = '
|
||||
<script defer="defer" src="/extensions/BigBuffet/resources/index.js"></script>
|
||||
<div id="bigbuffet" class="text-base"></div>
|
||||
<script>
|
||||
window.BIG_BUFFET_CONFIG = {
|
||||
basename: ' . json_encode($basename) . ',
|
||||
baseUrl: ' . json_encode($baseurl) . ',
|
||||
mountPoint: "bigbuffet",
|
||||
styles: ["default", "generated"],
|
||||
icons: {},
|
||||
locale: ' . json_encode($locale) . '
|
||||
};
|
||||
</script>
|
||||
';
|
||||
$output->addHTML($html);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue